<br><br><div class="gmail_quote">On Thu, Jan 6, 2011 at 11:09 PM, Christopher Barker <span dir="ltr"><<a href="mailto:Chris.Barker@noaa.gov">Chris.Barker@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 1/6/11 9:19 AM, Mohammed Rashad wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
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 class="im"><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>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>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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><br><br clear="all"><br>-- <br>Rashad<br>