[Shapelib] Using Shapelib in VC++ .NET

Jianwei Sun jsun at ddti.net
Tue May 11 10:22:02 EDT 2004

Hi,  Andrew

Another way you can do is :
1> compile the library: I believe there is a makefile in the download
2> include the header : shapelib.h
3> link the library.

I just love this library. Thanks Frank!!!!


P.S. Let me know if you want the compiled library.

-----Original Message-----
From: shapelib-bounces at lists.maptools.org
[mailto:shapelib-bounces at lists.maptools.org] On Behalf Of Andrew Cooper
Sent: Tuesday, May 11, 2004 9:14 AM
To: shapelib at lists.maptools.org
Subject: [Shapelib] Using Shapelib in VC++ .NET


First I would like to thank you for offering this library to the public, and
it is greatly appreciated.

My problem:

I am new to shapelib and ArcView itself.  I am developing a VC++ .NET
windows application for converting a file into an ArcView shapefile.  I am
glad to have come across this library, but I am having a few problems.

I have #include "shapelib.h", "shpopen.c", and "dbfopen.c" to my project
(first off, I don't know if that is the correct way to add them).  Since
dbfopen.c and dbfopen.c have some of the same functions, I am getting
redifinition errors.  I have actually successfully created the .shp and .shx
files before I added the "dbfopen.c" file to my project.  Basically, I need
to know how to properly interface the shapelib library with my project.

Another question:

Is it possible for ArcView to automatically determine a projection (I
believe that is what they are called in ArcView) based on decimal degree
coordinates (or UTM) and to make a zoom to best fit a point shapefile?  
Would it be possible to code that functionality? Also, is there a way to
create layers outside of ArcView?

Thanks in advance,


Getting married? Find tips, tools and the latest trends at MSN Life Events. 

Shapelib mailing list
Shapelib at lists.maptools.org

More information about the Shapelib mailing list