public interface IOpenStreetMapDao extends IDao<OpenStreetMap,Long>
Modifier and Type | Method and Description |
---|---|
long |
countEstimate() |
void |
createFulltextIndexes()
Create the fulltext index for openstreetMap
to improve performances
|
void |
createSpatialIndexes()
Create the database GIST for openstreetMap
to improve performances
|
OpenStreetMap |
getByGid(Long gid) |
OpenStreetMap |
getByOpenStreetMapId(Long openstreetmapId) |
long |
getMaxGid() |
long |
getMaxOpenstreetMapId() |
List<com.gisgraphy.domain.valueobject.StreetDistance> |
getNearestAndDistanceFrom(com.vividsolutions.jts.geom.Point point,
double distance,
int firstResult,
int maxResults,
com.gisgraphy.street.StreetType streetType,
Boolean oneWay,
String name,
com.gisgraphy.street.StreetSearchMode streetSearchMode,
boolean includeDistanceField)
base method for all findNearest
|
OpenStreetMap |
getNearestByosmIds(com.vividsolutions.jts.geom.Point point,
List<Long> ids) |
OpenStreetMap |
getNearestFrom(com.vividsolutions.jts.geom.Point point)
find the nearest street based on the shape, not the middle point
|
OpenStreetMap |
getNearestFrom(com.vividsolutions.jts.geom.Point point,
boolean onlyroad,
boolean filterEmptyName) |
OpenStreetMap |
getNearestRoadFrom(com.vividsolutions.jts.geom.Point point)
find the nearest road based on the shape, not the middle point and exclude footway
|
String |
getShapeAsWKTByGId(Long gid) |
Integer |
updateTS_vectorColumnForStreetNameSearch()
Update the ts_vector column for the street name search
(partial search and fulltext search)
|
Integer |
updateTS_vectorColumnForStreetNameSearchPaginate(long from,
long to)
Update the ts_vector column for the street name search from the gid that are >= from and < to
|
count, deleteAll, deleteAll, exists, flushAndClear, get, getAll, getAllPaginate, getPersistenceClass, remove, save, setFlushMode
List<com.gisgraphy.domain.valueobject.StreetDistance> getNearestAndDistanceFrom(com.vividsolutions.jts.geom.Point point, double distance, int firstResult, int maxResults, com.gisgraphy.street.StreetType streetType, Boolean oneWay, String name, com.gisgraphy.street.StreetSearchMode streetSearchMode, boolean includeDistanceField)
point
- The point from which we want to find GIS Objectdistance
- The radius in metersfirstResult
- the firstResult index (for pagination), numbered from 1,
if < 1 : it will not be taken into accountmaxResults
- The Maximum number of results to retrieve (for
pagination), if <= 0 : it will not be taken into acountstreetType
- The type of streetoneWay
- whether the street should be oneway or notname
- the name the street name must containsstreetSearchMode
- if we search in fulltext or contain modeincludeDistanceField
- if we have to calculate the distance or notStreetDistance
OpenStreetMap getByGid(Long gid)
gid
- the gid of the openstreetmap entity we want to retrieveInteger updateTS_vectorColumnForStreetNameSearch()
StreetSearchMode
Integer updateTS_vectorColumnForStreetNameSearchPaginate(long from, long to)
from
- the start pagination index of gidto
- the end pagination index
(partial search and fulltext search)StreetSearchMode
void createSpatialIndexes()
void createFulltextIndexes()
long countEstimate()
OpenStreetMap getByOpenStreetMapId(Long openstreetmapId)
openstreetmapId
- the openstreetmap id (not the id, not the gid)OpenStreetMap getNearestByosmIds(com.vividsolutions.jts.geom.Point point, List<Long> ids)
point
- the point to search aroundids
- the openstreetmap ids of streets we want to restrict searchlong getMaxOpenstreetMapId()
long getMaxGid()
OpenStreetMap getNearestFrom(com.vividsolutions.jts.geom.Point point)
point
- The point from which we want to find streetOpenStreetMap getNearestRoadFrom(com.vividsolutions.jts.geom.Point point)
point
- The point from which we want to find streetOpenStreetMap getNearestFrom(com.vividsolutions.jts.geom.Point point, boolean onlyroad, boolean filterEmptyName)
point
- onlyroad
- filterEmptyName
- filter street with name=nullCopyright © 2015. All rights reserved.