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

Thread Subject:
Import Matlab's line to Arcgis

Subject: Import Matlab's line to Arcgis

From: Engineer

Date: 11 Apr, 2012 10:30:18

Message: 1 of 2

Hello,
I am analizing an amount of images in Matlab, detecting a line with edge detection on every image (so in the end I have a lot of lines, one for every image) ...now, I would like to import those lines as layers in ArcGis (the images are already rectified, there is a .tfw file associated), or much better creating a Feauture Class of those within a Geodatabase already created.

I am aware about the existence of the Mapping Toolbox, but I don't any idea about functions could be useful for my aim.

Thanks!

Subject: Import Matlab's line to Arcgis

From: Rob Comer

Date: 13 Apr, 2012 14:28:11

Message: 2 of 2

> I am analyzing an amount of images in Matlab, detecting a line with edge detection on every image (so in the end I have a lot of lines, one for every image) ...now, I would like to import those lines as layers in ArcGis (the images are already rectified, there is a .tfw file associated), or much better creating a Feauture Class of those within a Geodatabase already created.
>
> I am aware about the existence of the Mapping Toolbox, but I don't any idea about functions could be useful for my aim.

Assuming that the vertices of your lines start in "default image" (1-based pixel) coordinates, you could use Mapping Toolbox to:

1. Construct a referencing object (with R2010b or later) or referencing matrix (with an earlier version) from each .tfw file.

2. Transform the vertices into the same "world" coordinate system as the images. The specific method or function needed depends on whether your world system is geographic or projected.

3. Export the lines, in the world system, to shapefiles, via the shapewrite function.

4. Import the shapefiles into ArcGIS.

Rob Comer
Mapping Toolbox Development
MathWorks

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us