Open Stophface opened 7 years ago
@Stophface osm has many ways to indicate maxspeed
osm2pgrouting currently covers the numeric types, and converts the value to km/hr. when it encounters a non numeric type, it complains but uses the default value found on the configuration file. if no default value is in the configuration file it uses 50km/hr.
I haven't tried it, but maybe adding a:
<type name="maxspeed" id="8">
<class name="signals" id="800" maxspeed="5<your prefered value">
</type>
to the configuration file will catch those,
Any way can you tell me which version of osm2pgrouting are you using? Latest is: This is osm2pgrouting Version 2.2
@cvvergara its version 2.1 in the OSGeo Live. Thanks for your explanation. I'll try your suggestion!
I added another strange(?) thing to my question:
Processing way's relations: Inserted: 0 way's relations.
When I check the table public.relation_ways
, it is empty, apart from the columnnames.
Should that be? The rest, 4 way types
, 36 way classes
, way tags
and ways
look fine. What are way's relations
anyway?
https://wiki.openstreetmap.org/wiki/Relation
I wonder if using the osgeo live you can update to the latest version.
but if ways is ok, you can stick with it.
@cvvergara thanks! You are really helping me out. I am following a tutorial that is using OSGeo Live. http://workshop.pgrouting.org/2.1.0-dev/en/chapters/prepare_data.html Having a look at what they copy & paste they have relations. But then, I do not know if they did the steps in the OSGeo Live. Probably not. I am sure there is a way to update... Is there a line for the shell that I could I use? I would try ::)
I dont know, I'l ask around. this is the manuals: https://github.com/pgRouting/osm2pgrouting/wiki
I try to import OSM data from New York and I get in the command line:
Unknown maxspeed3 value: signals
(70 streets in total)Further, there is
Processing way's relations: Inserted: 0 way's relations
.Should that be? The rest,
4 way types
,36 way classes
,way tags
andways
look fine. What areway's relations
anyway?Reproduce the data and error: Working with OSGeo Live 7.9 in a Virtual Box on OS X 10.10.5
Set up the database:
Then I run: