-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for datum transformations #976
Conversation
ugh. this service seems to indicate that the parameter name is actually |
ArcGIS Server 10.5 introduced support for passing datum transformations to a variety of operations. this patch uses the shorthand 'transform' as a setter to allow developers to pass the argument through without internal manipulation. Map service layers * /query valid syntax // simple syntax query.transform(15851); // JSON syntax query.transform({"wkid" : 15851 }); // Well-known text query.transform({"wkt" : "GEOGTRAN[\..."}); // composite transformations var composite = { "geoTransforms": [ { "wkid": "1241", "transformForward": false }, { "wkid": "15851", "transformForward": true } ] } query.transform (composite);
i dug (a lot) deeper into this and discovered that we have exposed inconsistent parameter naming and argument syntax between different operations in 10.5.
http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Export_Map/02r3000000v7000000/
i've submitted feedback to the core development team regarding the frustration caused by the inconsistency along with a few suggestions to fix immediate problems in the doc. because this is just a pet feature of mine anyway, for the time being i'm only going to implement
|
the dev team finally helped me get to the bottom of this. the inconsistency is a result of the fact that Export/Find/Identify all support interacting with multiple input layers published in a single map. even though Project (and now Query in 10.5) already supported the ability to chain individual transformations together as a composite transformation, the three operations above expect an array so that multiple disparate transformations (either simple or composite) can be passed simultaneously in a request and incorporated into the re-projection of each individual layer! use case: user publishes a map service which includes one NAD27 layer and one NAD83 layer |
add support for datum transformations
this patch uses the shorthand 'transform' as both a setter and constructor option to allow developers to pass the argument through without internal manipulation to ArcGIS Server 10.5+ layers and tasks that support the parameter.
additional doc: http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Project/02r3000000pv000000/
resolves #973
edit: updated samples to consistently refer to
L.esri.Query