|
I am also working with TeleAtlas (now called TomTom) data. I have written a small command-line application which takes two parameters, name of DBF and which field I want as Char. This way I can control exactly which fields are changed in the process. So, it isn't all that manual :-) If you want a copy, let me know. Regards Uffe Luca Sigfrido Percich wrote: Uffe, I have had a similar problems with TeleAtlas shapefiles with IDs stored as long Numeric fields.I resorted to the ogr2ogr -fieldTypeToString option [1] to tell ogr to convert to string all the mumeric fields, which is still an imperfect workaround but at least will keep you from manually changing the DBF files. Unfortunately the conversion is applied to all the field of the specified type. Hope this helps Sig [1] http://www.gdal.org/ogr2ogr.html Il giorno ven, 04/01/2013 alle 11.37 +0100, Uffe Kousgaard ha scritto:When DBF files has numeric fields with values > 2GB, processing fails and all values come out as -2147483648. My current work-around is manually changing the fields from Numeric to Char (changing the header of the DBF), but it is really an ugly hack and spaces for padding are wrong (numeric fields are right-aligned, while char-fields are left-aligned internally). It would be nice if at least int64 was used for integers in OGR, rather than int32. Large integers are typically used as identifiers in databases such as TomTom, OSM etc. Has this been reported before? Regards Uffe Kousgaard _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev_____________ PRIVACY Le informazioni contenute in questo messaggio sono riservate e confidenziali. Il loro utilizzo e' consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invitiamo ad eliminarlo dal Suo Sistema e a distruggere le varie copie o stampe, dandone gentilmente comunicazione all’indirizzo mail del mittente. Ogni utilizzo improprio e' contrario ai principi del D.lgs 196/03 e alla legislazione europea (Direttiva 2002/58/CE). PRIVACY Le informazioni contenute in questo messaggio sono riservate e confidenziali. Il loro utilizzo e' consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invitiamo ad eliminarlo dal Suo Sistema e a distruggere le varie copie o stampe, dandone gentilmente comunicazione all’indirizzo mail del mittente. Ogni utilizzo improprio e' contrario ai principi del D.lgs 196/03 e alla legislazione europea (Direttiva 2002/58/CE). |
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
