I have a shapefile and I need to crop/clip it based on a rectangle of particular latitude and longitude using QGIS.   If it is possible, how do I do that?
122960
I need to clip a large and very detailed shapefile in QGIS showing environmental data similar to a temperature map.   Is there something like the very simple crop tool like in Adobe Photoshop where you can drag a rectangle over an area of interest and crop the shapefile to this area only?  I do have an additional shapefile of neighborhoods/districts that I could also use for cropping but I do not know how to specify "extract a shp/kml only within the borders of district X, row xxxxx in the attribute table of districts.shp"  How can I extract the data primitively within a rectangle of choice or per district?  I need smaller pieces from the large map that has been provided by an environmental geo-institute to be implemented into an mobile Application (Android) to view the quite heavy data in a lighter way.   I made some screenshots of the data and posted them here: .  You can see the districts and the data layers. I need to have every district as a separate file / separately export every dataset per district to KML.
1829
I am new at using QGIS. How can I simply split features in QGIS? The manual tells to simply draw a line through the polygon you want to split. But it doesn't work. The line disappears when finishing it. When I select the polygon and then split it, it sometimes works and sometimes doesn't (an info appears after which it does not split the feature). Does anybody have an idea why the tool does not work properly?
70040
I want to  create a small web application to visualize election results on a per poll site basis for my city. The result is going to be very similar to what has been done for Berlin . Hopefully this helps in understanding what I'm going for.  The election raw data on the scale I need is published and I know how to visualize this on the grounds of a shapefile with separate polygons lining out the election districts. My problem is - as you could probably guess - that something like this doesn't already exist.  What actually is published though, is a PDF file lining out the borders of the districts I'm interested in:   I'm not keen on redrawing the linework myself, so I'm looking for a way to make a shapefile out of this. Luckily, the PDf includes the linework as separate vector objects, I extracted these into a SVG file:   I already tried converting the SVG to a DXF and importing it into qgis 2.0.1. This actually works, but (as expected) places the vectors in the atlantic ocean and I can't find a way to edit it and fix this.  What can I do now to georeference these vectors with open source tools and finally produce a shapefile?
240
I have a point shapefile of villages where data was collected in Northern Kenya. I created a buffer around those villages.   The second vector layer contains polygons defining areas according to vegetation type. So for example, a forest might be surrounded by a narrow ring of woodland in an area which is mainly grassland. I'm trying to obtain a percentage of each vegetation type within the buffer per village.   I'm using QGIS 1.7
19042
I have a large collection of points with X and Y coordinates in a projected coordinate reference system (EPSG:28992). I would like to compute a square buffer around it (say, 500 meters around the point), so I can crop this polygon with a raster layer (in TIFF format) and proceed with a further analysis with the values within the cropped windows.  I am aware that this is possible in , but for the sake of the workflow I am implementing, I prefer to have it entirely in the Python GDAL environment, so it becomes automatic. Since I know the X/Y coordinates and the size of the grid cells in the raster, I could add/subtract to the coordinates the desired buffer, but I wonder whether there is a less handcrafted version of this "square-buffer" operation, which is less prone to errors. Other Python libraries (e.g. shapely) would be fine for me as well.   Note that a band.GetRasterBand(1).ReadAsArray(X, Y, 5, 5) does not return the window around the point, but the window leaving the point in a corner.   For instance, the following code:  path_curr_lyr = r"path_to_tif_file" tif = gdal.Open(path_curr_lyr) dat = tif.GetRasterBand(1).ReadAsArray(9550, 9620, 1, 1) print(dat) sq_buf = tif.GetRasterBand(1).ReadAsArray(9550, 9620, 5, 5) print(sq_buf)   Accesses the raster grid cell X/Y (9550, 9620) and returning the value of forest coverage in that pixel, and the value of a window of width= 5 pixels.  &gt;&gt;&gt; [[44]] &gt;&gt;&gt; [[ 44  87  99  86  43]      [ 96  99  99  79  14]      [ 99  99  98  34   9]      [ 99  86  27  93  71]      [ 98  98 100  97  65]]    As you can see, this approach returns a window in which the "44" is not a central value, but one in the corner. I would like to have a procedure in which a window around the given grid cell coordinate is created.  Any advice on how to implement this?
106953
Is there something out there for QGIS that is similar to the Append Tool in ArcMap? Reason I am looking: I am currently working on a storm drainage project that involves GPSing Storm drain lids. My issue is when I capture the points with the GPS unit, and then bring them into the office. The GPS unit produces a CSV file for me to import into QGIS. It gives the CSV file with generic header names ( field1, field2, field3..etc) This is fine, until I try to copy it into the working shapefile that has all the other storm drains. The beautiful thing with ArcMap's append tool was that I could map each field from my CSV file to the destination shape file...ex... &quot;field1&quot; from CSV is equal to &quot;Elevation&quot; field in my shapefile. And thus update my shapefile with the newest points.
25164
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  but the answer is for ArcGIS Desktop.
95917
I added the new vector layer in QGIS and I want to draw a circle of 500M or 1000M from center.  I also added the pluginn Rectangles ovals digitizing in QGIS. But the options of this pluginn is not active.   How do I use this plugin?
39042
I do not want to download the whole map of an area. I just want rivers and other waterbodies present in an area in shapefiles so that I can use them in QGIS. I tried geofabrik but it is giving whole map and that also of full country while i need data of a city. Right now I am trying JOSM. will update you when it will works.
297
How do I change the projection of my shapefile using QGIS? The default projection is set to EPSG:3003, I want to change it to WGS84 EPSG:32632. When I do a reprojection or I change projection in the properties mask I don't have the correct result. On the left, I have the plan coordinates but they are not correct for the EPSG shown on the right:
107585
I have an Excel file with the coordinates (Latitude/Longitude) for an area. The file contains the coordinate of two corners in the latitude/longitude format.  How can we do to use Python to iterate the process for all coordinates and to export into XY coordinates?  Example of my file:  N°1:  Min_Long   Max_Long  Min_Lat   Max_Lat      1.5        2.833      6.25         7.33  N°2  -13        5          10          25   ... ...  Or else is there a tool in ArcGIS similar to "Add X,Y Data" in ArcMap, that can be used to automatically add this lat/long format?
70041
I'm new to QGIS and have been seeing what it can do for me – seems good. I imported shape file data from a UK Ordnance Survey data file and saved the file in a new folder. It was very good, doing all I wanted. I exported and got exactly what I wanted ( a tiff image).   I closed the file in order to try a new experiment. When I went to re-open it I got a dialogue box saying 'Handle Bad Layers. I don't understand what is at issue and what to do.
101461
How can I georeference png images using QGIS, running on OSX?   I've looked at ExifTool, and the plugins GeoTag and Import Photos + Photo2Shape. These tools (and other answers) as far as I can tell all use georeferenced images or images with EXIF data. I would like to load the png somewhere, and drag it around on a basemap from OpenStreeMap to position it where it should be. I know the general location, and just need to position it.   (I think I know the projection, but will find out if that is the case. The images are of an area ~500m x 200m so the projection variation will hopefully not matter hugely if I am incorrect).
67497
I have a vector floorplan (DXF) that I've added to a blank project in  using the Dxf2Shp plugin.   I've been reading tutorials and StackExchange threads, but I can't seem to find out how to "georeference" my layer?  I'm assuming I can somehow select the corners of the building and set the lat/long.  My goal is to export a shapefile that I can use with  and .  I realized that the project coordinates were actually lat/long coordinates:    and I need to use the "Affine (Rotation, Translation, Scale)" plugin to "place" my CAD drawing.
121882
Do you know of a way to take surveyor's calls from an excel file (for example: N35-45-15W 60.0 ft, etc) and have them generate polygon shapefiles point by point in GIS? I know you can easily do this with point features that have coordinates, but I am trying to figure out how to build full polygons (without XY coordinate information, just surveyor's calls).
120503
To start off with, I'm very new to QGIS. I'm attempting to place a shapefile with locations for 3 substations on a map of Peniche, Portugal. The locations for the substations are given in latitude and longitude coordinates.   When I start off by importing the substation shapefile, I make sure that both the layer CRS and project CRS are set to EPSG:32629, which gives each substation point the correct coordinates, however the scale is at 1:1, which is not correct. As soon as I then add a raster map of the region or a shapefile of Portugal using the same CRS the position of the substations also becomes incorrect.   I'm sure there's a simple solution I'm not getting, but I've been trying for a while and have had no success. Here's a dropbox link to the files
14723
I have been given a Shapefile that contains records with NULL geometry, along with records with non-NULL geometry. This situation appears to cause problems in QGIS (1.8 and 2.0) when editing the geometries.  I have been able to remove the NULL records by using the Marquee Select tool in the Map pane to select all the features in the dataset and saving the selection as a new shapefile, what I would like to know is how  to identify and delete the NULL geometry records in situ in QGIS. I have been unable to do this using the 'Select By Expression' functionality in QGIS 2.0 with expressions such as the following:   $area = 0   $geometry IS NULL   geomToWKT(  $geometry ) =  ''   I have uploaded a  containing five records, two of which (ID 3 and 4) have null geometries. The format is a MapInfo TAB file as I am having problems creating a Shapefile that preserves the NULL geometries! (I am not sure of the provenance of the Shapefile that sparked the question to begin with)