MapTools.org

[Shapelib] SHPObject

shapelib@lists.maptools.org shapelib@lists.maptools.org
Thu, 04 Mar 2004 09:08:36 -0500
shapelib-admin@lists.maptools.org wrote:
> Hi,
> i have a question to the SHPObject class.
> If i have a ployline whit 3 points (also two lines), what are the values of
> nParts and nVertics?

Michael,

If you have a polyline with 3 vertices the nParts would normally be 1 and
the nVertices 3.


> Because im confused if the nVertics are whit or whitout the startvertex, who
> is saved separate in panPartStart.

The parts concept is primarily used when a polygon has more than one ring.
Each ring is a part.  It is also possible to have multiple unconnected polylines
as part of an Arc object using different parts, but this is uncommon.

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



This archive was generated by Pipermail.