ESRIJSON/FeatureService驱动程序
司机简称
ESRIJSON
Driver built-in by default
This driver is built-in by default
(注意:在GDAL 2.3之前,这个驱动程序的功能在GeoJSON驱动程序中是可用的。它们现在是不同的驱动因素)
此驱动程序可以在 GeoServices REST Specification ,就像由 ArcGIS Server REST API . 驱动程序可以滚动浏览这些分布在多个页面上的结果集(对于ArcGIS服务器>=10.3)。如果URL不包含显式 结果集 参数。如果它包含此参数并且仍然需要滚动,则必须将FEATURE_SERVER_PAGING open选项设置为YES。页面大小可以用 结果记录计数 参数(但受服务器限制)。如果没有设置,OGR会将其设置为服务器允许的最大值。
注意:要使分页请求正常工作,通常需要在字段上添加sort子句,通常是在URL中带有“&orderByFields=OBJECTID+ASC”参数的OBJECTID,以便服务器以可靠的方式返回结果。
驱动程序功能
Supports Georeferencing
This driver supports georeferencing
Supports VirtualIO
This driver supports virtual I/O operations (/vsimem/, etc.)
数据来源
驱动程序接受三种类型的数据源:
从GDAL 2.3开始,URL/filename/text可能以ESRIJSON:作为前缀,以避免与其他驱动程序产生任何歧义。
打开选项
FEATURE_SERVER_PAGING = YES/NO: Whether to automatically scroll through results with a ArcGIS Feature Service endpoint. Has only effect for ArcGIS servers >= 10.3 and layers with supportsPagination=true capability.
例子
Read the result of a FeatureService request against a GeoServices REST server (note that this server does not support paging):
ogrinfo -ro -al "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hydrography/Watershed173811/FeatureServer/0/query?where=objectid+%3D+objectid&outfields=*&f=json"