[Shapelib] Creating an Arc

Frank Warmerdam warmerdam at pobox.com
Mon Jul 27 19:43:40 EST 2009


Scott Ferguson wrote:
> Hi,
> 
> I need to create an Arc in a shape file. Is this possible using shapelib? My
> understanding is that only points, polylines and polygons can be created so
> what I probably need is a way to convert an Arc to a collection of
> Polylines, is that correct?
> 
>  
> Does any one have an example of creating Arcs they can share with me?

Scott,

You are correct that shapefiles cannot store curved arcs.  The normal
technique is to approximate them as polylines.

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