Using the Landsat8_Views (ImageServer)//query? with spatialRel=esriSpatialRelContains does not return any feature whereas using it with spatialRel=esriSpatialRelInitersects does.
Example :
with Intersects :
http://landsat.arcgis.com/arcgis/rest/services/Landsat8_Views/ImageServer//query?&f=json&where=Category+%3D+1+and+Produc…
with Contains and the same Polygon small enough to contain many footprints :
No feature is returned.
Am I doing something wrong ?
Thanks for helping.
Marc
You could try "Within". This will yield 136 results:
http://landsat.arcgis.com/arcgis/rest/services/Landsat8_Views/ImageServer/query?where=Category+%3D+1+and+ProductName+%3C…
Here an old document with a detailed explanation on how spatial relationships are evaluated:
Understanding spatial relations
Thank you Xander for pointing out this.
I did try the Within relationship but I came out to another issue which seems to be the main one.
Trying to count the features is OK :
http://landsat.arcgis.com/arcgis/rest/services/Landsat8_Views/ImageServer//query?&f=json&where=Category+%3D+1+and+ProductName+%3C%3E+%27L1G%27++and++ACQUISITIONDATE+between+date+%272013-2-11%27+and+date+%272016-7-27%27+and+CloudCover+%3C+20&spatialRel=esriSpatialRelWithin&geometry=%7B%22rings%22%3A%5B%5B%5B1.4761388223341854%2C43.698026376474495%5D%2C%5B1.4780807416612338%2C43.69811170177819%5D%2C%5B1.4792609136279484%2C43.697452366730104%5D%2C%5B1.4795881431278104%2C43.69641292969512%5D%2C%5B1.4782094876939662%2C43.69601343977283%5D%2C%5B1.4761388223341854%2C43.698026376474495%5D%5D%5D%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D&geometryType=esriGeometryPolygon&returnCountOnly=true&inSR=%7B+%22wkid%22%3A4326%7D
Retrieving all the features is OK : http://landsat.arcgis.com/arcgis/rest/services/Landsat8_Views/ImageServer/query?f=json&where=Category+%3D+1+and+ProductName+%3C%3E+%27L1G%27++and++ACQUISITIONDATE+between+date+%272013-2-11%27+and+date+%272016-7-27%27+and+CloudCover+%3C+20&spatialRel=esriSpatialRelWithin&geometry=%7B%22rings%22%3A%5B%5B%5B1.4761388223341854%2C43.698026376474495%5D%2C%5B1.4780807416612338%2C43.69811170177819%5D%2C%5B1.4792609136279484%2C43.697452366730104%5D%2C%5B1.4795881431278104%2C43.69641292969512%5D%2C%5B1.4782094876939662%2C43.69601343977283%5D%2C%5B1.4761388223341854%2C43.698026376474495%5D%5D%5D%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D&geometryType=esriGeometryPolygon&returnGeometry=true&returnIdsOnly=false&returnCountOnly=false&inSR=%7B+%22wkid%22%3A4326%7D&outfields=Name%2CProductName%2CAcquisitionDate%2CSensorName%2CCloudCover%2CLowPS%2CCategory
But when using resultOffset=0 and resultRecordCount=20 for example, nothing is returned.
http://landsat.arcgis.com/arcgis/rest/services/Landsat8_Views/ImageServer/query?f=json&where=Category+%3D+1+and+ProductName+%3C%3E+%27L1G%27++and++ACQUISITIONDATE+between+date+%272013-2-11%27+and+date+%272016-7-27%27+and+CloudCover+%3C+20&spatialRel=esriSpatialRelWithin&geometry=%7B%22rings%22%3A%5B%5B%5B1.4761388223341854%2C43.698026376474495%5D%2C%5B1.4780807416612338%2C43.69811170177819%5D%2C%5B1.4792609136279484%2C43.697452366730104%5D%2C%5B1.4795881431278104%2C43.69641292969512%5D%2C%5B1.4782094876939662%2C43.69601343977283%5D%2C%5B1.4761388223341854%2C43.698026376474495%5D%5D%5D%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D&geometryType=esriGeometryPolygon&returnGeometry=true&returnIdsOnly=false&returnCountOnly=false&inSR=%7B+%22wkid%22%3A4326%7D&outfields=Name%2CProductName%2CAcquisitionDate%2CSensorName%2CCloudCover%2CLowPS%2CCategory&resultOffset=0&resultRecordCount=20
Documentation says that the resultOffset and resultRecordCount parameters are available for 10.3.1 only but they actually do work when using the Intersects relationship.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.