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

zach cruise zachc1980 at gmail.com
Fri Dec 19 07:26:32 PST 2014


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=shoppinglist&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-dev mailing list