[mapserver-users] KML generation-partially working

Sowmya Tiramdasu stiramdasu at qcoherent.com
Tue Aug 14 08:46:44 PDT 2012


Hi, 

 

  After changing the quotes. I got the kml working but only partially. Only
one among my 4 layers is being displayed. The remaining are shown as a red
cross mark on the Google earth.  Only my 'sbet' layer is being displayed.
All the remaining 'image','ControlPoints' and 'lidar' layers are not coming
up. While when I render them as an image output , I can see all the layers
perfectly. Can anyone please help me out with this?

 

Find below a snapshot of the layers in my map file for your reference.      

 

                LAYER

                                NAME "image"

                                TYPE RASTER

                                STATUS OFF

                                DATA "raster/lo-0002.tif"

                                #OPACITY 50

                                ...

                END # LAYER

                

                LAYER

                                NAME "lidar"

                                TYPE RASTER

                                STATUS ON

                                CONNECTION "http://localhost:8080/keenland?"

                                CONNECTIONTYPE WMS

                                #OPACITY 50

                                METADATA

                                                ...

                                END

                END       

                

                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

                                ...

                END 

 

                LAYER

                                NAME         sbet

                                DATA         SBET_Trajectory_Source

                                STATUS       OFF

                                TYPE         LINE

                                EXTENT       -84.760205 37.880771 -84.333587
38.208327

                                ...

                END       

                                

-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 8:09 AM
To: Sowmya Tiramdasu; 'Mapserver-users'
Subject: Re: [mapserver-users] KML generation

 

Sowmya,

 

Looks like you might have a smart-quote there.

 

Try

 

OUTPUTFORMAT

                                NAME kml

                                DRIVER "KML"

                                MIMETYPE
"application/vnd.google-earth.kml+xml"

                                IMAGEMODE RGB

                                EXTENSION "kml"

                                FORMATOPTION "ATTACHMENT=lidar.kml" #name of
kml file returned - This is my line 308

                                FORMATOPTION "maxfeaturestodraw=100"

                END

 

 

Mike

 

-- 

Michael Smith

US Army Corps

Remote Sensing GIS/Center

From: Sowmya Tiramdasu <stiramdasu at qcoherent.com>
Date: Tuesday, August 14, 2012 8:47 AM
To: 'Mapserver-users' <mapserver-users at lists.osgeo.org>
Subject: [mapserver-users] KML generation
Resent-From: Michael Smith <michael.smith at usace.army.mil>

 

Hi, 

 

  I know this would be a very basic question. I tried to look around on the
web and in the previous lists emails. But, somehow  I could not get a
solution. Sorry for bothering evryone with this basic question.

 

  I am trying get a KML output from my mapserver. I was succesfull in
getting a png output which means all my layers are being rendered correctly.
Now I modified my mapfile . I removed the IMAGETYPE = png from the MAP
Section and added the following:

 

                OUTPUTFORMAT

                                NAME kml

                                DRIVER "KML"

                                MIMETYPE
"application/vnd.google-earth.kml+xml"

                                IMAGEMODE RGB

                                EXTENSION "kml"

                                FORMATOPTION 'ATTACHMENT=lidar.kml' #name of
kml file returned - This is my line 308

                                FORMATOPTION "maxfeaturestodraw=100"

                END

  Now when I try to query the mapserver in mode=map, I am getting a parsing
error. 

 

getString(): Symbol definition error. Parsing error near ('):(line 308).

 

Any help will be greatly appreciated. Thanks in advance!

 

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/> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120814/c0725011/attachment-0001.html>


More information about the mapserver-users mailing list