Anita,<br><br>Is it possible to send a small sample data to my email for testing? Doesn't matter if the ID field values are wrong.<br><br><div class="gmail_quote">On Tue, Feb 22, 2011 at 9:21 PM, 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>
I used the following ogr2ogr command:<br>
<br>
ogr2ogr -sql "select * from nw where NAME = 'Am Johannesberg'" new.shp nw.shp<br>
<br>
The resulting shp contains correct geometries, but the values in ID,N,15,0 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>@<a href="http://gmail.com" target="_blank">gmail.com</a>>:<div class="im"><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>
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>
</blockquote>
<br>
<br></div><div><div></div><div class="h5">
_______________________________________________<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>
</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>