Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [shapefile]

A vector data storage format for storing the location, shape, and attributes of geographic features. Often referred to as 'an ESRI shapefile', as ESRI developed it.

1
vote
1answer
25 views

Printing attributes of selection in ArcPy?

I'm trying to use ArcPy to print a list of addresses of land parcels crossed by a power line. I'm using the following code to accomplish this: # Loop through features in parcels.shp for feature in ...
-1
votes
1answer
203 views

Optimum set up for large data sets such as mobile service coverage maps [closed]

When serving up large data sets such as mobile coverage maps (custom tile) mashed up with MapQuest maps and MapQuest POIs, is there any performance benefit to using shapefile vs WMS image PNGs?
0
votes
1answer
16 views

Identifying intersections in ArcPy? [on hold]

I have two shapefiles: one containing a single polyline feature, and the other containing a number of polygons. I'm trying to use ArcPy to identify which polygons are crossed by the line, and then ...
5
votes
4answers
2k views

Debugging ogr2ogr “AddGeometryColumn failed” and “Terminating translation prematurely after failed translation of layer”

As noted in the title, I'm getting the following error: ERROR 1: AddGeometryColumn failed for layer pretty_polys, layer creation has failed. ERROR 1: Terminating translation prematurely after failed ...
0
votes
0answers
15 views

Exporting Shapefile polygons from ArcGIS Pro to OpenStreetMap

I recently worked on a project that digitized a lot of building footprints and swimming pools with high-resolution orthorectified imagery (~4 inches resolution). The polygons are all in shapefile ...
0
votes
1answer
24 views

Extracting difference between two shapefiles (not symmetrical difference) using ArcGIS Desktop?

