Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computer Aided Design - CAD > Programming with Microstation > Point Manipulat...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 413 of 451
Post > Topic >>

Point Manipulation

by freeman.matt@[EMAIL PROTECTED] Oct 23, 2006 at 07:48 AM

So I posted this thread over in the Bentley groups last week, but no
responses and I'll give it a shot here...

My group does a lot of mapping using Geographics, a GPS (which returns
lat and long) and a rangefinder (which returns distance and bearing and
heading). The five datums are written into a log file for each point we
want to plot on a drawing. I've been tasked with writing a program
which will read this logfile, im****t the base lat and long coordinates
into geographics, and then offset the coordinates using the distance
and bearing information from the rangefinder.

At this point, I can break the log file entrties into the individual
components (lat,long,dist,bear,inclin) and place these points in the
drawing in the following manner...

     CadInputQueue.SendCommand "Place Point" CadInputQueue.SendCommand
       "Gcoord point " & Longitude & "," & Latitude

I am also able to use trig and solve for the appropriate X and Y
displacment like this...

     Angle = Angle * 3.14159 / 180
     Xdisp = Cos(Angle) * Distance
     Ydisp = Sin(Angle) * Distance

Unfortunatly, this is where I run into trouble. If I simply do it like
this...

     CadInputQueue.SendCommand "Gcoord point " & Longitude + Xdisp &
       "," & Latitude + Ydisp

....Geographics interprates the X and Y disp variables as degrees
instead of feet. Needless to say, this tends to skew the offset by a
few million feet instead of the hundred or so desired.

If anyone has an idea as to how I could select the actual coordinate
points of the last thing drawn or  run the geographics coordinate
conversion in a way to return the coordinates in a manipulable form, or
anything that would work, please let me konw.

Thanks in advance.

-Matt
 




 3 Posts in Topic:
Point Manipulation
freeman.matt@[EMAIL PROTE  2006-10-23 07:48:48 
Re: Point Manipulation
olaf.giezenaar@[EMAIL PRO  2006-10-26 05:39:08 
Re: Point Manipulation
olaf.giezenaar@[EMAIL PRO  2006-10-26 05:50:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 5 18:37:36 CDT 2008.