Hi Guys,
Tool Requirement : User will Pick a Point in dgn at Required Location Based on the Picked Location Coordinates, i need to open google earth and zoom to the
specified location.
Questions:
1) Is it Possible ?
2) Using MDL Language can i program to get output ?
Example :By using small function i opened google earth in this way (correct process r not ?)
MSExternalProgramDescr *msepdDescP;msepdDescP = mdlExternal_startMCSLProgram ("C:\\Program Files\\Google\\Google Earth\\plugin\\geplugin",NULL);if (msepdDescP != NULL)
{ mdlExternal_terminateProgram (msepdDescP); }
If Possible can u guys please provide me the steps for programming.
Can you navigate google eath?
Once you have datapoint, perhaps you will need to convert it to WGS84.
If you are working with V8i then you should use the "Geographic" Toolbox. There is a function that synches MS Views against Google Earth.
This tool is already available for Microstation V8
"Geographic Tools/Synchronize with Google Earth"
Regards
Frank
since 1985: GIS, CAD, Engineering (Civil) Senior Consultant : [Autodesk Civil 3D , Esri ArcGIS, VertiGIS: in previous days : Bentley MS V4 - V8i, GeoGraphics, Bentley Map V8i, InRoads, HHK Geograf, IBr DAVID] : Dev: [C, C++, .NET, Java, SQL, FORTRAN, UML][direct quote by: http://en.wikipedia.org/wiki/Helmut_Schmidt]: "Wer Kritik übel nimmt, hat etwas zu verbergen"Wer Grammatik- und/oder Rechtschreibfehler findet, der darf sie behalten :-)
Hi Stefan,
Just in Time ;-)
@DanPaul,
yes, Google Earth has an API.
developers.google.com/earth
Guys,
1) How to convert data point to WGS84 ?
2) WGS84 means?
I must run the tool in Microstation V8 but not in Microstation V8i
If you are not working on DLL MDL application, perhaps you are out of luck...
but...in native (compiled DLL) MDL....
Unknown said:1) How to convert data point to WGS84 ?
You can use for example Proj 4 library: https://trac.osgeo.org/proj/
But, you need to know also the source coordinate system.
Unknown said:2) WGS84 means?
https://en.wikipedia.org/wiki/World_Geodetic_System
Unknown said:mdlExternal_startMCSLProgram
I don't know why that was in the V8 API (it's been removed for V8i), or why you chose it. If you do want to start an external program, use mdlExternal_startProgram.
MCSL in the function you chose is an acronym for the MicroStation Customer Support Library. It was a fairly low-level API supplied for developers at Intergraph. Erase it from your memory.
Regards, Jon Summers LA Solutions