Dear list,

I still have a problem with kml output.
My kml output basically works.
Everything works fine with line and polygon type, I get correct kml files.
Point layers works also but mapserver generated blank png's.

The bitmap exist in the right directory with the right size.
The url path in the kml file is right.
I can see the kml point layer in the gis, the points have tooltips and are clickable.
The bitmaps have 24 bpp.
Pixmap or vector layer symbols makes no difference.

Debug 5 shows no error and no kml specific information.

MapServer version 6.4.1 on windows 7 64 bit

...
OUTPUTFORMAT
  NAME "kml"
  DRIVER "KML"
  MIMETYPE "application/vnd.google-earth.kml+xml"
  IMAGEMODE RGB
  EXTENSION "kml"
  FORMATOPTION "STORAGE=memory"
  FORMATOPTION "FORM=simple"
 END
...

 LAYER
# DEBUG 5
  NAME "point"
  TYPE POINT
  DATA "kml_test.shp"
  METADATA
   "ows_title" "test"
   "ows_abstract" "test"
   "KML_DESCRIPTION" "test"
   "KML_NAME_ITEM" "TEXT"
   # "wfs_getfeature_formatlist" "text/csv,gml,geojson,xml,kml"
   # "KML_OUTPUTASRASTER" "true"
  END
  CLASS
    STYLE
     SYMBOL "point"
     SIZE 36
     COLOR 255 0 0
     OUTLINECOLOR 0 255 0
    END
  END
 END
...

SYMBOL
  NAME "point"
  TYPE ELLIPSE
  POINTS
    10 10
  END
  FILLED TRUE
END


KML-Output:

|<?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>OsthessenNetz</name>
||     <Style id="style_symbol_point_3.6_ff0000ff">
||       <IconStyle>
||         <Icon>
||           <href>http://localhost/gistemp/54ae5c24_4474_0.png</href>
||         </Icon>
||       </IconStyle>
||     </Style>
||     <Folder>
||       <name>point</name>
||       <visibility>1</visibility>
||       <styleUrl>#LayerFolder_check</styleUrl>
||       <Placemark>
||         <name>point.0</name>
||         <styleUrl>#style_symbol_point_3.6_ff0000ff</styleUrl>
||         <description>test</description>
||         <Point>
||           <coordinates>
||      9.73281948,50.58202641
||      </coordinates>
||         </Point>
||       </Placemark>
||     </Folder>
||   </Document>
||</kml>|


Any ideas?

Thank you

Dietmar
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to