Opened 14 years ago
Closed 14 years ago
#3692 closed defect (invalid)
ogr2ogr truncating attribute data
Reported by: | karnold | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | 1.6.3 |
Severity: | normal | Keywords: | |
Cc: |
Description
When converting a KML file to an ESRI Shapefile the description data is getting truncated to 80 characters.
Note:
See TracTickets
for help on using tickets.
Yes, this is the expected behaviour : "String fields without an assigned width are treated as 80 characters." (http://gdal.org/ogr/drv_shapefile.html)
You can workaround that with something like :
ogr2ogr yourshapefile.shp yourkmlfile.kml -sql "select cast(description as character(255)) from the_layer"