public class SpatialQuery extends Object
Constructor and Description |
---|
SpatialQuery() |
Modifier and Type | Method and Description |
---|---|
static IGeneObj |
selectContains(IGeometry geom,
IFeatureCollection<IGeneObj> features) |
static Collection<IGeneObj> |
selectCrossing(ILineString line,
Class<?> classObj)
Select the gene objects inheriting from classObj that cross the given line.
|
static Collection<IGeneObj> |
selectCrossing(ILineString line,
Set<Class<?>> classObjs)
Select the gene objects instancing one of the classes of classObj, that
cross the given line.
|
static Collection<IGeneObj> |
selectCrossingNames(ILineString line,
Set<String> classNames)
Select the gene objects instancing one of the classes of classObj, that
cross the given line.
|
static Collection<IGeneObj> |
selectCrossLineAtPoint(ILineString line,
IDirectPosition point,
Class<?> classObj)
Select the gene objects instancing classObj of the current dataset, that
cross the given line at a given point.
|
static Collection<IGeneObj> |
selectCrossLineAtPoint(ILineString line,
IDirectPosition point,
Set<Class<?>> classObjs)
Select the gene objects instancing one of the classObjs classes, of the
current dataset, that cross the given line at a given point.
|
static Collection<IGeneObj> |
selectCrossLineAtPointNames(ILineString line,
IDirectPosition point,
Set<String> classNames)
Select the gene objects instancing one of the classObjs classes, of the
current dataset, that cross the given line at a given point.
|
static Collection<IGeneObj> |
selectInAreaAll(IPolygon polygon)
Select the gene objects from all population of the current dataset, that
lie inside the given area.
|
static Collection<IGeneObj> |
selectInAreaNames(IPolygon polygon,
Set<String> classNames)
Select the gene objects instancing one of the classes of classObj, that lie
inside the given area.
|
static Collection<IGeneObj> |
selectInRadius(IDirectPosition center,
double radius,
Class<?> classObj)
Select the gene objects inheriting from classObj that lie in the given
radius.
|
static IGeneObj |
selectNearest(IGeometry geom,
IFeatureCollection<? extends IGeneObj> features,
double distanceMax)
Get the nearest features of the geometry from the parameter collection.
|
static IFeature |
selectNearestFeature(IGeometry geom,
IFeatureCollection<IFeature> features,
double distanceMax)
Get the nearest features of the geometry from the parameter collection.
|
static Set<IFeature> |
selectNearestN(IGeometry geom,
IFeatureCollection<? extends IFeature> features,
int n,
double step)
Get the nearest features of the geometry from the parameter collection.
|
static Vector<Object> |
selectNearestWithDistance(IGeometry geom,
IFeatureCollection<IGeneObj> features,
double distanceMax)
Get the nearest features of the geometry from the parameter collection.
|
public static Collection<IGeneObj> selectInRadius(IDirectPosition center, double radius, Class<?> classObj) throws IllegalArgumentException, SecurityException, IllegalAccessException, NoSuchFieldException
center
- radius
- classObj
- NoSuchFieldException
IllegalAccessException
SecurityException
IllegalArgumentException
public static Collection<IGeneObj> selectCrossing(ILineString line, Class<?> classObj) throws IllegalArgumentException, SecurityException, IllegalAccessException, NoSuchFieldException
center
- radius
- classObj
- NoSuchFieldException
IllegalAccessException
SecurityException
IllegalArgumentException
public static Collection<IGeneObj> selectCrossing(ILineString line, Set<Class<?>> classObjs) throws IllegalArgumentException, SecurityException, IllegalAccessException, NoSuchFieldException
center
- radius
- classObj
- NoSuchFieldException
IllegalAccessException
SecurityException
IllegalArgumentException
public static Collection<IGeneObj> selectCrossingNames(ILineString line, Set<String> classNames) throws IllegalArgumentException, SecurityException, IllegalAccessException, NoSuchFieldException, ClassNotFoundException
center
- radius
- classObj
- NoSuchFieldException
IllegalAccessException
SecurityException
IllegalArgumentException
ClassNotFoundException
public static Collection<IGeneObj> selectCrossLineAtPoint(ILineString line, IDirectPosition point, Class<?> classObj) throws IllegalArgumentException, SecurityException, IllegalAccessException, NoSuchFieldException
line
- point
- classObj
- IllegalArgumentException
SecurityException
IllegalAccessException
NoSuchFieldException
public static Collection<IGeneObj> selectCrossLineAtPoint(ILineString line, IDirectPosition point, Set<Class<?>> classObjs) throws IllegalArgumentException, SecurityException, IllegalAccessException, NoSuchFieldException
line
- point
- classObj
- IllegalArgumentException
SecurityException
IllegalAccessException
NoSuchFieldException
public static Collection<IGeneObj> selectCrossLineAtPointNames(ILineString line, IDirectPosition point, Set<String> classNames) throws IllegalArgumentException, SecurityException, IllegalAccessException, NoSuchFieldException, ClassNotFoundException
line
- point
- classObj
- IllegalArgumentException
SecurityException
IllegalAccessException
NoSuchFieldException
ClassNotFoundException
public static Collection<IGeneObj> selectInAreaNames(IPolygon polygon, Set<String> classNames) throws IllegalArgumentException, SecurityException, IllegalAccessException, NoSuchFieldException, ClassNotFoundException
polygon
- classNames
- NoSuchFieldException
IllegalAccessException
SecurityException
IllegalArgumentException
ClassNotFoundException
public static Collection<IGeneObj> selectInAreaAll(IPolygon polygon) throws IllegalArgumentException, SecurityException
polygon
- SecurityException
IllegalArgumentException
public static IGeneObj selectNearest(IGeometry geom, IFeatureCollection<? extends IGeneObj> features, double distanceMax)
geom
- features
- distanceMax
- public static IFeature selectNearestFeature(IGeometry geom, IFeatureCollection<IFeature> features, double distanceMax)
geom
- features
- distanceMax
- public static Set<IFeature> selectNearestN(IGeometry geom, IFeatureCollection<? extends IFeature> features, int n, double step)
geom
- features
- distanceMax
- public static Vector<Object> selectNearestWithDistance(IGeometry geom, IFeatureCollection<IGeneObj> features, double distanceMax)
geom
- features
- distanceMax
- public static IGeneObj selectContains(IGeometry geom, IFeatureCollection<IGeneObj> features)
Copyright © 2016 Laboratoire COGIT, IGN. All rights reserved.