[mapserver-users] Mapserver 7.6.1 - PHP 7 Swig - Kml output issue

Bruno Domenget bruno.domenget.roch at gmail.com
Thu Oct 15 06:48:10 PDT 2020


Hi Jeff,

Thanks for your quick answer !

So I tried with shp2img but got the same error with KML output...

*msDrawMap(): Image handling error. Failed to draw layer named 'points'.
<br>GDAL: In GDALDestroy - unloading GDAL shared library.*

Logfile :
[Thu Oct 15 15:36:02 2020].174254 msLoadMap(): 0.005s
[Thu Oct 15 15:36:02 2020].174344 msDrawMap(): rendering using outputformat
named kml (KML).
[Thu Oct 15 15:36:02 2020].174348 msDrawMap(): WMS/WFS set-up and query,
0.000s
[Thu Oct 15 15:36:02 2020].174369 msINLINELayerOpen: Layer is already open!
[Thu Oct 15 15:36:02 2020].174564
msSaveImage(/home/mapserver/public_html/test/././5f885042_26ab_0.png) total
time: 0.000s
[Thu Oct 15 15:36:02 2020].174629 msDrawMap(): Image handling error. Failed
to draw layer named 'points'.
[Thu Oct 15 15:36:02 2020].174649 msFreeMap(): freeing map at
0x559913f1af60.
[Thu Oct 15 15:36:02 2020].174698 freeLayer(): freeing layer at
0x559914207ad0.

It works perfectly with PNG output, and with KML output if I remove the
LABEL lines from my mapfile.

So it is not a Mapscript issue, there is definitely an issue with my
Mapserver instance...

Bruno



Le jeu. 15 oct. 2020 à 08:42, Jeff McKenna <jmckenna at gatewaygeomatics.com>
a écrit :

> oops here is the correct command for kml output:
>
>    shp2img -m mymap.map -o ttt.kml -i kml -all_debug 5
>
> (does that generate a valid KML file?)
>
>
> -jeff
>
>
>
> --
> Jeff McKenna
> MapServer Consulting and Training Services
> co-founder of FOSS4G
> http://gatewaygeo.com/
>
>
> On 2020-10-15 9:41 a.m., Jeff McKenna wrote:
> > Hi Bruno,
> >
> > What happens if you call that mapfile at the commandline with shp2img
> > (and pass the "i" switch with your format name)?  such as:
> >
> >    shp2img -m mymap.map -o ttt.png -i kml -all_debug 5
> >
> > You can also then try png output:
> >
> >    shp2img -m mymap.map -o ttt.png -i png -all_debug 5
> >
> > Does it generate a valid map image?
> >
> >
> >
> >
> > -jeff
> >
> >
> >
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20201015/8bb8fcc4/attachment.html>


More information about the mapserver-users mailing list