Hi all, <div>I'm having some related problem:<div>I have no problem with my mapserver png outputformat:</div><div>This png request works really fine:</div><div><a href="http://geoserver3/wms60/ddgi/servidor/espaisprotegits?FORMAT=image/png&TRANSPARENT=true&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&LAYERS=zonhum&SRS=EPSG%3A4326&BBOX=-1.0469740101326659,41.39036252208658,5.764549426147167,42.77237478582793&WIDTH=1860&HEIGHT=1039">http://geoserver3/wms60/ddgi/servidor/espaisprotegits?FORMAT=image/png&TRANSPARENT=true&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&LAYERS=zonhum&SRS=EPSG%3A4326&BBOX=-1.0469740101326659,41.39036252208658,5.764549426147167,42.77237478582793&WIDTH=1860&HEIGHT=1039</a></div>
<div><br></div><div>Changing only the FORMAT parameter to KML:</div><div><a href="http://geoserver3/wms60/ddgi/servidor/espaisprotegits?FORMAT=KML&TRANSPARENT=true&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&LAYERS=zonhum&SRS=EPSG%3A4326&BBOX=-1.0469740101326659,41.39036252208658,5.764549426147167,42.77237478582793&WIDTH=1860&HEIGHT=1039">http://geoserver3/wms60/ddgi/servidor/espaisprotegits?FORMAT=KML&TRANSPARENT=true&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&LAYERS=zonhum&SRS=EPSG%3A4326&BBOX=-1.0469740101326659,41.39036252208658,5.764549426147167,42.77237478582793&WIDTH=1860&HEIGHT=1039</a></div>
<div><br></div><div>(sorry, my server is not at the Internet).</div><div><br></div><div>I get as a response an xml file with no extension and taking a look at it with my text editor, I can see things like</div><div><div><Polygon><outerBoundaryIs><LinearRing><coordinates></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>583.23708456,950.02673133</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>583.22503040,950.03227145</div><div><br></div><div>And these coordinates are wrong.</div>
<div><br></div><div>Mapserver's log doese not seem to show any problem:</div><div>Log after the FORMAT=kml query</div><div><br></div><div><div>[Wed Jul 6 13:08:21 2011].550681 CGI Request 1 on process 1073</div><div>
[Wed Jul 6 13:08:21 2011].550929 msWMSLoadGetMapParams(): enabling non-square pixels.</div><div>[Wed Jul 6 13:08:21 2011].551361 msDrawMap(): kicking into non-square pixel preserving mode.</div><div>[Wed Jul 6 13:08:21 2011].551380 msDrawMap(): rendering using outputformat named kml (KML).</div>
<div>[Wed Jul 6 13:08:21 2011].551400 msDrawMap(): WMS/WFS set-up and query, 0.000s</div><div>[Wed Jul 6 13:08:22 2011].533734 msDrawMap(): Layer 0 (zonhum), 0.982s</div><div>[Wed Jul 6 13:08:22 2011].533776 msDrawMap(): Drawing Label Cache, 0.000s</div>
<div>[Wed Jul 6 13:08:22 2011].533791 msDrawMap() total time: 0.983s</div><div>[Wed Jul 6 13:08:22 2011].942736 msSaveImage(stdout) total time: 0.409s</div><div>[Wed Jul 6 13:08:22 2011].943681 mapserv request processing time (msLoadMap not incl.): 1.393s</div>
<div>[Wed Jul 6 13:08:22 2011].943700 msFreeMap(): freeing map at 0x9603678.</div></div><div><br></div><div>Can someone help me?</div><div>Thanks in advance for any response.</div><div>Lluís.</div><br><div class="gmail_quote">
2011/6/6 Joe Franklin <span dir="ltr"><<a href="mailto:traderboy@yahoo.com">traderboy@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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?<br>
<br>
Works using shp2img- returns -77.00000000,48.000000000:<br>
shp2img -m airport.map<br>
<br>
Doesn't work using mapserv CGI or PHP Mapscript - returns 76.80000000,409.60000000<br>
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"<br>
<br>
<br>
MAP<br>
NAME "Airport"<br>
STATUS ON<br>
SIZE 512 512<br>
EXTENT -80 40 -60 50<br>
IMAGETYPE kml<br>
UNITS DD<br>
IMAGECOLOR 255 255 255<br>
PROJECTION<br>
"init=epsg:4326"<br>
END<br>
WEB<br>
METADATA<br>
"ows_enable_request" "*"<br>
"wms_title" "Airport"<br>
"wms_onlineresource" "<a href="http://localhost/mapserv?map=/tmp/airport.map" target="_blank">http://localhost/mapserv?map=/tmp/airport.map</a>"<br>
"ows_srs" "epsg:4326"<br>
END<br>
END #WEB<br>
SYMBOL<br>
NAME 'circle'<br>
TYPE ellipse<br>
FILLED true<br>
POINTS 1 1 END<br>
END<br>
LAYER<br>
NAME "Airports"<br>
TYPE point<br>
FEATURE<br>
POINTS -77 48 END<br>
END<br>
METADATA<br>
"wms_title" "Airports"<br>
END # METADATA<br>
STATUS ON<br>
CLASS<br>
STYLE<br>
COLOR 255 0 0<br>
SYMBOL 1<br>
SIZE 5<br>
END # STYLE<br>
TEMPLATE "ttt_query.html"<br>
END # CLASS<br>
END # LAYER<br>
END<br>
<br>
<br>
MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ<br>
SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI<br>
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<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div><br><br clear="all"><br><br><br>
</div></div>