public class OsmPbfRecordIterator extends AbstractIterator<Record> implements RecordIterator
| Constructor and Description |
|---|
OsmPbfRecordIterator(DataInputStream in) |
OsmPbfRecordIterator(org.springframework.core.io.Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNode(List<Record> currentRecords,
OsmNode node) |
void |
doClose() |
protected Record |
getNext() |
RecordDefinition |
getRecordDefinition() |
boolean |
isPolygon(OsmWay way,
Geometry geometry) |
Record |
processWaysWithMissingNodes() |
protected void |
readStrings(ProtocolBufferInputStream in,
List<String> strings) |
void |
remove() |
static Date |
toDate(long time) |
static double |
toDegrees(double offset,
double granularity,
long value) |
static double |
toDegrees(long value) |
close, doInit, finalize, hasNext, init, iterator, next, setLoadNextclearProperties, getProperties, getProperty, getProperty, removeProperty, setProperties, setProperty, setPropertySoft, setPropertyWeakpublic OsmPbfRecordIterator(DataInputStream in)
public OsmPbfRecordIterator(org.springframework.core.io.Resource resource)
public static Date toDate(long time)
public static double toDegrees(double offset,
double granularity,
long value)
public static double toDegrees(long value)
public void doClose()
doClose in class AbstractIterator<Record>protected Record getNext() throws NoSuchElementException
getNext in class AbstractIterator<Record>NoSuchElementExceptionpublic RecordDefinition getRecordDefinition()
getRecordDefinition in interface RecordIteratorpublic Record processWaysWithMissingNodes()
protected void readStrings(ProtocolBufferInputStream in, List<String> strings) throws IOException
IOExceptionCopyright © 2015 Revolution Systems Inc.. All rights reserved.