Tag Info

New answers tagged

1

I am familiar with the OSM plugin, however I mainly use the "Download, Extract, and Symbolize OSM Data" tool. When I use this, I enable "Extract OSM Tags into Standalone Attributes." The feature classes that are output have a large number of fields joined representing multiple attributes (most are Null), and I am able to label roads or other features using ...


1

I get the same nasty effect if I load the data with Add vector layer using the ogr driver: <provider encoding="System">ogr</provider> Alternatively (and the preferred way) I can load the data with Add spatialite layer. The encoding line changes to: <provider encoding="System">spatialite</provider> which is wrong ...


2

Ok, found at least one working solution. After finding that on Linux everything is fine suspected the default encoding in Windows. So I opened the QGIS project file (*.qgs) in PSPad and found this in layer description: <provider encoding="System">ogr</provider> So probably QGIS uses CP1250 encoding as default in Windows while the database is ...


0

You can use Spatial Manager Desktop to import OSM data into PostGIS. Please, watch this post: http://www.spatialmanager.com/import-directly-postgis-databases/ There is a limited trial version ,you can download it here: http://www.spatialmanager.com/downloads/ If you need help on this feel free to tell me. Disclaimer: I work for Opencartis (Spatial Manager ...


1

First, use https://mapzen.com/metro-extracts/ for more up to date data. Second, you seem to be loading a raw osm file, and not a shapefile. Please try the same with "osm2pgsql shp" or "imposm shp" file for your region.


0

Thanks @Crhis W , I tried the angle system, and it really works! I computed the bearing for each line, coded each bearing as: NE - NW - SE - SW in another field. Then flipped it, if there was a -1 on its "one way" attribute field, and voilĂ , there you have!!. Here an example: All I need now is to know how to compare automatically. I have thought about ...


0

I would start with TileMill, some excellent open source software. This will allow you to design maps, pulling data from shape files, postgis, etc, and render then via Mapnik to various different formats. TillMill is used by the OSM project for rendering their tiles. TillMill has a form of CSS for designing maps, called CartoCSS, and this is used to ...


1

Depending on how confident you are with technical setups, rather than running local GeoServers, you could use something like TileMill to generate MBTiles files of all your images, or just the images using Invar. This can then be show by simple python code like TileStache. This would be a much lighter weight setup.


1

For Openstreetmap, the parameters are quite simple: http://www.openstreetmap.org/#map=10/47.1911/2.4884 http://www.openstreetmap.org/#map= : base url 10/ : zoom level 47.1911/ : latitude of center, North positive 2.4884 : longitude of center, East positive ...


1

