Re: [gdal-dev] Esri JSON Curves

2018-07-13 Thread James Klassen
Ok. I made that change and it appears to work. Latest code available here: https://github.com/klassenjs/ gdal/tree/esrijson-curves On Mon, Jul 2, 2018 at 1:56 PM, Even Rouault wrote: > > > > In the first two cases (without OLCCurveGeometries set) I see > > curveToLineString is being called whe

Re: [gdal-dev] Esri JSON Curves

2018-07-02 Thread Even Rouault
> > In the first two cases (without OLCCurveGeometries set) I see > curveToLineString is being called when there are curves in the data, but > not on every result page (again curves are relatively rare in the dataset). ok, then replace the call to OGRMemLayer::SetFeature() with OGRMemLayer::ISet

[gdal-dev] Esri JSON Curves

2018-07-02 Thread Jim Klassen
On Mon, Jun 25, 2018 at 4:14 PM, Even Rouault mailto:even.roua...@spatialys.com>> wrote: > > If my memories are right, you only need to set it for write support. So > > shouldn't be needed there. > > All I know is that without it set, the curved geometries were linearized

Re: [gdal-dev] Esri JSON Curves

2018-06-25 Thread Even Rouault
> This would still be an issue with paging. Most of the actual datasets > of interest (to me) involve multiple HTTP requests to fetch many pages > of JSON data (usually 1000 - 1 features at a time depending on > server setup). The curves may easily not be on the first page and > re-running th

Re: [gdal-dev] Esri JSON Curves

2018-06-25 Thread Jim Klassen
On 06/22/2018 02:51 PM, Even Rouault wrote: > On vendredi 22 juin 2018 14:38:15 CEST James Klassen wrote: >> I finally got around to doing a rough implementation of parsing ESRIJSON >> with curved geometries. The code is very rough yet, but works enough to >> import a polygon layer from an ESRI

Re: [gdal-dev] Esri JSON Curves

2018-06-22 Thread Even Rouault
On vendredi 22 juin 2018 14:38:15 CEST James Klassen wrote: > I finally got around to doing a rough implementation of parsing ESRIJSON > with curved geometries. The code is very rough yet, but works enough to > import a polygon layer from an ESRI FeatureService into PostGIS with the > curves intac

Re: [gdal-dev] Esri JSON Curves

2018-06-22 Thread James Klassen
I finally got around to doing a rough implementation of parsing ESRIJSON with curved geometries. The code is very rough yet, but works enough to import a polygon layer from an ESRI FeatureService into PostGIS with the curves intact. Code is available at [1]. Main issues: I don't know how to det

Re: [gdal-dev] Esri JSON Curves

2017-10-19 Thread James Klassen
On Thu, Oct 19, 2017 at 2:04 PM, Even Rouault wrote: > On jeudi 19 octobre 2017 13:38:38 CEST James Klassen wrote: > > Has anyone looked at reading curved geometries from an Esri rest service > > queried with "returnTrueCurves=true"? > > > > My end goal is to import the data into PostGIS. We were

Re: [gdal-dev] Esri JSON Curves

2017-10-19 Thread Even Rouault
On jeudi 19 octobre 2017 13:38:38 CEST James Klassen wrote: > Has anyone looked at reading curved geometries from an Esri rest service > queried with "returnTrueCurves=true"? > > My end goal is to import the data into PostGIS. We were successful using > ogr2ogr to translate the curved features fro

[gdal-dev] Esri JSON Curves

2017-10-19 Thread James Klassen
Has anyone looked at reading curved geometries from an Esri rest service queried with "returnTrueCurves=true"? My end goal is to import the data into PostGIS. We were successful using ogr2ogr to translate the curved features from a geodatabase download in the past, but that download is being repla