Constructor and Description |
---|
OSMInputFile(File file) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
complete() |
ReaderElement |
getNext() |
int |
getUnprocessedElements() |
boolean |
isEOF() |
OSMInputFile |
open() |
void |
process(ReaderElement item) |
OSMInputFile |
setSkipOptions(SkipOptions skipOptions)
Use this to prevent the creation of OSM nodes, ways and/or relations to speed up the file reading process.
|
OSMInputFile |
setWorkerThreads(int threads)
Currently only for pbf format.
|
public OSMInputFile(File file) throws IOException
IOException
public OSMInputFile open() throws XMLStreamException
XMLStreamException
public OSMInputFile setWorkerThreads(int threads)
public OSMInputFile setSkipOptions(SkipOptions skipOptions)
public ReaderElement getNext() throws XMLStreamException
getNext
in interface OSMInput
XMLStreamException
public boolean isEOF()
public void close() throws IOException
close
in interface AutoCloseable
IOException
public void process(ReaderElement item)
public int getUnprocessedElements()
getUnprocessedElements
in interface OSMInput
Copyright © 2012–2023. All rights reserved.