On mardi 26 septembre 2017 15:49:37 CEST Rahkonen Jukka (MML) wrote:
> Hi,
> 
> Based on
> https://gis.stackexchange.com/questions/256668/ogr2ogr-get-geojson-from-map
> -server-misses-features-and-creates-duplicates it is possible that ESRI REST
> service may return different first features when query is sent without
> "resultRecordCount" and "resultOffset" than if the query includes
> resultRecordCount=xxxx&resultOffset=0.  I know that the same happens with
> Geoserver WFS so I would not be very surprised.

Jukka,

I managed to get it working with :
ogrinfo -ro -al --debug on 
"http://geoportal.menlhk.go.id/arcgis/rest/services/KLHK/Deforestasi_2006_2009/MapServer/0/query?where=objectid>0&outfields=*&f=json&resultOffset=0"
  -oo FEATURE_SERVER_PAGING=YES

(you can also include a &resultRecordCount=XXX but that's not necessary)

But OGR should probably better behave by default, and probably auto-add the 
resultOffset=0
in the inital query. You may file a ticket about that

Even


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to