Author Topic: google earth terrain import lisp ?  (Read 13412 times)

0 Members and 1 Guest are viewing this topic.

dussla

  • Bull Frog
  • Posts: 291
google earth terrain import lisp ?
« on: November 15, 2010, 11:24:52 PM »
hi firend
i made other problem ?
i got some mounatain dwg files from client
but that is not complete
so i found google earth tool
but some is diffciulty

i would like to    import   terrain 3d file and   detailed image file  about big area
is that possilbe work ?

huiz

  • Swamp Rat
  • Posts: 917
  • Certified Prof C3D
Re: google earth terrain import lisp ?
« Reply #1 on: November 16, 2010, 02:01:39 AM »
You can do that in Civil3D. Or there might be a Labs tool from Autodesk that imports GE data, but I'm not sure if that still works and what it does.
The conclusion is justified that the initialization of the development of critical subsystem optimizes the probability of success to the development of the technical behavior over a given period.

Vali

  • Mosquito
  • Posts: 9
Re: google earth terrain import lisp ?
« Reply #2 on: November 16, 2010, 04:55:00 AM »
I hope I didn't opened a can of worms.

MicroStation does import from GE. Then you can export to ACAD.

Regards,
Vali.

ziko30

  • Newt
  • Posts: 51
Re: google earth terrain import lisp ?
« Reply #3 on: November 16, 2010, 10:56:29 AM »
I use AutoCAD MAP 3D and I can do the functions below:

Capture current google earth view and import as raster image

Capture elevation data of the current google earth view and import as mesh


The attachment is an image of what I can capture although if I did import it into AutoCAD, it would be black and white.  I imagine you could have it in color using Google Earth Pro...




============== Acad Map 3D 2009================

yarik

  • Newt
  • Posts: 32
Re: google earth terrain import lisp ?
« Reply #4 on: December 01, 2010, 01:09:16 PM »
Hi dussla!

Maybe you can make trought Google API
Try this
Code: [Select]
(setq earth_application(vlax-create-object "GoogleEarth.ApplicationGE"))
(vlax-dump-object earth_application t)
; Property values:
;   AnimationController (RO) = #<VLA-OBJECT IAnimationControllerGE 00203194>
;   AutoPilotSpeed = 4.434
;   ElevationExaggeration = 0.5
;   SearchController (RO) = #<VLA-OBJECT ISearchControllerGE 001f30b4>
;   StreamingProgressPercentage (RO) = 100
;   TourController (RO) = #<VLA-OBJECT ITourControllerGE 00200354>
;   VersionAppType (RO) = 5
;   VersionBuild (RO) = 1
;   VersionMajor (RO) = 5
;   VersionMinor (RO) = 2
;   ViewExtents (RO) = #<VLA-OBJECT IViewExtentsGE 00203f54>
; Methods supported:
;   GetCamera (1)
;   GetFeatureByHref (1)
;   GetFeatureByName (1)
;   GetHighlightedFeature ()
;   GetLayersDatabases ()
;   GetMainHwnd ()
;   GetMyPlaces ()
;   GetPointOnTerrainFromScreenCoords (2)
;   GetRenderHwnd ()
;   GetTemporaryPlaces ()
;   HideDescriptionBalloons ()
;   IsInitialized ()
;   IsOnline ()
;   LoadKmlData (1)
;   Login ()
;   Logout ()
;   OpenKmlFile (2)
;   SaveScreenShot (2)
;   SetCamera (2)
;   SetCameraParams (8)
;   SetFeatureView (2)
;   ShowDescriptionBalloon (1)

danallen

  • Guest
Re: google earth terrain import lisp ?
« Reply #5 on: December 01, 2010, 10:34:10 PM »
Sketchup will import from google earth as a TIN with image mapped to faces. You can export the geometry to AutoCAD with the Pro version, and the free download gives you 8 hours of working time. The resolution of the TIN varies with your scale, but you can import multiple overlapping areas, though there are some issues with the TIN not lining up but that can be resolved sketchup scripts. The images are trickier because I believe they are skewed in Sketchup to better map to the geometry, but AutoCAD can't import that.

Here is a thread on importing, the same group has other info in the archives.
http://forums.sketchucation.com/viewtopic.php?f=15&t=32325

