Anita,<br><br>OGR's shapefile driver is reading the large values correctly is able to display them with ogrinfo.<br>However, newly created .dbf files get the value -2147483648.<br><br>You can track further development regarding this at <a href="http://trac.osgeo.org/gdal/ticket/3982">http://trac.osgeo.org/gdal/ticket/3982</a><br>
<br><div class="gmail_quote">On Fri, Feb 25, 2011 at 3:04 AM, Anita Graser <span dir="ltr"><<a href="mailto:anitagraser@gmx.at">anitagraser@gmx.at</a>></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;">
Hi,<br>
<br>
Thanks for your help. I've attached a sample with faulty values<br>
<br>
Best wishes,<br>
<br>
Anita<br>
<br>
<br>
Am 22.02.2011, 17:39 Uhr, schrieb Chaitanya kumar CH <<a href="http://chaitanya.ch" target="_blank">chaitanya.ch</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>>:<div><div></div><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Anita,<br>
<br>
Is it possible to send a small sample data to my email for testing? Doesn't<br>
matter if the ID field values are wrong.<br>
<br>
On Tue, Feb 22, 2011 at 9:21 PM, Anita Graser <<a href="mailto:anitagraser@gmx.at" target="_blank">anitagraser@gmx.at</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
I used the following ogr2ogr command:<br>
<br>
ogr2ogr -sql "select * from nw where NAME = 'Am Johannesberg'" new.shp<br>
nw.shp<br>
<br>
The resulting shp contains correct geometries, but the values in ID,N,15,0<br>
fields are broken.<br>
<br>
I guess that shows that it's a GDAL/OGR problem.<br>
<br>
Thanks, best wishes,<br>
Anita<br>
<br>
<br>
Am 22.02.2011, 16:33 Uhr, schrieb Chaitanya kumar CH <<a href="http://chaitanya.ch" target="_blank">chaitanya.ch</a>@<br>
<a href="http://gmail.com" target="_blank">gmail.com</a>>:<br>
<br>
<br>
Anita,<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<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<br>
clipped shapefile using ogrinfo and use it with the ogr2ogr utility.<br>
<a href="http://www.gdal.org/ogr2ogr.html" target="_blank">http://www.gdal.org/ogr2ogr.html</a><br>
<br>
<br>
</blockquote>
<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>
<br>
</blockquote>
<br>
</blockquote>
</div></div></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>