[mapserver-users] [EXTERNAL] KML output with blank point

Smith, Michael ERDC-RDE-CRREL-NH Michael.Smith at erdc.dren.mil
Thu Jan 8 04:09:44 PST 2015


Dietmar,

Make sure your IMAGEURL is set to a Fully Qualified URL. Otherwise mapserver will not set the full URL to your point images.

Mike

--
Michael Smith
US Army Corps
Remote Sensing GIS/Center

From: Dietmar Stolz <dietmar.stolz at freenet.de<mailto:dietmar.stolz at freenet.de>>
Date: Thursday, January 8, 2015 at 5:40 AM
To: "mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>" <mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>>
Subject: [EXTERNAL] [mapserver-users] KML output with blank point
Resent-From: Michael Smith <michael.smith at usace.army.mil<mailto:michael.smith at usace.army.mil>>

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"<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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150108/7720aee0/attachment.html>


More information about the mapserver-users mailing list