[GRASS-user] Import postgis vector form schema
matteo poletti
pollo1_91 at yahoo.it
Fri Feb 10 05:33:08 EST 2012
Thank you very much! I solved it...
Martin Landa wrote:
>> v.in.ogr [...] layer=administrative.test
>
> it should work in GRASS 7, I didn't try GRASS 6...
Yes it works also in GRASS 6! I tried with a layer that wasn't in the table geometry_columns of postgis, so it failed. With another one it works...
Moritz Lennert wrote:
> In order to import data from a PostGIS database into GRASS using
schemas, you have to use the active_schema parameter in the connection
string, i.e. (using > the PostGIS import example from the v.in.ogr man
page):
>
> v.in.ogr dsn="PG:host=localhost dbname=postgis
user=postgres active_schema=myschema" layer=polymap output=polygons
type=boundary,centroid
Also this solution worked for me!
Thank you for the great help!
Bye,
Matteo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20120210/5edc1c1d/attachment-0001.html
More information about the grass-user
mailing list