Author Topic: Translate WGS84 COORDINATES (GOOGLE)  (Read 4178 times)

0 Members and 1 Guest are viewing this topic.

FELIX

  • Bull Frog
  • Posts: 242
Translate WGS84 COORDINATES (GOOGLE)
« on: September 24, 2014, 10:09:26 PM »
Having geographic coordinates or UTM WGS84 DATUM relocate to another.
OK.

kraz

  • Guest
Re: Translate WGS84 COORDINATES (GOOGLE)
« Reply #1 on: September 28, 2014, 08:22:47 PM »
You can transfer coordinates to other datum in AutoCAD Map3D.
Use MapCSAssign in Command or ade_proj...function in Lisp.

Code - Auto/Visual Lisp: [Select]
  1. (defun proj (fproj tproj point)
  2.  (ade_projsetsrc fproj)
  3.  (ade_projsetdest tproj)
  4.  (ade_projptforward point)
  5. )

this is my coordinates trnasfer function in AutoCAD Map3D.

FELIX

  • Bull Frog
  • Posts: 242
Re: Translate WGS84 COORDINATES (GOOGLE)
« Reply #2 on: September 28, 2014, 11:02:33 PM »
You can transfer coordinates to other datum in AutoCAD Map3D.
Use MapCSAssign in Command or ade_proj...function in Lisp.

Code - Auto/Visual Lisp: [Select]
  1. (defun proj (fproj tproj point)
  2.  (ade_projsetsrc fproj)
  3.  (ade_projsetdest tproj)
  4.  (ade_projptforward point)
  5. )

this is my coordinates trnasfer function in AutoCAD Map3D.

AND IN AUTOLISP?
OK.

VovKa

  • Water Moccasin
  • Posts: 1631
  • Ukraine
Re: Translate WGS84 COORDINATES (GOOGLE)
« Reply #3 on: September 29, 2014, 04:50:34 AM »
AND IN AUTOLISP?
there are no built-in lisp functions to do coordinates conversions
you can either use Map's api or write your own functions

FELIX

  • Bull Frog
  • Posts: 242
Re: Translate WGS84 COORDINATES (GOOGLE)
« Reply #4 on: September 29, 2014, 09:18:07 AM »
AND IN AUTOLISP?
there are no built-in lisp functions to do coordinates conversions
you can either use Map's api or write your own functions

I know programming in Autolisp not know Topography. I need the formulas and datum conversion if already in better Autolisp.
OK.

kraz

  • Guest
Re: Translate WGS84 COORDINATES (GOOGLE)
« Reply #5 on: September 29, 2014, 08:32:28 PM »
AND IN AUTOLISP?
there are no built-in lisp functions to do coordinates conversions
you can either use Map's api or write your own functions

I know programming in Autolisp not know Topography. I need the formulas and datum conversion if already in better Autolisp.

Datum Projection is very complex.
UTM zone is divided into several like utm-39N, utm-34S, utm-52N.......(refer attached image file)
Each zone has own projection parameters(7 or 4 parameters).
but you can easily project coordinates on autocad map3d or autocad civil...not autocad.
(defun proj (fproj tproj point)
;fproj:original projection
;tproj:to projection
;point: list of coordinates
;ex: (proj "UTM84-15N" "LL84" (list xxxxxx.xxxx xxxxx.xxxx))
 (ade_projsetsrc fproj)
 (ade_projsetdest tproj)
 (ade_projptforward point)
)
This is projection function on autocad map3d.
And if you want to make your function, refer map projection library in other language.

FELIX

  • Bull Frog
  • Posts: 242
Re: Translate WGS84 COORDINATES (GOOGLE)
« Reply #6 on: October 03, 2014, 12:13:26 AM »
The formula is very complex and extensive. I thought existed in Autolisp. In the next month I will create this function and put as available here. If someone out there has already done, I am grateful.
ok.
OK.