[mapserver-users] KML as Outputformat returns incorrect coordinates
Joe Franklin
traderboy at yahoo.com
Mon Jun 6 05:44:58 PDT 2011
I'm using Mapserver 6.0. I get the same results using the windows MS4W version as well as compiling it myself on Centos 5. I'm including a simple map file with an embedded point, but I also tested using a point shapefile. Anyone else see this problem?
Works using shp2img- returns -77.00000000,48.000000000:
shp2img -m airport.map
Doesn't work using mapserv CGI or PHP Mapscript - returns 76.80000000,409.60000000
mapserv -nh "QUERY_STRING=map=airport.map&service=wms&VERSION=1.1.1&REQUEST=GetMap&SRS=epsg:4326&WIDTH=512&HEIGHT=512&LAYERS=Airports&TRANSPARENT=TRUE&FORMAT=kml&BBOX=-80,40,-60,50"
MAP
NAME "Airport"
STATUS ON
SIZE 512 512
EXTENT -80 40 -60 50
IMAGETYPE kml
UNITS DD
IMAGECOLOR 255 255 255
PROJECTION
"init=epsg:4326"
END
WEB
METADATA
"ows_enable_request" "*"
"wms_title" "Airport"
"wms_onlineresource" "http://localhost/mapserv?map=/tmp/airport.map"
"ows_srs" "epsg:4326"
END
END #WEB
SYMBOL
NAME 'circle'
TYPE ellipse
FILLED true
POINTS 1 1 END
END
LAYER
NAME "Airports"
TYPE point
FEATURE
POINTS -77 48 END
END
METADATA
"wms_title" "Airports"
END # METADATA
STATUS ON
CLASS
STYLE
COLOR 255 0 0
SYMBOL 1
SIZE 5
END # STYLE
TEMPLATE "ttt_query.html"
END # CLASS
END # LAYER
END
MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ
SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
More information about the MapServer-users
mailing list