[Shapelib] Create Shapefile

Frank Warmerdam fwarmerdam at gmail.com
Fri Sep 9 16:49:01 PDT 2005


On 9/9/05, Eduardo Patto Kanegae <lists at webmapit.com.br> wrote:
> Check out the document: http://shapelib.maptools.org/shapelib-tools.html
> 
> shpcreate - tool for creating shp files
> 
> dbfcreate - create dbf files
> 
> shpadd - adds geometries on shp files
> 
> dbfadd - adds data to dbf files
> 
> best
> 
> Eduardo Patto Kanegae
> http://www.webmapit.com.br

Ajay, 

Eduardo's advise is good.  In particular, shpcreate.c show simple
creation of a shapefile, and shpadd shows how to add a shape to 
an existing shapefile. 

dbfcreate and dbfadd do something similar for dbf files. 

Keep in mind you need to emit one dbf record in the dbf file for each
shape in the shapefile. 

Once you have tried all that, feel free to post your own code, and 
a description of the bad behavior. 

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Shapelib mailing list