Transform Coordinates Automation

Transform a spatial data file's coordinates from one system to another using industry-standard coordinate systems, or your own conversion logic.

The Transform Coordinates console handles numerous types of coordinate representations, including cartographic and geodetic transformations. You can also automate this command.

Standard automations can be automated using the syntax:

oDmApp.ParseCommand("transform-coordinates InFile=[Full path to source file];OutFile=[Full path to created file];InCRS=[Source file CRS reference];OutCRS=[Target file CRS reference];X=[X Coordinate Field];Y=[Y Coordinate Field];Z=[Z Coordinate Field]");

For example:

oDmApp.ParseCommand("transform-coordinates InFile=C:\\Database\\MyProject\\MyStrings.dm;OutFile=C:\\Database\\MyProject\\Transformed_Strings;InCRS=EPSG:32766;OutCRS=EPSG:32761;X=XP;Y=YP;Z=ZP");

In the above case, oDmApp is a Studio Application object, often instantiated as an ActiveX control (but can also be referenced by the parent window handle, such as window.external; in Javascript.

Note: it is not possible to automate a custom transformation.

Related topics and activities