[prev in list] [next in list] [prev in thread] [next in thread]
List: mapserver-users
Subject: [mapserver-users] KML output with icons
From: TDS <tds () tds-net ! de>
Date: 2014-07-12 8:39:07
Message-ID: 53C0F42B.5000300 () tds-net ! de
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hello,
I can get Mapserver to output KML (below). But the icon is NULL. How to
change this?
========================================
SYMBOL
NAME "symbol-tourism"
TYPE PIXMAP
IMAGE "tourism.png"
TRANSPARENT 8
END
========================================
LAYER
STATUS ON
METADATA
"wms_srs" "EPSG:900913 EPSG:4326 EPSG:3034 EPSG:3857 EPSG:2986
EPSG:3068 EPSG:4258 EPSG:25832 EPSG:25833 EPSG:31466 EPSG:31467
EPSG:31468 EPSG:31469 EPSG:32632 CRS:84"
"wms_title" "pois"
"wms_group_title" "pois"
END
TYPE LINE
MINSCALEDENOM 0
MAXSCALEDENOM 2539
DEBUG 5
NAME "pois_tourism18"
GROUP "pois"
CONNECTIONTYPE postgis
CONNECTION "host=localhost dbname=osm user=gis password=XXX port=XXX"
DATA "geometry from (select geometry,osm_id, name as name, type from
public.osm_tourism) as foo using unique osm_id using srid=3857"
LABELITEM "name"
CLASSITEM "type"
TYPE POINT
CLASS
STYLE
SYMBOL "symbol-tourism"
SIZE 16
WIDTH 16
END
LABEL
FONT sc
TYPE TRUETYPE
ENCODING "utf-8"
ANTIALIAS TRUE
COLOR "#000000"
OUTLINECOLOR "#FFFFFF"
OUTLINEWIDTH 1
SIZE 8
BUFFER 2
PARTIALS FALSE
POSITION AUTO
PRIORITY 10
END
END
END
========================================
<?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>MS</name>
<Style
id="style_label_ff000000_symbol_symbol-tourism_0.5_ffffffffffffffffffffffffff">
<IconStyle>
<Icon>
<href>(null)</href>
</Icon>
</IconStyle>
<LabelStyle>
<color>ff000000</color>
</LabelStyle>
</Style>
<Folder>
<name>pois_tourism14</name>
<visibility>1</visibility>
<styleUrl>#LayerFolder_check</styleUrl>
<Placemark>
<name>Stolpersteine</name>
<styleUrl>#style_label_ff000000_symbol_symbol-tourism_0.5_ffffffffffffffffffffffffff</styleUrl>
<Point>
<coordinates>
9.73377352,52.37656544
</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Friedrich Schiller</name>
<styleUrl>#style_label_ff000000_symbol_symbol-tourism_0.5_ffffffffffffffffffffffffff</styleUrl>
<Point>
<coordinates>
9.73549215,52.37517865
</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Ernst-August-Denkmal</name>
<styleUrl>#style_label_ff000000_symbol_symbol-tourism_0.5_ffffffffffffffffffffffffff</styleUrl>
<Point>
<coordinates>
9.74074584,52.37627325
</coordinates>
</Point>
</Placemark>
</Folder>
</Document>
</kml>
--
Bye, Mathias
------------------------------------------------------------------------
mailto:tds@tds-net.de
------------------------------------------------------------------------
1+1=10
You have a question? - 42 or RTFM.
[Attachment #5 (text/html)]
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
I can get Mapserver to output KML (below). But the icon is NULL. How
to change this?<br>
<tt>==========</tt><tt>==========</tt><tt>==========</tt><tt>==========</tt><br>
<tt> SYMBOL</tt><tt><br>
</tt><tt> NAME "symbol-tourism"</tt><tt><br>
</tt><tt> TYPE PIXMAP</tt><tt><br>
</tt><tt> IMAGE "tourism.png"</tt><tt><br>
</tt><tt> TRANSPARENT 8</tt><tt><br>
</tt><tt> END</tt><tt><br>
</tt><tt>==========</tt><tt>==========</tt><tt>==========</tt><tt>==========<br>
</tt><tt>LAYER</tt><tt><br>
</tt><tt> STATUS ON</tt><tt><br>
</tt><tt> METADATA</tt><tt><br>
</tt><tt> "wms_srs" "EPSG:900913 EPSG:4326 EPSG:3034 EPSG:3857
EPSG:2986 EPSG:3068 EPSG:4258 EPSG:25832 EPSG:25833 EPSG:31466
EPSG:31467 EPSG:31468 EPSG:31469 EPSG:32632 CRS:84"</tt><tt><br>
</tt><tt> "wms_title" "pois"</tt><tt><br>
</tt><tt> "wms_group_title" "pois"</tt><tt><br>
</tt><tt> END</tt><tt><br>
</tt><tt> TYPE LINE</tt><tt><br>
</tt><tt> MINSCALEDENOM 0</tt><tt><br>
</tt><tt> MAXSCALEDENOM 2539</tt><tt><br>
</tt><tt> DEBUG 5</tt><tt><br>
</tt><tt> NAME "pois_tourism18"</tt><tt><br>
</tt><tt> GROUP "pois"</tt><tt><br>
</tt><tt> CONNECTIONTYPE postgis</tt><tt><br>
</tt><tt> CONNECTION "host=localhost dbname=osm user=gis
password=XXX port=XXX"</tt><tt><br>
</tt><tt> DATA "geometry from (select geometry,osm_id, name as name,
type from public.osm_tourism) as foo using unique osm_id using
srid=3857"</tt><tt><br>
</tt><tt> LABELITEM "name"</tt><tt><br>
</tt><tt> CLASSITEM "type"</tt><tt><br>
</tt><tt> TYPE POINT</tt><tt><br>
</tt><tt> CLASS</tt><tt><br>
</tt><tt> STYLE</tt><tt><br>
</tt><tt> SYMBOL "symbol-tourism"</tt><tt><br>
</tt><tt> SIZE 16</tt><tt><br>
</tt><tt> WIDTH 16</tt><tt><br>
</tt><tt> END</tt><tt><br>
</tt><tt> LABEL</tt><tt><br>
</tt><tt> FONT sc</tt><tt><br>
</tt><tt> TYPE TRUETYPE</tt><tt><br>
</tt><tt> ENCODING "utf-8"</tt><tt><br>
</tt><tt> ANTIALIAS TRUE</tt><tt><br>
</tt><tt> COLOR "#000000"</tt><tt><br>
</tt><tt> OUTLINECOLOR "#FFFFFF"</tt><tt><br>
</tt><tt> OUTLINEWIDTH 1</tt><tt><br>
</tt><tt> SIZE 8</tt><tt><br>
</tt><tt> BUFFER 2</tt><tt><br>
</tt><tt> PARTIALS FALSE</tt><tt><br>
</tt><tt> POSITION AUTO</tt><tt><br>
</tt><tt> PRIORITY 10</tt><tt><br>
</tt><tt> END</tt><tt><br>
</tt><tt> END</tt><tt><br>
</tt><tt>END</tt><tt><br>
</tt><tt>==========</tt><tt>==========</tt><tt>==========</tt><tt>==========</tt><br>
<tt><?xml version="1.0" encoding="UTF-8"?></tt><tt><br>
</tt><tt><kml xmlns=<a class="moz-txt-link-rfc2396E" \
href="http://www.opengis.net/kml/2.2">"http://www.opengis.net/kml/2.2"</a>></tt><tt><br>
</tt><tt> <Document></tt><tt><br>
</tt><tt> <Style id="LayerFolder_check"></tt><tt><br>
</tt><tt> <ListStyle></tt><tt><br>
</tt><tt> <listItemType>check</listItemType></tt><tt><br>
</tt><tt> </ListStyle></tt><tt><br>
</tt><tt> </Style></tt><tt><br>
</tt><tt> <Style id="LayerFolder_checkHideChildren"></tt><tt><br>
</tt><tt> <ListStyle></tt><tt><br>
</tt><tt>
<listItemType>checkHideChildren</listItemType></tt><tt><br>
</tt><tt> </ListStyle></tt><tt><br>
</tt><tt> </Style></tt><tt><br>
</tt><tt> <Style id="LayerFolder_checkOffOnly"></tt><tt><br>
</tt><tt> <ListStyle></tt><tt><br>
</tt><tt>
<listItemType>checkOffOnly</listItemType></tt><tt><br>
</tt><tt> </ListStyle></tt><tt><br>
</tt><tt> </Style></tt><tt><br>
</tt><tt> <Style id="LayerFolder_radioFolder"></tt><tt><br>
</tt><tt> <ListStyle></tt><tt><br>
</tt><tt>
<listItemType>radioFolder</listItemType></tt><tt><br>
</tt><tt> </ListStyle></tt><tt><br>
</tt><tt> </Style></tt><tt><br>
</tt><tt> <name>MS</name></tt><tt><br>
</tt><tt> <Style
id="style_label_ff000000_symbol_symbol-tourism_0.5_ffffffffffffffffffffffffff"></tt><tt><br>
</tt><tt> <IconStyle></tt><tt><br>
</tt><tt> <Icon></tt><tt><br>
</tt><tt> <href>(null)</href></tt><tt><br>
</tt><tt> </Icon></tt><tt><br>
</tt><tt> </IconStyle></tt><tt><br>
</tt><tt> <LabelStyle></tt><tt><br>
</tt><tt> <color>ff000000</color></tt><tt><br>
</tt><tt> </LabelStyle></tt><tt><br>
</tt><tt> </Style></tt><tt><br>
</tt><tt> <Folder></tt><tt><br>
</tt><tt> <name>pois_tourism14</name></tt><tt><br>
</tt><tt> <visibility>1</visibility></tt><tt><br>
</tt><tt> <styleUrl>#LayerFolder_check</styleUrl></tt><tt><br>
</tt><tt> <Placemark></tt><tt><br>
</tt><tt> <name>Stolpersteine</name></tt><tt><br>
</tt><tt>
<styleUrl>#style_label_ff000000_symbol_symbol-tourism_0.5_ffffffffffffffffffffffffff</styleUrl></tt><tt><br>
</tt><tt> <Point></tt><tt><br>
</tt><tt> <coordinates></tt><tt><br>
</tt><tt> 9.73377352,52.37656544</tt><tt><br>
</tt><tt> </coordinates></tt><tt><br>
</tt><tt> </Point></tt><tt><br>
</tt><tt> </Placemark></tt><tt><br>
</tt><tt> <Placemark></tt><tt><br>
</tt><tt> <name>Friedrich Schiller</name></tt><tt><br>
</tt><tt>
<styleUrl>#style_label_ff000000_symbol_symbol-tourism_0.5_ffffffffffffffffffffffffff</styleUrl></tt><tt><br>
</tt><tt> <Point></tt><tt><br>
</tt><tt> <coordinates></tt><tt><br>
</tt><tt> 9.73549215,52.37517865</tt><tt><br>
</tt><tt> </coordinates></tt><tt><br>
</tt><tt> </Point></tt><tt><br>
</tt><tt> </Placemark></tt><tt><br>
</tt><tt> <Placemark></tt><tt><br>
</tt><tt> <name>Ernst-August-Denkmal</name></tt><tt><br>
</tt><tt>
<styleUrl>#style_label_ff000000_symbol_symbol-tourism_0.5_ffffffffffffffffffffffffff</styleUrl></tt><tt><br>
</tt><tt> <Point></tt><tt><br>
</tt><tt> <coordinates></tt><tt><br>
</tt><tt> 9.74074584,52.37627325</tt><tt><br>
</tt><tt> </coordinates></tt><tt><br>
</tt><tt> </Point></tt><tt><br>
</tt><tt> </Placemark></tt><tt><br>
</tt><tt> </Folder></tt><tt><br>
</tt><tt> </Document></tt><tt><br>
</tt><tt></kml></tt><tt><br>
</tt><br>
<br>
<div class="moz-signature">-- <br>
Bye, Mathias
<hr>
<font size="-1">
<a class="moz-txt-link-freetext" \
href="mailto:tds@tds-net.de">mailto:tds@tds-net.de</a><br> </font>
<hr>
<font size="-1">
1+1=10<br>
You have a question? - 42 or RTFM.
</font>
</div>
</body>
</html>
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic