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:michael.sm...@erdc.dren.mil] Sent: Tuesday, August 14, 2012 4:26 PM To: Sowmya Tiramdasu; mapserver-users@lists.osgeo.org 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 stiramd...@qcoherent.com Date: Tuesday, August 14, 2012 3:26 PM To: Michael Smith michael.sm...@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 nameControlPoints/name visibility1/visibility styleUrl#LayerFolder_check/styleUrl Placemark nameControlPoints.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.sm...@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 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] KML generation-partially working
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 stiramd...@qcoherent.commailto:stiramd...@qcoherent.com Date: Wednesday, August 15, 2012 6:48 AM To: Michael Smith michael.sm...@erdc.dren.milmailto:michael.sm...@erdc.dren.mil, mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org 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.comhttp://www.geocue.com/ From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:michael.sm...@erdc.dren.mil] Sent: Tuesday, August 14, 2012 4:26 PM To: Sowmya Tiramdasu; mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org 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 stiramd...@qcoherent.commailto:stiramd...@qcoherent.com Date: Tuesday, August 14, 2012 3:26 PM To: Michael Smith michael.sm...@erdc.dren.milmailto:michael.sm...@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 nameControlPoints/name visibility1/visibility styleUrl#LayerFolder_check/styleUrl Placemark nameControlPoints.0/name styleUrl#style_symbol_circle_8.0_ffbe14be/styleUrl Point coordinates -84.61444330,38.04278949 /coordinates /Point /Placemark -Thanks, Sowmya. ___ Sowmya Tiramdasu QCoherent
Re: [mapserver-users] KML generation-partially working
If you have the image properly generating, then is just a matter of your mapping the image to the URL used in the KML. So your IMAGEURL value should return images from the /ms4w/tmp/ms_tmp directory. And it should be an absolute URL (eg http://servername/path/to/tmp) and you should verify that http://servername/path/to/tmp/502b8cc1_1e28_10.png is accessible from your browser. If so, then the KML will be able to access it and you should be all set. -- Michael Smith US Army Corps Remote Sensing GIS/Center ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] KML generation-partially working
Sorry, I'm getting a little confused. Are you generating ground overlay layers (eg one raster output for a number of layers) or actual KML features (eg, Placemarks with a geometry and an style marker)? If you are posting the KML to google maps, then the KML is public. Can you post the link to the KML so the list can actually see it and see what might be wrong. As for why your lidar layer might be blank, remember that KML output is always in epsg:4326. Perhaps you don't have a projection defined for your lidar layer and do for others. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] KML generation-partially working
Hi Michael, Sorry for the confusion. I think it was the problem with the projections. I had the output projections set to 3578- which was for Google maps. Now, I changed it to espg:4326 and my KML came out exactly as expected. Thank you very much for all your help. If not for you , I am sure I couldn't have got this working. Thanks again and appreciate your help and patience. Thanks, Sowmya. ___ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax http://www.geocue.com/ www.geocue.com From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:michael.sm...@erdc.dren.mil] Sent: Wednesday, August 15, 2012 8:19 AM To: Sowmya Tiramdasu; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] KML generation-partially working Sorry, I'm getting a little confused. Are you generating ground overlay layers (eg one raster output for a number of layers) or actual KML features (eg, Placemarks with a geometry and an style marker)? If you are posting the KML to google maps, then the KML is public. Can you post the link to the KML so the list can actually see it and see what might be wrong. As for why your lidar layer might be blank, remember that KML output is always in epsg:4326. Perhaps you don't have a projection defined for your lidar layer and do for others. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] KML generation
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 http://www.geocue.com/ www.geocue.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
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 stiramd...@qcoherent.commailto:stiramd...@qcoherent.com Date: Tuesday, August 14, 2012 8:47 AM To: 'Mapserver-users' mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: [mapserver-users] KML generation Resent-From: Michael Smith michael.sm...@usace.army.milmailto:michael.sm...@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.comhttp://www.geocue.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] KML generation
Thanks Michael, That was indeed the error ! Thanks a ton! -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.sm...@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 stiramd...@qcoherent.com Date: Tuesday, August 14, 2012 8:47 AM To: 'Mapserver-users' mapserver-users@lists.osgeo.org Subject: [mapserver-users] KML generation Resent-From: Michael Smith michael.sm...@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/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] KML generation-partially working
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.sm...@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 stiramd...@qcoherent.com Date: Tuesday, August 14, 2012 8:47 AM To: 'Mapserver-users' mapserver-users@lists.osgeo.org Subject: [mapserver-users] KML generation Resent-From: Michael Smith michael.sm...@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
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 stiramd...@qcoherent.commailto:stiramd...@qcoherent.com Date: Tuesday, August 14, 2012 3:26 PM To: Michael Smith michael.sm...@erdc.dren.milmailto:michael.sm...@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 nameControlPoints/name visibility1/visibility styleUrl#LayerFolder_check/styleUrl Placemark nameControlPoints.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.comhttp://www.geocue.com/ From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:michael.sm...@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 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users