p.mapper 3.1 beta-4

Upgrade Information for p.mapper versions

Upgrade 3.0 -> 3.1

PHP version

p.mapper 3.1 only runs fully on PHP 5.x with XML support because the attribute search requires PHP5 XML functions.

Attribute search

Define attribute search via /config/…/search.xml

<searchlist version="1.0">
    <searchitem name="cities" description="City">

        <layer type="shape" name="cities">

            <field type="s" name="CITY_NAME" description="City"  wildcard="0" />

        </layer>

    </searchitem>

</searchlist>

Create new <searchitem> for every layer you want to search.Parameters:

<searchitem>
  name: unique identifier, typically the same as layer name
  description: name visible in GUI
<layer>
  type: data source type, "shape" or "postgis"
  name: layer name in map file
<field>
  type: "s" for string field, "n" for numeric field
  name: field name in dataset
  description: name visible in GUI
  wildcard: "0": search always uses a 'non-exact' pattern matching;
            "1": requires that the user explicitly adds "*" for wildcards to his search string

config.ini

new config tags (if not set, default values are taken):

  • pm_search_configfile
  • autoIdentifyGroups
  • catInfoLink/grpInfoLink
  • catWithCheckbox
  • debugLevel
  • See the p.mapper manual for details.

php_config.php

Additionally to toolbars, now also DHTML menus are supported. The definition is done via the menu1 array. Multiple menus are possible. Menus are created in the map.phtml via the function call writemenu($menu1, "menu1", "Tools")

js_config.php

various JS specific settings are added. See the file itself and the descriptions of the parameters there.

Share on Facebook
This entry was posted in pmapper. Bookmark the permalink.

13 Responses to p.mapper 3.1 beta-4

  1. Steve Goldsmith says:

    Any ideas how you pass varaible to the map file
    Many Thanks

  2. kurniyawan says:

    mas sory ne saya tanyak mulu di sini….ne tentang search xml pmapper.
    saya membuat search untuk tipe poligon, line dan point. untuk tipe polygon dan line bisa mengapa untuk tipe point kq ada errornya di error log??padahal scriptnya sama dengan yg tipe polygon n line??
    waktu saya search di tipe point bisa muncul atributnya tapi waktu mw menampilkan yg saya cari petanya hilang dan ada point ditengah2nya terus saya perbesar atau perkecil kelihatan lagi petanya.
    bisa tolong kasih petunjuk mas?? dan nanti akan saya perlihatkan error lognya.?? thx sebelumnya.

  3. kurniyawan says:

    PHP Warning: DOMDocument::schemaValidate() [ domdocument.schemavalidate]: Element ‘definition’, attribute ‘connectiontype’: [facet 'enumeration'] The value ‘postgis’ is not an element of the set {‘csv’, ‘db’, ‘dbase’, ‘inline’, ‘txt’, ‘ms’, ‘session’}. in C:\\ms4w\\apps\\pmapper\\pmapper-3.2.0\\incphp\\query\\search.php on line 66, referer: http://localhost/pmapper/map.phtml.

    PHP Warning: DOMDocument::schemaValidate() [ domdocument.schemavalidate]: Element ‘definition’, attribute ‘connectiontype’: ‘postgis’ is not a valid value of the local atomic type. in C:\\ms4w\\apps\\pmapper\\pmapper-3.2.0\\incphp\\query\\search.php on line 66, referer: http://localhost/pmapper/map.phtml.

    Incorrect setting for ‘error_log’ in ‘php.ini’. Set to a valid file name., referer: http://localhost/pmapper/map.phtml

    ini error log saya mas??

  4. riska says:

    mas tolong informasi’a, riska lagi nyusun tugas akhir ne, riska buat sistem informasi geografis penunjukan lokasi tempat seperti tempat pendidikan. riska menggunakan MS4W dan Pmapper, demo udah bisa,cuma cara pembuatan peta atau poligon dan databasenya. riska kurang ngerti mas… tolong ya mas bantuin. please… kirim ke email aja ya mas. riska_riri@rocketmail.com

    • - cara pembuatan peta bisa menggunakan software pemetaan GIS seperti : ArcGIS, ArcView, MapInfo, gvSIG, QuantumGIS. Anda bisa buat titik,garis,poligon dengan menggunakan software tsb.
      - Setelah peta jadi, Anda bisa convert peta tersebut ke dalam database spatial seperti : Oracle, SQLServer, PostgreSQL

  5. agung says:

    mas saya agung… sekarang saya sedang menyusun tugas akhir berkaitan dengan pembuatan webgis…
    kebetulan saya menggunakan framework pmapper versi 4.1.1… ketika saya menggunakan search menggunakan postgis layer selalu loading dan hasilnya tidak muncul…. kira2 mas ada solusi atau tidak…. thanks….

    • coba mas baca dulu link : http://svn.pmapper.net/trac/wiki/DocManualsearch

      biasanya sih dikarenakan kesalahan dalam mengetikkan huruf besar dan huruf kecil pada nama fieldnya.
      Untuk data Postgis, field name HARUS ditulis menggunakan huruf kecil.

      • agung says:

        thanks mas…. skrg dah bisa… saya mau tny lagi…kira2 kalo ingin memunculkan data lebih dari satu yg berasal dari tabel lain itu bagaimana? misal sebuah rs mempunyai byk departemen dan hbgn rs dan departemen itu many to many. lha saya ingin memunculkan sebuah rs mempunyai departemen apa saja brdasarkan id rs. thanks…

        • agung says:

          mas kalo di pmapper kita ingin menambahkan foto di popup window kira2 bisa atau tidak??? thanks….

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>