Rashad,<br><br>I assume you are looking for a simple viewer for non-changing shapefiles.<br>You can use the GDAL library and the code from the gdal_rasterize utility.<br><br><div class="gmail_quote">On Thu, Jan 6, 2011 at 11:17 PM, Mohammed Rashad <span dir="ltr"><<a href="mailto:mohammedrashadkm@gmail.com">mohammedrashadkm@gmail.com</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;"><br><br><div class="gmail_quote"><div class="im">On Thu, Jan 6, 2011 at 11:09 PM, Christopher Barker <span dir="ltr"><<a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</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;">
<div>On 1/6/11 9:19 AM, Mohammed Rashad wrote:<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>
Instead of looking for code, I'd rather suggest to sit down and think<br>
what you need. I assure you, all you need you have in OGR tutorial<br></div>
on <a href="http://gdal.org/ogr" target="_blank">gdal.org/ogr</a> <<a href="http://gdal.org/ogr" target="_blank">http://gdal.org/ogr</a>> website. The only thing you<div><br>
need more is to pass vector data/point to rendering API you want to use.<br>
<br>
yes Mateusz Loskot, i need this part. passing the vector data/point to a<br>
rendering API.<br>
</div></blockquote>
<br>
It's still not clear quite what you want. If you just want to look at shape files, I'd use an off-the-shelf desktop GIS, there are lots, QGIS is pretty nice.<br>
<br>
You can also render shapefiles with mapnik or mapserver -- both are highly customizable and produce very nice output.<br>
<br>
If you want a library you can embed in your own app, and maybe customize, that's a different story.<br></blockquote></div><div>I need a c++ library to just display an OGR shapefile. i need to embed this C++ library in my application that what I need. Is that clear? If you need any further details i will provide. </div>
<div class="im">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
For Python you could use wxPython and my wx.lib.floatcanvas. It doesn't understand shape files, but with OGR reading them, it's very easy to throw points, lines and polygons on the canvas, and be able to zoom and pan around to look at them.<br>
<br>
We've also got the "maproom" project:<br>
<br>
<a href="https://bitbucket.org/dhelfman/maproom/overview" target="_blank">https://bitbucket.org/dhelfman/maproom/overview</a><br>
<br>
It's a bit stalled out now, but will be revived. It is designed to be a general purpose lib and application for interactive map data viewing and manipulation. It doesn't actually support shape files at the moment, but it does use GDAL/OGR and has support for points and polygons, so not hard to write a new plugin for shape.<br>
<br>
It's also using OpenGL for speedy rendering.<br>
<br>
HTH,<br>
<br>
-Chris<br>
<br>
<br>
<br>
-- <br>
Christopher Barker, Ph.D.<br>
Oceanographer<br>
<br>
Emergency Response Division<br>
NOAA/NOS/OR&R (206) 526-6959 voice<br>
7600 Sand Point Way NE (206) 526-6329 fax<br>
Seattle, WA 98115 (206) 526-6317 main reception<br>
<br>
<a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a><br>
</blockquote></div></div><br><br clear="all"><br>-- <br><font color="#888888">Rashad<br>
</font><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></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>