Projection

sealed class Projection

Transform a shapefile X/Y pair into geographic longitude/latitude in degrees. The input pair is (easting, northing) for projected files and (longitude, latitude) for geographic files.

Inheritors

Types

Link copied to clipboard
Link copied to clipboard

Unsupported projection. Returns the input unchanged so callers can still see some output.

Link copied to clipboard
class Utm(val zone: Int, val hemisphere: Hemisphere) : PrjFile.Projection

UTM → lat/lon via UTMCoord.

Functions

Link copied to clipboard
abstract fun toGeographic(x: Double, y: Double): DoubleArray

Returns [longitude, latitude] in degrees.