landsat.arcgis.com esriSpatialRelContains

1002
3
07-27-2016 12:45 AM
MarcJacquin
New Contributor

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=Categ...

with Contains and the same Polygon small enough to contain many footprints :

http://landsat.arcgis.com/arcgis/rest/services/Landsat8_Views/ImageServer//query?&f=json&where=Categ...

No feature is returned.

Am I doing something wrong ?

Thanks for helping.

Marc

0 Kudos
3 Replies
XanderBakker
Esri Esteemed Contributor
0 Kudos
XanderBakker
Esri Esteemed Contributor

Here an old document with a detailed explanation on how spatial relationships are evaluated:

Understanding spatial relations

0 Kudos
MarcJacquin
New Contributor

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=Categ...

Retrieving all the features is OK : http://landsat.arcgis.com/arcgis/rest/services/Landsat8_Views/ImageServer/query?f=json&where=Categor...

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=Categor...

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.

0 Kudos