Hi, Please help, i'm having a problem with the identify feature. I'm using pmapper 4.0 and using postgresql 8.4 with postgis 1.4 as data source. The problem is when i tried to use the identify feature on pmapper it doesn't show the attribute, only the header. I checked the JSON output, the value isn't there. I also checked the .php files (query.php,squery.php,and x_info.php) but doesn't really get me anywhere. I don't know what went wrong, please help i've been having this problem for weeks.
This is my map file look like. MAP EXTENT 444765.383453 380538.093750 481755.804047 424830.125000 UNITS meters #EXTENT 98.5027 3.4879 98.8357 3.7983 #UNITS dd SIZE 600 500 SYMBOLSET "../common/symbols/symbols-pmapper.sym" FONTSET "../common/fonts/msfontset.txt" RESOLUTION 96 IMAGETYPE png INTERLACE OFF #CONFIG "PROJ_LIB" "C:/proj/nad/" PROJECTION "init=epsg:32647" END # # Image formates for GD # OUTPUTFORMAT NAME "png" DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGB TRANSPARENT OFF EXTENSION PNG FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END OUTPUTFORMAT NAME "png32" DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE "rgba" EXTENSION "png" FORMATOPTION "transparent=on" # TileCache can't use meta-tiling on interlaced PNG files... FORMATOPTION "interlace=off" END #OUTPUTFORMAT # NAME "png8" #DRIVER "GD/PNG" #MIMETYPE "image/png" #IMAGEMODE RGB #FORMATOPTION INTERLACE=OFF #TRANSPARENT OFF #EXTENSION "png" #END OUTPUTFORMAT NAME "jpeg" DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB FORMATOPTION "QUALITY=70" EXTENSION "jpg" END # Image formats for AGG # # OUTPUTFORMAT ### 24 bit PNG # NAME 'agg_png' # DRIVER AGG/PNG # IMAGEMODE RGB # END # OUTPUTFORMAT ### 32 bit PNG with alpha channel from transparency # NAME 'agg_pnga' # DRIVER AGG/PNG #IMAGEMODE RGBA #TRANSPARENT ON #EXTENSION "png" #MIMETYPE "image/png" #END # OUTPUTFORMAT ### 8 bit PNG # NAME 'agg_png8' # DRIVER AGG/PNG # IMAGEMODE RGB # FORMATOPTION "QUANTIZE_FORCE=ON" # FORMATOPTION "QUANTIZE_DITHER=OFF" # FORMATOPTION "QUANTIZE_COLORS=256" # END # OUTPUTFORMAT # NAME 'agg_jpeg' # DRIVER AGG/JPEG # IMAGEMODE RGB # END OUTPUTFORMAT NAME GTiff DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE RGB #FORMATOPTION "TFW=YES" #FORMATOPTION "COMPRESS=PACKBITS" EXTENSION "tif" END OUTPUTFORMAT NAME imagemap MIMETYPE "text/html" FORMATOPTION SKIPENDTAG=OFF DRIVER imagemap END # # Start of web interface definition # WEB TEMPLATE "map.html" IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "MAPFILE_ENCODING" "UTF-8" #"ows_title" "WMS Demo Server" #"ows_onlineresource" "http://wms.yourserver.org?owskey=test&" #"ows_srs" "EPSG:32647" END # Metadata END # Web # # Start of Reference map definition # REFERENCE EXTENT 444765.383453 385538.093750 481755.804047 419830.125000 IMAGE "../../images/medan_reference.png" SIZE 199 149 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # Reference LEGEND END # # Start of ScaleBar definition # SCALEBAR STATUS off TRANSPARENT off INTERVALS 4 SIZE 200 3 UNITS kilometers COLOR 250 250 250 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 100 100 100 STYLE 0 POSTLABELCACHE true LABEL COLOR 0 0 90 #OUTLINECOLOR 200 200 200 SIZE small END # Label END # Reference # SYMBOLS USED IN PMAPPER # - 'circle' always necessary (used e.g. for highlight) # - 'square' used in currecnt map file # Symbols can also be defined via tag SYMBOLSET (see above) Symbol NAME 'circle' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END Symbol NAME 'square' TYPE VECTOR FILLED TRUE POINTS 0 1 0 0 1 0 1 1 0 1 END END #================== MULAI LAYER!! =====================# #================ LAYER KECAMATAN==========================# LAYER NAME "kecamatan" TYPE POLYGON CONNECTIONTYPE postgis CONNECTION "host=127.0.0.1 user=postgres password=12345 dbname=medan" DATA 'the_geom FROM (SELECT the_geom as the_geom, id_kecamatan, nama_kcmtn FROM kecamatan_geom) AS foo USING UNIQUE id_kecamatan USING SRID=32647' STATUS DEFAULT TRANSPARENCY 100 LABELITEM "nama_kcmtn" LABELMINSCALE 35000 LABELMAXSCALE 99999999 CLASSITEM "id_kecamatan" CLASS TEMPLATE void NAME "Kecamatan" STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 255 255 255 COLOR 255 255 255 END LABEL FONT "FreeSansBold" TYPE truetype SIZE 8 POSITION CC COLOR 255 0 0 OUTLINECOLOR 242 236 230 END END METADATA "DESCRIPTION" "Administrasi Kecamatan" "RESULT_HEADERS" "ID Kecamatan,Nama Kcamatan" "RESULT_FIELDS" "id_kecamatan,nama_kcmtn" "LAYER_ENCODING" "UTF-8" END END END #MAP Could anyone help ? Thank you Regards, Deril ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users