FME Coordinate Systems
Total Page:16
File Type:pdf, Size:1020Kb
Coordinate Systems All FME features know about their coordinate system and, therefore, their location on the earth. An FME coordinate system contains a complete mathematical model of the conversion between a specific location on the earth and a set of coordinates. Coordinate system definitions are spec- ified by a set of parameters that define this mathematical model, including the earth model (ellipsoid or datum), the units used to measure the coordinates, the projection type, and any parameters specific to the projection type. Coordinate systems may be extracted from input feature data sources, may come predefined with the FME, or may be defined by FME users. The FME allows output coordinate systems that are different than the input ones to be specified and performs the required coordinate con- versions when necessary. FME is shipped with over 5000 coordinate systems based on a variety of different projections, ellipsoids, and datums. The file coordsys.db in the FME installation directory contains the names and descriptions of all predefined coordinate systems. However, some users may wish to use coordinate systems that do not ship with FME, and will need to read the topics on defining custom coordinate systems. When an FME reader knows its coordinate system, the FME creates a coordinate system to match the input data specification and tags each fea- ture read with this system name. However, a majority of formats do not explicitly store the coordinate system. In such cases, mapping file direc- tives are used to supply coordinate system information. The mapping file may also contain a specification as to which coordinate system the output data is to be in. If the output coordinate system is specified and it is different from the input coordinate system, then the FME automatically converts the feature data between coordinate sys- tems. For example, converting features from one coordinate system based on North American Datum (NAD) 27 to another from NAD83 causes the FME to perform the required datum conversion. To ensure that the reprojection is accurate, FME automatically vectorizes arcs, ellipses, rec- tangles, and rounded rectangle objects as necessary before performing the coordinate system change. The output system, or format, stores the coordinate system of the features if it has facilities for doing so; for example, the MapInfo formats store the coordinate system of the data. Quick Links n Changing the Default Coordinate System n Adding a Custom Coordinate System n Sharing Custom Coordinate Systems n Shared Directories n Included Grid Shift Files n Adding Grid Files n Using the CoordinateSystemSetter Transformer Coordinate Systems All FME features know about their coordinate system and, therefore, their location on the earth. An FME coordinate system contains a complete mathematical model of the conversion between a specific location on the earth and a set of coordinates. Coordinate system definitions are spec- ified by a set of parameters that define this mathematical model, including the earth model (ellipsoid or datum), the units used to measure the coordinates, the projection type, and any parameters specific to the projection type. Coordinate systems may be extracted from input feature data sources, may come predefined with the FME, or may be defined by FME users. The FME allows output coordinate systems that are different than the input ones to be specified and performs the required coordinate con- versions when necessary. FME is shipped with over 5000 coordinate systems based on a variety of different projections, ellipsoids, and datums. The file coordsys.db in the FME installation directory contains the names and descriptions of all predefined coordinate systems. However, some users may wish to use coordinate systems that do not ship with FME, and will need to read the topics on defining custom coordinate systems. When an FME reader knows its coordinate system, the FME creates a coordinate system to match the input data specification and tags each fea- ture read with this system name. However, a majority of formats do not explicitly store the coordinate system. In such cases, mapping file direc- tives are used to supply coordinate system information. The mapping file may also contain a specification as to which coordinate system the output data is to be in. If the output coordinate system is specified and it is different from the input coordinate system, then the FME automatically converts the feature data between coordinate sys- tems. For example, converting features from one coordinate system based on North American Datum (NAD) 27 to another from NAD83 causes the FME to perform the required datum conversion. To ensure that the reprojection is accurate, FME automatically vectorizes arcs, ellipses, rec- tangles, and rounded rectangle objects as necessary before performing the coordinate system change. The output system, or format, stores the coordinate system of the features if it has facilities for doing so; for example, the MapInfo formats store the coordinate system of the data. Quick Links n Changing the Default Coordinate System n Adding a Custom Coordinate System n Sharing Custom Coordinate Systems n Shared Directories n Included Grid Shift Files n Adding Grid Files n Using the CoordinateSystemSetter Transformer How FME Identifies Coordinate Systems A coordinate system is a reference system for spatial data to be related to a particular space on the Earth's surface. It is made up of a number of components such as projection (http://en.wikipedia.org/wiki/Map_projection), geoid (http://en.wikipedia.org/wiki/Geoid), datum (http://e- n.wikipedia.org/wiki/Datum) and units (http://en.wikipedia.org/wiki/Units_of_measurement). Each feature that is processed by FME is coordinate system aware; that is, it knows what coordinate system it belongs to at all times. This helps prevent confusion when reading multiple datasets that belong to different coordinate systems. When working with FME, you generally only have to consider the coordinate system if you want to reproject the data to another system or if FME fails to automatically recognize the correct coordinate system. Coordinate systems are defined in the Workbench Navigator. Because the source Reader coordinate system is marked <not set>, FME will try to determine the coordinate system from the source dataset. Because the destination Writer coordinate system is marked <not set>, FME will not reproject the data. Instead FME writes the data using the same coordinate system as the source data. Each Coordinate System parameter is linked to FME's Coordinate System Gallery. Double-click the parameter to display a list of recently used coordinate systems, or the browse button to access FME's Coordinate System Gallery. If you define the coordinate systems FME automatically restructures the data at the end of the translation, so that the output is in the correct location. How FME Processes Coordinate Systems in the Workspace If a coordinate system is specified in both the source format and the workspace, the coordinate system in the workspace is the one that will be used. The coordinate system specified in the source format is not used, and a warning is logged. If a source coordinate system is not specified in the workspace and the format or system does not store coordinate system information, then the coordinate system is not set for the features that are read. If a destination coordinate system is set and the feature has been tagged with a coordinate system, then a coordinate system conversion is per- formed to put the feature into the destination system. This happens after features leave the transformer, but before they enter the trans- formation process. If the destination coordinate system was not set, then the features are written out in their original coordinate system. If a destination coordinate system is set, but the source coordinate system was not specified in the workspace or stored in the source format, then no conversion is performed. The features are simply tagged with the output system name before being written to the output dataset. Choosing from the Coordinate System Gallery Tools > Browse Coordinate Systems Browse button beside any Coordinate System field From the Coordinate System Gallery, you can search for a keyword, filter entries, select a new coordinate system, and view properties on selected coordinate systems. Any custom coordinate systems that you add will also appear here. Changing the Default Coordinate System By default, FME either uses a default value or uses the coordinate system referenced in the input dataset. However, you may want to convert data to a different coordinate system. For formats that know their coordinate system (such as MapInfo and DLG), the Coordinate System field in the Source Dataset dialog will display Same as source and FME will read the coordinate system from the source dataset. For most other input sources, the field will display <not set>, which means that FME will use default values. For FME to perform a reprojection, you must specify different writer coordinate system parameters. Converting to a Different Writer Coordinate System 1. Create a workspace, and define your reader and writer. 2. In the source dataset area in the Navigator pane, the Coordinate System parameter will be displayed as <not set>. This means that FME will either use default values, or will read the coordinate system from the source data. You can explicitly set the source coordinate system (which will override any coordinate system read