[GRASS-dev] [grass-code I][535] v.external: vector maps linked cannot be removed

code I item #535, was opened at 2007-11-22 13:55
Status: Open
Priority: 3
Submitted By: Harri Kiiskinen (harrikoo)
Assigned to: Nobody (None)
Summary: v.external: vector maps linked cannot be removed
Issue type: other bug
Issue status: None
GRASS version: CVS HEAD
GRASS component: vector
Operating system: Linux
Operating system version: Debian testing
GRASS CVS checkout date, if applies (YYMMDD): 071122

Initial Comment:
I have linked some vector maps from a PostGIS db with v.external. After linking, they show up nicely (although nothing else can be done with them, but this is not the point). The problem is, these linked vectors cannot be removed.
"g.remove vect=map1" seems to remove the data, but the map name is still shown with "g.list vect".

A detailed description of the process:

Linking with v.external works well; nothing appears in the vector-subdirectory of the mapset, but g.list vect shows that the map is there, and it shows nicely with d.vect

g.remove vect= gives the following information:

harri@pentheus:~/grass/TS/PI_AR$ g.remove vect=sites2
WARNING: Unable to delete file
         '/home/harri/work/grass/TS/PI_AR/vector/sites2/hist'
WARNING: couldn't be removed
WARNING: <sites2> nothing removed

Which is uderstandable, as there never was any 'sites2' in the vector directory.

However, something gets removed, as 'd.vect sites2' does not work anymore:

harri@pentheus:~/grass/TS/PI_AR$ d.vect sites2
WARNING: Cannot Open Vector sites2 Head File
WARNING: Unable to read head file
ERROR: Unable to open vector map <sites2@PI_AR> on topology level 0

Nor does 'v.external' provide any way to remove the maps.

Best Wishes,

Harri K.

----------------------------------------------------------------------

You can respond by visiting:
http://wald.intevation.org/tracker/?func=detail&atid=204&aid=535&group_id=21

From MAILER-DAEMON Thu Nov 22 07:55:25 2007
Return-Path: <>
X-Original-To: grass-dev@lists.osgeo.org
Delivered-To: grass-dev@lists.osgeo.org
Received: from grass.itc.it (grass.itc.it [217.77.80.24])
  by lists.osgeo.org (Postfix) with ESMTP id 46C22E01BB8
  for <grass-dev@lists.osgeo.org>; Thu, 22 Nov 2007 07:55:25 -0500 (EST)
Received: from pyrosoma.intevation.org (wald.intevation.org [78.47.251.62])
  by grass.itc.it (8.13.1/8.13.1) with ESMTP id lAMCtOiZ017589
  for <grass-dev@grass.itc.it>; Thu, 22 Nov 2007 13:55:24 +0100
Received: by pyrosoma.intevation.org (Postfix)
  id 22DC440416; Thu, 22 Nov 2007 13:55:24 +0100 (CET)
Date: Thu, 22 Nov 2007 13:55:24 +0100 (CET)
From: MAILER-DAEMON@wald.intevation.org (Mail Delivery System)
To: grass-dev@grass.itc.it
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
  boundary="63B1940402.1195736124/pyrosoma.intevation.org"
Message-Id: <20071122125524.22DC440416@pyrosoma.intevation.org>
Cc:
Subject: [GRASS-dev] Undelivered Mail Returned to Sender
X-BeenThere: grass-dev@lists.osgeo.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: GRASS GIS Development mailing list <grass-dev.lists.osgeo.org>
List-Unsubscribe: <http://lists.osgeo.org/mailman/listinfo/grass-dev&gt;,
  <mailto:grass-dev-request@lists.osgeo.org?subject=unsubscribe>
List-Archive: <http://lists.osgeo.org/pipermail/grass-dev&gt;
List-Post: <mailto:grass-dev@lists.osgeo.org>
List-Help: <mailto:grass-dev-request@lists.osgeo.org?subject=help>
List-Subscribe: <http://lists.osgeo.org/mailman/listinfo/grass-dev&gt;,
  <mailto:grass-dev-request@lists.osgeo.org?subject=subscribe>
