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

GeometryType not handled properly #85

Open
chrisnatali opened this issue May 4, 2016 · 4 comments
Open

GeometryType not handled properly #85

chrisnatali opened this issue May 4, 2016 · 4 comments

Comments

@chrisnatali
Copy link
Contributor

Getting ImportError: GeometryType -2147483646 not supported when running with this existing network:

Reseau_MT_FINAL-WGS84_dec_degrees.zip

zip of run that's failing:
http://45.55.201.87:8000/data/e3c7d5d0-a7db-4ad4-9ea7-eeb16637abae/input.zip

@vr2262
Copy link

vr2262 commented May 4, 2016

@chrisnatali
Copy link
Contributor Author

Definitely. @Naigege @sherpashaky may want to look at the link above in case there's something they can do with QGIS or JOSM to remedy this.

@Naigege
Copy link

Naigege commented May 4, 2016

Fixed it by copying all features in target layer, pasting in one new temporary layer and saving as a new shape file.

It seems the issue has another explaination of 2.5D geometry type. QGIS is working on here:
qgis/QGIS@5952258

@chrisnatali
Copy link
Contributor Author

Cool, tabling this issue for now then.

FYI we only handle the 'wkbLineString' and 'wkbMultiLineString' from all of the wkb types.

In case it helps, these are the wkb types/codes available in ogr:
[('wkb25Bit', -2147483648),
('wkb25DBit', -2147483648),
('wkbCircularString', 8),
('wkbCircularStringZ', 1008),
('wkbCompoundCurve', 9),
('wkbCompoundCurveZ', 1009),
('wkbCurvePolygon', 10),
('wkbCurvePolygonZ', 1010),
('wkbGeometryCollection', 7),
('wkbGeometryCollection25D', -2147483641),
('wkbLineString', 2),
('wkbLineString25D', -2147483646),
('wkbLinearRing', 101),
('wkbMultiCurve', 11),
('wkbMultiCurveZ', 1011),
('wkbMultiLineString', 5),
('wkbMultiLineString25D', -2147483643),
('wkbMultiPoint', 4),
('wkbMultiPoint25D', -2147483644),
('wkbMultiPolygon', 6),
('wkbMultiPolygon25D', -2147483642),
('wkbMultiSurface', 12),
('wkbMultiSurfaceZ', 1012),
('wkbNDR', 1),
('wkbNone', 100),
('wkbPoint', 1),
('wkbPoint25D', -2147483647),
('wkbPolygon', 3),
('wkbPolygon25D', -2147483645),
('wkbUnknown', 0),
('wkbXDR', 0)]

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

No branches or pull requests

3 participants