Vajram,<br><br>Unless you want to do this with many files, you can just mention the raster&#39;s extents in the ogr2ogr utility with the options -spat and/or -clipsrs and convert the shapefile into a new shapefile that covers the raster.<br>
<br><div class="gmail_quote">On Mon, Aug 23, 2010 at 2:56 PM, mail2vajram <span dir="ltr">&lt;<a href="mailto:mail2vajram@gmail.com">mail2vajram@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I want to access shape files using GDAL, and i have a shape file and raster<br>
image. then how to clip the shape file which covers that raster....how to do<br>
this.<br>
<br>
Thank you....<br>
<font color="#888888">--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/how-to-clip-the-shape-file-tp5451928p5451928.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/how-to-clip-the-shape-file-tp5451928p5451928.html</a><br>

Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">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>
</font></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>