Click here to Skip to main content
15,884,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have searched a lot of information on the website,but not too much about using GDAL/OGR and C++ to paint vector files.Now I can read information stored in GIS .shp file with OGR library,but how to paint them on screen? Should this task be done with GDI+? I'm new in C++,I need some help?
Thank you!
Posted

1 solution

First of all, you will need the libs
- shapelib, or
- gdal/ogr

You can use OPENGL or GDI/GDI+.

To render shapelib with OPENGL use this article:
Rendering Shapefile in OpenGL[^]

Using GDAL/OGR to load shape:
http://www.gdal.org/ogr/ogr_apitut.html

Drawing using GDI:
http://msdn.microsoft.com/en-us/library/aa984364(v=vs.71).aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900