Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

creating shp files from m files

Asked by Malgorzata on 1 Feb 2013

Hello, I have got m files and I would like to save them in shapefile format. As I am a beginner user of Matlab, could you please let me know which command would be appropriate for this task?

This is the input of one of my m files { Line[{{ 391304.83000000, 332951.88000000}, { 391202.71000000, 332879.46000000}}] ,Line[{{ 391415.57000000, 332846.29000000}, { 391413.60000000, 332853.96000000}}] ,Line[{{ 391180.70000000, 332851.18000000}, { 391181.53000000, 332791.13000000}}] ,Line[{{ 391307.54000000, 332766.09000000}, { 391406.99000000, 332837.39000000}}] ,Line[{{ 391182.37000000, 332858.26000000}, { 391180.87000000, 332855.08000000}}] ,Line[{{ 391194.72000000, 332872.77000000}, { 391182.37000000, 332858.26000000}}] ,Line[{{ 391313.38000000, 332957.54000000}, { 391304.83000000, 332951.88000000}}] ,Line[{{ 391413.60000000, 332853.96000000}, { 391411.43000000, 332857.72000000}}] ,Line[{{ 391396.87000000, 332880.24000000}, { 391340.16000000, 332941.71000000}}] ,Line[{{ 391340.16000000, 332941.71000000}, { 391333.04000000, 332948.99000000}}] ,Line[{{ 391181.53000000, 332791.13000000}, { 391182.18000000, 332788.62000000}}] ,Line[{{ 391414.57000000, 332844.97000000}, { 391415.57000000, 332846.29000000}}] ,Line[{{ 391406.99000000, 332837.39000000}, { 391414.57000000, 332844.97000000}}] ,Line[{{ 391260.20000000, 332755.61000000}, { 391262.48000000, 332755.66000000}}] ,Line[{{ 391286.26000000, 332756.74000000}, { 391287.62000000, 332757.07000000}}] ,Line[{{ 391180.71000000, 332851.67000000}, { 391180.70000000, 332851.18000000}}] ,Line[{{ 391180.87000000, 332855.08000000}, { 391180.71000000, 332851.67000000}}] ,Line[{{ 391202.71000000, 332879.46000000}, { 391195.37000000, 332873.42000000}}] ,Line[{{ 391195.37000000, 332873.42000000}, { 391194.72000000, 332872.77000000}}] ,Line[{{ 391317.52000000, 332958.57000000}, { 391316.13000000, 332958.36000000}}] ,Line[{{ 391398.56000000, 332877.90000000}, { 391396.87000000, 332880.24000000}}] ,Line[{{ 391411.43000000, 332857.72000000}, { 391398.56000000, 332877.90000000}}] ,Line[{{ 391320.42000000, 332957.49000000}, { 391317.52000000, 332958.57000000}}] ,Line[{{ 391321.28000000, 332956.99000000}, { 391320.42000000, 332957.49000000}}] ,Line[{{ 391333.04000000, 332948.99000000}, { 391327.69000000, 332952.64000000}}] ,Line[{{ 391327.69000000, 332952.64000000}, { 391321.28000000, 332956.99000000}}] ,Line[{{ 391183.48000000, 332786.34000000}, { 391184.82000000, 332784.58000000}}] ,Line[{{ 391219.12000000, 332765.67000000}, { 391226.58000000, 332763.01000000}}] ,Line[{{ 391270.40000000, 332756.01000000}, { 391286.26000000, 332756.74000000}}] ,Line[{{ 391262.48000000, 332755.66000000}, { 391270.40000000, 332756.01000000}}] ,Line[{{ 391305.69000000, 332765.09000000}, { 391307.54000000, 332766.09000000}}] ,Line[{{ 391287.62000000, 332757.07000000}, { 391305.69000000, 332765.09000000}}] ,Line[{{ 391315.62000000, 332958.21000000}, { 391313.38000000, 332957.54000000}}] ,Line[{{ 391316.13000000, 332958.36000000}, { 391315.62000000, 332958.21000000}}] ,Line[{{ 391182.18000000, 332788.62000000}, { 391182.79000000, 332787.53000000}}] ,Line[{{ 391182.79000000, 332787.53000000}, { 391183.48000000, 332786.34000000}}] ,Line[{{ 391258.04000000, 332755.79000000}, { 391260.20000000, 332755.61000000}}] ,Line[{{ 391249.68000000, 332757.32000000}, { 391258.04000000, 332755.79000000}}] ,Line[{{ 391236.20000000, 332760.08000000}, { 391242.97000000, 332758.69000000}}] ,Line[{{ 391242.97000000, 332758.69000000}, { 391249.68000000, 332757.32000000}}] ,Line[{{ 391231.65000000, 332761.42000000}, { 391236.20000000, 332760.08000000}}] ,Line[{{ 391226.58000000, 332763.01000000}, { 391231.65000000, 332761.42000000}}] ,Line[{{ 391184.82000000, 332784.58000000}, { 391187.88000000, 332782.45000000}}] ,Line[{{ 391187.88000000, 332782.45000000}, { 391190.12000000, 332781.01000000}}] ,Line[{{ 391198.83000000, 332775.60000000}, { 391203.55000000, 332772.93000000}}] ,Line[{{ 391190.12000000, 332781.01000000}, { 391198.83000000, 332775.60000000}}] ,Line[{{ 391213.01000000, 332768.15000000}, { 391219.12000000, 332765.67000000}}] ,Line[{{ 391212.62000000, 332768.32000000}, { 391213.01000000, 332768.15000000}}] ,Line[{{ 391203.55000000, 332772.93000000}, { 391207.50000000, 332770.82000000}}] ,Line[{{ 391207.50000000, 332770.82000000}, { 391212.62000000, 332768.32000000}}] }

Regards, Malgosia Mendela

0 Comments

Malgorzata

Tags

Products

No products are associated with this question.

0 Answers

Contact us