Proj4Crs class

Custom CRS

Inheritance

Constructors

Proj4Crs.fromFactory({required String code, required Projection pj4Projection, Transformation? transformation, List<UPoint>? origins, Bounds? bounds, List<double>? scales, List<double>? resolutions})
factory

Properties

code String
Code of this CRS.
final
hashCode int
The hash code for this object.
no setterinherited
infinite bool
Infinite
final
latBounds → Tuple2<double, double>
Returns a Tuple2<double 1, double 2) where longitude has been wrapped according to the CRS's wrapLng properties, if they are outside the CRS's bounds.
no setteroverride
lngBounds → Tuple2<double, double>
Returns a Tuple2<double 1, double 2) where latitude has been wrapped according to the CRS's wrapLat properties, if they are outside the CRS's bounds.
no setteroverride
projection Projection
Projection value of this CRS.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scales List<double?>
Scale list
final
transformation Transformation
Transformation object of this CRS.
final
transformations List<Transformation>?
Transformations list
final

Methods

distance(LatLng position, LatLng destination) double?
Returns the distance between two geographical coordinates.
inherited
getProjectedBounds(double? zoom) Bounds?
Rescales the bounds to a given zoom value.
override
latlngToPoint(LatLng? position, double? zoom) UPoint
Converts a point on the sphere surface (with a certain zoom) in a map point.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pointToLatLng(UPoint point, double? zoom) LatLng?
Converts a map point to the sphere coordinate (at a certain zoom).
override
project(LatLng? latlng) UPoint?
Projects geographical coordinates into coordinates in units accepted for this CRS (e.g. meters for EPSG:3857, for passing it to WMS services).
inherited
scale(double? zoom) double?
Zoom to Scale function.
override
toString() String
A string representation of this object.
inherited
unproject(UPoint point) LatLng?
Given a projected coordinate returns the corresponding LatLng. The inverse of project.
inherited
wrapLatLng(LatLng latlng) LatLng
Returns a LatLng where lat and lng has been wrapped according to the CRS's wrapLat and wrapLng properties, if they are outside the CRS's bounds.
inherited
wrapLatLngBounds(LatLngBounds bounds) LatLngBounds
Returns a LatLngBounds with the same size as the given one, ensuring that its center is within the CRS's bounds.
inherited
zoom(double scale) double
Scale to Zoom function.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited