Re: [GRASS-user] db.out.ogr Clarification

2012-03-21 Thread Daniel Lee
Hi there, My experience is that it sometimes works better to export the vectors from GRASS as a shapefile and then use shp2pgsql to convert it. I scripted that way of exporting long ago, so I can't remember exactly the rationale behind it. If I remember correctly, the reason was that some

Re: [GRASS-user] NetCDF rotated pole

2012-03-21 Thread Eduardo Klein
Michael, Thanks a lot for the instructions. It worked perfectly on my files! Saludos, EKS On 03/20/2012 05:42 PM, Michael Barton wrote: Edwardo, I am attaching a PDF and RTF of the workflow I used to import paleocurrent data from a NetCDF file with rotated poles. While it may not exactly

[GRASS-user] Imported .e00 Yesterday, Re-import Today Yields Errors

2012-03-21 Thread Rich Shepard
Please help me to understand why an .e00 file that I imported yesterday (when dbf was the default attribute database) produces errors when I try today to re-import it using the pg database driver and I am connected (and logged in) to the appropriate database. Here is the grass_cmd_history

Re: [GRASS-user] Imported .e00 Yesterday, Re-import Today Yields Errors

2012-03-21 Thread Micha Silver
I'd bet it's because "PRIMARY" is a Postgresql (and most DB's) reserved word... Try using the cnames param to v.in.ogr to change names for all columns. On 03/21/2012 05:22 PM, Rich Shepard wrote: Please help me to understand why an .e00 file that I

Re: [GRASS-user] Imported .e00 Yesterday, Re-import Today Yields Errors

2012-03-21 Thread Rich Shepard
On Wed, 21 Mar 2012, Micha Silver wrote: I'd bet it's because PRIMARY is a Postgresql (and most DB's) reserved word... Try using the cnames param to v.in.ogr to change names for all columns. Good catch, Micha! I completely missed that, probably because I am too close to the problem.

Re: [GRASS-user] NetCDF rotated pole

2012-03-21 Thread Michael Barton
Excellent! I was warned here at NCAR that I would have a lot of trouble with these model data file unless I could find someone to help me with the arcane NCAR Computer Language (NCL) code to reproject them. When I said that with GRASS, georeferencing would not be that big a deal if I could

Re: [GRASS-user] Imported .e00 Yesterday, Re-import Today Yields Errors [SOLVED]

2012-03-21 Thread Rich Shepard
On Wed, 21 Mar 2012, Micha Silver wrote: Try using the cnames param to v.in.ogr to change names for all columns. Problems here: v.in.ogr does not recognize the ESRI export format (.e00), only ShapeFiles, and the -w option to change column names to lowercase does not change the postgres

[GRASS-user] intersection between two lines vector to obtain points

2012-03-21 Thread Pierluigi De Rosa
Hi I'm looking for a procedure to get a point vector obtained as intersection of two vector layer. I want to have the same output of v.overlay (option and) but for two line vector. So I need as geometry points located exactly at the intersection of two layers and attribute table as spatial joint

Re: [GRASS-user] intersection between two lines vector to obtain points

2012-03-21 Thread Micha Silver
On 03/21/2012 06:46 PM, Pierluigi De Rosa wrote: Hi I'm looking for a procedure to get a point vector obtained as intersection of two vector layer. You can do this with a two step procedure. First patch the two line vectors together with v.patch. Then run

[GRASS-user] How to import in GRASS .hdr?

2012-03-21 Thread José Carlos Guerrero Antúnez
Hi, I have these files: sa_asp.bil.gz sa_asp.blw sa_asp.hdr sa_asp.stx How can I import to grass? OSX 10.6.8 GRASS 6.4.2 Thanks, José Guerrero -- Dr. José Carlos Guerrero Laboratorio de Desarrollo Sustentable y Gestión

[GRASS-user] How Does GRASS Handle PostgreSQL Database Name Change?

2012-03-21 Thread Rich Shepard
I changed the database names so they represent the project rather than the state in which they're located. The postgres ALTER DATABASE command does the job quite well. Unfortunately, grass seems to be confused by the name change and any attempt to access map attributes or overlay (intersect)

Re: [GRASS-user] How to import in GRASS .hdr?

2012-03-21 Thread Daniel Victoria
Hi, bil files are a very common binary format that gdal should handle. But you might have to unpack your file, since it has the .gz extension. After unpacking the file, try to run r.in.gdal on it to import. gdalinfo shuld also give you some more information Cheers Daniel 2012/3/21 José Carlos

Re: [GRASS-user] How Does GRASS Handle PostgreSQL Database Name Change?

2012-03-21 Thread Daniel Lee
Hi Rich, I've also had trouble with using Postgres tables in GRASS and then changing them. If I deleted the tables in the past, it was always very difficult to be able to delete the corresponding vector maps. My only real positive experience in that regard has been to delete the mapset and start

Re: [GRASS-user] How Does GRASS Handle PostgreSQL Database Name Change?

2012-03-21 Thread Rich Shepard
On Wed, 21 Mar 2012, Daniel Lee wrote: I've also had trouble with using Postgres tables in GRASS and then changing them. If I deleted the tables in the past, it was always very difficult to be able to delete the corresponding vector maps. My only real positive experience in that regard has been

Re: [GRASS-user] intersection between two lines vector to obtain points

2012-03-21 Thread Daniel Lee
Hi there, Am 21. März 2012 19:05 schrieb Micha Silver mi...@arava.co.il: On 03/21/2012 06:46 PM, Pierluigi De Rosa wrote: Hi I'm looking for a procedure to get a point vector obtained as intersection of two vector layer. You can do this with a two step procedure. First patch the two

[GRASS-user] v.patch problem with resulting table

2012-03-21 Thread Stephen Sefick
I have used v.patch on about 6 or seven maps that I had to manually edit the dbf tables. All of the column headers are the same, and the v.patch -e was used. The procedure worked. now the dbf file exists, but the catagory values are not unique and I can't access the table information. what