Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug report: conflict with osgeo gdalnumeric #887

Closed
linzi1994 opened this issue Apr 2, 2020 · 1 comment
Closed

Bug report: conflict with osgeo gdalnumeric #887

linzi1994 opened this issue Apr 2, 2020 · 1 comment

Comments

@linzi1994
Copy link

if import gdalnumeric before LineString, it will raise ValueError: GEOSGeom_createLineString_r returned a NULL pointer.

from osgeo import gdal, gdalnumeric
from shapely.geometry import LineString
LineString([[116.10524574, 39.78292819], [116.13446938, 39.77356737]])

but if import LineString before gdalnumeric, it will work.

@sgillies
Copy link
Contributor

sgillies commented Apr 2, 2020

It's a known bug. The workaround is to use classes from the osgeo namespace instead of shapely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants