Package com.geodesk.feature
Class FeatureLibrary
java.lang.Object
com.geodesk.feature.query.View
com.geodesk.feature.query.WorldView
com.geodesk.feature.FeatureLibrary
- All Implemented Interfaces:
Features
,AutoCloseable
,Iterable<Feature>
A Geographic Object Library containing features.
-
Field Summary
Fields inherited from class com.geodesk.feature.query.WorldView
bounds, WORLD
Fields inherited from class com.geodesk.feature.query.View
filter, matcher, store, types
-
Constructor Summary
ConstructorDescriptionFeatureLibrary
(String path) Creates a `FeatureLibrary` instance associated with an existing GOL file.FeatureLibrary
(String path, String url) Creates a `FeatureLibrary` instance associated with the given GOL file; if the file does not exist, an empty library will be created.FeatureLibrary
(Path path) Creates a `FeatureLibrary` instance associated with an existing GOL file.FeatureLibrary
(Path path, String url) Creates a `FeatureLibrary` instance associated with the given GOL file; if the file does not exist, an empty library will be created. -
Method Summary
Methods inherited from class com.geodesk.feature.query.WorldView
contains, in, iterator, newWith, select
Methods inherited from class com.geodesk.feature.query.View
membersOf, nodes, nodes, nodesOf, parentsOf, relations, relations, select, select, select, select, types, ways, ways
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.geodesk.feature.Features
connectedTo, connectedTo, containing, containing, containing, containingLonLat, containingXY, count, coveredBy, coveredBy, coveredBy, crossing, crossing, crossing, disjoint, disjoint, disjoint, first, intersecting, intersecting, intersecting, isEmpty, maxMetersFrom, maxMetersFrom, maxMetersFromLonLat, maxMetersFromXY, overlapping, overlapping, overlapping, toArray, toArray, toList, touching, touching, touching, within, within, within
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
FeatureLibrary
Creates a `FeatureLibrary` instance associated with an existing GOL file.- Parameters:
path
- the path of the GOL file.
-
FeatureLibrary
Creates a `FeatureLibrary` instance associated with an existing GOL file.- Parameters:
path
- the path of the GOL file.
-
FeatureLibrary
Creates a `FeatureLibrary` instance associated with the given GOL file; if the file does not exist, an empty library will be created.- Parameters:
path
- the path of the GOL fileurl
- the URL from which missing tiles are downloaded into the library
-
FeatureLibrary
Creates a `FeatureLibrary` instance associated with the given GOL file; if the file does not exist, an empty library will be created.- Parameters:
path
- the path of the GOL fileurl
- the URL from which missing tiles are downloaded into the library
-
-
Method Details
-
geometryFactory
-
close
public void close()Closes the library and releases its resources. **Important**: Do not call the methods of any collections or features you have retrieved from this library after you've closed it. Doing so leads to undefined results and may cause a segmentation fault.- Specified by:
close
in interfaceAutoCloseable
-
store
public com.geodesk.feature.store.FeatureStore store()
-