New answers tagged

0

The reference for this is the 'network preparation' chapter of the sDNA manual https://sdna-open.readthedocs.io/en/latest/network_preparation.html In short check your OSM downloaded network is in endpoint connectivity format. OSM natively uses a shared point rule so depending on what processing was already done by your download tool/site/app/etc, you may ...


2

You can use Geopandas to read the geojson: import geopandas as gpd boundary_geojson = gpd.read_file('C:/yourfile.geojson') print(bounding_geojson.head()) You can use OSMnx (https://github.com/gboeing/osmnx) to retrieve OSM data based on a polygon: import osmnx as ox ox.geometries.geometries_from_polygon(boundary_geojson, tags = {‘building’: True}) If ...


0

There is no way to convert pgsql to pbf for osm2pgsql generated data. osm2pgsql is only one way process, currently there is no way for pgsql2osm https://github.com/openstreetmap/osm2pgsql/discussions/1481


0

OK, I tried out the OSM Attribute Selector, and it seemed to work in a reasonable amount of time adding my missing attributes. (~9 hours). It is not ideal but better than another 2 weeks!


1

You might consider doing the overlay in software like ArcGIS or one of the open source alternatives to it like QGIS, GRASS GIS, or uDig. Here are a bunch of examples made with QGIS: https://www.qgis.org/en/site/about/screenshots.html I don't know too much about the software, but I'm pretty sure it is possible to do some sort of overlay in them. These maps ...


4

A possibility to georeference, host and share maps is https://mapwarper.net/ - but be aware: check copyright restrictions before that! The best place to host such old maps are libraries with map collections. They normally host scans of map they have in physical form. But maybe they would be willing to host them if they are relevant enought. I would contact ...


0

I recently created a JavaScript library to load vector tiles (pbf) in Google Maps. https://github.com/techjb/Vector-Tiles-Google-Maps Hope it will help you.


2

One option is to convert the PBF to Spatialite using OGR2OGR: ogr2ogr -f "SQLite" -dsco SPATIALITE=YES italy.db italy.osm.pbf Then you can connect to the Spatialite database from within QGIS. Layer->Add Layer->Add Spatialite Layer Add a New connection (to italy.db) Select the Points layer Set Filter as per the following: "other_tags&...


0

I think you are wrong with the admin_level which should be admin_level=2 instead of admin_level=4, check the OSM's Wiki.


0

I found the solution was to sudo nano config.json and create my own config file.


1

I wasn't able to download buildings data from OSM with a polygon (shapefile) as the bounding box however I was able to using distance from a point with the following code: import osmnx as ox import ast point = 'point coordinates' dist = 'distance in m' buildings = ox.geometries.geometries_from_point(point, {'building': True}, dist=dist) And convert to a ...


0

Please see the related Issue and the solution. With help of the anwer at https://stackoverflow.com/questions/67008997/query-all-primary-roads-from-postgis-database-filled-with-osm-data-within-a-boun?noredirect=1#comment118462981_67008997 I was able to optimize my PostGIS Query. It is consistently faster for this opration then Overpass.


1

Or const checkbox = document.getElementById('myCheckbox') checkbox.addEventListener('change', (event) => { if (event.target.checked) { tileset.show = true; } else { tileset.show = false; } })


Top 50 recent answers are included