Can I make a shapefile out of three variables?

2 次查看(过去 30 天)
Hi there,
I am working on a system, where the bathymetry does not exist in Ocean Data View. I have the bathymetry data, but I would need to turn them into a shapefile to then use it in ODV.
How can I make a shapefile out of a set of coordinates (lat, lon) and depth? I have about 400,000 data points..
Thanks for your help!
Louise
  4 个评论
Louise Delaigue
Louise Delaigue 2017-7-25
Hello! My field of science is oceanography. I would like to basically map the bathymetry that I have into a shapefile contours, to then import it into another software. I am a beginner on matlab, thanks for your patience.
Chad Greene
Chad Greene 2017-7-25
Louise, my experience with ODV is limited--what can you do in ODV that can't be done in Matlab?

请先登录,再进行评论。

回答(1 个)

KSSV
KSSV 2017-7-25
Read about shapewrite
  7 个评论
CamboSlice
CamboSlice 2019-7-5
Hello,
I was wondering if this was possible WITHOUT running it through a for loop? I make MANY shapefiles and have recently been writing them using MATLAB but they take FOREVER when they contain around 10,000 points. It takes less than 5 seconds to actually compute the data but then about an hour writing it to a shapefile. Avoiding a for loop would be wonderful.
Thank you!
Walter Roberson
Walter Roberson 2019-7-5
cell2struct() to avoid the loop. Probably in connection with num2cell() to create the data as cell.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Oceanography and Hydrology 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by