Opened 16 years ago

Closed 15 years ago

#2062 closed defect (fixed)

ogr_kml.py failing on win32

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords: kml
Cc: darkblueB, Mateusz Łoskot

Description

My FWTools build of GDAL/OGR fails the ogr_kml.py script like this:

C:\warmerda\gdal\autotest\ogr>python ogr_kml.py
python ogr_kml.py
  TEST: ogr_kml_datastore ... success
  TEST: ogr_kml_attributes_1 ... got:  A ttached to the ground
fail
    Wrong description field value
  TEST: ogr_kml_attributes_2 ... success
  TEST: ogr_kml_attributes_3 ... success
  TEST: ogr_kml_attributes_4 ... Got: "Build ing 43"
fail
    Wrong name field value
  TEST: ogr_kml_point_read ... success
  TEST: ogr_kml_linestring_read ... success
  TEST: ogr_kml_polygon_read ... success
  TEST: ogr_kml_cleanup ... success

Test Script: ogr_kml
Succeeded: 7
Failed:    2 (0 blew exceptions)
Skipped:   0

It appears spurious spaces are being inserted in some attribute values. This was built from subversion (circa r13260, ie time of filing). Using 1.95.8.

Note, I ran the same code (apparently) on 64bit linux and the test passes fine.

Change History (3)

comment:1 by warmerdam, 16 years ago

Note, ogrinfo reports the same problem with my build:

OGRFeature(Placemarks):0
  Name (String) = Simple placemark
  Description (String) = A ttached to the ground. Intelligently places itself at the height of the underlying terrain.
  POINT (-122.08220354256829 37.422289901402507 0)

which should be:

OGRFeature(Placemarks):0
  Name (String) = Simple placemark
  Description (String) = Attached to the ground. Intelligently places itself at the height of the underlying terrain.
  POINT (-122.082203542568294 37.422289901402507 0)

comment:2 by warmerdam, 16 years ago

Cc: Mateusz Łoskot added

comment:3 by Even Rouault, 15 years ago

Resolution: fixed
Status: newclosed

No longer reproduced with trunk on Win32

Note: See TracTickets for help on using tickets.