Details Ticket 2149


Comment | Reply | Take | Open


Serial Number 2149
Subject v.out.shape does not export pgsql table in dbf format
Area bug
Queue grass
Requestors lorenzo.moretti@bologna.enea.it
Owner none
Status resolved
Last User Contact Wed Oct 8 15:13:02 2003 (5 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Tue Mar 1 10:25:31 2005 (3 yr ago)
Created Wed Oct 8 14:54:52 2003 (5 yr ago)

Transaction History Ticket 2149


Wed, Oct 8 2003 14:54:52    Request created by guest  
Subject: v.out.shape does not export pgsql table in dbf format

Platform: Mac OS X 10.2.8
grass obtained from: Other (CDROM etc) Fink distribution (http://fink.sf.net/)
grass binary for platform: Compiled from Sources
GRASS Version: 5.0.2

Error in dbf output in module v.out.shape.
When I enter the db table of my postgres database linked with grass map I have
this message:
BUS ERROR
and I have 3 files with suffix shp, shx, dbf and dbf file is empty.
If I don't enter table=xxxxxx the v.out.shape run without error. It creates 3
file with dbf file with 
single attribute.
Inside the program all work: I can query db data linked with vector files.
There is an error when I want to export vector graphics with data in PostgreSQL
table to ESRI 
SHAPE format
Wed, Oct 8 2003 15:13:02    Mail sent by blazek@itc.it  
Return-Path <blazek@itc.it>
Delivered-To grass-bugs@lists.intevation.de
Message-Id <200310081312.h98DClk09671@janacek.itc.it.>
Content-Type text/plain; charset="iso-8859-1"
From Radim Blazek <blazek@itc.it>
To Request Tracker <grass-bugs@intevation.de>, grass5@grass.itc.it
Subject Re: [GRASS5] [bug #2149] (grass) v.out.shape does not export pgsql table in dbf format
Date Wed, 8 Oct 2003 15:12:47 +0200
X-Mailer KMail [version 1.3.2]
References <20031008125452.CA73213B88@lists.intevation.de>
In-Reply-To <20031008125452.CA73213B88@lists.intevation.de>
MIME-Version 1.0
Content-Transfer-Encoding 8bit
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=5.0 tests=BAYES_00
X-Spam-Level
On Wednesday 08 October 2003 14:54, Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=2149
> -------------------------------------------------------------------------
>
> Subject: v.out.shape does not export pgsql table in dbf format
>
> Platform: Mac OS X 10.2.8
> grass obtained from: Other (CDROM etc) Fink distribution
> (http://fink.sf.net/) grass binary for platform: Compiled from Sources
> GRASS Version: 5.0.2
>
> Error in dbf output in module v.out.shape.
> When I enter the db table of my postgres database linked with grass map I
> have this message: BUS ERROR
> and I have 3 files with suffix shp, shx, dbf and dbf file is empty.
> If I don't enter table=xxxxxx the v.out.shape run without error. It creates
> 3 file with dbf file with single attribute.
> Inside the program all work: I can query db data linked with vector files.
> There is an error when I want to export vector graphics with data in
> PostgreSQL table to ESRI SHAPE format

v.out.shape is using ODBC (db.connect). Does d.what.vect table= key= work?

Radim


Thu, Oct 9 2003 10:42:30    Mail sent by lorenzo.moretti@bologna.enea.it  
Return-Path <lorenzo.moretti@bologna.enea.it>
Delivered-To grass-bugs@lists.intevation.de
Mime-Version 1.0
Message-Id <a06002000bbaac8a4cae7@[192.107.62.86]>
In-Reply-To <20031008131306.2542113BAB@lists.intevation.de>
References <20031008131306.2542113BAB@lists.intevation.de>
Date Thu, 9 Oct 2003 10:42:14 +0200
To Radim Blazek via RT <grass-bugs@intevation.de>
From Lorenzo Moretti <lorenzo.moretti@bologna.enea.it>
Subject Re: [bug #2149] (grass) v.out.shape does not export pgsql table in dbf format
Content-Type text/plain; charset="us-ascii" ; format="flowed"
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=5.0 tests=BAYES_00
X-Spam-Level
>On Wednesday 08 October 2003 14:54, Request Tracker wrote:
>>  this bug's URL: http://intevation.de/rt/webrt?serial_num=2149
>>  -------------------------------------------------------------------------
>>
>>  Subject: v.out.shape does not export pgsql table in dbf format
>>
>>  Platform: Mac OS X 10.2.8
>>  grass obtained from: Other (CDROM etc) Fink distribution
>>  (http://fink.sf.net/) grass binary for platform: Compiled from Sources
>>  GRASS Version: 5.0.2
>>
>>  Error in dbf output in module v.out.shape.
>>  When I enter the db table of my postgres database linked with grass map I
>>  have this message: BUS ERROR
>>  and I have 3 files with suffix shp, shx, dbf and dbf file is empty.
>>  If I don't enter table=xxxxxx the v.out.shape run without error. It creates
>>  3 file with dbf file with single attribute.
>>  Inside the program all work: I can query db data linked with vector files.
>>  There is an error when I want to export vector graphics with data in
>>  PostgreSQL table to ESRI SHAPE format
>
>v.out.shape is using ODBC (db.connect). Does d.what.vect table= key= work?
>
>Radim
>

I don't use ODBC connect. I use PostgreSQL without ODBC. 
(PGHOST=www.serverpgsql.com DB=mydb) It works very well inside GRASS.

Inside GRASS I can use d.what.vect and I see the attribute in 
category. With d.what.v.pg I see the data in postgreSQL table with 
the attribute with category in Grass vector: it works.
Have I made mistake?

Does v.out.shape works only ODBC ? In manual pages it is not written.

Please an help


-- 
________________________________________________________________________
||      Lorenzo Moretti        e-mail: lorenzo.moretti@bologna.enea.it     
||/|/|  ENEA prot              Web: http://wwwamb.bologna.enea.it/    
||   |  via Don Fiammelli, 2   FTP: ftp://ftpamb.bologna.enea.it/ (ris.)
~~~~~~  40128 BOLOGNA - ITALY  Ph: +39-0516098086  Fax: +39-0516098131
________________________________________________________________________


Tue, Mar 1 2005 10:25:31    Status changed to resolved by pcavallini  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request