[mapserver-users] mapserver with kml

Stephen Woodbridge woodbri at swoodbridge.com
Thu Dec 14 11:44:27 PST 2017


Ivan,

The "+" char in the URL is interpreted as a space you have to ecapce 
this as %2B

But you should be able to give the OUTPUTFORMAT block an NAME "kml" and 
give that the appropriate parameters like:

         EXTENSION "kml"
         MIMETYPE "application/vnd.google-earth.kml+xml"

and whatever other parameters are needed, then request the format "kml"

-Steve W

On 12/14/2017 2:03 PM, Ivan Ogasawara wrote:
>     The name of the format in the GetCapabilities is
> 
>     <Format>application/vnd.google-earth.kml+xml</Format>
> 
>     Use that.
> 
> 
> yes .. this format is in my GetMap/Format
> 
>    <Format>application/vnd.google-earth.kml+xml</Format>
> 
> using this format name in url result this error:
> 
>    msWMSLoadGetMapParams(): Image handling error. Unsupported output 
> format (application/vnd.google-earth.kml xml).
> 
> I think I should use the same value defined on OUTPUTFORMAT/NAME
> 
> 
>     I have never used CRS:84 as CRS and I don't know if it
>     really works. You can stay in WMS version 1.1.1 and SRS=EPSG:4326.
>     Verify first with image/png that GetMap returns a map.
> 
> 
> I have no problem with image/png format  (using 1.1.1 or 1.3.0)
> 
>     Read
> 
>     http://www.mapserver.org/optimization/debugging.html,
>     <http://www.mapserver.org/optimization/debugging.html> add
>     MS_ERRORFILE and DEBUG 5 and see what you get.
> 
> 
>   These parameter are already defined:
> 
>      CONFIG 'ON_MISSING_DATA' 'IGNORE'
>      CONFIG 'PROJ_LIB' './conf/'
>      CONFIG      "MS_ERRORFILE" "/var/log/mapserver.log"
>      CONFIG      "CPL_DEBUG" "ON"
>      CONFIG      "PROJ_DEBUG" "ON"
>      DEBUG       5
> 
> but I couldn't find any important information in the log file 
> (https://pastebin.com/iP4h0wXx <https://pastebin.com/iP4h0wXx>)
> 
> 
> this is the proj_lib/conf/ file : https://pastebin.com/AFNKC88Z
> 
> My best regards,
> Ivan
> 
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> 


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus




More information about the MapServer-users mailing list