public class GPXConsumer extends Object implements org.locationtech.geowave.core.store.CloseableIterator<org.locationtech.geowave.core.store.ingest.GeoWaveData<org.opengis.feature.simple.SimpleFeature>>
Caution: Developers should maintain the cohesiveness of attribute names associated with each
feature type defined in GpxUtils.
Route way points and way points are treated similarly except way points do not include the parent ID information in their ID. The assumption is that the name, lat and lon attributes are globally unique. In contrast, Route way points include the file name and parent route name as part of their ID. Routes are not assumed to be global.
| Modifier and Type | Field and Description |
|---|---|
protected static org.opengis.feature.simple.SimpleFeatureType |
pointType |
protected static org.opengis.feature.simple.SimpleFeatureType |
routeType |
protected static org.opengis.feature.simple.SimpleFeatureType |
trackType |
protected static org.opengis.feature.simple.SimpleFeatureType |
waypointType |
| Constructor and Description |
|---|
GPXConsumer(InputStream fileStream,
String[] indexNames,
String inputID,
Map<String,Map<String,String>> additionalData,
Long backTimestamp,
boolean uniqueWayPoints,
double maxLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
org.locationtech.geowave.core.store.ingest.GeoWaveData<org.opengis.feature.simple.SimpleFeature> |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected static final org.opengis.feature.simple.SimpleFeatureType pointType
protected static final org.opengis.feature.simple.SimpleFeatureType waypointType
protected static final org.opengis.feature.simple.SimpleFeatureType trackType
protected static final org.opengis.feature.simple.SimpleFeatureType routeType
public GPXConsumer(InputStream fileStream, String[] indexNames, String inputID, Map<String,Map<String,String>> additionalData, Long backTimestamp, boolean uniqueWayPoints, double maxLength)
fileStream - indexNames - inputID - prefix to all IDs except waypoints (see uniqueWayPoints)additionalData - additional attributes to add the over-ride attributes in the GPX data
file. The attribute are grouped by path. "gpx.trk", "gpx.rte" and "gpx.wpt"backTimestamp - uniqueWayPoints - if true, waypoints are globally unique, otherwise are unique to this
file and should have inputID and other components added to the identifierglobalVisibility - maxLength - public boolean hasNext()
public org.locationtech.geowave.core.store.ingest.GeoWaveData<org.opengis.feature.simple.SimpleFeature> next()
public void remove()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface org.locationtech.geowave.core.store.CloseableIterator<org.locationtech.geowave.core.store.ingest.GeoWaveData<org.opengis.feature.simple.SimpleFeature>>Copyright © 2013–2021. All rights reserved.