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
CreateGeometryFromEsriJson Doesn't Support Arcs and Curves #9418
Comments
Maybe worth adding a note that non-linear geometries are not supported to the ESRIJSON driver documentation https://gdal.org/drivers/vector/esrijson.html. @achapkowski, could you have a try and create a pull request? |
@jratike80 ok, that can be done, but I think with the support of OGC curved geometries, it makes sense to support them. |
@rouault here is the link to all the supported Esri JSON geometry formats: https://developers.arcgis.com/rest/services-reference/enterprise/geometry-objects.htm . |
I was just thinking that because GeoJSON and the OGC JSON-FG formats do not support curved geometries it may take some time to get the support into ESRIJSON driver. There is a proposal about adding the support into JSON-FG, though https://github.com/opengeospatial/ogc-feat-geo-json/blob/main/proposals/circular-geometry-objects.adoc. Can ESRI servers output GML or GeoPackages? |
@jratike80 not directly. Some hosted services can export them to geopackages if registered with ArcGIS Enterprise. GML I do not believe so. |
We're certainly open to contributions from willing contributors to add support for that. Some inspiration could certainly be taken from ogr/ogrpgeogeometry.cpp which deals with geometries from (the old) Personal Geodatabase format that has probably a very similar/identical geometry model and which handles already circular curves and Bezier curves (approximated as linestrings) |
What is the bug?
gdal
doesn't export the EsriJSON to the proper curve geometries. See: https://gdal.org/development/rfc/rfc49_curve_geometries.htmlWhen using the
CreateGeometryFromEsriJson
method and passing in the path and curve objects, the result is alwaysNone
.Steps to reproduce the issue
Versions and provenance
Version: '3.7.0e'
OS: Windows 10 Enterprise
Additional context
No response
The text was updated successfully, but these errors were encountered: