On Tue, 3 Aug 2004, Cummings, Mike wrote:

> Below I have written some code where I overlap a polyline with a circle
> to create another polyline with the ends being the center of the circle
> and the other at the "edge". I could use the objectgeography commands to
> get the "edge" point.  My problem is that the point created isn't on the
> polyline.  Can someone explain what is going on?  Where I went wrong or
> I'm I doing some sort of Bozo-no,no.     

Yup. It's a Bozo no-no. o_nline is a polyline, and OBJ_GEO_LINEENDX 
applies to lines only. For polylines, you have to get the number of nodes 
with n = ObjectInfo (o_nline, OBJ_INFO_NPOLYGONS+1) and the the x,y 
coordinates with f_long4 = ObjectNodeX(o_nline, 1, n) and f_lat4 = 
ObjectNodeY(o_nline, 1, n).

This assumes, of course that there is only one section in your polyline, 
and that the last node is the one on the circle's edge.

- Bill Thoen



---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 12832

Reply via email to