Bayu Kurniawan R

Think about GIS, Linux and Oracle

You are currently browsing the archives for the day Thursday, March 22nd, 2007.

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.

5 comments