dimanche 22 février 2015

Combining an image and shapefile in MATLAB

I've been trying to combine an image produced from a deforestation database called Hansen and a shapefile created in ArcGIS to make a georeference image. The script I've written so far is below but unable to figure out how to combine the two (I've tried several scripts including http://ift.tt/1B7alQ2). Any assistance would be helpful!


Thank you, Michelle


% Read in thresholded Hansen data Data_FrenchGuiana = imread('FrenchGuiana_GFC_extract_thresholded.tif'); LossYear_FrenchGuiana = Data_FrenchGuiana(:,:,2); LossYear_FrenchGuiana = double(LossYear_FrenchGuiana); figure('color','white'); image(LossYear_FrenchGuiana) imwrite(A,'LossYear_FrenchGuiana.tif') country = shaperead('FrenchGuiana.shp'); figure mapshow(country); xlabel('easting in meters') ylabel('northing in meters')


Aucun commentaire:

Enregistrer un commentaire