[postgis-users] RE: Grass to Postgres

Juanse georef at tie.cl
Mon Nov 25 16:04:11 PST 2002


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   
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=x0
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 ----- 
  From: Richard Greenwood 
  To: Juanse 
  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
     
    Sorry to bother directly but seem that this Grass to Postgres is to much for a new comer.
     
    have you tried it yet?
     
    can i bother with some questions?
     
    Having the data already in postgreSQL/PostGIS, how to read it with Grass?
     
    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.
     
    Juanse
    temuko-Chile
     
     

    ---
    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 at GreenwoodMap.com
  (307) 733-0203
  http://www.GreenwoodMap.com 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20021125/6c361c6a/attachment.html>


More information about the postgis-users mailing list