Opened 8 years ago

Closed 8 years ago

#6319 closed defect (fixed)

WKT representation of infinity

Reported by: Kurt Schwehr Owned by: warmerdam
Priority: low Milestone: 2.1.0
Component: default Version: svn-trunk
Severity: minor Keywords: ieee, inf


  geometry.AddPoint(float('-inf'), float('inf'), float('inf'))

With GDAL 1.11.2 in python, geometry.ExportToWkt() gives:

'POINT (-inf inf inf)'

With GDAL pre-2.1:

'POINT (-inf.0 inf.0 inf)'

And with linestring:

geometry.AddPoint_2D(0, 0)
geometry.AddPoint_2D(float('-inf'), float('inf'))


'LINESTRING (0 0,-inf.0 inf.0)'

Change History (1)

comment:1 by Even Rouault, 8 years ago

Resolution: fixed
Status: newclosed

Good catch!

trunk r33059 "WKT export: do not append .0 after non-finite values (#6319)"

Note: See TracTickets for help on using tickets.