Code Red => AutoLISP (Vanilla / Visual) => Topic started by: snownut2 on November 21, 2019, 09:07:55 PM
Title: EPSG4326->EPSG3857 Formula
Post by: snownut2 on November 21, 2019, 09:07:55 PM
Ok I'm stumped,
Trying to convert a formula from "C" to lisp. The formula converts coordinates in Google EPSG4326 (WGS 84) to NOAA Data Viewer coordinates EPSG3857 (WGS 84).
The resultant points will be used to define an AOI (Area Of Interest) window. So they can be a "little off".
Below is what I've got so far, the 2nd to last line is the culprit, I know nothing about "C" programing.
Any assistance in getting this line right would be great.
my "C" is very rusty, not used it for +20 years, but log in autolisp deals with natural logs and I don't think you need the (exp 1) which as the memory dims is the base for the Math.Log
Title: Re: EPSG4326->EPSG3857 Formula
Post by: snownut2 on November 22, 2019, 07:29:25 AM
Thanks,
Dlanor that works perfectly, BricsCad has the vle-tan function so there is no need on my end to construct a tan function.
I will post it in the original code so it is useable for ACAD user.
This transformation function will allow users to call the NOAA Data Access Viewer site and open at their AOI window.
I am using it to assist the users in locating LIDAR data for later use.
Bruce
Title: Re: EPSG4326->EPSG3857 Formula
Post by: Dlanor on November 22, 2019, 09:35:57 AM