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

zach cruise zachc1980 at gmail.com
Thu Dec 18 07:18:20 PST 2014


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>



More information about the MapServer-users mailing list