Anita,<br><br>First, let us isolate the source of this error. QGIS or GDAL/OGR.<br>Use ogr2ogr to clip the part you did with QGIS. See the extents of the clipped shapefile using ogrinfo and use it with the ogr2ogr utility.<br>
<a href="http://www.gdal.org/ogr2ogr.html">http://www.gdal.org/ogr2ogr.html</a><br><br><div class="gmail_quote">On Tue, Feb 22, 2011 at 6:07 PM, Anita Graser <span dir="ltr">&lt;<a href="mailto:anitagraser@gmx.at">anitagraser@gmx.at</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Am 22.02.2011, 13:19 Uhr, schrieb Paolo Cavallini &lt;<a href="mailto:cavallini@faunalia.it" target="_blank">cavallini@faunalia.it</a>&gt;:<br>

<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Il giorno mar, 22/02/2011 alle 13.16 +0100, Anita Graser ha scritto:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I have a shapefile containing fields of type REAL15. I&#39;d like to cut an<br>
area of interest out of this shapefile using QGIS &quot;Save as ...&quot; function.<br>
The resulting shapefile still has fields of type REAL15 but the contained<br>
values are botched, e.g. 10400000603695 becomes -2147483648.<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I&#39;m uncertain whether the problem lies with GDAL or QGIS&#39; use of GDAL.<br>
</blockquote>
<br>
Which versions?<br>
</blockquote>
<br>
OSGeo4W r15203 with GDAL 1.8.0<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
It would be great if this problem could be resolved. Unfortunately, I<br>
can&#39;t share the original (commercial) dataset.<br>
</blockquote>
<br>
You can extract just one record, and share that one.<br>
</blockquote>
<br>
How? If I use QGIS, the values will be broken.<br>
<br>
Best wishes,<br>
<br>
Anita<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>