public class PostGISSpatialContainmentDao extends Object implements SpatialContainmentDao
Modifier and Type | Class and Description |
---|---|
static class |
PostGISSpatialContainmentDao.Provider |
SpatialContainmentDao.ContainmentOperationType
Constructor and Description |
---|
PostGISSpatialContainmentDao(PostGISDB db) |
Modifier and Type | Method and Description |
---|---|
gnu.trove.set.TIntSet |
getContainedItemIds(com.vividsolutions.jts.geom.Geometry g,
String refSysName,
Set<String> subLayers,
SpatialContainmentDao.ContainmentOperationType opType)
Returns the item ids spatially contained/intersected with the input geometry
|
gnu.trove.set.TIntSet |
getContainedItemIds(Integer itemId,
String layerName,
String refSysName,
Set<String> subLayers,
SpatialContainmentDao.ContainmentOperationType opType)
Returns the item ids of the items spatially contained/intersected with the geometry corresponding to the input (itemId, layerName, refSysName).
|
public PostGISSpatialContainmentDao(PostGISDB db)
public gnu.trove.set.TIntSet getContainedItemIds(Integer itemId, String layerName, String refSysName, Set<String> subLayers, SpatialContainmentDao.ContainmentOperationType opType) throws DaoException
SpatialContainmentDao
getContainedItemIds
in interface SpatialContainmentDao
itemId
- itemId of the containerlayerName
- layer of the containerrefSysName
- refSysName of the containersubLayers
- the layers in which to search for contained objects (in the input ref sys)opType
- whether the function should use a contains() or intersects() operationDaoException
public gnu.trove.set.TIntSet getContainedItemIds(com.vividsolutions.jts.geom.Geometry g, String refSysName, Set<String> subLayers, SpatialContainmentDao.ContainmentOperationType opType) throws DaoException
SpatialContainmentDao
getContainedItemIds
in interface SpatialContainmentDao
refSysName
- the ref sys in which to look for contained itemssubLayers
- the layers in which to look for contained itemsopType
- whether the function should use a contains() or intersects() operationDaoException
Copyright © 2015. All rights reserved.