I have a shapefile with polygons that portray survey areas (Pink areas in picture below). I receive a new updated shapefile with additional survey areas, and thus new polygons (Green areas in ...
1
vote
1answer
41 views

What is the difference between geopackage and shapefiles? [on hold]

I'm trying to figure out what Geopackages are and often I read "it's like a shapefile but not quite." Sometimes I also read that it's the equivalent to the ESRI Geodatabase. What is the actual ...
2
votes
3answers
97 views

Assigning each point name of polygon in which it lies using QGIS?

I am completely new to QGIS, and to the world of shapefiles and GIS in general. I have the shapefile of a city, divided into its districts. On top of it I add a layer from a csv, with a certain ...
1
vote
2answers
1k views

Export shapefiles in QGIS to import to ArcMap

I have one question regarding export shapefiles from QGIS to import after to ArcMap 10.6. I export the shapefiles as Save data/ESRI shapefile. After when I try to upload in ArcMap this shapefile, I ...
1
vote
0answers
20 views

Interpolating sea level data using ArcGIS Desktop?

I have monthly sea level data obtained from PSMSL in the form of excel sheet for the region Chennai. I want to interpolate the data in ArcGIS Desktop. The shapefile of the region has Polygons and I ...
0
votes
0answers
7 views

dotspatial Load in the map from large shapefile with query

Can I load only a little set of data from a large shapefile with a query in dotspatial c#? I think something like "Definition query" of arcmap.
1
vote
1answer
26 views

Calculating area difference between two polygon shapefiles using QGIS

I have two polygon shapefiles which contain about 30 features. These features have different boundaries in both shapefiles so the areas are different too. I want to calculate that difference in the ...
1
vote
2answers
32 views

Clipping data to shapefile using Google Earth Engine?

I want to clip this fire data so it only displays results in my shapefile titled 'tapajos'. How do I do this? var dataset = ee.ImageCollection('FIRMS').filter( ee.Filter.date('2000-01-01', '2018-...
0
votes
2answers
1k views

R cannot read *.shp shapefile with rgdal

I'm trying to open ne_10m_urban_areas.shp with rgdal::readOGR, but it gives me the bellow error library(rgdal) a <- readOGR(dsn = path.expand("C:/.../Desktop/"), layer = "ne_10m_urban_areas.shp") ...
0
votes
1answer
35 views

Can't read shapefile in Python

I'm trying to read in a shapefile and keep getting a File Not Found error and this exception: ShapefileException: Unable to open /Users/name/Documents/shapefile.shp Here's what I've got: import ...
0
votes
1answer
131 views

Ordnance Survey Maps in .osm.pbf format

I see that you can download Ordnance Survey maps as ESRI Shape files, so I would like to take those and convert them into a .osm.pbf file so that I can more easily use them. Are there any tools out ...
0
votes
0answers
13 views

Aligning two polygon shapefile based on attribute field value in ArcGIS Desktop? [closed]

I have a two polygon shapefiles which features are similar (usually rectangles) but not identical. Each similar feature from both layers have the same ID value. Now I want to align features from one ...
1
vote
0answers
1k views

Loading .shp file into QGIS gives error message

When I add vector layer I select the .shp file and nothing happens When I add vector layer and I select the folder it gives error message "not a valid or recognized data source" The pop up box queries ...
2
votes
1answer
38 views

Extract areas with certain pixel values from raster

I have land cover data from GEE (https://developers.google.com/earth-engine/datasets/catalog/ESA_GLOBCOVER_L4_200901_200912_V2_3) for specific countries. I would like to extract the values from the ...
3
votes
2answers
1k views

Identify polygon containing point with R sf package

I would like to be able to map geocoded coordinates to a region on a .shp file in R using the sf package. I can load up the map and plot it but I am struggling with the code to return the region for ...
1
vote
1answer
206 views

Fill color in polygons using attribute variable in GMT (Generic Mapping Tool)

I want to FILL colors of the polygon (converted from .shp ESRI shapefile) based on an attribute (here OBJECTID, Area) from lookup color (.cpt), but I am getting colored outline of each polygon. I ...
2
votes
1answer
1k views

extract shapefile attributes from raster colors

I have two layers: a shapefile with states and counties (shp) a raster file (with colors and some text and borders, but not a perfect map) (tiff) I want to use the colors in the raster file to ...
1
vote
0answers
16 views

JSON response to shapefile [closed]

I'm collecting road accidents from an API through a Python request and getting my response as JSON. The JSON response contains coordinates and general information as below. {u'RESPONSE': {u'RESULT': ...
3
votes
5answers
2k views

Dublin postal areas shapefile?

I'm currently developing an application that uses shapefiles for Dublin. In particular I want to display the postal areas for Dublin but cannot locate an appropriate shapefile. Can anyone advise ...
0
votes
1answer
29 views

MySQL 8.0 Error Code: 3617. Latitude is out of range in function st_geomfromtext

First I have a problem creating spatial index in MySQL 8.0. Here the description: I have a collection of several thousand species range maps (polygon & multi-polygon) which is provided by IUCN as ...
0
votes
0answers
43 views

Loading shapefile in standalone PyQGIS script? [closed]

I have a standalone pyqgis script that automatically visualizes 4 parameters (precip rate, temperature, pressure and wind). when I run just the precip rate and pressure part of the script there are no ...
28
votes
4answers
51k views

Splitting shapefile into separate files for each feature using QGIS/GDAL/SAGA?

I have a polyline shapefile with about 20 kinds of roads. I would like to know how can I create automatically a vector file for each one. I am aware of how to do it using ArcGIS for Desktop - see ...
1
vote
2answers
512 views

Split feature class based on number of records arcpy

I am looking for a way to split a feature class into multiple feature classes based on the number of records, probably using python. E.g first 100, next 100, etc. I have so far only seen options to ...
2
votes
1answer
45 views

Picking points in a specific distance interval

I have a line of points in .shp file and the distance of the points varies. There can be 20 points in same place and then the distance can be something between 1 to 25 meters. How can I pick points ...
0
votes
1answer
161 views

Adding attributes to each vertex of shapefile using shapely?

I have two polygons in Python: poly1 = shapely.geometry.polygon.Polygon([(3,4), (2,4),(2,2),(3,2)]) poly2 = shapely.geometry.polygon.Polygon([(4,4), (3,4),(3,2),(4,2)]) that look like this: ...
1
vote
1answer
40 views

Connect two Shapefiles

I have two shapefiles which should be connected to one single shapefile without a gap, unfortunately there is a gap between them: I tried to use v.cleanin Grass GIS but because of the shape of the ...
-7
votes
1answer
27 views

Spreadsheet vs Shapefile [closed]

I have the same dataset both in Shapefile and Spreadsheet. What can be the advantages/disadvantages of using one format rather than the another?
0
votes
0answers
33 views

Broken shapefile [duplicate]

I have a shapefile that contains 907 features. All features are still visible in the attribute table and the fields contain the correct values. However, when opening it in QGIS it only draws 9 ...
0
votes
1answer
42 views

Clip shapefile based on another shapefile [closed]

I have two shapefiles with me, one big and one small. I want to clip part of big shapefile where the small shapefile is located. I tried QGIS vector intersect by geometry, but that is returning me ...
3
votes
2answers
3k views

Changing spatial extent of shapefile using ArcGIS Desktop?

I want to change the extent of one of my shapefiles(lets call it A) to the same extent of another shapefile(B) but I can't seem to do it. I tried using the 'recalculate feature class extent' and ...
0
votes
0answers
29 views

import shapefile to potree

I have converted pointcloud to potree web format and I want to add a shapefile. As it shown in examples and GitHub, I've edited HTML page and added shapefile import there, but have no result. ...
0
votes
0answers
22 views

Specifying ecoregion

I am trying to extract an ecoregion specified in the Ecoregions 2017 Resolve Data in Google Earth Engine in order to then to examine forest loss and gain (using the Hansen data set) from that ...
0
votes
1answer
1k views

How to export shapefile using Leaflet?

I want a button "export" as I clicked on it the shapefile should be downloaded along with it's all files shp, shx, prj, dbf as zip folder. My project is GIS based in which I have two main tasks: ...
0
votes
0answers
23 views

Saving matplotlib map to shapefile in python?

I already plot a prediction map I made with xgboost modal by matplotlib function and I want to save this map as a shapefile so I can work with it in ArcGIS, how can I do that? Picture of the map:
2
votes
1answer
48 views

Unable to select interpolation attributes from my shapefile?

My point shapefile has four fields, three of which are numerical: longitude, latitude, and homicides. However, the homicides field does not appear for me to select it as an interpolation attribute (...
2
votes
2answers
1k views

Plotting Storm Prediction Center (SPC) Shapefile using Python?

I am trying to make a plot of the SPC's thunderstorm outlook using Python. I have downloaded the shapefile from this website http://www.spc.noaa.gov/products/outlook/day1otlk.html. Then I use this ...
2
votes
1answer
6k views

Importing shapefile in MATLAB? [closed]

I have digitized three rivers on Google Earth and converted into shapefile to use in MATLAB. I have checked the shapefiles in ArcGIS and they are working. But while opening in MATLAB, it shows the ...
1
vote
1answer
22 views

Select records from shape that do not match another table's values

New to the forum, so I apologize for my bad English and if I'm being inconvenient somehow! I read answers that are similar to my question but none of the ones I found fits my case. I have a shapefile ...
1
vote
1answer
29 views

In QGIS, how can I use a delimited text layer to keep only those polygons and records of a shapefile which match a column in the delimited text layer?

What I want to do is trim the shapefile so that only those records and associated shapes that match the same values in a column in the delimited text layer (which in my case is a CSV) are kept in a ...
2
votes
1answer
28 views

Extracting shapefile with suburbs of a city from OSM

I never downloaded shapefiles from OpenStreetMap before and now I am trying to download a shapefile of the city of Turin (Italy) with the suburbs polygons encoded in it. I know for sure that the ...
2
votes
2answers
2k views

How to create MBtiles file from “.osm.pbf” file using TileMill?

I am using Mapbox Offline Map in my app using MBTiles. Previously I was using shapefiles for creating offline maps. After searching a lot I am not getting Australian shapefiles. But my friend ...
0
votes
0answers
41 views

How to preserve the Multiploygons using Python?

I converted my input file with geometry Polygon 25D to an output file with geometry Polygon using the below code. As you can see the below image. Problem is that the holes in the polygon is vanished ...
1
vote
1answer
27 views

Cannot solely remove M value of Shapefiles

I have a couple of Shapefiles which are of geometry type ZM (like PolygonZM, MultiLineStringZM, etc.), however my database (a PostGIS database) is of geometry type Z (like PolygonZ, MultiPointZ, etc.)....
0
votes
2answers
3k views

Select Layer by location does not work

I am having trouble using the "Select Layer by Location" tool. I want to select everything from shapefile A (green) that overlays with Shapefile B (red). Here is the raw data: And one example of the ...
2
votes
2answers
407 views

Save a selected row into a new shapefile with arcpy

I have a shapefile with 100+ rows. What I like to do is to select each row and export all its data to a new shapefile. I tried using the arcpy.da.SearchCursor as follows: with arcpy.da....