[postgis-users] RE: Grass to Postgres

Juanse georef@tie.cl
Tue Nov 26 00:04:11 2002


This is a multi-part message in MIME format.

---------------------- multipart/alternative attachment
I have pass the first wall. I need some Grass help.

what is the meaning of Location, mapset and database.

I sort get that they are related to the actual path where the data is? =
Am i correct?

I have made the following dir structure

Inside Home i have created Mapa dir, and inside it a vector dir and =
inside it a rio dir

/home
/home/mapa
/home/mapa/vector
/home/mapa/vector/rio

inside rio i have make two files:
 head (with nothing in it)

and frmt with
FORMAT:postgis
HOST:192.168.0.1
PORT:5432  =20
DATABASE:ejercicio
USER:postgres
PASSWORD:xxxx
GEOM_TABLE:rios
CAT_TABLE:rios
#GEOM_ID:
#GEOM_TYPE:
#GEOM_GEOM:
#CAT_ID:
#CAT_FIELD:
#CAT_CAT:

rios is a NTAM table in ejercicio. I am using it again for categories. =
Is that all right or i have to separate geometry from categories in =
pgsql/gis?

after running grass51 i have set

location:    vector
Mapset:     rio
database: /home/mapa/
<esc><enter>

welcome to grass 5.1
bla bla bla
GRASS:/home/map/vector/rio> d.mon start=3Dx0
d.mon: error while lodaing shared libraries: libpd.so: cannot open =
shared object file: No such file or directory.

GRASS:/home/map/vector/rio>

where do i have the mistake?

Do I need that pqsql library installed in the client machine? why?
Is is already installed on the pgsql server.

Do i need to make this path structure by hand for each layer i want to =
use in grass eventhough they are all stored in the same pgsql/GIS =
database?

Juanse
temuko-Chile

  ----- Original Message -----=20
  From: Richard Greenwood=20
  To: Juanse=20
  Sent: Monday, November 25, 2002 8:16 PM
  Subject: Re: Grass to Postgres


  It is no bother at all, but I'm afraid that I have not tried =
connecting to PostGIS from GRASS. I have only used PostGIS with =
MapServer. Keep trying on the GRASS list and maybe try asking the =
Refractions guys for help. And please post your finding because I would =
like to give it a try if I ever find some time.

  Best regards,
  Rich

  At 08:09 PM 11/25/2002 -0300, you wrote:

    Hi Richard
    =20
    Sorry to bother directly but seem that this Grass to Postgres is to =
much for a new comer.
    =20
    have you tried it yet?
    =20
    can i bother with some questions?
    =20
    Having the data already in postgreSQL/PostGIS, how to read it with =
Grass?
    =20
    I am making the head and frmt, but have question as to the =
definition of various entries, the same applies for location, mapset and =
database.
    =20
    Juanse
    temuko-Chile
    =20
    =20

    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.417 / Virus Database: 233 - Release Date: 08/11/02

  Richard W. Greenwood, PLS
  Greenwood Mapping, Inc.
  Rich@GreenwoodMap.com
  (307) 733-0203
  http://www.GreenwoodMap.com=20


---------------------- multipart/alternative attachment
An HTML attachment was scrubbed...
URL: http://lists.refractions.net/pipermail/postgis-users/attachments/20021125/6c361c6a/attachment.htm

---------------------- multipart/alternative attachment--