Hi,
I wanted to export a point vector to a .shp file. This works except for
a column that does not get exported. I have tried it in grass70 and grass65 (in Ubuntu)
but both without success. The attribute column that is not exported was created
in the attribute table view and populated with a sqlite-command. The column
is of type DOUBLE and stores the value 0.5 for all points.
Here the error (in grass65, but the same in grass70) :
v.out.ogr -e --overwrite input=barriers@PERMANENT type=point dsn=/path/to/output
Warning 1: Field Riv of width 1000 truncated to 255.
Warning 1: Field Site of width 1000 truncated to 255.
Warning 1: Field type of width 1000 truncated to 255.
ERROR 6: Failed to add field named ‘passability’
Exporting 20 geometries…
What is the reason for that and how can it be solved?
Best regards,
Johannes
On 16/05/2013 11:48, Johannes Radinger wrote:
Hi,
I wanted to export a point vector to a .shp file. This works except for
a column that does not get exported. I have tried it in grass70 and grass65 (in Ubuntu)
but both without success. The attribute column that is not exported was created
in the attribute table view and populated with a sqlite-command. The column
is of type DOUBLE and stores the value 0.5 for all points.
Here the error (in grass65, but the same in grass70) :
v.out.ogr -e --overwrite input=barriers@PERMANENT type=point dsn=/path/to/output
Warning 1: Field Riv of width 1000 truncated to 255.
Warning 1: Field Site of width 1000 truncated to 255.
Warning 1: Field type of width 1000 truncated to 255.
ERROR 6: Failed to add field named 'passability'
Exporting 20 geometries...
Maybe the name "passability" is too long? The dbf component of a shapefile is limited to column names of 10 characters.
What is the reason for that and how can it be solved?
Best regards,
Johannes
This mail was received via Mail-SeCure System.
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
This mail was received via Mail-SeCure System.
--
Micha Silver
GIS Consulting
052-3665918
http://www.surfaces.co.il
Hi,
of course, I just forgot again that the column name can be to long for a shapefile.
Thank you Micha!
Maybe the Error message can be improved in such cases.
/johannes
···
On Thu, May 16, 2013 at 11:01 AM, Micha Silver <micha@arava.co.il> wrote:
On 16/05/2013 11:48, Johannes Radinger wrote:
Hi,
I wanted to export a point vector to a .shp file. This works except for
a column that does not get exported. I have tried it in grass70 and grass65 (in Ubuntu)
but both without success. The attribute column that is not exported was created
in the attribute table view and populated with a sqlite-command. The column
is of type DOUBLE and stores the value 0.5 for all points.
Here the error (in grass65, but the same in grass70) :
v.out.ogr -e --overwrite input=barriers@PERMANENT type=point dsn=/path/to/output
Warning 1: Field Riv of width 1000 truncated to 255.
Warning 1: Field Site of width 1000 truncated to 255.
Warning 1: Field type of width 1000 truncated to 255.
ERROR 6: Failed to add field named ‘passability’
Exporting 20 geometries…
Maybe the name “passability” is too long? The dbf component of a shapefile is limited to column names of 10 characters.
What is the reason for that and how can it be solved?
Best regards,
Johannes
This mail was received via Mail-SeCure System.
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
This mail was received via Mail-SeCure System.
–
Micha Silver
GIS Consulting
052-3665918
http://www.surfaces.co.il
On Thu, May 16, 2013 at 11:40 AM, Johannes Radinger
<johannesradinger@gmail.com> wrote:
Hi,
of course, I just forgot again that the column name can be to long for a
shapefile.
Thank you Micha!
Maybe the Error message can be improved in such cases.
These warnings
Warning 1: Field Riv of width 1000 truncated to 255.
Warning 1: Field Site of width 1000 truncated to 255.
Warning 1: Field type of width 1000 truncated to 255.
and this error
ERROR 6: Failed to add field named 'passability'
come from the OGR library. If you want these messages to be improved,
please ask on the GDAL dev ml. GRASS can not change these messages.
Markus M
/johannes
On Thu, May 16, 2013 at 11:01 AM, Micha Silver <micha@arava.co.il> wrote:
On 16/05/2013 11:48, Johannes Radinger wrote:
Hi,
I wanted to export a point vector to a .shp file. This works except for
a column that does not get exported. I have tried it in grass70 and
grass65 (in Ubuntu)
but both without success. The attribute column that is not exported was
created
in the attribute table view and populated with a sqlite-command. The
column
is of type DOUBLE and stores the value 0.5 for all points.
Here the error (in grass65, but the same in grass70) :
v.out.ogr -e --overwrite input=barriers@PERMANENT type=point
dsn=/path/to/output
Warning 1: Field Riv of width 1000 truncated to 255.
Warning 1: Field Site of width 1000 truncated to 255.
Warning 1: Field type of width 1000 truncated to 255.
ERROR 6: Failed to add field named 'passability'
Exporting 20 geometries...
Maybe the name "passability" is too long? The dbf component of a shapefile
is limited to column names of 10 characters.
What is the reason for that and how can it be solved?
Best regards,
Johannes
This mail was received via Mail-SeCure System.
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
This mail was received via Mail-SeCure System.
--
Micha Silver
GIS Consulting
052-3665918
http://www.surfaces.co.il
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
On Thu, May 16, 2013 at 11:16 PM, Markus Metz
<markus.metz.giswork@gmail.com> wrote:
On Thu, May 16, 2013 at 11:40 AM, Johannes Radinger
<johannesradinger@gmail.com> wrote:
Hi,
of course, I just forgot again that the column name can be to long for a
shapefile.
Thank you Micha!
Maybe the Error message can be improved in such cases.
These warnings
Warning 1: Field Riv of width 1000 truncated to 255.
Warning 1: Field Site of width 1000 truncated to 255.
Warning 1: Field type of width 1000 truncated to 255.
and this error
ERROR 6: Failed to add field named 'passability'
come from the OGR library. If you want these messages to be improved,
please ask on the GDAL dev ml. GRASS can not change these messages.
You may check if there is a name collision when abbreviating the
names to 10 chars, see
v.info -c yourmap
for the list.
BTW: I just remembered
http://trac.osgeo.org/grass/ticket/1915
but it is really an OGR issue.
markusN