AFAIK there is currently no 'best practise' on how you organize the OSM data at your PostGIS backend. There are different database schemas that are tuned for specific purposes: rendering geospatial lookups / reverse geocoding fulltext search / gazetter ... If you have a very specific usecase, you might tweak the OSM importer mappings (e.g. at osmosis or ...


0

one option is to download the osm data for the required country and view it uisng QGIS ... you might want to refer to this link .. How do I load OSM vector data in QGIS 2.x?


1

Selfrendering for smaller regions is easy with maperitive. The result almost looks like original Openstreetmap tiles. For browsing, Openlayers is all you need. Instead of fetching online tiles, you can supply an adress on disk using file:///, or use a local apache server to use http://localhost. Qlandkarte is also able to load locally stored tiles using ...


2

For the satellite tiles, you could render them yourself using Mapnik. Landsat and NAIP are two sources of free satellite raster data. edit: I've also just come across a growing dataset (also free) of High Resolution Orthoimagery, which I've never used, but is much higher detail than the other two sources.


1

They are called diff updates. You have two options .. Apply the Diffs from PlanetOSM and then remove the imported geometry that are outside of your bounding box Use the Geofabrik Extracts for North America and apply the Geofabrik diffs which are updated daily. I do both, 3 minute diff updates for the planet and daily diff updates for the Philippines, in ...


2

Your approach looks ok to me. On my local system, I skipped the TileCache part. Mapnik fills the folders in the way Openlayers reads them from disk using file:///... I don't know if leaflet can do it the same way. For the satellite tiles: You have no chance to get them legally. Google and bing do not like storing their tiles locally. If you have ...


0

The term for what you want to do is incremental updating so I recommend that you look at the Osm2pgsql page where it says: osm2pgsql has two main modes of running - normal and slim mode. It is highly recommended to run osm2pgsql in slim mode. Some important features (including incremental updates (planet diffs, the initial load to populate the ...


0

Well you can let it be created on the "public" schema and after: - ALTER TABLE IF EXISTS public.actions SET SCHEMA gis; - ALTER TABLE IF EXISTS public.schema_info SET SCHEMA gis; - ALTER TABLE IF EXISTS public.users SET SCHEMA gis; - ALTER TABLE IF EXISTS public.way_nodes SET SCHEMA gis; - ALTER TABLE IF EXISTS public.relations SET SCHEMA gis; - ...


0

We provide a free OSM converter, which you can use to import OSM data into our routing solutions. Could be either RW NetServer 3 (standalone server application) or RW Net 4 (.NET component). Both can be seen on www.routeware.dk and provides standard features such as routing, driving directions, travelling salesman optimization etc.


2

I usually do this using QGIS. I load the kml layer, save as shapefile and add the columns that are necessary for rendering. Then I open a connection to my postgis database, delete everything inside the current view, and copy-and-paste the kml data into the postgis layer. I have created a separate bboxdb inside postgis for such cases, so my original osm ...


2

You have to expand the default.style of osm2pgsql to import the local name as well. The file is a simple text file, which you can edit with any text editor. You will find a line node,way name text linear inside. This will import only the international readable name. For local names, add node,way name:ja text linear ...


0

pgRouting is another routing option using OpenStreetMap data. pgRouting.org pgRouting extends the PostGIS / PostgreSQL geospatial database to provide geospatial routing functionality. Core Features pgRouting provides functions for: All Pairs Shortest Path, Johnson’s Algorithm All Pairs Shortest Path, Floyd-Warshall Algorithm Shortest Path ...


2

GraphHopper (using OpenStreetMap Data) GraphHopper offers memory efficient algorithms in Java for routing on graphs. E.g. Dijkstra and A* but also optimized road routing algorithms like Contraction Hierarchies. It stands under the Apache License and is build on a large test suite. OpenStreetMap is directly supported from GraphHopper. Without ...


0

Looks like you need something like Osmosis or imposm. These are tools that will convert raw OSM data output by JOSM into a custom postgis format. Because OSM is free-tagging, there is no "official" way to convert the XML into a usable data structure that a GIS can read. The main importers currently focus on roads, buildings, points of interest etc. because ...


0

Not that I'm aware of (although there may be some ways to automate the steps in that tutorial with a python script). If you wanted to go really high-tech (with a corresponding increase in the setup time) then you could setup a postgis database of the area you are interested in (with the tags you are interested in) using something like Osmosis or imposm and ...


0

I created parser to modify the XML nodes I wanted to change. marked those nodes as changed. and saved as a new JSON XML file. Loaded the change XML and JSON happily uploaded it. it worked perfectly.


0

I'm not having osmosis running on my machine right now so I'm not sure. However, you could try to remove the quotations marks from the highway values and simply seperate them with a comma. Furthermore, expand the "accept-nodes" part of your query with amenity=* and tourism=*.


3

Since the update of the OSM plugin, all editing and uploading functions of the plugin are removed. The standard OSM editors have much better capabilities of editing and internal checking than QGIS can provide. The manual page you mentioned has been forgotten to be dropped. Maybe underdark can do something about that.


0

Vivek, one issue you will have is for very long ways. Returning the OSMid for a long way will inhibit that whole way being used, rather than a possible simple route around the problem area. If your area is not huge, (city size) you may want to consider PG_Routing as you can dynamically update the routing tables for an individual segment based on a lat long ...


0

Are you more interested in the data or the tool? I always use overpass api service as the query builder is more straightforward http://wiki.openstreetmap.org/wiki/Overpass_API


2

What you are looking for is called 'reverse geocoding' and is implemented e.g. with Nominatim API


0

So, after following Carsten's suggestion from the comments, I could finally generate a routing database for the entire world. The catch was to use the tileSize command line argument from osm2po. The actual values that I used were java -Xmx8192m -jar osm2po-core-4.8.8-signed.jar prefix=world tileSize=10x10,1.0 planet-140430.osm.pbf in case you are wondering ...


1

You might be able to extract some information or use Open Street Maps as a Base. Here you can search for some datasets through data.gov ArcGis provides street and highways at a certain resolution. A quick google search may yield you more results depending on what exactly you're looking for. But the above should serve you well! There may be other ...


0

A russian mapper has made a tool for road network generalization, but it has three drawbacks: It's in Visual Basic. It reads and produces .mp files made with osm2mp. Documentation is in Russian. Sadly, @Mapper is right: there is no such general-purpose solution not only for OpenStreetMap data, but in general, for any open geodata format.


3

There is a plugin for that: Leaflet.Terminator.


0

I Finally found the relevant post from Paul Norman and Andre Joost on a similar Question .. What is occuring appears to be a somewhat subtle bug with osm2pgsql where osm2pgsql requires id-sorted nodes, but the API does not guarantee that. The easiest solution is to import with --slim --drop. The --slim flag causes osm2pgsql to use the database instead of ...


0

It seems you encountered a strange bug inside the osm importer. It expects the nodes to be ordered, but they are not. Using QGIS, I get the same strange 4-node polygon using Add Vector layer from GDAL , but the Openstreetmap plugin does it right (i.e. it self-orders the nodes). It looks like osm2pgsql expects the nodes ordered as well, but the export ...


1

I would definitely recommend going with the flow you're thinking of now (your geometries in CartoDB, your tiles in Mapbox, point to those tiles from CartoDB). The data problem is a big one! If you can, I would use the basic Mapbox map editor (web-based, not TileMill). There you are essentially styling Mapbox's data, so you don't have to think about that, ...


2

No, you don't need a special apache module. You don't even need a webserver at all because you can just to open file:///C:/Profiles/ApachePHP/apache/www/mwork/maperitive_test1/index_leaf.html in your browser. The problem is your osmUrl. Either you have to make C:\Profiles\Maperitive\Tiles available through your webserver. Or you have to replace the URL with ...


0

I fix the same issue on CentOS machine by installing proj-epsg package.


2

The approach i've taken to this same problem was to show the 5 highest peaks in each tile at zooms < 14, and then show all above 14, which looks pretty good most of the time. This approach does assume that the content of the ele tag is valid, which it frequently is. If you need better elevations you could run some sort of script to lookup the elevations ...


0

I assume that you just need to create an appropriate filter in your style which should contain "ele" tag. For example: layer[zoom>=12][zoom<=14][natural=peak] { [ele>3500] { ... } } layer[zoom>=15][zoom<=16] { [ele>1500] { ... } } This approach helps you separate all peaks by zoom levels. Note, that "ele" column contains string values. It means ...


1

No, you cannot do that with OSM data alone. You will need additional information, like elevation data obtained from SRTM, and calculate the "relevance" of each peak for yourself.


0

AFAIK there is currently no ready to use solution to generalize a (per lane) roadnetwork and reduce the complexity.


0

At least it is in the pbf file: I filtered the file with osmosis for ref="B 10", and loaded the result into QGIS. Osm2pgsql needs a bit longer, but has the line in the same way. Same osm2pgsql version, but with an extended default style, and 32bit PostgreSQL 9.3 using Windows 7. EDIT Mapnik for Windows is currently only available for 32bit, so you ...


3

Just edit the renderd.conf and add a section for your second style (make sure the "URI" entry points to a different path than that of your default style). For example, my renderd.conf contains the sections [default] XML=/etc/mapnik-osm-carto-data/osm.xml URI=/osm/ DESCRIPTION=This is the standard osm mapnik style HOST=host.my CORS=* MINZOOM=0 MAXZOOM=20 ...


0

No, there is currently no way to full import 3D city models into OSM. The reason is, that OSM 3D abilities use a completely different approach for 'semi 3D' micromapping, while existing formats as City GML use pure 3D models. If you want to mix both aspects, you need to export an OSM 3D model and export your properitary 3D model and combine both in a open ...


2

I imported a Planet File on a 24Gb Machine (Ubuntu Trusty) with the following .. bzcat planet-latest.osm.bz2 | osm2pgsql --verbose -U YourUser --flat-nodes flat-nodes --keep-coastlines --cache 24000 --hstore --hstore-add-index --tablespace-index pg_default --exclude-invalid-polygon --number-processes 6 --unlogged --cache-strategy dense --extra-attributes ...


2

Your computer should be fine for importing Europe. Given your dataset size and computer, I'd recommend something like this osm2pgsql -c -S /usr/share/osm2pgsql/default.style --slim -d osm-europe --flat-nodes flat-nodes.bin --number-processes 8 -C 20000 europe-latest.osm.pbf I'm assuming that you have an 8 thread CPU, if not, adjust --number-processes. ...


2

Shapefiles can be directly loaded in JOSM, after you install opendata plugin. Beware that importing data from shapefile is not considered good as it has to mix the more complex osm data structure. Also you have to consider the source and license of the shapefile. You can only contribute data which is compatible with osm's ODBL license.


1

I've put a lot of time into trying to get route-me to render vectors. In my opinion using the built in vector rendering, RMPath and markers does not scale to the amount of data needed to render a map. That doesn't mean that route-me isnt an isn't an option, you could use mapnik to do the rendering, then pass the data to route-me to render. As of now there ...



Top 50 recent answers are included