Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#6935 closed defect (fixed)

ExportToJSON Failing on LinestringZM Types

Reported by: Darkmatter Owned by: warmerdam
Priority: normal Milestone: 2.2.1
Component: OGR_SF Version: 2.1.2
Severity: normal Keywords:
Cc:

Description

This is all using the python bindings

OGR's GetGeomType() shows me 3002 --> ogr.wkbLineStringZM so that looks fine

When I load it in GIS I see the type is set to Line (WKB type: "LineStringZM")

feat.ExportToJson() that shows me "type": "unknown" with no geometry points

Our whole investigation is here:

https://github.com/SouthForkResearch/CHaMP_Metrics/issues/61

We got around the issue by exporting to WKB and then back to JSON. This fits our very narrow use case.

Attachments (1)

Breaklines.zip (18.2 KB ) - added by Darkmatter 7 years ago.
ShapeFile

Download all attachments as: .zip

Change History (4)

by Darkmatter, 7 years ago

Attachment: Breaklines.zip added

comment:1 by Even Rouault, 7 years ago

Resolution: fixed
Status: newclosed

In 39216:

GeoJSON writer: accept writing ZM or M geometry by dropping the M component (fixes #6935)

comment:2 by Even Rouault, 7 years ago

In 39217:

GeoJSON writer: accept writing ZM or M geometry by dropping the M component (fixes #6935)

comment:3 by Even Rouault, 7 years ago

Milestone: 2.2.1
Note: See TracTickets for help on using tickets.