I would like to eventually create a shapefile in ArcGIS and then extract it as a matrix to be read by a spatial package I use in R. By matrix I actually mean a raster file.
My first step is to create a simple binary matrix of a map (UK for example) with 1 - water and 2- land. As a newcomer to both coding and GIS, I am struggling to come up with a solution. - converting to raster and exporting as text file was exactly what I needed.
I have been looking into spatial weights matrices - does this sound like the right way forward?
This will eventually need to be executed multiple times with different layers and different data sets - so will need a Python script for it. Right now I am just happy with exporting one text file for one layer.
Current problem: Although I can change the cell size - I really need to be able to alter the number of columns and rows. I want it to be a 300 x 300 matrix to save any complicated maths later on.
Background: The package I use (not yet on CRAN) looks at spatial points and displays them on Google Maps with predicted 'sources'. I would like to develop this and reducing the search area (give more informed priors). For example 'don't search in water'. To do this I need a nice matrix from ArcGIS.
Any ideas?