okachirski

Query with KMZ format output returns bad results

Discussion created by okachirski on May 9, 2012
Latest reply on Oct 2, 2014 by KG22
AGS Server 10 SP2, using REST endpoint to query based on attribute value, such as:

http://server/ArcGIS/rest/services/MyService/MapServer/1/query?text=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&objectIds=&where=STRUCTURENAME+LIKE+%27%25garage%25%27&time=&returnCountOnly=false&returnIdsOnly=false&returnGeometry=true&maxAllowableOffset=&outSR=4326&outFields=STRUCTURENAME&f=html

Works great, returns 557 records. If I change the last parameter (format) to f=kmz, the KML returned contains all of the records in that layer (> 2000) - so WHERE clause doesn't seem to matter. A known bug?

Outcomes