Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use xsltproc instead of Osmium to concatenate grid data files.
This way there is no dependency on Osmium and the result data/all.osm is sorted as usual with nodes, then ways, then relations.
- Loading branch information
Showing
4 changed files
with
2,236 additions
and
2,204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
data-files.xml | ||
data-labels.sql | ||
data-multipolygons.sql | ||
data-multipolygons.wkt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | ||
|
||
<xsl:output method="xml" encoding="utf-8" indent="yes"/> | ||
|
||
<xsl:template match="/"> | ||
<osm version="0.6" generator="testdata" upload="false"> | ||
<xsl:apply-templates select="files/file" mode="nodes"/> | ||
<xsl:apply-templates select="files/file" mode="ways"/> | ||
<xsl:apply-templates select="files/file" mode="relations"/> | ||
</osm> | ||
</xsl:template> | ||
|
||
<xsl:template match="files/file" mode="nodes"> | ||
<xsl:copy-of select="document(@name)/osm/node"/> | ||
</xsl:template> | ||
|
||
<xsl:template match="files/file" mode="ways"> | ||
<xsl:copy-of select="document(@name)/osm/way"/> | ||
</xsl:template> | ||
|
||
<xsl:template match="files/file" mode="relations"> | ||
<xsl:copy-of select="document(@name)/osm/relation"/> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |
Oops, something went wrong.