mapzen / chef-mapzen_odes Goto Github PK
View Code? Open in Web Editor NEWOn Demand Extracts
License: GNU General Public License v3.0
On Demand Extracts
License: GNU General Public License v3.0
as described in #5
Users are seeing errors due to missing IMPOSM SHP output for Cardiff, Wales: https://mapzen.com/data/metro-extracts/metro/cardiff-newport-bristol-bath_england/ (error output due to missing upstream file).
Other Cardiff files are present on S3, just not that one. I checked with @sleepylemur and he suggested that an issue filed here assigned to @heffergm was the right step to fix this.
Right now, it appears as though empty IMPOSM output is not included in the zip file. For example, the Victoria extract is missing barrierways and barrierpoints downloads, even though they are defined in https://github.com/mapzen/chef-mapzen_odes/blob/master/files/default/mapping.json
If that's the correct mapping that the live extracts are using, can we get all shapefiles included even if they are empty? This will help the documentation be a bit clearer.
From a Twitter support request we're currently exporting too much precision in our GeoJSON files for Metro Extracts.
Reviewing the support request it looks like we export default of 15 coordinate precision now when 7 is plenty. This will result in smaller file sizes, a win for everyone – and the original OSM data is accurate to 7 decimal places so we're not loosing precision.
The 15 precision is coming from OGR's GeoJSON driver defaulting to 15. But it's possible to set that to 7 two different ways:
COORDINATE_PRECISION = int_number: (OGR >= 1.9.0) Maximum number of figures after decimal separator to write in coordinates. Default to 15 for GeoJSON 2008, and 7 for RFC 7946. "Smart" truncation will occur to remove trailing zeros.
SIGNIFICANT_FIGURES = int_number: (OGR >= 2.1) Maximum number of significant figures when writing floating-point numbers. Default to 17. If explicitly specified, and > COORDINATE_PRECISION is not, this will also apply to coordinates.
RFC7946=YES/NO. (OGR >= 2.2) Whether to use RFC 7946 standard. Otherwise GeoJSON 2008 initial version will be used. Default is NO (thus GeoJSON 2008)
If we're using a newer OGR >= 2.2 then we should just say RFC7946=YES
. If not then set one of the other flags (I think COORDINATE_PRECISION=7
but verify).
The code would need to be changed here for OSM2PGSQL:
chef-mapzen_odes/templates/default/shapes.sh.erb
Lines 28 to 36 in 7d6643b
And here for IMPOSM:
chef-mapzen_odes/templates/default/shapes.sh.erb
Lines 72 to 77 in 7d6643b
@heffergm the osm2pgsql files are generating now but we're still missing the imposm-geojson.zip and imposm-shapefiles.zip.
From the IMPOSM spec, https://imposm.org/docs/imposm/latest/database_schema.html#generalized-tables
the layers gen0 (tolerance 200m) and gen1 (tolerance 50m) should be different, but have the same output for both shapefiles and geojsons.
To reproduce:
A user alerted us about this through email support.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.