AnsweredAssumed Answered

What is proper REST escaped geometry url

Question asked by chris.anderson_argistech on May 8, 2016

I am making a REST call to retrieve a FeatureSet. To do the query, one of my parameters is an envelope (I'm performing a spatial query). While debugging my mobile application the code works on my PC as well as my Mac, however, it fails when built and run on an iPAD.

 

Here is an example query that I am using. My question is how to properly escape the url in order for it to run on all platforms. I've narrowed the escaping problem to the geometry parameter

pre-escaped:

/query?.......&geometry={"xmin":-79.456,"ymin":38.123,"xmax":-79.224,"ymax":38.543}&geometryType=esriGeometryEnvelope......

Outcomes