public class PostGISSpatialNeighborDao extends Object implements SpatialNeighborDao
Modifier and Type | Class and Description |
---|---|
static class |
PostGISSpatialNeighborDao.Provider |
Constructor and Description |
---|
PostGISSpatialNeighborDao(PostGISDB db) |
Modifier and Type | Method and Description |
---|---|
Map<Integer,com.vividsolutions.jts.geom.Geometry> |
getKNNeighbors(com.vividsolutions.jts.geom.Geometry g,
int k,
String layerName,
String refSysName,
Set<Integer> excludeSet) |
Map<Integer,com.vividsolutions.jts.geom.Geometry> |
getKNNeighbors(Integer itemId,
int k,
String layerName,
String refSysName,
Set<Integer> excludeSet) |
gnu.trove.set.TIntSet |
getMaxDistanceKmItemIds(com.vividsolutions.jts.geom.Geometry g,
String refSysName,
Set<String> subLayers,
double maxDist)
Returns the item ids of the items spatially located with a given distance range with the geometry corresponding to the input (itemId, layerName, refSysName).
|
gnu.trove.set.TIntSet |
getMaxDistanceKmItemIds(Integer itemId,
String layerName,
String refSysName,
Set<String> subLayers,
double maxDist)
Returns the item ids of the items spatially located with a given distance range with the geometry corresponding to the input (itemId, layerName, refSysName).
|
gnu.trove.set.TIntSet |
getNeighboringItemIds(com.vividsolutions.jts.geom.Geometry g,
String refSysName,
Set<String> subLayers,
double minDist,
double maxDist)
Returns the item ids of the items spatially located with a given distance range with the geometry corresponding to the input (itemId, layerName, refSysName).
|
gnu.trove.set.TIntSet |
getNeighboringItemIds(Integer itemId,
String layerName,
String refSysName,
Set<String> subLayers,
double minDist,
double maxDist)
Returns the item ids of the items spatially located with a given distance range with the geometry corresponding to the input (itemId, layerName, refSysName).
|
Map<Integer,com.vividsolutions.jts.geom.Geometry> |
getNeighbors(com.vividsolutions.jts.geom.Geometry g,
String layerName,
String refSysName,
Set<Integer> excludeSet) |
Map<Integer,com.vividsolutions.jts.geom.Geometry> |
getNeighbors(Integer itemId,
String layerName,
String refSysName,
Set<Integer> excludeSet) |
public PostGISSpatialNeighborDao(PostGISDB db)
public gnu.trove.set.TIntSet getNeighboringItemIds(Integer itemId, String layerName, String refSysName, Set<String> subLayers, double minDist, double maxDist) throws DaoException
SpatialNeighborDao
getNeighboringItemIds
in interface SpatialNeighborDao
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)minDist
- the min distance rangemaxDist
- the max distance rangeDaoException
public gnu.trove.set.TIntSet getNeighboringItemIds(com.vividsolutions.jts.geom.Geometry g, String refSysName, Set<String> subLayers, double minDist, double maxDist) throws DaoException
SpatialNeighborDao
getNeighboringItemIds
in interface SpatialNeighborDao
g
- The starting pointrefSysName
- refSysName of the starting pointsubLayers
- the layers in which to search for the objects (in the input ref sys)minDist
- the min distance range in angularmaxDist
- the max distance range in angularDaoException
public Map<Integer,com.vividsolutions.jts.geom.Geometry> getKNNeighbors(com.vividsolutions.jts.geom.Geometry g, int k, String layerName, String refSysName, Set<Integer> excludeSet) throws DaoException
getKNNeighbors
in interface SpatialNeighborDao
DaoException
public Map<Integer,com.vividsolutions.jts.geom.Geometry> getNeighbors(Integer itemId, String layerName, String refSysName, Set<Integer> excludeSet) throws DaoException
getNeighbors
in interface SpatialNeighborDao
DaoException
public Map<Integer,com.vividsolutions.jts.geom.Geometry> getNeighbors(com.vividsolutions.jts.geom.Geometry g, String layerName, String refSysName, Set<Integer> excludeSet) throws DaoException
getNeighbors
in interface SpatialNeighborDao
DaoException
public gnu.trove.set.TIntSet getMaxDistanceKmItemIds(Integer itemId, String layerName, String refSysName, Set<String> subLayers, double maxDist) throws DaoException
SpatialNeighborDao
getMaxDistanceKmItemIds
in interface SpatialNeighborDao
itemId
- itemId of the starting pointlayerName
- layer of the starting pointrefSysName
- refSysName of the starting pointsubLayers
- the layers in which to search for the objects (in the input ref sys)maxDist
- the min distance range in kmDaoException
public gnu.trove.set.TIntSet getMaxDistanceKmItemIds(com.vividsolutions.jts.geom.Geometry g, String refSysName, Set<String> subLayers, double maxDist) throws DaoException
SpatialNeighborDao
getMaxDistanceKmItemIds
in interface SpatialNeighborDao
g
- The starting pointrefSysName
- refSysName of the starting pointsubLayers
- the layers in which to search for the objects (in the input ref sys)maxDist
- the min distance range in kmDaoException
public Map<Integer,com.vividsolutions.jts.geom.Geometry> getKNNeighbors(Integer itemId, int k, String layerName, String refSysName, Set<Integer> excludeSet) throws DaoException
getKNNeighbors
in interface SpatialNeighborDao
DaoException
Copyright © 2014. All rights reserved.