pgRouting / osm2pgrouting

Import tool for OpenStreetMap data to pgRouting database
https://pgrouting.org
GNU General Public License v2.0
291 stars 111 forks source link

unrecognised option '--postgis' #257

Open ghost opened 5 years ago

ghost commented 5 years ago

From documentation, I can see that the option "--postgis" will install postgis extension if not found in the database. But, when I run a simple osm2pgrouting command with "--postgis" argument included, it says the error unrecognised option '--postgis'.

image

cayetanobv commented 5 years ago

Hi @mkamaludeen ,

What version of osm2pgrouting are you using? Could you paste here the output of osm2pgrouting -v?

Thanks,

ghost commented 5 years ago

This is osm2pgrouting Version 2.3.6

image

cayetanobv commented 5 years ago

@mkamaludeen postgis flag was removed several versions ago but we forgot to remove from docs.

CC: @cvvergara I'm reviewing code and I found you left a comment (Can I remove this comment?):

dkastl commented 5 years ago

I think --postgis flag was never supposed to install PostGIS. It would always require PostGIS to be installed on the operating system already. But the idea was to add the PostGIS extension to the database when a new database is created. Maybe the flag --postgis was misleading, so it was good to remove it.

cayetanobv commented 5 years ago

I agree @dkastl . I'm going to remove this flag from README.