Tag Info

Hot answers tagged

19

GRASS GIS has a tool to convert raster lines to vector. The procedure is: First open the map in an image editor (GIMP), select by colors with some tolerance and select the black color. Invert selection and delete non-black stuff. Save as Tiff WITH NO COMPRESSION. Then in GRASS: r.in.gdal - import raster r.thin - Thins non-zero cells that denote linear ...


7

If all you have is the jpg, then I would suggest georeferencing the jpg and then manually digitizing the roads/rivers/etc vectors. That will give you the best control over the result, I personally have never had good luck with using raster-vector conversions in a situation like this. Unfortunately, sometimes the best option is to just do it the hard way. ...


5

From the point of view of population density, an "urban area" ought generally to satisfy just a few axiomatic criteria: Its boundary should not include any points of (relatively) high density compared to the maximum density within its interior. It should be simply connected (no "holes"). Its average population density should exceed some prespecified ...


4

I assume that your graphs came from a R-script and that you are capable of using R. Here is a solution in R, which finds local maxima and minima along a data sequence x <- rnorm(50,mean=1500,sd=800) # Example-Data r <- rle(x) # Generate run sequence object min <- which(rep(x = diff(sign(diff(c(-Inf, r$values, -Inf)))) == 2, times ...


4

To generalize, try running a majority filter. This is available in saga (and grass as well, check markusN his answer). An explanation for how it works from arcgis: http://edndoc.esri.com/arcobjects/9.2/net/shared/geoprocessing/spatial_analyst_tools/majority_filter.htm


3

In answer to my own question, I've written a program to "vectorize" an ArcInfo Grid ASCII files as an ESRI shapefile with a single layer containing oriented polygonal grid squares centered at the points of the grid, with an attribute value equal to the value at the coordinates of the centroid. The program (still under development) is available on GitHub. An ...


3

You can first use the "mode" operator of r.neighbors in GRASS GIS (via Sextante plugin), then vectorize with r.to.vect to obtain polygons. Perhaps the "mode" operator should be run more than one time.


3

you can use gdal_polygonize.py for converting raster to vector, if u previously use . some information is here. produces a polygon feature layer from a raster SYNOPSIS gdal_polygonize.py [-o name=value] [-nomask] [-mask filename] raster_file [-b band] [-q] [-f ogr_format] out_file [layer] [fieldname] beside this in qgis ...


2

According to the comments below the question, you want to (a) classify the image into a small number of discrete categories and then (b) convert it into a polygon representation ("vectorize" it). There are many ways to do (a). Good choices in this application are either (a.i) drive the calculations with a reclassification table via the reclassify tools or ...


2

You can only vectorize lines, not continuous fields. Hence use r.mapcalc with a threshold to extract line structures from that map, then subsequently r.thin. Then it will work as expected. See also this Wiki page for more possibilities: http://grass.osgeo.org/wiki/R.stream.*


2

There is no need to clean a map to vectorize it. Printed raster maps have resolutions, scales. Editing and redrawing make much sense since you planning create a new map composition using data from another map source. If you do not have the original data used to create the map or if it is old and need be converted to digital format( raster, vector ) then the ...


2

After my own related question received here a vague suggestion to use GRASS, I wrote an ArcInfo Grid ASCII to ESRI Shapefile conversion utility in python; see ArcInfo Grid ASCII to ESRI Shapefile conversion. I was motivated by the need to upload raster data in a format that CartoDB could support (they do not "officially" support raster files). The utility ...


1

I am pretty sure you want to convert these files to KML or KMZ files(they are pretty much the same thing) This will allow you do make them click-able objects with associated information. I was able to load one of the png files into ArcGIS and create a kmz file that ignored the empty space. This would allow you to have them all layered on top of each other ...


1

The previous version of the program produces large files. The latest version takes an ArcInfo Grid ASCII file, identifies the polygonal boundaries of annular regions directly in raster space, and writes out an ESRI shapefile. Following ESRI conventions, polygonal boundaries are oriented clockwise, and holes are oriented counterclockwise. Because the program ...


1

Similar to Italiano I use Scan2Cad for most of my simple stuff. When the raster gets as complicated as what your examples are there is a whole other level of work needed. This is a job for FME Here is an email from dmbaugh @Safe who helped me with this concept some time ago. But as you will see the work invloved would cause you to go to Simplexio's ...


1

While not an open source or QGIS utility, ArcGIS does have the ArcScan extension that can be used to help vectorize features from raster maps. ArcScan, of course, works best with 2 color images and hard edges, so I'm uncertain how the multicolor raster you showed would work. While it is not perfect, it may be another potential option. Starting with the ...


1

In GRASS 7 the processing of massive vector data has been implemented. While not yet officially released, you can download weekly binary snapshots (source code as well of course) from: http://grass.osgeo.org/download/ and tell Sextante in QGIS to use this installation instead of the existing one. You can install GRASS 7 in parallel to GRASS 6, it will not ...


1

The model below should get you started in the right direction. I used 4-band 1m NAIP imagery as the model input. The imagery below shows the CIR tiff on the left followed by the generalized raster in the middle and the final vector product with four vegetation zones is on the right. Unsupervised maximum likelihood classification was used on the CIR ...


1

I think what you're looking for is the stream output from r.watershed, rather than the flow accumulation. It's an optional output; you'll need to make sure when you run r.watershed that you have a line similar to "stream=output". From the help: stream Output map: stream segments. Values correspond to the watershed basin values. You may need to ...


1

With ArcGIS 9.3 and the Spatial Analyst Extension GridShape Converts a raster to a polygon (Type 5) shapefile. http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=gridshape Update: ArcObjects Code: ' Converts raster data to polygon feature data (FeatureClass or FeatureDataset). ' Member of esriGeoAnalyst.IConversionOp ' ' Function ...


1

Your image values may be a float data type, which according to this forum post below needs to be converted to integer before converting to polygon. http://forums.arcgis.com/threads/4435-Raster-to-Polygon-Error-ArcGIS9.3-value-not-within-the-defined-domain


1

sounds like a feature request to me ;-) In the event the direct answer to your question is "No you can't do that" I'd take a look at the NASA World Wind project and see if anyone there knows about (or can construct) access to Landsat layers by year. The data is all public after all. Not as convenient of course, but USGS Earth Explorer lets you select ...



Only top voted, non community-wiki answers of a minimum length are eligible