Guilhain,
The problem is that you aren't setting the precison when you create
the new fields, so it is defaulting to precision zero (integer).
You will need a call something like:
newField.SetPrecision( 11 )
Best regards,
On Mon, Sep 26, 2011 at 9:09 AM, Guilhain Averlant <[email protected]> wrote:
> Hi Everyone
>
> I'm writting a litte script that order points coordinates.
>
> But I don't know why but I have a problem when my script rebuild data
> associated to geometries.
>
> In fact I have a field in REAL who is in my new shapefile well-respected in
> Real too, but data are writting in integer...
>
> Do you have a solution ?
>
> Configuration :
> Python 2.6
> GDAL 1.8.0
> I try whit python 2.7 and GDAL 1.8.1 but the problem is still here.
>
> Guilhain
>
> PS : Script and data are attached to this email.
>
> _______________________________________________
> gdal-dev mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, [email protected]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Software Developer
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev