Hi all, <div>I&#39;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&amp;TRANSPARENT=true&amp;VERSION=1.1.1&amp;SERVICE=WMS&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;LAYERS=zonhum&amp;SRS=EPSG%3A4326&amp;BBOX=-1.0469740101326659,41.39036252208658,5.764549426147167,42.77237478582793&amp;WIDTH=1860&amp;HEIGHT=1039">http://geoserver3/wms60/ddgi/servidor/espaisprotegits?FORMAT=image/png&amp;TRANSPARENT=true&amp;VERSION=1.1.1&amp;SERVICE=WMS&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;LAYERS=zonhum&amp;SRS=EPSG%3A4326&amp;BBOX=-1.0469740101326659,41.39036252208658,5.764549426147167,42.77237478582793&amp;WIDTH=1860&amp;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&amp;TRANSPARENT=true&amp;VERSION=1.1.1&amp;SERVICE=WMS&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;LAYERS=zonhum&amp;SRS=EPSG%3A4326&amp;BBOX=-1.0469740101326659,41.39036252208658,5.764549426147167,42.77237478582793&amp;WIDTH=1860&amp;HEIGHT=1039">http://geoserver3/wms60/ddgi/servidor/espaisprotegits?FORMAT=KML&amp;TRANSPARENT=true&amp;VERSION=1.1.1&amp;SERVICE=WMS&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;LAYERS=zonhum&amp;SRS=EPSG%3A4326&amp;BBOX=-1.0469740101326659,41.39036252208658,5.764549426147167,42.77237478582793&amp;WIDTH=1860&amp;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>&lt;Polygon&gt;&lt;outerBoundaryIs&gt;&lt;LinearRing&gt;&lt;coordinates&gt;</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&#39;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">&lt;<a href="mailto:traderboy@yahoo.com">traderboy@yahoo.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I&#39;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&#39;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&#39;t work using mapserv CGI or PHP Mapscript - returns 76.80000000,409.60000000<br>
mapserv -nh  &quot;QUERY_STRING=map=airport.map&amp;service=wms&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;SRS=epsg:4326&amp;WIDTH=512&amp;HEIGHT=512&amp;LAYERS=Airports&amp;TRANSPARENT=TRUE&amp;FORMAT=kml&amp;BBOX=-80,40,-60,50&quot;<br>

 <br>
 <br>
MAP<br>
NAME &quot;Airport&quot;<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>
      &quot;init=epsg:4326&quot;<br>
END<br>
WEB<br>
  METADATA<br>
      &quot;ows_enable_request&quot; &quot;*&quot;<br>
      &quot;wms_title&quot;           &quot;Airport&quot;<br>
      &quot;wms_onlineresource&quot;  &quot;<a href="http://localhost/mapserv?map=/tmp/airport.map" target="_blank">http://localhost/mapserv?map=/tmp/airport.map</a>&quot;<br>
      &quot;ows_srs&quot;             &quot;epsg:4326&quot;<br>
  END<br>
END  #WEB<br>
SYMBOL<br>
        NAME &#39;circle&#39;<br>
        TYPE ellipse<br>
        FILLED true<br>
        POINTS 1 1 END<br>
END<br>
LAYER<br>
    NAME &quot;Airports&quot;<br>
    TYPE point<br>
    FEATURE<br>
      POINTS -77 48 END<br>
    END<br>
    METADATA<br>
      &quot;wms_title&quot; &quot;Airports&quot;<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 &quot;ttt_query.html&quot;<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>