Hi Even,

thank you for the explanation.

I checked back my script, it used -fieldTypeToString real, and the
TeleAtlas shapefiles stored the ID in a real(15.0) field. That's why it
worked for me.

Sig

Il giorno ven, 04/01/2013 alle 14.53 +0100, Even Rouault ha scritto:
> Selon Luca Sigfrido Percich <[email protected]>:
> 
> > 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.
> 
> Luca,
> 
> I doubt very much that this works. -fieldTypeToString is a post processing
> option. In the case reported by Uffe, the data loss occurs in the shapefile
> driver itself. -fieldTypeToString occurs too late here. -fieldTypeToString is
> mostly usefull in situations where "odd" data types (such as datetime,
> string/integer/real lists) aren't handled by the output driver.


_____________
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

Reply via email to