You said  "So I have an image corresponding to this symbol in ms_tmp". Do you 
actually have a valid png image at /ms_tmp/502a9927_2bc4_10.png?

The way KML output works is that the temp symbol images are generated and the 
the kml is written and the kml refers to those images. If the images are, in 
fact, valid, then its a path problem as I suggested earlier and the IMAGEURL is 
not absolute and pointing to your IMAGEPATH directory location. If the there is 
no file in /ms_tmp then its probably more of a permission or space problem. You 
should be able to see exactly whats happening with LAYER and MAP level 
debugging.

See http://mapserver.org/optimization/debugging.html and set the DEBUG level to 
5.

Mike

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

From: Sowmya Tiramdasu 
<[email protected]<mailto:[email protected]>>
Date: Wednesday, August 15, 2012 6:48 AM
To: Michael Smith 
<[email protected]<mailto:[email protected]>>, 
"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: RE: [mapserver-users] KML generation-partially working

Hi Michael,

  I see your point. But, the images itself are blank. So making the paths 
absolute has no difference. When the output format is png, I get all the layers 
rendered correctly. But when the Output format is set to KML only, the image 
outputs from each layer are coming blank :(.

So any inputs regarding this? Has anyone else ran in to the same situation?

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:[email protected]]
Sent: Tuesday, August 14, 2012 4:26 PM
To: Sowmya Tiramdasu; 
[email protected]<mailto:[email protected]>
Subject: Re: [mapserver-users] KML generation-partially working

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 
<[email protected]<mailto:[email protected]>>
Date: Tuesday, August 14, 2012 3:26 PM
To: Michael Smith 
<[email protected]<mailto:[email protected]>>
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:[email protected]]
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


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

Reply via email to