Class ZoneLayer<T>
- java.lang.Object
-
- org.matsim.contrib.accessibility.gis.ZoneLayer<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Zone<T>
getZone(org.locationtech.jts.geom.Point point)
Returns the zone containing point.Set<Zone<T>>
getZones()
Returns a set of all zones.void
overwriteCRS(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Allows to manually overwrite the coordinate reference system (e.g.
-
-
-
Method Detail
-
overwriteCRS
public void overwriteCRS(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Allows to manually overwrite the coordinate reference system (e.g. if the ZoneLayer is read from a shape file without crs information).- Parameters:
crs
- a coordinate reference system.
-
getZone
public Zone<T> getZone(org.locationtech.jts.geom.Point point)
Returns the zone containing point. If multiple zones contain point one random zone is returned.- Parameters:
point
- a point geometry- Returns:
- the zone containing point, or null if no zone contains point.
-
-