<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hugh,</p>
    <p>I've queued in <a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/pull/4418">https://github.com/OSGeo/gdal/pull/4418</a> a fix for
      that.</p>
    <p>But there's a simple workaround. Just remove the ESRIJSON: prefix
      in the connection string. In that instance, the driver will be
      automatically detected</p>
    <p>Even<br>
    </p>
    <div class="moz-cite-prefix">Le 02/09/2021 à 19:30, Hugh Kelley a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAOrcXHFT2=oSi27AWadmQ35Ruvm8aOaXxU4kTqALbbxG+q3JiQ@mail.gmail.com">
      <div dir="ltr">
        <div>Hi all,</div>
        <div><br>
        </div>
        <div>I'd like to load some data directly from an arcgis REST
          feature service using ogr2ogr. <br>
        </div>
        <div><br>
        </div>
        <div>The command that follows collects exactly 5000 features,
          which i assume is the server limit mentioned in the ESRIJSON
          driver documentation</div>
        <br>
        <div> ogr2ogr "streets.shp" ESRIJSON:"<a
href="https://services1.arcgis.com/dLpFH5mwVvxSN4OE/arcgis/rest/services/Street_Centerlines/FeatureServer/0/query?where=objectid+%3D+objectid&outfields=*&f=json&orderByFields=OBJECTID+ASC"
            moz-do-not-send="true">https://services1.arcgis.com/dLpFH5mwVvxSN4OE/arcgis/rest/services/Street_Centerlines/FeatureServer/0/query?where=objectid+%3D+objectid&outfields=*&f=json&orderByFields=OBJECTID+ASC</a>"
          -overwrite -oo FEATURE_SERVER_PAGING=YES  <br>
        </div>
        <div><br>
        </div>
        <div>Reading the documentation though, it sounds as though
          ogr2ogr should be paging through the feature service to
          collect the full set of features, which ogrinfo says number
          10,954.  Setting resultOffeset parameter to 5000 results in a
          new set of 5000 features. I have a lot of feature services to
          pull data from though so I'd like to be able to set ogr2ogr to
          page through the full feature set for each service rather than
          calculating the offsets and running multiple queries each
          time.  </div>
        <div><br>
        </div>
        <div>Thanks for any suggestions.</div>
        <div><br>
        </div>
        <div>As a note, in case it makes a difference, I'm using shp
          here for simplicity but the actual destination will be a
          postgres db. <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>