Hi all.
Importing a shapefile with space in the name results in an empty table of attributes.
Is this a known problem? Should I file a ticket?
GRASS 6.4.2-2 from Debian unstable.
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/
untested - I cannot publish the data, but can send it you you are interested to check.
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/
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/
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 <a_b_tmp>...
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 <a_b>...
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
I tested with post-6.4.3-release 64 release branch and it does persist.
Thanks - should I open a ticket then?
All the best.
- --
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/
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<a_b_tmp>...
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<a_b>...
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
Have you tried accessing the attribute table ? Working with it through other modules ?
What does v.db.connect -p give you ?
a_b.shp => a b.shp
a_b.dbf => a b.shp
a_b.prj => a b.shp
a_b.shx => a b.shp
_____
v.in.ogr dsn=C:\wd\a b.shp output=import_shapefile_with_spaces
Projection of input dataset and current location appear to match
Layer: a b
Counting polygons for 1832 features...
Importing map 1832 features...
-----------------------------------------------------
Building topology for vector map <import_shapefile_with_spaces_tmp>...
Registering primitives...
6462 primitives registered
322207 vertices registered
Number of nodes: 5733
Number of primitives: 6462
Number of points: 0
Number of lines: 0
Number of boundaries: 6462
Number of centroids: 0
Number of areas: -
Number of isles: -
-----------------------------------------------------
WARNING: Cleaning polygons, result is not guaranteed!
-----------------------------------------------------
Break polygons:
-----------------------------------------------------
Remove duplicates:
-----------------------------------------------------
Break boundaries:
-----------------------------------------------------
Remove duplicates:
-----------------------------------------------------
Clean boundaries at nodes:
-----------------------------------------------------
Merge boundaries:
-----------------------------------------------------
Change dangles to lines:
-----------------------------------------------------
Remove bridges:
-----------------------------------------------------
Building topology for vector map <import_shapefile_with_spaces_tmp>...
Building areas...
1832 areas built
907 isles built
Attaching islands...
Number of nodes: 6722
Number of primitives: 19851
Number of points: 0
Number of lines: 0
Number of boundaries: 19851
Number of centroids: 0
Number of areas: 1832
Number of isles: 907
Number of areas without centroid: 1832
-----------------------------------------------------
Find centroids for layer: a b
-----------------------------------------------------
Write centroids:
-----------------------------------------------------
1832 input polygons
Total area: 1.27609E+011 (1832 areas)
Overlapping area: 0 (0 areas)
Area without category: 0 (0 areas)
-----------------------------------------------------
Building topology for vector map <import_shapefile_with_spaces>...
Registering primitives...
5465 primitives registered
191205 vertices registered
Building areas...
1832 areas built
907 isles built
Attaching islands...
Attaching centroids...
Number of nodes: 4540
Number of primitives: 5465
Number of points: 0
Number of lines: 0
Number of boundaries: 3633
Number of centroids: 1832
Number of areas: 1832
Number of isles: 907
(Mon Sep 02 10:59:28 2013) Command finished (12 sec)
_____
attribute table manager opens without any problem
_____
v.db.connect map=import_shapefile_with_spaces -p
Vector map <import_shapefile_with_spaces@user1> is connected by:
layer <1> table <import_shapefile_with_spaces> in database
<C:\grassdata\nc_spm_08\user1\dbf\> through driver <dbf> with key <cat>
_____
v.report map=import_shapefile_with_spaces@user1 option=area units=hectares
Displaying column types/names for database connection of layer 1:
cat|onemap_pro|PERIMETER|GEOL250_|GEOL250_ID|GEO_NAME|SHAPE_area|SHAPE_len|area
1|141526064|232209.09375|12|11|Qp|141526058.758|232209.096991|14152.6058758046
2|163779.1875|1767.666138|14|13|Qp|163779.303257|1767.666078|16.3779303256575
3|45783944|43256.566406|15|14|Qp|45783948.3426|43256.564356|4578.39483425879
[...]
_____
Il 02/09/2013 11:18, Helmut Kudrnovsky ha scritto:
Moritz Lennert wrote
Have you tried accessing the attribute table ? Working with it through
other modules ?
What does v.db.connect -p give you ?
attribute table manager opens without any problems, some further tests below
Thanks for the tests. So it seems that this is sometimes working, sometimes not,
right? What could be the reason?
All the best.
- --
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/
Il 02/09/2013 11:18, Helmut Kudrnovsky ha scritto:
Moritz Lennert wrote
Have you tried accessing the attribute table ? Working with it through
other modules ?
What does v.db.connect -p give you ?
attribute table manager opens without any problems, some further tests below
Thanks for the tests. So it seems that this is sometimes working, sometimes not,
right? What could be the reason?
I've just tried again with a freshly checked out and compiled grass64 release branch. I cannot reproduce the error. I'm not sure what might have caused it in my previous run, but at least in the current release branch (and thus 6.4.3 probably) it seems to be working.
I've just tried again with a freshly checked out and compiled grass64 release branch.
I cannot reproduce the error. I'm not sure what might have caused it in my previous
run, but at least in the current release branch (and thus 6.4.3 probably) it seems to
be working.
ok, thanks; I'll check again as soon as 6.4.3 hits Debian.
All the best.
- --
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/