Opened 17 years ago

Closed 14 years ago

#1858 closed defect (fixed)

KML Driver - Folder <description> disappears

Reported by: darkblueB Owned by: Mateusz Łoskot
Priority: normal Milestone:
Component: OGR_SF Version: unspecified
Severity: normal Keywords: kml
Cc: condit

Description

convert a trivial kml containing a folder with a <name> and <description>, to another format, ESRI Shape for example, then convert back to kml. Notice how the Placemark <name> comes out in a <decription>, and the Folder <description> disappears.

Attachments (1)

Folder_Pt.kml (408 bytes ) - added by darkblueB 17 years ago.

Download all attachments as: .zip

Change History (6)

by darkblueB, 17 years ago

Attachment: Folder_Pt.kml added

comment:1 by Even Rouault, 17 years ago

To the extent of my knowledge, I think this bug should be closed. There is no way to fit the Folder description in the OGR SF model.

comment:2 by Mateusz Łoskot, 16 years ago

Owner: changed from warmerdam to Mateusz Łoskot
Status: newassigned

comment:3 by Mateusz Łoskot, 16 years ago

Cc: condit added
Resolution: wontfix
Status: assignedclosed

Even is correct.

Just for records, here is output from current KML driver for the attached sample:

  • list available and recognized layers
    ogrinfo -ro d:\dev\gdal\bugs\1858\Folder_Pt.kml
    
    INFO: Open of `d:\dev\gdal\bugs\1858\Folder_Pt.kml'
          using driver `KML' successful.
    1: Folder.kml (Point)
    
  • dump recognized layer
ogrinfo -ro d:\dev\gdal\bugs\1858\Folder_Pt.kml Folder.kml

INFO: Open of `d:\dev\gdal\bugs\1858\Folder_Pt.kml'
      using driver `KML' successful.

Layer name: Folder.kml
Geometry: Point
Feature Count: 1
Extent: (-122.377588, 37.830266) - (-122.377588, 37.830266)
Layer SRS WKT:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0,
        AUTHORITY["EPSG","8901"]],
    UNIT["degree",0.01745329251994328,
        AUTHORITY["EPSG","9122"]],
    AUTHORITY["EPSG","4326"]]
Name: String (0.0)
Description: String (0.0)
OGRFeature(Folder.kml):0
  Name (String) = Folder object 1 (Placemark)
  Description (String) =
  POINT (-122.377588 37.830266000000002 0)

I'm closing this ticket as it won't be fixed.

BTW, I've taken the liberty to add Chris to CC as perhaps he things differently and he would like to find a way to handle attributes for containers somehow.

comment:4 by darkblueB, 16 years ago

Resolution: wontfix
Status: closedreopened

this needs to be documented as expected behavior then.. Just closing it and ignoring isn't good quality.

So, lets decide on where the thorough description of what is supported is, and then document this, and close the bug. Yes? If its a wiki style page, we dont have to do all the work in one day...

comment:5 by Even Rouault, 14 years ago

Resolution: fixed
Status: reopenedclosed

Has been documented a while ago apparently

Note: See TracTickets for help on using tickets.