Interface GeometryProblems
- All Superinterfaces:
ProblemFactory
Problems relating to Geometry operations, errors, etc
-
Method Summary
Modifier and TypeMethodDescriptionautoProjectionNotFound(double latitude, double longitude) When no auto projection could be found.The Well-Known Text format supplied by the user appears to be invalid.cannotReproject(org.locationtech.jts.geom.Geometry geom, org.geotools.api.referencing.crs.CoordinateReferenceSystem sourceCrs, org.geotools.api.referencing.crs.CoordinateReferenceSystem targetCrs) When aGeometrycannot be re-projected from the sourceCoordinateReferenceSystemto the target.crsMixtureReprojected(Object affected, org.geotools.api.referencing.crs.CoordinateReferenceSystem target) The data for {0} contained a mixture of CRSs, so has been reprojected to CRS {1}.fixedInvalid(org.locationtech.jts.geom.Geometry original, org.locationtech.jts.geom.Geometry fixed, String tupleContext) When an invalid geometry (original) has been fixed.fixedInvalidPostReprojection(org.geotools.api.referencing.crs.CoordinateReferenceSystem sourceCrs, org.geotools.api.referencing.crs.CoordinateReferenceSystem targetCrs, org.locationtech.jts.geom.Geometry invalid, org.locationtech.jts.geom.Geometry fixed) When an geometry has become invalid during re-projection, but has been fixed.static GeometryProblemsget()invalid(org.locationtech.jts.geom.Geometry geom, org.locationtech.jts.operation.valid.TopologyValidationError error, String tupleContext) When an invalid geometry has been detected and geometry fixing does not work.invalidPostReprojection(org.geotools.api.referencing.crs.CoordinateReferenceSystem sourceCrs, org.geotools.api.referencing.crs.CoordinateReferenceSystem targetCrs) When an invalid geometry has been created due to re-projection and geometry fixing does not work.mismatchedCrs(org.geotools.api.referencing.crs.CoordinateReferenceSystem lhsCrs, org.geotools.api.referencing.crs.CoordinateReferenceSystem rhsCrs) mixedGeometryTypes(Object geometryCollection) Could not perform an operation because we got a mix of geometry types (e.g.notReferenced(Type geometryType) When a geometry type is found but it is notReferencede.g it is missing CRSreprojectionIgnoringDatumShift(org.geotools.api.referencing.crs.CoordinateReferenceSystem sourceCrs, org.geotools.api.referencing.crs.CoordinateReferenceSystem targetCrs) When a reprojection transform will ignore datum shifts.Tip for the user when a JTSTopologyExceptionis hit.unknownCrsCode(String crsCode) Return this to explain that a CRS name couldn't be turned in to aCoordinateReferenceSystem.
-
Method Details
-
get
-
topologyExceptionTip
Problem topologyExceptionTip()Tip for the user when a JTS
TopologyExceptionis hit. -
cannotReproject
Problem cannotReproject(org.locationtech.jts.geom.Geometry geom, org.geotools.api.referencing.crs.CoordinateReferenceSystem sourceCrs, org.geotools.api.referencing.crs.CoordinateReferenceSystem targetCrs) When a
Geometrycannot be re-projected from the sourceCoordinateReferenceSystemto the target.This occurs when the geometry is larger than the targetCrs is.
-
autoProjectionNotFound
When no auto projection could be found. This is most likely to occur if the co-ordinate order differs to what is stated in the CRS. So likely to be geometries from CSV and forceXY is incorrect.
Would also occur if the longitude is first co-ordinate but the first axis is not named 'Longitude' for some reason.
-
reprojectionIgnoringDatumShift
Problem reprojectionIgnoringDatumShift(org.geotools.api.referencing.crs.CoordinateReferenceSystem sourceCrs, org.geotools.api.referencing.crs.CoordinateReferenceSystem targetCrs) When a reprojection transform will ignore datum shifts.
-
crsMixtureReprojected
Problem crsMixtureReprojected(Object affected, org.geotools.api.referencing.crs.CoordinateReferenceSystem target) The data for {0} contained a mixture of CRSs, so has been reprojected to CRS {1}.
-
unknownCrsCode
Return this to explain that a CRS name couldn't be turned in to a
CoordinateReferenceSystem. Will need to be wrapped in some sort of context-giving problem, e.g. was it a function argument? A bookmark parameter? -
notReferenced
When a geometry type is found but it is not
Referencede.g it is missing CRS -
badWkt
The Well-Known Text format supplied by the user appears to be invalid.
-
invalid
Problem invalid(org.locationtech.jts.geom.Geometry geom, org.locationtech.jts.operation.valid.TopologyValidationError error, String tupleContext) When an invalid geometry has been detected and geometry fixing does not work.
- Parameters:
geom- the invalid geometryerror- the error describing how geom is invalidtupleContext- abbreviated content of the tuple
-
invalidPostReprojection
Problem invalidPostReprojection(org.geotools.api.referencing.crs.CoordinateReferenceSystem sourceCrs, org.geotools.api.referencing.crs.CoordinateReferenceSystem targetCrs) When an invalid geometry has been created due to re-projection and geometry fixing does not work.
- Parameters:
sourceCrs- the CRS that the geometry was originally intargetCrs- the CRS that original was re-projected to
-
fixedInvalid
Problem fixedInvalid(org.locationtech.jts.geom.Geometry original, org.locationtech.jts.geom.Geometry fixed, String tupleContext) When an invalid geometry (original) has been fixed.
- Parameters:
original- the original (and invalid) geometryfixed- a fixed version of originaltupleContext- abbreviated content of the tuple
-
fixedInvalidPostReprojection
Problem fixedInvalidPostReprojection(org.geotools.api.referencing.crs.CoordinateReferenceSystem sourceCrs, org.geotools.api.referencing.crs.CoordinateReferenceSystem targetCrs, org.locationtech.jts.geom.Geometry invalid, org.locationtech.jts.geom.Geometry fixed) When an geometry has become invalid during re-projection, but has been fixed.
- Parameters:
sourceCrs- the CRS that the geometry was originally intargetCrs- the CRS that original was re-projected toinvalid- the invalid geometryfixed- a fixed version of original
-
mismatchedCrs
Problem mismatchedCrs(org.geotools.api.referencing.crs.CoordinateReferenceSystem lhsCrs, org.geotools.api.referencing.crs.CoordinateReferenceSystem rhsCrs) -
mixedGeometryTypes
Could not perform an operation because we got a mix of geometry types (e.g. lines and polygons) where we expected to have a homogenous set.
- Parameters:
geometryCollection- provides more details of the problematic geometry
-