[mapserver-users] [mapserver-dev] need help with outputformat=kml for wfs

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Fri Dec 19 07:48:02 PST 2014


Ok, let's try this outside of WFS context. You should be able to do something like:

  /cgi-bin/mapserv?map=...&mode=map&mapext=...&map.imagetype=kml

Does that work?

Steve

-----Original Message-----
From: zach cruise [mailto:zachc1980 at gmail.com] 
Sent: Friday, December 19, 2014 9:27 AM
To: Lime, Steve D (MNIT)
Cc: mapserver-users; mapserver-dev at lists.osgeo.org
Subject: Re: [mapserver-dev] need help with outputformat=kml for wfs

yes


On 12/18/14, Lime, Steve D (MNIT) <Steve.Lime at state.mn.us> wrote:
> Can you get at the layer GML without the output layer parameter?
>
> -----Original Message-----
> From: mapserver-dev-bounces at lists.osgeo.org
> [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of zach 
> cruise
> Sent: Thursday, December 18, 2014 9:18 AM
> To: mapserver-users
> Cc: mapserver-dev at lists.osgeo.org
> Subject: [mapserver-dev] need help with outputformat=kml for wfs
>
> using-
> * MapServer version 6.4.0 ... OUTPUT=KML ... SUPPORTS=WFS_SERVER 
> SUPPORTS=WFS_CLIENT ...
>
> * httpd file-
> 	<IfModule mime_module>
> 		...
> 		AddType application/vnd.google-earth.kml+xml .kml
> 		...
> 	</IfModule>
>
> * map file-
> 	MAP
> 		...
> 		IMAGETYPE kml
> 		...
> 		WEB
> 			...
> 			METADATA
> 				...
> 				"wfs_getfeature_formatlist" "kml"
> 				...
> 			END
> 		END
> 		OUTPUTFORMAT
> 			NAME "kml"
> 			DRIVER KML
> 			MIMETYPE "application/vnd.google-earth.kml.xml"
> 			IMAGEMODE RGB
> 			IMAGEMODE FEATURE
> 			EXTENSION "kml"
> 			FORMATOPTION "ATTACHMENT=doc.kml"
> 		END
> 		LAYER
> 			...
> 		END
> 	END
>
> * url-
> ../cgi-bin/mapserv?SERVICE=wfs&REQUEST=getfeature&TYPENAME=shoppinglis
> t&VERSION=1.0.0&OUTPUTFORMAT=kml
> (with or without "MODE=map")
>
> but all i get is (no placemarks for points?)- <?xml version="1.0"
> encoding="UTF-8"?>  <kml xmlns="http://www.opengis.net/kml/2.2">
>    <Document>
>      <Style id="LayerFolder_check">
>        <ListStyle>
>          <listItemType>check</listItemType>
>        </ListStyle>
>      </Style>
>      <Style id="LayerFolder_checkHideChildren">
>        <ListStyle>
>          <listItemType>checkHideChildren</listItemType>
>        </ListStyle>
>      </Style>
>      <Style id="LayerFolder_checkOffOnly">
>        <ListStyle>
>          <listItemType>checkOffOnly</listItemType>
>        </ListStyle>
>      </Style>
>      <Style id="LayerFolder_radioFolder">
>        <ListStyle>
>          <listItemType>radioFolder</listItemType>
>        </ListStyle>
>      </Style>
>      <name>shoppingmap</name>
>      <Folder>
>        <name>shoppinglist</name>
>        <visibility>1</visibility>
>        <styleUrl>#LayerFolder_check</styleUrl>
>      </Folder>
>    </Document>
>  </kml>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>


More information about the MapServer-users mailing list