Opened 2 months ago

Closed 2 months ago

Last modified 2 months 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 2 months ago.
ShapeFile?

Download all attachments as: .zip

Change History (4)

Changed 2 months ago by Darkmatter

Attachment: Breaklines.zip added

comment:1 Changed 2 months ago by Even Rouault

Resolution: fixed
Status: newclosed

In 39216:

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

comment:2 Changed 2 months ago by Even Rouault

In 39217:

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

comment:3 Changed 2 months ago by Even Rouault

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