public class OsmXmlSegmenter extends OsmSegmenter
Special Java command-line parameters can be defined with the -D option to alter the operation of this class. These are:
OsmSegmenter.AcceptTileSubdirsOrPlanetWays, OsmSegmenter.BoundsToNameTag, OsmSegmenter.OpenRandomAccessFileCache, OsmSegmenter.ReportUpdates, OsmSegmenter.WayFileSorteremptyPostalQueueIdle, ESTIMATED_EXTRA_TILE_SPACE, ESTIMATED_TEMP_TILE_SPACE, FILETYPE_SUFFIXES, flushUntiled, fullPostalQueueDelay, listener, MAX_LATITUDE, MAX_LONGITUDE, MAX_WAY_READ_FILES, MIN_LATITUDE, MIN_LONGITUDE, minWaysToWrite, numAddressesSaved, numDupPostalQueueEmpty, numDupPostalQueueFull, numDupWaysDeleted, numInvalidPostal, numNodeFiles, numPatchedAddresses, numPostalQueueEmpty, numPostalQueueFull, numRelations, numSortFailures, numTileWays, numWayFiles, numWayReaderOpens, numWayReads, out, planetDos, RELATIONS_STATS_MAP_ENTRY_COMPARATOR, S_LOG_TIMESTAMP_FMT, sdfLogTimestamp, tileRootDirectory, tileTmpDirectory, unsavedWayFileCache, unsavedWaysFileCounter, untiledDos, WAY_INDEX_PREFILL, WAY_READBACK_BUF_SIZE, WAY_READBACK_MAX_BUFFERS, wayIdUsedSet, wayIndex, wayQueuesAreEmpty, wayWriterQueues, wayWriterThread, zeroLengthWayIds| Constructor and Description |
|---|
OsmXmlSegmenter(java.lang.String rootTilePath)
Constructor for bzipped XML OSM file segmenter,
|
| Modifier and Type | Method and Description |
|---|---|
protected long |
getMinHeapRequired()
Check if there is enough heap available for the importer to operate without guaranteed
OutOfMemoryErrors due to the minimum size of data structures that will be simultaneously
allocated during import.
|
void |
parse(java.io.FileInputStream fileInputStream,
NonshareableCountingBufferedDataInputStream inputStream,
java.io.File inputFile,
boolean useFixMe,
StatusListener listener)
Parse a compressed XML file into YAAC's version of OpenStreetMap tiles.
|
checkDiskSpace, closePostalAddresses, computeActiveQueueCount, computeQueuesBacklog, copyAddressFromNodeToOther, ensurePostalTablesExist, findBiggestQueue, flushPostalAddressesToDB, getFileForIndexedWay, getPostalAddressQueueSize, getWayForRelation, isPostalDbInUse, processNonStdAmenityTypes, produceSortStatusMessage, refreshMapWindows, tryToSetUpPostalDB, updateAddressesWithStreet, writePostalAddressToDbpublic OsmXmlSegmenter(java.lang.String rootTilePath)
throws java.io.IOException
rootTilePath - String pathname of the configured tile directoryjava.io.IOException - if tile directory cannot be createdprotected long getMinHeapRequired()
getMinHeapRequired in class OsmSegmenterpublic void parse(java.io.FileInputStream fileInputStream,
NonshareableCountingBufferedDataInputStream inputStream,
java.io.File inputFile,
boolean useFixMe,
StatusListener listener)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
parse in class OsmSegmenterfileInputStream - FileInputStream underlying the input stream being usedinputStream - NonshareableCountingBufferedDataInputStream reading a BZIP2-compressed XML fileinputFile - File of the OpenStreetMap snapshot file being readuseFixMe - boolean true if FIXME-tagged elements of the OSM data are to be includedlistener - StatusListener to receive progress report of the importjava.io.IOException - if the input file cannot be read or any of the output files cannot be writtenjavax.xml.parsers.ParserConfigurationException - if the Java runtime's XML parser cannot handle its configuration parametersorg.xml.sax.SAXException - if the XML parser cannot decode the file