[mapserver-users] KML generation-partially working
Smith, Michael ERDC-RDE-CRREL-NH
Michael.Smith at erdc.dren.mil
Tue Aug 14 14:25:44 PDT 2012
You probably have to set your WEB / IMAGEURL to an absolute path since otherwise the kml references are relative and not picked up.
And please, reply to the list, there are others that can learn and respond that way.
Mike
--
Michael Smith
US Army Corps
Remote Sensing GIS/Center
From: Sowmya Tiramdasu <stiramdasu at qcoherent.com<mailto:stiramdasu at qcoherent.com>>
Date: Tuesday, August 14, 2012 3:26 PM
To: Michael Smith <michael.smith at erdc.dren.mil<mailto:michael.smith at erdc.dren.mil>>
Subject: RE: [mapserver-users] KML generation-partially working
Hi Michael,
I looked in to the KML file. It looks fine. But the Images which have been generated in the ms_tmp files are blank. There was an image for each layer, which came out to be blank and for my layer 'ControlPoints' I gave under class ->Symbol-> Circle. So I have an image corresponding to this symbol in ms_tmp which is being used as the styleUrl in the KML. yet I am seeing a cross mark for that place mark in the Google earth.
For the layer 'sbet' - it is a line, so there is no image generated at all and this layer is being displayed good on the Google earth.
LAYER
NAME ControlPoints #Photogrammetric points
DATA Photogrammetric_Point
STATUS OFF
TYPE POINT
CLASS
STYLE
# Symbol to be used (reference)
SYMBOL "circle"
# Size of the symbol in pixels
SIZE 8
COLOR 190 20 190
# Outline colour (RGB) - black
OUTLINECOLOR 0 0 0
END
END
PROJECTION
"init=epsg:2246"
END
END
KML :
<Style id="style_symbol_circle_8.0_ffbe14be">
<IconStyle>
<Icon>
<href>/ms_tmp/502a9927_2bc4_10.png</href>
</Icon>
</IconStyle>
</Style>
<Folder>
<name>ControlPoints</name>
<visibility>1</visibility>
<styleUrl>#LayerFolder_check</styleUrl>
<Placemark>
<name>ControlPoints.0</name>
<styleUrl>#style_symbol_circle_8.0_ffbe14be</styleUrl>
<Point>
<coordinates>
-84.61444330,38.04278949
</coordinates>
</Point>
</Placemark>
-Thanks,
Sowmya.
_______________________________
Sowmya Tiramdasu
QCoherent Software
9668 Madison Blvd., Suite 202
Madison, AL 35758
(256) 461-8289 Telephone
(256) 461-8249 Fax
www.geocue.com<http://www.geocue.com/>
From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:Michael.Smith at erdc.dren.mil]
Sent: Tuesday, August 14, 2012 10:37 AM
To: Sowmya Tiramdasu
Subject: Re: [mapserver-users] KML generation-partially working
Have you looked inside the KML file?
You can also set a DEBUG value on your layer (and mapfile) and look for anything that might be interrupting your KML write.
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120814/386634a3/attachment.htm>
More information about the MapServer-users
mailing list