[GRASS-dev] Re: [GRASS GIS] #1274: PostGIS load with v.in.ogr fails
without -t
GRASS GIS
trac at osgeo.org
Mon Feb 7 12:13:33 EST 2011
#1274: PostGIS load with v.in.ogr fails without -t
------------------------+---------------------------------------------------
Reporter: arencambre | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: Default | Version: 6.4.1 RCs
Keywords: | Platform: MSWindows 7
Cpu: x86-32 |
------------------------+---------------------------------------------------
Comment(by mmetz):
Replying to [comment:2 arencambre]:
> '''db.connect -p''' returns this:
{{{
> driver:pg
> database:host=localhost,dbname=de
> schema:
> group:
}}}
> So it's trying to connect to the same database.
>
> This is a fresh install of GRASS 6.4.0, and I have never adjusted any
database connection settings. All I have done database-related is issue
the '''v.in.ogr''' command.
>
Weird. In your other post at the user ml, the grass database connection
was the standard dbf connetion. Is this a fresh install of 6.4.0 or of
6.4.1?
> Since '''db.connect -p''' apparently it picked up
'''host=localhost,dbname=de''' from '''v.in.ogr''' , shouldn't it also get
the user id and password?
db.connect should not pick up anything from v.in.ogr dsn=. In fact,
whatever is specified in the dsn option should be completely ignored by
grass because it is the duty of the OGR library to cope with the dsn
option. At least in the v.in.ogr source code, the dsn option is passed as
is, without any checks, to the OGR library. In theory, it could be that
the wxGUI is doing something with the dsn option and accidentally changes
the default database connection. That would be a bug.
Regarding current 6.4.1, are you using the new wxGUI dialog (File->Import
vector data->Common import formats) or the original command dialog which
you get when clicking that button at the bottom of the new dialog?
Markus M
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1274#comment:3>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list