Skip to content

GeoSander/fme-utmzonedetector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FME® UTMZoneDetector

About

This transformer tries to find a fitting UTM zone for an input feature. It also outputs the hemisphere and a matching WGS84 coordinate system name, suitable for FME's Reprojector or CoordinateSystemSetter, for instance.

If a fitting zone was found, 3 attributes will be added to the feature:

  • _utm.hemisphere ("S" or "N")
  • _utm.zone (an integer ranging from 1 to 60)
  • _utm.coordsys (a matching WGS84 UTM coordinate system name)

No actual reprojection takes place on the output feature. The transformer should be able to deal with rasters and various kinds of vector geometry. Note however that this transformer does not check if the whole feature is inside a zone. It merely checks if the "inside point" (or center point if that failed) of the feature belongs to a certain zone. This is why this transformer should not be used on really large features that span multiple zones, like continent or country boundaries.

If the zone could not be retrieved, e.g. when the feature has a missing coordinate system or when the feature is outside the valid latitudinal UTM bounds of {-80, 84}, it will be rejected and a _utm.error attribute will be added.

Notes

  • Also available on FME Hub for convenient installation.
  • This transformer has been tested on Python 2.7 and 3.4.
  • Released under GNU General Public License v3.0.
  • If you notice a bug or desire a new feature, please contact me. Or make a pull request!
  • The test workspace is used for testing and provides some examples.

About

Custom transformer for FME® that detects which UTM zone a feature (centroid) is in

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published