Effacer les filtres
Effacer les filtres

Export mapstruct to KML

3 vues (au cours des 30 derniers jours)
Devinya Herath
Devinya Herath le 13 Juin 2011
I have a mapstruct that contains two points. I want to view these two points in google earth/ For that, I want to export this mapstruct to KML format so that I can view it in Google earth. Please advice on how to do this.

Réponse acceptée

Rob Comer
Rob Comer le 18 Juin 2011
Exporting point data to KML is supported by the Mapping Toolbox function kmlwrite:
<http://www.mathworks.com/help/toolbox/map/ref/kmlwrite.html>
but it requires point coordinates in a geographic coordinate system (latitude-longitude).
The fact that your data are in an mapstruct implies that they are in a projected coordinate system. Do you know that that system is? If you can create an appropriate map projection structure ("mstruct", not to be confused with "mapstruct"), then you can use the minvtran function to transform your points to a geographic system, and set up a geostruct that's identical to your mapstruct except that it has Lat and Lon fields instead of X and Y fields.
  1 commentaire
Devinya Herath
Devinya Herath le 31 Oct 2011
I am sorry I can't understand this mstruct. went through the documentation as well. But still unable to understand it fully. Is it a structure that is used to describe a projection? How can it be created? pls help

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by