[GRASSLIST:1209] grass51 v.convert

Hi,

Now that I've got grass5.1 up and running I run into following problem. I tried to convert a map from native grass50 to native grass51 format. The following error keeps occuring whatever I do:

v.convert in=agro-eco out=agro-eco
Reading dig file...
Input file is version 4.
Input file is portable.
0 points read to memory
0 lines read to memory
10 area boundaries read and written to output
0 dead points skipped
0 dead lines skipped
0 dead area boundaries skipped
0 elements of unknown type skipped
0 elements read to memory.
Reading dig_att file...
0 point categories read
0 line categories read
4 centroids read
0 dead point categories skipped
0 dead line categories skipped
0 dead centroids skipped
0 categories of unknown type skipped
4 categories read into memory.
Attaching categories... 100%
Writing new file...
0 points and lines written to output file.
4 centroids written to output file.
dbmi: Protocol error
Broken pipe

I've looked at the map in grass50 and nothing seems out of order. Other maps convert with no problem. When triyng to display the map in grass51 I get following message:

WARNING: coor files of vector 'agro-eco@sjors' is larger than it should be
         (220704 bytes excess).
WARNING: Cannot display areas, topology not available
OUT OF MEMORY!

So I figured something's wrong with topology. So I went back to grass50 did v.support and tried again in grass51. Still it won't work.
Is this a bug or am I missing something? Anybody got a clue??

Thanks and greetings Sjors

On Friday 12 September 2003 10:40, Sjors wrote:

Hi,

Now that I've got grass5.1 up and running I run into following problem.
I tried to convert a map from native grass50 to native grass51 format.
The following error keeps occuring whatever I do:

v.convert in=agro-eco out=agro-eco

Currently, the table name is by default the same as the vector name.
'-' is not allowed in SQL table names. There was no consensus to restrict
map names to SQL names. In future, names containing incorrect characters
will be uniquely converted to correct names (function to do it, is not currently available).

Try v.convert in=agro-eco out=agro_eco

dbmi: Protocol error
Broken pipe

Most probably failed because of '-' in vector (table) name.

I've looked at the map in grass50 and nothing seems out of order. Other
maps convert with no problem. When triyng to display the map in grass51
I get following message:

WARNING: coor files of vector 'agro-eco@sjors' is larger than it should be
         (220704 bytes excess).

Because it crashed during the import and vector was not correctly closed,
coor size was not written to the file. To correct this message, open
and close the file in v.digit.

WARNING: Cannot display areas, topology not available
OUT OF MEMORY!

Again, because it crashed topology was not written, use v.build.

So I figured something's wrong with topology. So I went back to grass50
did v.support and tried again in grass51. Still it won't work.
Is this a bug or am I missing something? Anybody got a clue??

No topology is not the problem.

Radim

Hi Radim,

Thanks it's working now, after doing 'v.convert in=agro-eco out=agro_eco'.

Greetings Sjors

Radim Blazek wrote:

On Friday 12 September 2003 10:40, Sjors wrote:

Hi,

Now that I've got grass5.1 up and running I run into following problem.
I tried to convert a map from native grass50 to native grass51 format.
The following error keeps occuring whatever I do:

v.convert in=agro-eco out=agro-eco
   
Currently, the table name is by default the same as the vector name. '-' is not allowed in SQL table names. There was no consensus to restrict map names to SQL names. In future, names containing incorrect characters will be uniquely converted to correct names (function to do it, is not currently available).

Try v.convert in=agro-eco out=agro_eco

dbmi: Protocol error
Broken pipe
   
Most probably failed because of '-' in vector (table) name.

I've looked at the map in grass50 and nothing seems out of order. Other
maps convert with no problem. When triyng to display the map in grass51
I get following message:

WARNING: coor files of vector 'agro-eco@sjors' is larger than it should be
        (220704 bytes excess).
   
Because it crashed during the import and vector was not correctly closed, coor size was not written to the file. To correct this message, open
and close the file in v.digit.

WARNING: Cannot display areas, topology not available
OUT OF MEMORY!
   
Again, because it crashed topology was not written, use v.build.

So I figured something's wrong with topology. So I went back to grass50
did v.support and tried again in grass51. Still it won't work.
Is this a bug or am I missing something? Anybody got a clue??
   
No topology is not the problem.

Radim