Opened 9 years ago

Closed 5 years ago

#2584 closed defect (wontfix)

Vectors skipping columns (character limit !!!) while exporting to OGR data

Reported by: spareeth Owned by: grass-dev@…
Priority: normal Milestone: 7.6.2
Component: LibVector Version: svn-trunk
Keywords: OGR, shapefile Cc:
CPU: Unspecified Platform: Linux

Description

Hi I am trying to export a vector data with many columns to shape format. But it seems it is avoiding all the columns with greater than 10 characters (from the pattern, not sure). Tried in GRASS 6.4.5, GRASS 7.0 svn and GRASS 7.1 svn, giving the same error.

Please find attached the packed vector layer which i tried.

v.out.ogr input=test output=test_output.shp

gives me following error, but finishes the job with remaining columns.

ERROR 6: Failed to add field named 'int_minimum'
ERROR 6: Failed to add field named 'int_maximum'
ERROR 6: Failed to add field named 'int_average'
ERROR 6: Failed to add field named 'int_variance'
ERROR 6: Failed to add field named 'int_coeff_var'
ERROR 6: Failed to add field named 'int_first_quartile'
ERROR 6: Failed to add field named 'int_third_quartile'
ERROR 6: Failed to add field named 'int_percentile_90'

Regards

Sajid

Attachments (1)

test.pack (128.9 KB ) - added by spareeth 9 years ago.
packed vector data to test.(v.pack)

Download all attachments as: .zip

Change History (6)

by spareeth, 9 years ago

Attachment: test.pack added

packed vector data to test.(v.pack)

comment:1 by martinl, 8 years ago

Milestone: 7.0.07.0.5

comment:2 by neteler, 7 years ago

Milestone: 7.0.57.0.6

comment:3 by neteler, 6 years ago

Milestone: 7.0.67.0.7

comment:4 by martinl, 5 years ago

Milestone: 7.0.77.6.2

Still relevant.

in reply to:  description comment:5 by mmetz, 5 years ago

Resolution: wontfix
Status: newclosed

Replying to spareeth:

Hi I am trying to export a vector data with many columns to shape format. But it seems it is avoiding all the columns with greater than 10 characters (from the pattern, not sure). Tried in GRASS 6.4.5, GRASS 7.0 svn and GRASS 7.1 svn, giving the same error.

Please find attached the packed vector layer which i tried.

v.out.ogr input=test output=test_output.shp

gives me following error, but finishes the job with remaining columns.

ERROR 6: Failed to add field named 'int_minimum'
ERROR 6: Failed to add field named 'int_maximum'
ERROR 6: Failed to add field named 'int_average'
ERROR 6: Failed to add field named 'int_variance'
ERROR 6: Failed to add field named 'int_coeff_var'
ERROR 6: Failed to add field named 'int_first_quartile'
ERROR 6: Failed to add field named 'int_third_quartile'
ERROR 6: Failed to add field named 'int_percentile_90'

These errors come from GDAL, I think GDAL is now changing column names automatically if they are longer than 10 characters. v.out.ogr does not handle limitations of the requested output format, this is delegated to GDAL.

Note: See TracTickets for help on using tickets.