arcgis - Writing Lon,Lat coordinates to a shapefile in Matlab with projection -
i have list of longitude , latitude points plot object moving on time on map; sort of forms line curves around bit. using matlab generate these points , export them polyline shapefile load in arcgis.
after looking @ this example mathworks website, able create line geostruct object:
[tracks(1:length(mylon)-1).geometry] = deal('line'); tracktype = 'gc'; [tracks.type] = deal(tracktype); = 1:(length(mylon)-1) [tracks(i).lon tracks(i).lat] = track2(tracktype, mylon(i, 1), mylat(i, 1), mylon(i+1, 1), mylat(i+1, 1)); end shapewrite(tracks, 'path_line');
this works fine geostruct not contain type of projection, although documentation claims mapstruct does. unfortunately don't see examples or functions on how create mapstruct. know how go doing that?
also, tried create point geostruct instead of line using mathworks example, doesn't generate .dbf file, .shp , .shx files. there explanation this? suggestions!
you need use "define projection" tool in arcgis define projection of imported polyline. should create corresponding .prj file.
Comments
Post a Comment