Hello,
I have the problem with searching my postgis layer (pmapper 3.2 on 
ubuntu). In version 3.1 everything worked fine:( And wiht shapefile 
works fine. The problem is postgis layer.
My search is simple:

<searchitem name="Name" description="Name">
        <layer type="postgis" name="Zabudowa">
            <field type="s" name="nazwa_miejscowosci" 
description="Name"  wildcard="0" />
        </layer>
 </searchitem>

and layer too:

LAYER
  NAME "Zabudowa"
  TYPE POLYGON
  STATUS ON
  # TRANSPARENCY 60
  CONNECTIONTYPE postgis
  CONNECTION "user=postgis password=*** dbname=postgis host=localhost 
port=5432"   
  DATA "the_geom FROM miejscowosci_obrysy USING UNIQUE gid"
  LABELITEM "nazwa_miejscowosci"
  METADATA
   "DESCRIPTION"         "Localities"     #title on TOC and query result
   "RESULT_FIELDS"       "nazwa_miejscowosci, typ_miejscowosci"   
#fields called on query result
   "RESULT_HEADERS"      "Name, Type"     #fields headers on query result
   # "RESULT_HYPERLINK"    "www"
   "ows_title"      "Zabudowa"
   "gml_featureid" "gid" ## REQUIRED
   "gml_include_items" "all"
   "LAYER_ENCODING" "UTF-8"
  END  # Metadata
DUMP TRUE
CLASS
Name "Cities"
    EXPRESSION ('[typ_miejscowosci]' eq 'miasto')
    COLOR 139 87 66
  LABEL
      POSITION Auto
      COLOR 54 54 54
      BUFFER 2
      TYPE truetype
      FONT verdana-bold
      SIZE 10
    ENCODING UTF-8
    END #Label
    TEMPLATE void 
  END  # Class

CLASS
    Name "Villages"   
    EXPRESSION ('[typ_miejscowosci]' eq 'wieś')
    COLOR 205 129 98
  LABEL
      POSITION Auto
      COLOR 54 54 54
      BUFFER 2
      TYPE truetype
      FONT verdana-bold
      SIZE 10
    ENCODING UTF-8
    END #Label
    TEMPLATE void 
  END  # Class
CLASS
    Name "Farms, mills and taverns"
    EXPRESSION ('[typ_miejscowosci]' ne 'wieś' and '[typ_miejscowosci]' 
ne 'miasto')
    COLOR 255 160 122
  LABEL
      POSITION Auto
      COLOR 54 54 54
      BUFFER 2
      TYPE truetype
      FONT verdana
      SIZE 10
    ENCODING UTF-8
    END #Label
   TEMPLATE void 
  END  # Class

END  # Layer


Could anyone have the same problem...

Pozdrawiam
Bogumil
   

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to