Opened 8 years ago

Closed 8 years ago

#1518 closed defect (fixed)

Misunderstanding with different topology format

Reported by: lucadelu Owned by: grass-dev@…
Priority: normal Milestone: 6.4.2
Component: LibVector Version: 6.4.2 RCs
Keywords: vector, topology Cc:
CPU: Unspecified Platform: All

Description

If you imported a file with GRASS7 and try to do some analysis with GRASS6 it return the following error:

ERROR: Topology format version 5.1 is not supported by this release. Try to rebuild topology or upgrade GRASS.

For my point of view it isn't clear that the problem is related to GRASS7, because the words "version 5.1" are misleading. I suggest to change the error string with something more clear.

Change History (4)

comment:1 Changed 8 years ago by mmetz

In GRASS 7, the coor file format version is 5.1, as are the topo and sidx file format versions, and the cidx file format version is 5.0. These are internal versions that may or may not have changed across major GRASS version changes. Changing this version numbering and the related messages is possible for GRASS 7, but I'm afraid not for GRASS 6. As a user, you will just have to rebuild topology or upgrade to a newer GRASS version. As a developer, you can check include/vect/dig_defines.h to check versions and backward compatibility. Note that the GRASS version in use has no chance to figure out the version numbers of GRASS used to create the vector, all it can say is that the creating version must have been some GRASS version VERSION_MAJOR + x.

Markus M

comment:2 Changed 8 years ago by neteler

I believe that Luca only want to achieve that the rather cryptic "ERROR: Topology format version 5.1 is not supported by this release..." is changed to something like "ERROR: Topology format V5.1 of GRASS 7 is not supported by this GRASS 6 release...".

markusN

comment:3 in reply to:  2 Changed 8 years ago by mmetz

Replying to neteler:

I believe that Luca only want to achieve that the rather cryptic "ERROR: Topology format version 5.1 is not supported by this release..." is changed to something like "ERROR: Topology format V5.1 of GRASS 7 is not supported by this GRASS 6 release...".

Fixed to "ERROR: This version of GRASS (<MAJOR>.<MINOR>) is too old to read this topology format. Try to rebuild topology or upgrade GRASS to at least version <MAJOR + 1>." Same for category index and spatial index, and in all branches (r52821-3).

Markus M

comment:4 Changed 8 years ago by neteler

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.