-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make osrm-backend work with GDAL 2 #1738
Comments
@daniel-j-h Yes only used for the |
My 0.02$ to just let you know what's generally moving on the shapefile vs. GeoJSON front. @freenerd provided a 1GB shapefile, that I think came out of the |
@BergWerkGIS what about osrm-backend outputting geojson, which we then convert to shapefile before giving it out? I understand the problems in large geojson files, but as an intermediary format to convert from, it should suffice I guess. Would this be feasible? |
More updates in this regard: The old demo server uses the components tool to produce a shapefile and pushes that to a Geofabrik server. We then query this Geofabrik server e.g. here: http://project-osrm.org/osrm-frontend-v2/ (components layer, bottom left). That is, the components layer is still the outdated one from months ago, because the demo server does not do any updates any more! /cc @freenerd @danpat re. the new demo server: is it possible that we generate the components (shapefile, geojson, ...) ourselves? I talked to Fred from Geofabrik, and he is open to integrate this then e.g. at their inspector that that a lot of osm people are using at http://tools.geofabrik.de/osmi/. |
Even more updates: The Debian GIS guys seem to package an OSRM 4.7 version (which e.g. depends on lbpng..) and seem to have all the outdated cpack information in it. I think we should get in touch with them. Maybe opening a separate ticket for this. |
@daniel-j-h I broke out to two new tickets, let's look at GDAL here only. I think it would make sense to export as Geojson, since it would remove the dependency to GDAL. I have not tried it but assume GDAL's ogr2ogr would allow users to transform the Geojson to Shapefiles if needed. @TheMarex could we then also remove the |
Just tried Don't know how this would work on Linux, but on Windows I don't think that's an option for the average user. |
@BergWerkGIS yeah I don't think I agree with you that GeoJSON (like JSON or plain text formats in general) is a terrible format for bigger datasets, but it is a very convenient intermediate because it is much easier serialization target than shapefiles. We could also do geobuf but I guess that is still somewhat in flux? |
Maybe it is better to just leave this as it is? The whole point of GDAL/OGR is that it abstracts those decisions away and allows you to easily write any file format you like. And because this isn't really needed for core OSRM functionality but just for the "small components", it is not a show-stopper for any kind of release or so. I doubt many "normal OSRM users" will need this tool. I suggest we leave it as it is for now, upgrade this to GDAL 2.0 whenever we need it for our tool chain and remove the tool from the Debian package. |
@TheMarex When I am parsing JSON in tippecanoe I just look for objects with type=Feature without regard to what kind of container they are inside. My streaming JSON parser continues parsing when it reaches the end of a top-level object, so concatenated JSON objects work as a side effect of that. GeoJSON is much slower to parse than I would like, so it would be great to have another format that is easy for scripts to generate but that isn't so big and slow to work with. |
GeoPBF anyone? Although there is already WKB in this space, which it would also be fairly easy to output. |
#3570 rewrote the components tool to output GeoJSON. For the planet we currently generate a ~2 GB GeoJSON file which compresses down to ~100 MB. Closing here. |
@joto just mentioned to me that Debian wants to update their GDAL package to version 2. It seems like this breaks osrm-backend.
From a quick glance at the code, we only need GDAL for the tools (only for the components actually?).
Investigate.
The text was updated successfully, but these errors were encountered: