Most Popular

1500 questions
40
votes
3 answers

gdalwarp cutline along with shapefile

I am trying to clip my Raster file according to a shapefile geometry. I am using the following code gdalwarp -cutline INPUT.shp INPUT.tif OUTPUT.tif But it is resulting a black color outside the shapefile geometry extent. I am giving the example…
Devils Dream
  • 3,179
  • 9
  • 44
  • 78
40
votes
15 answers

Converting MapInfo TAB and/or MIF to SHP using free tools or ArcGIS for Desktop core product?

How do I convert MapInfo TAB and/or MIF files to SHP using only free tools or ArcGIS itself? I've not had much luck trying to do this in the past and I don't want to have to shell out for the ArcGIS Data Interoperability extension which seems to be…
Charles Roper
  • 1,002
  • 3
  • 12
  • 15
40
votes
10 answers

Georeferencing vector layer with control points using QGIS?

I have a non-georeferenced vector layer that I need to be georeferenced. With raster layers the task is easy and straightforward, but I have no idea what should I do with my vector layer. I have a few control points with known coordinates which…
AHaav
  • 501
  • 1
  • 4
  • 4
40
votes
3 answers

Running simple Python script for QGIS from outside

I would like to run a few small and simple Python scripts for QGIS (Mac) from "outside" of QGIS (e.g. Sublime Text). With outside I mean in this context, either the normal os command line (terminal.app) or even better, directly out of Sublime Text…
Benedikt Groß
  • 611
  • 1
  • 6
  • 6
40
votes
9 answers

Creating shapefile showing footprints of Rasters?

I have around 1,000 satellite images in tiff format, and I want to create a shapefile which will serve as an index to the rasters. This is something similar to a raster catalog, but I do not want to build a raster catalog. Some obstacles I can…
Devdatta Tengshe
  • 41,311
  • 35
  • 139
  • 263
40
votes
1 answer

Lon-Lat to Simple Features (sfg and sfc) in R

How can I convert lon-lat points to simple features (sfg), and then put them in a simple feature collection (sfc)? Here is a MWE that doesn't work but is the closest I have gotten to. library(data.table) library(sf) # The DT data.table is the data I…
Chris
  • 864
  • 2
  • 10
  • 15
40
votes
4 answers

Creating DEM from contours in QGIS?

I have a shapefile with contours and their heights. Is it possible to make a DEM from contours in QGIS without using GRASS? I found Creating DEM from contours using ArcGIS Desktop? but the answer is for ArcGIS Desktop.
Vassilis
  • 3,444
  • 7
  • 44
  • 56
40
votes
7 answers

Clustering spatial data in R?

I have bunch of data points with latitude and longitude. I want to use R to cluster them based on their distance. I have already taken a look at this page and tried clustTool package. But I am not sure if clust function in clustTool considers data…
kaptan
  • 501
  • 1
  • 4
  • 4
40
votes
2 answers

Reading feature class in file geodatabase using R?

I have a feature contained in a geodatabase that is larger than 2GB as an exported shapefile. I need to run an extract function in R to attribute the polygons with data from a raster file. Exporting the feature as a table is not a solution. How…
Jodi Whittier
  • 511
  • 1
  • 4
  • 3
40
votes
5 answers

Joining attributes from nearest point in QGIS?

I have two layers with points, call them A and B, each with different attributes. For each point in A I want to join all the attributes from the nearest point in B. Ideally this would also include a field measuring the distance between both…
Fred
  • 682
  • 2
  • 9
  • 13
39
votes
11 answers

Seeking 2010 Census Block data

I would like to download 2010 Census Block Data for several towns and I can't seem to find it on American Factfinder. If it is not there, then where could I find it?
user573163
  • 577
  • 2
  • 5
  • 7
39
votes
4 answers

Performance of ArcGISScripting and large spatial data sets

I am currently writing a python script using the arcgisscripting module to process a reasonably large data set (~10,000 records in total) normalised over a small number of tables, 8 in total. The process consists of creating a feature based on…
OptimizePrime
  • 2,359
  • 18
  • 20
39
votes
4 answers

How to migrate from ArcGIS for Desktop to QGIS?

Our lab has about 10 projects in ArcGIS 9 (a couple are made in ArcGIS 10) that includes the following in each: A georeferenced (WGS1984 geographical projection) raster seafloor image, representing areas of about 20m x 20m. A layer of points across…
hpy
  • 3,157
  • 13
  • 43
  • 43
39
votes
4 answers

Return all results within a 30km radius of a specific lat/long point?

I have a table with a column the_geom which contains data similar…
dan2k3k4
  • 575
  • 2
  • 8
  • 15
39
votes
12 answers

Creating regular point grid inside polygon in PostGIS

How to create, inside a polygon, a regular grid of point spaced x,y in PostGIS? Like the example:
Pablo
  • 9,827
  • 6
  • 43
  • 73