X-List-Received-Date: Thu, 22 Nov 2007 12:55:25 -0000
Status: O
Content-Length: 3514
Lines: 100

This is a MIME-encapsulated message.

--63B1940402.1195736124/pyrosoma.intevation.org
Content-Description: Notification
Content-Type: text/plain

This is the Postfix program at host pyrosoma.intevation.org.

I'm sorry to have to inform you that your message could not be
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

      The Postfix program

<noreply@wald.intevation.org>: unknown user: "noreply"

--63B1940402.1195736124/pyrosoma.intevation.org
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; pyrosoma.intevation.org
X-Postfix-Queue-ID: 63B1940402
X-Postfix-Sender: rfc822; grass-dev@grass.itc.it
Arrival-Date: Thu, 22 Nov 2007 13:55:15 +0100 (CET)

Final-Recipient: rfc822; noreply@wald.intevation.org
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; unknown user: "noreply"

--63B1940402.1195736124/pyrosoma.intevation.org
Content-Description: Undelivered Message
Content-Type: message/rfc822

Received: by pyrosoma.intevation.org (Postfix, from userid 33)
  id 63B1940402; Thu, 22 Nov 2007 13:55:15 +0100 (CET)
Reply-To: grass-dev@grass.itc.it
To: noreply@wald.intevation.org
From: <grass-dev@grass.itc.it>
Subject: =?UTF-8?B?W2dyYXNzLWNvZGUgSV1bNTM1XSB2LmV4dGVybmFsOiB2ZWN0b3IgbWFwcyBsaW5rZWQgY2Fubm90IGJlIHJlbW92ZWQ=?=
Content-type: text/plain; charset=UTF-8
Message-Id: <20071122125515.63B1940402@pyrosoma.intevation.org>
Date: Thu, 22 Nov 2007 13:55:15 +0100 (CET)

code I item #535, was opened at 2007-11-22 13:55
Status: Open
Priority: 3
Submitted By: Harri Kiiskinen (harrikoo)
Assigned to: Nobody (None)
Summary: v.external: vector maps linked cannot be removed
Issue type: other bug
Issue status: None
GRASS version: CVS HEAD
GRASS component: vector
Operating system: Linux
Operating system version: Debian testing
GRASS CVS checkout date, if applies (YYMMDD): 071122

Initial Comment:
I have linked some vector maps from a PostGIS db with v.external. After linking, they show up nicely (although nothing else can be done with them, but this is not the point). The problem is, these linked vectors cannot be removed.
"g.remove vect=map1" seems to remove the data, but the map name is still shown with "g.list vect".

A detailed description of the process:

Linking with v.external works well; nothing appears in the vector-subdirectory of the mapset, but g.list vect shows that the map is there, and it shows nicely with d.vect

g.remove vect= gives the following information:

harri@pentheus:~/grass/TS/PI_AR$ g.remove vect=sites2
WARNING: Unable to delete file
         '/home/harri/work/grass/TS/PI_AR/vector/sites2/hist'
WARNING: couldn't be removed
WARNING: <sites2> nothing removed

Which is uderstandable, as there never was any 'sites2' in the vector directory.

However, something gets removed, as 'd.vect sites2' does not work anymore:

harri@pentheus:~/grass/TS/PI_AR$ d.vect sites2
WARNING: Cannot Open Vector sites2 Head File
WARNING: Unable to read head file
ERROR: Unable to open vector map <sites2@PI_AR> on topology level 0

Nor does 'v.external' provide any way to remove the maps.

Best Wishes,

Harri K.

----------------------------------------------------------------------

You can respond by visiting:
http://wald.intevation.org/tracker/?func=detail&atid=204&aid=535&group_id=21

--63B1940402.1195736124/pyrosoma.intevation.org--