Anywhere.ArcGIS icon indicating copy to clipboard operation
Anywhere.ArcGIS copied to clipboard

Support a non-generic query

Open jsgoupil opened this issue 4 years ago • 0 comments

Most cases, I will need to have either a Point or a Polygon when querying. In both cases, I end up with a IGeometry.

JsonConvert.DeserializeObject does support passing the type at runtime. Forcing to have the type at compile time makes it quite complex for a simple fetch.

It would be interesting to have something like:

var layer = await secureGateway.DescribeLayer(endpoint);
secureGateway.Query(queryOptions, layer.GeometryType);

jsgoupil avatar Sep 25 '19 23:09 jsgoupil