[newbie] using shapelib

View: New views
3 Messages — Rating Filter:   Alert me  

[newbie] using shapelib

by Hung Nguyen Vu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I've download shapelibe and compiled it with

wget shapelib-1.2.10.tar.gz
tar xvzf shapelib-1.2.10.tar.gz
cd shapelib-1.2.10
make lib
sudo make lib_install

And now I have it install in

/usr/local/include/libshp/shapefil.h
/usr/local/include/lib/libshp*

Shapefile APIs and DBF APIs are here:

http://shapelib.maptools.org/shp_api.html
http://shapelib.maptools.org/dbf_api.html

I want to use thoses APIs to read some shp and dbf files.

Question: Is there any example code( real world production code or
how-to style code) available?

--
Best Regards,
Nguyen Hung Vu ( Nguyễn Vũ Hưng )
vuhung16plus{remove}@... , YIM: vuhung16 , Skype: vuhung16dg
Life through a viewfinder:
http://bighugelabs.com/flickr/dna.php?username=77987497@N00

_______________________________________________
Shapelib mailing list
Shapelib@...
http://lists.maptools.org/mailman/listinfo/shapelib

Re: [newbie] using shapelib

by Frank Warmerdam-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Sep 30, 2008 at 7:44 AM, Nguyen Vu Hung
<vuhung16plus+shape@...> wrote:

> Question: Is there any example code( real world production code or
> how-to style code) available?


Hi,

The shpcreate.c / shpadd.c, dbfcreate.c and dbfadd.c
code are small example mainlines.

There are various utilities that can be examples in
the contrib directory.

Best regards,


--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@...
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent
_______________________________________________
Shapelib mailing list
Shapelib@...
http://lists.maptools.org/mailman/listinfo/shapelib

Re: [newbie] using shapelib

by Hung Nguyen Vu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2008/9/30 Frank Warmerdam <warmerdam@...>:
> The shpcreate.c / shpadd.c, dbfcreate.c and dbfadd.c
> code are small example mainlines.
Thanks. I will look at them

>
> There are various utilities that can be examples in
> the contrib directory.
I've installed proj4 and successfully make'ed under contrib.
Thanks for your help. I will take a look at it and get back if I have
any questions!

--
Best Regards,
Nguyen Hung Vu ( Nguyễn Vũ Hưng )
vuhung16plus{remove}@... , YIM: vuhung16 , Skype: vuhung16dg
Life through a viewfinder:
http://bighugelabs.com/flickr/dna.php?username=77987497@N00

_______________________________________________
Shapelib mailing list
Shapelib@...
http://lists.maptools.org/mailman/listinfo/shapelib