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.

0
votes
1answer
7 views

OGRInfo On Shapefile = zero length delimited identifier error

I have an ESRI Shapefile that I can open in ArcMap and QGIS and show the attributes fine. However when I try to load to PostGIS using ogr2ogr I get an error saying ERROR 1: ERROR: zero-length ...
0
votes
1answer
19 views

Network analysis with a selfmade shapefile in R

I have created two shapefiles in ArcGIS: A point shapefile containing segments of different shops (e.g. grocery, department stores) A selfmade polyline network (including distances) which connects ...
1
vote
1answer
27 views

Select by attribute not working [on hold]

I created a point shapefile by converting a raster into points. The default fields generated were FID, Shape, POINT_ID, and GRID_CODE. I added two new fields "X_location" and "Y_location". I ...
0
votes
0answers
13 views

Creating Shapefile from coordinates with Android? [on hold]

I am creating Android project where I need to create a shapefile from given coordinates. I am looking for suggestions on how to do it. Is there any SDK created for that?
0
votes
0answers
23 views

Coordinate System shows up incorrect after converting a shapely object to a shapefile [duplicate]

I am trying to convert a simple point object created using shapely to a shapefile using fiona as instructed in this post. I pretty much followed line by line except that I changed the crs as I need it ...
2
votes
1answer
37 views

Efficiently relate two large shapefiles for use in Python script [on hold]

I have a large National Land Use Code polygon shapefile for the San Diego area as well as a large point shapefile representing the center of each pixel from the Land Use Code raster for the same area. ...
0
votes
1answer
20 views

Sync-ing ArcGIS Online and collector for ArcGIS?

enter image description hereI am new with "collector for ArcGIS" and we have just recieved the ArcGIS Online account to be able to provide data for Collector. Based on the General instruction, we have ...
1
vote
3answers
46 views

Showing two sets of points from two different fields in QGIS?

I made a union of two adjacent shp (points) files with the same theme (Geochemistry) so the resulting attribute table gave duplicated fields, for example: ID, As_ppm, Ag_ppm, Pb_ppm, ... , ID_2, ...
0
votes
0answers
17 views

Vector Layer | Shape Source not showing on map canvas [on hold]

I am trying to open a shapefile in the QGIS 3.4.4 version but for some reason the layer is not showing in the map canvas. I have tried the drag and drop approach as well as opening from Layer -> ...
1
vote
1answer
39 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 ...
2
votes
1answer
26 views

Identifying intersections in ArcPy?

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 ...
0
votes
0answers
17 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 ...
1
vote
1answer
46 views

What is the difference between geopackage and shapefiles? [closed]

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 ...
1
vote
0answers
21 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
8 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
28 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 ...
0
votes
1answer
36 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 ...
1
vote
2answers
35 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-...
2
votes
1answer
45 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 ...
1
vote
0answers
18 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': ...
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 ...
0
votes
1answer
30 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 ...
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 ...
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
43 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 ...
0
votes
0answers
23 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
0answers
32 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
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:
1
vote
1answer
23 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
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
0answers
31 views

Geopandas doesn't fix invalid geometries

I am trying to fix self-intersecting polygons on shapefiles in Python 3 using Geopandas as below: import geopandas as gpd shp = gpd.read_file('shapefile.shp') print(shp.is_valid) 0 True 1 ...
0
votes
0answers
12 views

Rotate feature around defined fixed point using ArcGIS 10.4

I have a polygon feature and want to rotate it around defined (fixed point). There is a Rotate tool in Editor toolbar but I can't define fixed rotation point. I am using ArcGIS 10.4 and want to know ...
1
vote
0answers
27 views

Synchronisation problems using QFieldSync

When resynchronizing data from QField GPKG project to QGis SHP project, using QFieldSync, attribute data are shifted to the right column. There is a lag, I have never seen something like that before. ...
0
votes
0answers
43 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 ...
0
votes
2answers
48 views

Error when trying to create shapefile layer

I'm not super familiar with QGIS as I am used to ArcGIS. But when I try to create a new shapefile layer, I keep getting an error that says, "Layer creation failed: Failed to create file vacancies.shp: ...
0
votes
0answers
27 views

How to create an area cartogram in Shapefile format

I am working with state level data on health insurance to create a map with each state color-coded based on that data. This is fairly straight forward but some of the largest states geographically are ...
-2
votes
1answer
66 views

Shapefile solution needed

I am a meteorologist and I make my own weather maps. There are some products that come to me as shapefiles. My main contouring program handles shapefiles, but poorly and slowly. I'm looking for a ...
1
vote
1answer
25 views

Find layer name of sp object

After making some changes to an sp object I want to save it as a shapefile using writeOGR()so that I don't have to repeat the cleaning every time. I haven't found a way to identify the layer name of ...
2
votes
1answer
30 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 ...
0
votes
0answers
17 views

Newly added layers to QGIS 2.18 will not display in the print composer

I have an existing QGIS project that until today was just fine. I added a new shapefile to the project but these new data fail to display in the print composer. All other existing data in the ...
-1
votes
1answer
25 views

Mass Updating to Move Points to New Location using ArcPy? [duplicate]

I have updated x,y for about 50,000 points. How can I move the points to their new location at once (not one by one)? I know there is a way of creating a new .shp from updated x,y but that won't ...
1
vote
1answer
67 views

Renaming columns using geopandas - issues with data table in Arc

What I'm trying to achieve: Read in an existing ESRI polygon shapefile Drop an attribute Dissolve by another attribute Rename columns Reorder columns Write out as new shapefile What works: Drop ...
2
votes
1answer
48 views

PyQGIS code for Merge Vector Layers

I've been trying to automate the merge vector layers via PyQGIS but I can't seem to get it right. This is my code: import os import processing loc = r"C:\Users\loc" os.chdir(loc) shapelist = os....
-1
votes
0answers
26 views

Unable to convert shapefile to raster using Natural Neighbor tool

I have been trying unsuccessfully to create a raster from a point shapefile of altitudes using SAGA and the natural neighbour algorithm but it always shows an error. The data was imported using a ...
0
votes
0answers
36 views

How to specify shapefile variables length in R?

I am using R to edit some shapefiles with readOGR and writeOGR functions. I can edit the name and type of my shapefile variables, but not the length. Example: i want that my variable of type string ...
1
vote
0answers
91 views

Optimizing polygon ordering

Does anyone know of any GIS tool that reorders polygons so that the path through all polygons is minimized, i.e. it solves the travelling salesman problem? Here's an example of just how poorly ...
0
votes
0answers
37 views

Reading and processing large shapefile

I have a large shapefile (~10 Gb) which it output of Atoll (RF Coverage) and I need to perform some post-processing on it. I began by importing the file in a file geodatabase, the file was imported ...
0
votes
0answers
22 views

Geocoding to search only addresses within shape?

I have a couple of names of different cities/villages from a data set created using 100 year old documents. I would like to geocode these villages (i.e. assigning coordinates) but the addresses are ...