Opened 10 years ago
Closed 5 years ago
#5491 closed defect (wontfix)
Differences with LIBKML and what Google Earth shows
Reported by: | khicks | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | closed_because_of_github_migration |
Component: | OGR_SF | Version: | 1.10.1 |
Severity: | normal | Keywords: | libkml |
Cc: |
Description
I have KML file which I've removed most of for simplicity and attached to this ticket. It has styles created with the google yellow pushpin and which look like they should be used on the line strings. In Google Earth, however, none of the yellow pushpins are displayed. In my app where I use the feature style given to me by GDAL I get yellow push pins at every point of the linestring which clutters the display. Here is the feature style returned for the <linestring> feature: PEN(c:#00AA00FF,w:5.000000px);SYMBOL(id:"http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png",s:1.100000,dx:20.000000,dy:2.000000)
I am wondering what I am missing here and what criteria I should be using to determine whether or not to display these icons. From the documentation (unless I am reading it wrong) it says that if there is a symbol for a linestring it should be used at every point. I am therefore not sure if this is a defect with GDAL or how I am interpreting the style.
Attachments (1)
Change History (6)
by , 10 years ago
Attachment: | yellowPin.kml added |
---|
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Thank you for finding the clarification. I will ignore them for kml:linestrings. I guess the only thing that may possibly need changing is the 'OGR Feature Specification?', or are you planning on removing the SYMBOL portion of the feature returned.
comment:3 by , 10 years ago
The OGR Feature Specification is fine. Its convention is just different from KML.
As far as removing SYMBOL from style of feature, this could only be done when resolving the style, and not in the style itself, since the same KML style could be used by Point Placemark and Linestring Placemark. No immediate plan to do that unless there is some incentive to do it.
comment:4 by , 10 years ago
Looking more at the KML specification there is a 'visibility' flag for these symbols as well. For kml:linestring it appears they are off by default, but could in fact be turned on. For now I can work around the problem by having flags in my app. Of course if you find yourself with nothing to do one day ... he he. Thanks again!
comment:5 by , 5 years ago
Milestone: | → closed_because_of_github_migration |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.
12.8.2 of OGC KML 2.2 says about IconStyle : "Specifies how icons for kml:Placemarks and kml:PhotoOverlay with a kml:Point geometry are drawn in an earth browser's list and geographic views." So sounds indeed as IconStyle should be ignored for Placemark that are not Point.