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 个评论
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
2017-7-25
Read about shapewrite
7 个评论
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
2019-7-5
cell2struct() to avoid the loop. Probably in connection with num2cell() to create the data as cell.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Oceanography and Hydrology 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!