Opened 17 years ago
Last modified 14 years ago
#1488 closed defect
real-handling in .DBF-files — at Version 3
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SF | Version: | 1.4.0 |
Severity: | major | Keywords: | shape driver |
Cc: |
Description (last modified by )
Hi There
Think I found a bug in the ogr2ogr tool (from inside the windows FWTools1.2.0):
when I try to convert an area that has large real-numbers, the sign is not treated as I expect. After convertion from source to targetfile (with only the affected area inside) the atribute-number 57520907013796 is ,. Same thing with FEATAREA. See the headers below (from ogrinfo):
Sourcefile (largebug_region.shp): ID: Real (15.0) FEATTYP: Integer (4.0) FEATAREA: Real (15.0) FEATPERIM: Real (15.0) POSTCODE: String (10.0) OGRFeature(largeitem_region):0 ID (Real) = 57520907013796 FEATTYP (Integer) = 3136 FEATAREA (Real) = 11255420040 FEATPERIM (Real) = 1202210 POSTCODE (String) = 930
but in the target (using ogr2ogr largebug_target.shp largebug_region.shp) data looks like this
ID: Real (15.0) FEATTYP: Integer (4.0) FEATAREA: Real (15.0) FEATPERIM: Real (15.0) POSTCODE: String (10.0) OGRFeature(largeitem):0 ID (Real) = -1589981532 FEATTYP (Integer) = 3136 FEATAREA (Real) = -1629481848 FEATPERIM (Real) = 1202210 POSTCODE (String) = 930
Thought you wanted to know. Let me know if you need the test-file.
regards Jesper
Change History (2)
by , 17 years ago
Attachment: | largedbfbug.zip added |
---|
comment:3 by , 17 years ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.
the .shp and dbf test files