pedroantonio124

  • Guest
Re: google earth terrain import lisp ?
« Reply #6 on: December 28, 2014, 01:30:16 PM »
Hi

(vl-load-com)
(setq earth_application(vlax-create-object "GoogleEarth.ApplicationGE"))

-> result nil

 i have Google Earth 6 installet.

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: google earth terrain import lisp ?
« Reply #7 on: December 28, 2014, 02:48:17 PM »
Have you tried this by VovKa?

pedroantonio124

  • Guest
Re: google earth terrain import lisp ?
« Reply #8 on: December 28, 2014, 03:06:05 PM »
Hi Lee,

i  need to import the terrain (altitude points)

Code: [Select]
(defun getzfrompoint (lon lat / z GE keyhole)
  (vl-load-com)
  (if (setq GE  (vlax-get-or-create-object "GoogleEarth.ApplicationGE") keyhole (vlax-get-or-create-object "Keyhole.khInterface"))
    (progn
      (while (/= 1 (vlax-invoke-method GE 'isinitialized)))
      (while (/= 1 (vlax-invoke-method GE 'isonline)))
    )
  )
  (vlax-invoke-method
    keyhole 'setViewParams lat lon 1000   0 0 5 5)
  (setvar 'cmdecho 0)
  (while (/= z
        (setq z
          (caddr
            (vlax-invoke
         keyhole
         'GetPointOnTerrainFromScreenCoords
         0
         0
            )
          )
        )
    )
  )
  (setvar 'cmdecho 1)
  (vlax-release-object GE)
  (vlax-release-object keyhole)
  z
)


dgpuertas

  • Newt
  • Posts: 80
Re: google earth terrain import lisp ?
« Reply #9 on: December 29, 2014, 03:14:51 AM »
From vodka too,

Code - Auto/Visual Lisp: [Select]
  1.  
  2.  (defun vk_GetGEarthElevation (lat lon)
  3.   (atof (last (assoc "elevation" (last (assoc "result"
  4.                       (last (assoc "ElevationResponse" (vk_ReadXML
  5.                                  (strcat "http://maps.googleapis.com/maps/api/elevation/xml?locations=" (rtos lat 2 16) "," (rtos lon 2 16))))))
  6.              )))))
  7.  

VovKa

  • Water Moccasin
  • Posts: 1629
  • Ukraine
Re: google earth terrain import lisp ?
« Reply #10 on: December 29, 2014, 05:13:34 AM »

ymg

  • Guest
Re: google earth terrain import lisp ?
« Reply #11 on: December 29, 2014, 08:39:14 AM »
pedro,

The API in Google Earth is no longer supported.

I believe the last version for which the method
GetPointOnTerrainFromScreenCoords was supported
was 6.1.5001

Furthermore GE would limit you to 5000 pts a day.

So, VovKa's method should be preferred.  Don't
know if they limit you there also.

Here is a link to better data for GE in the form of a kmz file:

ftp://topex.ucsd.edu/pub/srtm15_plus/SRTM15.kmz

ymg
« Last Edit: December 29, 2014, 09:45:41 AM by ymg »

pedroantonio124

  • Guest
Re: google earth terrain import lisp ?
« Reply #12 on: December 30, 2014, 05:13:49 PM »
Hi ymg

the problem is that with the method from
VovKa there is a restriction of 2,500 requests per day.


The Elevation API has the following limits in place:
Users of the free API:
        2,500 requests per 24 hour period.
        512 locations per request.
        5 requests per second.

Is there no possibility to receive the elevation data from Google Earth? and to steer Google Erath?




ymg

  • Guest
Re: google earth terrain import lisp ?
« Reply #13 on: December 30, 2014, 08:29:09 PM »
Pedro,

Like I told you, the API on GE is no longer
active and was limited to 5000 pts a day.

Furthermore, GE elevation data was never too accurate.

For a free source of good elevation go to Jonathan de Ferranti's site
and download the file for the zone you need or the whole world
if you feel like it.

http://www.viewfinderpanoramas.org/dem3.html

ymg



alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: google earth terrain import lisp ?
« Reply #14 on: January 05, 2015, 04:01:13 PM »
Running version: 7.1.2.2041 and the api still works for me.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox