Re: [GRASS-user] failing to import table

2013-09-01 Thread Hamish
Paolo wrote:
> GRASS 6.4.2-2 from Debian unstable.

just to note that Frankie & me hope to have the 6.4.3 package into 
debian/unstable
in the coming days.

remaining issue has to do with subtleties of
  http://packages.debian.org/sid/libtiff5-alt-dev


regards,
Hamish

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] v.overlay not working?

2013-09-01 Thread Hamish
MarkusN wrote:

>>  You may reconnect the table with v.db.connect.
Paolo:
> Done, it works.
> Unclear how the spurious cat crept in, however.
...
> So, apparently spaces in file name cause the issue.

right, the old vector/.../dbln file used spaces as the delim so out-of-spec(? 
[dbf]) layer names caused that trouble. In GRASS 7 that's been changed to a 
pipe (|), and support for reading dbln files using pipe as the field separator 
has been backported to GRASS 6. Also v.in.ogr in 6.x _should_ be replacing 
whitespace in dsn names with underscores now, but if the problem still seen in 
a new import maybe that isn't working? (fixed in relbr64 >1 year ago)

see  https://trac.osgeo.org/grass/ticket/1328


regards,
Hamish

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] failing to import table

2013-09-01 Thread Helmut Kudrnovsky
Paolo Cavallini wrote
> 
> Il 31/08/2013 19:07, Markus Neteler ha scritto:
> 
>> Due to time constraints at my end please test with the current stable
>> version first.
> 
> Unfortunately it is currently not possible for me right now. If there is
> anybody with
> a clean 6.4.3, I'll be happy to provide the file.
> Thanks a lot.
> 
> - -- 
> Paolo Cavallini - Faunalia

tested with 

GRASS Version: 6.4.3
GRASS SVN Revision: 57300M  
GIS Library Revision: 50937 (2012-02-25)
GDAL/OGR: 1.9.2 
PROJ4: Rel. 4.8.0, 6 March 2012 
Python: 2.7.4   
wxPython: 2.8.12.1  
Platform: Windows-Vista-6.0.6002-SP2 (OSGeo4W)

v.in.ogr dsn=J:\wd\grassshape\a b.shp output=a_b
Die Projektionsinformationen des Eingabedatensatzes und der aktuellen
Location scheinen übereinzustimmen.
Layer: a b
Zähle Polygone für 71 Objekte...
Importiere 71 Objekte der Karte...
-
Erstelle Topologie für die Vektorkarte ...
Registriere Primitive...
71 Primitive registriert
71 Vertices registriert
Anzahl der Knoten: 71
Anzahl der Primitive: 71
Anzahl der Punkte: 71
Anzahl der Linien: 0
Anzahl der Grenzen: 0
Anzahl der Zentroide: 0
Anzahl der Flächen: -
Anzahl der Inseln: -
Erstelle Topologie für die Vektorkarte ...
Registriere Primitive...
71 Primitive registriert
71 Vertices registriert
Erzeuge Flächen...
0 Flächen angelegt
0 Inseln angelegt
Füge Inseln hinzu...
Füge Zentroide hinzu...
Anzahl der Knoten: 71
Anzahl der Primitive: 71
Anzahl der Punkte: 71
Anzahl der Linien: 0
Anzahl der Grenzen: 0
Anzahl der Zentroide: 0
Anzahl der Flächen: 0
Anzahl der Inseln: 0

import (also attribute table) works here





-
best regards
Helmut
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/failing-to-import-table-tp5075176p5075450.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] v.overlay not working?

2013-09-01 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Il 31/08/2013 19:24, Markus Neteler ha scritto:

>> Vector map  is connected by:
>> layer <1> table  in database > /home/paolo/Desktop/spezia/grass/spezia/alessandra/dbf/> through driver 
>>  with
>> key 
> 
> As you see you have the spurious "cat" there.
> 
> A proper connection string looks like this:
> 
> GRASS 6.4.3svn (nc_spm_08):~/grass70 > v.db.connect -p roadsmajor
> Vector map  is connected by:
> layer <1> table  in database
>  through driver
>  with key 
> 
> You may reconnect the table with v.db.connect.

Done, it works.
Unclear how the spurious cat crept in, however.
Restarting from scratch:

v.in.ogr "dsn=/home/paolo/liguria agricola-uso suolo.shp" 
output=liguria_agricola1
snap=-1 min_area=0.0001 -o

v.db.connect -p liguria_agricola1

GRASS_INFO_MESSAGE(15222,1): Vector map  is 
connected by:
GRASS_INFO_END(15222,1)
layer <1> table  in database  through driver  
with
key 

v.in.ogr dsn=/home/paolo/liguria_agricola_test.shp output=liguria_agricola2 
snap=-1
min_area=0.0001 -o

v.db.connect -p liguria_agricola2

GRASS_INFO_MESSAGE(15272,1): Vector map  is 
connected by:
GRASS_INFO_END(15272,1)
layer <1> table  in database
 through driver  
with
key 

So, apparently spaces in file name cause the issue.

All the best, and many thanks.
- -- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlIjCMkACgkQ/NedwLUzIr4mlgCglmjb9cURYjMFUO5sd7pCSNqg
V20An1kbUh7L2mh9DJ6hI26sm6ITOFHA
=+TGL
-END PGP SIGNATURE-
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Duplicated CAT during import

2013-09-01 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Il 31/08/2013 19:22, Markus Neteler ha scritto:

> To my knowledge not possible when importing a SHAPE file since each
> row creates a new category value in the conversion from Simple
> Features to topology.

Yes, that's also my interpretation.

> You may check the cat column with v.db.select.

v.db.select map=test_import0@alessandra layer=1 columns=cat "fs=|"
cat
1
2
Operazione conclusa con successo

So, apparently it is just QGIS that displays different polygons with the same 
CAT as
different rows in the table, but grass correctly see two polygons: correct?

All the best, and thanks.
- -- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlIjBHIACgkQ/NedwLUzIr6wEQCgr34d54ZlcYIilJ195Kcz5a/D
h5YAoJq/YVAB9b4z26wCwCVv/sLnqUWW
=Das3
-END PGP SIGNATURE-
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] failing to import table

2013-09-01 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Il 31/08/2013 19:07, Markus Neteler ha scritto:

> Due to time constraints at my end please test with the current stable
> version first.

Unfortunately it is currently not possible for me right now. If there is 
anybody with
a clean 6.4.3, I'll be happy to provide the file.
Thanks a lot.

- -- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlIjATgACgkQ/NedwLUzIr4P2wCfVjtWyX23EWzBVQsUksXz2xuM
lLcAnRAvTjJgBOgjoc7q+OkwTH8cV10c
=zibT
-END PGP SIGNATURE-
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user