[mapserver-users] KML output with icons

TDS tds at tds-net.de
Sat Jul 12 01:39:07 PDT 2014


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 at tds-net.de
------------------------------------------------------------------------
1+1=10
You have a question? - 42 or RTFM.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140712/f508f60d/attachment.html>


More information about the mapserver-users mailing list