[GRASS-user] Failed export of vector, missing attribute column
Markus Metz
markus.metz.giswork at gmail.com
Thu May 16 14:16:48 PDT 2013
On Thu, May 16, 2013 at 11:40 AM, Johannes Radinger
<johannesradinger at 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 at 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 at 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 at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
More information about the grass-user
mailing list