It works for me at least for a test dataset. Try to modify the debug line 900 in map.php to
pm_logDebug(3, $query, "P.MAPPER-DEBUG: map.php/pmap_drawXYLayer() - SQL Cmd: $sql"); (the $sql was missing in the code) and set debugLevel = 3 in config.ini. You will then get a pm_debug.log file in the same dir as the PHP error log. Use the sql command and execute it on your database. XY Layers are nor deprecated but rarely tested. But in 3.1 they can now have different projection as the map, so sort of slight maintenance. I put the cities.db for download at http://pmapper.net/dl/cities.zip You can try it with the other demodata to define as LAYER NAME "cities_xylayer" TYPE point #PROJECTION #"init=epsg:3035" #END METADATA "DESCRIPTION" "City XY" "RESULT_FIELDS" "city_name, admin_name" "RESULT_HEADERS" "CITY NAME, ADMIN NAME" "RESULT_HYPERLINK" "admin_name" "XYLAYER_PROPERTIES" "sqlite://'':''/path/to/cities.db||cities_3035||x,y,0" END # Metadata CLASS TEMPLATE "void" STYLE SYMBOL 'circle' COLOR 0 32 32 SIZE 8 MINSIZE 1 MAXSIZE 100 END END END # Layer armin Andre van Atten wrote: > Hi, > > > > I have a problem displaying data from XY_layers in pmapper31. I don't > see the symbols on the map, but they are there, because I can use the > select tool on that layer succesful. Also searching by using search.xml > works fine. All other layers behaving fine, all symbols en linestrings > display correctly () > > I don't have that problem in the 3.0 configuration, I use the same map > and symbol file in pmapper 3.0, which uses the same apache, php and ms4w > configuration, the only differnce is actually another httpd.conf > configuration, pointing to the 3.1 app. I migrated the same ini-settings > in the config directory, so my conclusion is: it is a problem in the > code. I don't see any errors in the log (or they are invisble too!) > > Is this a problem due to the deprecation of the function XY_layer? I can > use the oGR functionality too, but XY_PROPERTIES layer is much faster > and less cpu-intensive. > > This is one of my layer definitions in the map file that doesn't show up > any more: > > > > LAYER > > STATUS ON > > NAME "Clusters" > > TYPE POINT > > UNITS METERS > > SIZEUNITS PIXELS > > MAXSCALE 100000 > > TOLERANCE 5 > > TOLERANCEUNITS PIXELS > > METADATA > > "DESCRIPTION" "Clusters XYLAYER" > > "RESULT_FIELDS" "City, Name, ClusterSysNo, Category, X, Y" > > "RESULT_HEADERS" "City, Name, ClusterSysNo, Category, X, Y" > > "XYLAYER_PROPERTIES" > "odbc://'':''/[EMAIL PROTECTED]||[EMAIL PROTECTED]>0||X,Y,0" > > "RESULT_HYPERLINK" "ClusterSysNo" > > END > > CLASS > > NAME "tb_ClusterXY" > > TEMPLATE "tb_ClusterXY.html" #TEMPLATE void is also ok! > > STYLE > > SYMBOL 'default-circle' > > COLOR 0 32 32 > > SIZE 8 > > MINSIZE 1 > > MAXSIZE 100 > > END > > END > > END > > > > Andre van Atten > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users