FME Transformers: 2024.2

Categories
Coordinates
Integrations
Related Transformers
AttributeReprojector
CommonLocalReprojector
CsmapAttributeReprojector
CsmapReprojector
EsriReprojector
GridInQuestIIReprojector
GtransAttributeReprojector
GtransReprojector
PROJReprojector
ReframeReprojector
ReprojectAngleCalculator
ReprojectLengthCalculator
Reprojector

PROJAttributeReprojector

Reprojects coordinates stored as attributes from one coordinate system to another using the PROJ library.

Jump to Configuration

Typical Uses

  • Reprojecting features when explicitly using the PROJ library is desired
  • Adding additional coordinate pairs as attributes, in alternate coordinate systems

How does it work?

The PROJAttributeReprojector accepts any feature. The user specifies the attributes containing x, y, and optionally z coordinates, and configures either an Automatic or Manual Transformation.

The transformer reprojects the coordinates according to these selections, using the PROJ reprojection library, and updates the x, y, and z attributes to the new values, overwriting the originals.

This transformer does not alter the feature’s geometry – only the values of the selected X and Y Attributes (if they contain coordinate values) are changed. Accurate results depend on the user’s correct specification of the source coordinate system.

FME currently uses PROJ version 9.5.0.

For Automatic transformations, the Source Coordinate System and Destination Coordinate System must be specified explicitly.

For Manual transformations, a PROJ string must be provided describing the desired transformation, as documented at PROJ’s Transformation Pipelines and shown in the examples further below. WKT2 descriptions are also valid.

Coordinate System Definitions

This transformer will accept coordinate systems defined in any one of the following forms.

Definition Style

Example: LL-WGS84 Defined

External Reference

EPSG Number

EPSG:4326

EPSG Website

Well-Known Text (WKT1 or WKT2)

GEODCRS["WGS 84",

DATUM["World Geodetic System 1984",

ELLIPSOID["WGS 84",6378137,298.257223563,

LENGTHUNIT["metre",1.0]]],

CS[ellipsoidal,2],

AXIS["latitude",north,ORDER[1]],

AXIS["longitude",east,ORDER[2]],

ANGLEUNIT["degree",0.01745329252],

ID["EPSG",4326]]

Open Geospatial Consortium: Geographic information — Well-known text representation of coordinate reference systems

Note that the EPSG website can also provide WKT strings for specific coordinate systems.

PROJ String

+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs

PROJ Projections

They are fully interchangeable and can be used in any combination to define the Source and Destination Coordinate System for an Automatic transformation.

They may also be used in a PROJ string or pipeline for a Manual transformation.

Note that EPSG and WKT representations can more fully describe a coordinate system than PROJ strings, and so are the preferred definition types.

Geographic Transformations and Grids

Geographic Transformations control how coordinates are converted between different datums.

For an Automatic Transformation, FME will attempt to select an appropriate transformation between the Source and Destination coordinate systems.

Manual Transformations are performed as specified in the Manual Transformation Parameters.

Grid-Based Datum Adjustments

Some areas use grid shift files for datum conversion.

Many grids needed by PROJ are included with FME, and additional grids may be downloaded from the PROJ website.

PROJ will generally search for an appropriate grid to use, although specific paths or URLS may be specified in a transformation definition.

PROJ User Data

Grids and customized proj.db files may be placed in your [FME User Directory]/ProjData folder.

Sample ProjData folder locations:

macOS

/Users/[User]/Library/Application\ Support/FME/ProjData/

Windows 10

C:\Users\[User]\Documents\FME\ProjData

Linux

/home/[User]/.fme/ProjData

PROJ transformers will give preference to files placed in this folder over other locations, including the proj.db and grid files shipped with FME.

Examples

Usage Notes

  • This transformer does not change the feature's coordinates – it only changes the values of the selected X, Y, and Z attributes (if they contain coordinate values).
  • Earlier versions of PROJ used the proj-datumgrid grid files package, which is still available on the PROJ website. It should be replaced by the current proj-data package.
  • FME has a Workspace Parameter, Reprojection Engine, that may be set to either FME (CS-Map) or Esri. This transformer will override this parameter setting.
  • The AttributeReprojector provides similar functionality, and will use the default library (CS-Map or Esri) set in FME. It does not handle z values.
  • To reproject coordinates stored as geometry, consider using the PROJReprojector.
  • Automatic Transformations will produce a PROJ pipeline string in the log, which can be used as a template for Manual Transformations.

Working With Coordinate System Transformers

FME inherently supports coordinate system transformations and reprojections.

Configuration

Input Ports

Output Ports

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

Reference

Processing Behavior

Feature-Based

Feature Holding

No

Dependencies None
Aliases  
History  

FME Community

The FME Community has a wealth of FME knowledge with over 20,000 active members worldwide. Get help with FME, share knowledge, and connect with users globally.

Search for all results about the PROJAttributeReprojector on the FME Community.

 

Examples may contain information licensed under the Open Government Licence – Vancouver, Open Government Licence - British Columbia, and/or Open Government Licence – Canada.