Specifically,
I'm exporting several GeoServer layers (from Shapefiles via shp2pgsql ->
PostGIS) into KML files. Neither of these layers have
NamedSybolizers/Labels/whatever in their SLD's, only graphical stuff.
For the layer that has point data, and only a <PointSymbolizer> the KML
export is perfect. For the layers that are either Polygon (which have
<PolygonSymbolizer> with <Fill> and <Stroke>) or LineString types (with only
a <LineSymbolizer>), I get all these spurious placemarks in the KML. That
is, a _ton_ of those yellow pushpins at the centroids of the Polygons (which
makes nominal sense) or the centroid of the LineString (which makes no sense
at all).
How can I control (i.e. eliminate) all these placemarks in the KML output?
In the meantime I've been using "perl -i -pe 's|<point>.*?</point>||igs'
KML_FILE.KML" to clean them up, but that's far from ideal.
thanks,
mike
--
View this message in context: http://www.nabble.com/How-to-control-Placemarks-in-KML-Output-tf3309769.html#a9206611
Sent from the GeoServer - User mailing list archive at Nabble.com.
Try appending the following parameter to the request URL:
KMATTR=false
It should remove all placemarks/pushpins, from all layers. If you want the placemarks on some layers, but not all, I think you will have to make two separate requests.
Brent Owens
(The Open Planning Project)
mfrumin wrote:
Specifically,
I'm exporting several GeoServer layers (from Shapefiles via shp2pgsql ->
PostGIS) into KML files. Neither of these layers have
NamedSybolizers/Labels/whatever in their SLD's, only graphical stuff.
For the layer that has point data, and only a <PointSymbolizer> the KML
export is perfect. For the layers that are either Polygon (which have
<PolygonSymbolizer> with <Fill> and <Stroke>) or LineString types (with only
a <LineSymbolizer>), I get all these spurious placemarks in the KML. That
is, a _ton_ of those yellow pushpins at the centroids of the Polygons (which
makes nominal sense) or the centroid of the LineString (which makes no sense
at all).
How can I control (i.e. eliminate) all these placemarks in the KML output? In the meantime I've been using "perl -i -pe 's|<point>.*?</point>||igs'
KML_FILE.KML" to clean them up, but that's far from ideal.
thanks,
mike