[GRASS-dev] [GRASS GIS] #2698: v.external/g.remove: cannot remove link to external postgis table if db no longer exists
GRASS GIS
trac at osgeo.org
Thu Jun 18 06:30:42 PDT 2015
#2698: v.external/g.remove: cannot remove link to external postgis table if db no
longer exists
-------------------------------+-------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.1.0
Component: Database | Version: svn-trunk
Keywords: external database | CPU: Unspecified
Platform: Unspecified |
-------------------------------+-------------------------
{{{
createdb testdb
psql -d testdb -c "create extension postgis"
v.out.postgis hospitals out="PG:dbname=testdb"
v.external in="PG:dbname=testdb" layer=hospitals out=pg_hospitals
dropdb testdb
g.remove vect name=pg_hospitals -f
Removing vector <pg_hospitals>
ERREUR: Connection to PostgreSQL database failed. Try to set up
username/password by db.login.
FATAL: la base de données « testdb » n'existe pas
}}}
I have to recreate the database '''and''' create the postgis extension
before I can erase the link.
The same problem arises if the database is renamed.
There should be an option to force remove externally linked maps if the
original doesn't exist anymore.
I do not have this problem with raster and vector files linked via
v./r.external and moved to another location on the disk. I can still
remove them without any problems.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2698>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list