[ka-Map-users] Problem to query a postgis layer

Paolo Mangraviti paolo.mangraviti at katamail.com
Tue Dec 14 08:04:52 EST 2010


Hi ti all,
I have a problem with postgis layer in ka-map. Layer is viewed 
correctly, but on query a point of that layer, ka-map notify me an error:

Fatal error: [MapServer Error]: msQueryByPoint(): No matching record(s) 
found. in /var/www/webgis/ka-map/htdocs/map_query_float.php on line 234

If I omit the TEMPLATE directive, no query is performed.

Layer specification in map file is:
#-------------------------------------------------------------------------------------------------------------------------------------------------------
     LAYER # Punti di Interesse :: Fontane
         CONNECTIONTYPE postgis
         CONNECTION "user=webgis password=******** dbname=sentieri 
host=127.0.0.1"
         DATA "wpt from punto"
         FILTER "tipologia = 'Fontana'"

         TYPE POINT
         TOLERANCE 5
         STATUS ON

         NAME "Fontane e Sorgenti"
         GROUP "Fontane"
         LABELITEM "titoloMappa"

         TEMPLATE "../sample.html"

         CLASS
             NAME "Fontane"
             STYLE
                 SYMBOL "fontana"
                 OUTLINECOLOR 0 0 0
             END
             LABEL
                 POSITION uc
                 SIZE 7
                 COLOR 0 0 0
                 BACKGROUNDCOLOR 228 253 18
                 TYPE truetype
                 FONT arial
             END
         END


         METADATA
             "wms_title"                 "Fontane e Sorgenti"
             "imageformat"               "GIF"
             "queryable"                 "true"
             "max_extents"               "auto"
             "tile_source"               "redraw"
             "fields"                    "denominazione:Nome,quota:mt"
             "searchfield"               "denominazione"
             "identificativoSentiero"    "none"
         END
         PROJECTION
             "proj=utm"
             "ellps=WGS84"
             "datum=WGS84"
             "zone=33"
             "units=m"
             "south"
             "no_defs"
         END
     END
#-------------------------------------------------------------------------------------------------------------------------------------------------------

Thanks a lot for support,

paolo mangraviti


More information about the ka-Map-users mailing list