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.

Filter by
Sorted by
Tagged with
1
vote
1answer
42 views

Spacing points automatically instead of by hand using ArcGIS Desktop? [closed]

Is there a way to put points out at 10m apart instead of doing it all by hand? My boss thinks it can be done in Excel but the only way I know how is to enter in each lat, long then import it that ...
2
votes
0answers
41 views

Shapefile or GeoJSON? [closed]

I'm interested in understanding the relative merits of using GeoJSON or shapefile formats for handling geo-spatial data, particularly in an open-source, Python (CKAN project), web-development context. ...
0
votes
0answers
20 views

Export layers in QGIS to one shapefile [duplicate]

I have a group of shapefiles already loaded into QGIS. How do I export them to a .shp, .dpf, and .shx file that I can put into a folder and load onto another instance of QGIS?
0
votes
0answers
17 views

Where can I find hierarchies of polygons in OSM data?

I extracted nationwide data from the geofabric.de website for Germany and used the osm2pgsql tool to get the tables into Postgres. I am trying to extract shapefiles from this data and most ...
2
votes
0answers
46 views

QGIS degrees - meters

I have point data in GDA2020. shapefile *.prj file says units are meters. when I load the data in QGIS the layer units are degrees nd the buffer tool is always degrees. I have searched for every ...
1
vote
0answers
26 views

Shp2pgsql-gui.exe - system error

I have got this message when I was trying to run PostGIS 2.0 shapefile and dbf loader and exporter for first time. I tryed to reinstall but it did not run after second installation either. I have ...
2
votes
1answer
69 views

Getting ExecuteError: ERROR 001558: Error parsing JSON file in ArcPy?

I'm trying to convert some open-source data in JSON format to a shapefile for use in ArcGIS Desktop. I'm attempting to do this in ArcPy with ArcMap 10.7. The data I'm trying to access is here, in ...
1
vote
1answer
32 views

Error when importing shapefile as vector layer into GRASS GIS

I'm tried to importing an Esri shapefile into GRASS GIS using both v.in.ogr and v.in.import however methods fail with the following error message: WARNING: Table <roadsSriLanka> linked to ...
1
vote
0answers
33 views

Attributes encoding problem with rgdal::writeOGR

I performed an intersection of two SpatialPolygonsDataFrame on R (3.5.1) using raster::intersect. Here's the structure of the resulting SPDF attributes table > str(shp@data) 'data.frame': 944 ...
1
vote
1answer
28 views

Convert all KMLs within a directory to SHP, zip by name, and move to another output folder? [closed]

I have the requirement to convert a list of ~100 KML files into shapefiles and later merge and upload the polygons as one layer into ArcGIS. I'm new to GIS and Python. I've been able to convert ...
2
votes
1answer
52 views

Error converting vector shapefile to raster (.TIF) in QGIS?

I am working with a shapefile of 10km grid regions of the UK obtained from digimap. I need to convert this to a raster in order to do some analysis in R regarding agricultural intensity of 10km UK ...
1
vote
0answers
21 views

Copying value from file geodatabase field into shapefile field using ModelBuilder? [closed]

Does anyone know how I can pass the value from a field in a file geodatabase to a field in a shapefile using ModelBuilder? I have a Model to do a Definition query via the Select, then use Summary ...
1
vote
1answer
58 views

Creating raster that contains gradients given contour shapefile using R?

Using R I'd like to create a raster from a set of contour shape files, where each cell in the raster contains a value for the derived gradient. I am using OS Terrain 50 contour lines which is open ...
0
votes
1answer
52 views

Rebuilding .shx using python/pyshp?

EDIT: I've tried running the code linked in the duplicate flag, it's posted here for reference, and it doesn't run. I had already referred to that answer in my initial post. My problem Downloaded ...
3
votes
1answer
103 views

Write shp into python and fill in the attribute table

I am struggling to create a shp and I want it to writes records on the attribute table. I can create the shp but I can not fill in with the correct records. I import an Excel file, that contains the ...
2
votes
1answer
54 views

Using shape to find and merge photos in FME?

We have a directory with over 300 aerial photos of our town. Every photo has an unique name. Using an georeferenced Esri shapefile of a specific area we want to copy the photos that are coverd by the ...
1
vote
0answers
53 views

Convert SHP to JSON

I need to convert shapefile to JSON in the following data structure.How can I do this? { "field": [ { "latitude": 52.8812385372, "longitude": 6.9287692025 }, { "...
2
votes
0answers
37 views

Difference in area of polygon and excised raster layer

I'm using QGIS 3.8. I have dowloaded GLOBCOVER 2009 raster land cover map and ecoregions shapefile. Polygon of ecoregions are used for mask to cut raster file. On new layer r.report was performed to ...
2
votes
0answers
41 views

Saga GIS Snap Points to Lines tool doesn't produce required results

I have two sets of data that I'm using. Points extracted from a .csv file and a road network from an ESRI .shp file (both of which I've included here: https://send.firefox.com/download/...
0
votes
1answer
12 views

Clipping using multiple polygons from same layer in ArcGIS

I have a polygone shapefile and now I want to select a couple of polygons which are islands in one big polygon and clip that big polygon with these selected islands. I know that I can use ERASE tool ...
1
vote
0answers
21 views

QGIS - points at the North and South Pole disappear in the composer

I am using QGIS 3.4 to produce maps of the Arctic and Antarctic with weighted points from a csv file. I noticed that I lose the points at the North and South Pole when I add the map in the composer. ...
1
vote
1answer
37 views

Select shapes in one layer that overlap with shapes from another layer?

This question is a duplicate of this: How to select only polygons that overlap with another layer? But in my question I want to know how to do this in QGIS not in ArcGIS. I want to be able to select ...
0
votes
1answer
23 views

Shapefile creation for GeoServer from cruise track, and serve as layer in Leaflet

I am new to both GeoServer and shapefile, today only I installed (GeoServer) on my CentoOS, I am familiar with Leaflet, I am looking for solution to draw huge cruise track which are already there in ...
2
votes
1answer
40 views

Merge hole between shapes into any neighbouring shape to remove it?

I have a shapefile that I made by from 2 distinct shapefiles (I am using QGIS). The issue is that they don't overlap precisely so I have holes like the following: I tried the vertex editing tool but ...
2
votes
1answer
57 views

QGIS processing.run() standalone script does not write .prj and .cpg output files of shapefile?

I've created a python standalone script to clip two shapefiles with qgis. I've installed qgis3 with OSgeo4W. The logic is as follows: import qgis from qgis.core import * from qgis.core import ...
0
votes
0answers
79 views

Exporting XY-data to a new shapefile

I've got a CSV file with 29 rows and 2146 columns including coordinates and a number of reflectance for each wavelength starting from 350 up to 2500. I imported the CSV file in QGIS without any ...
2
votes
2answers
78 views

Extract the attribute names from a large number of Shapefiles

I happened to need the attribute names of a large number of .shp files. Is it possible under Linux, without importing the files into a GIS?
3
votes
2answers
128 views

Loading CSV with X&Y and Save as Shapefile using PyQGIS?

I am attempting to transform a CSV file with joined fields of Eastings and Northings into a shapefile with PyQGIS (QGIS V3). Here is where I've got to: 1: Loaded the postcode shapefile which ...
0
votes
1answer
75 views

Unable to import shp to QGIS 3.0

I'm using QGIS Desktop 3.8, and unable to import a shapefile. I get the following error: "The layer already exists. Are you sure you want to overwrite the existing file?" I'm super frustrated, ...
0
votes
0answers
37 views

Error in RGEOSDistanceFunc(spgeom1, spgeom2, byid, “rgeos_distance”) : negative length vectors are not allowed

What does the error in the title mean? I'm fairly new to GIS and can't understand which negative length vectors R is talking about? Here is what I'm doing: I have a csv of lat/long locations of ...
0
votes
1answer
47 views

Change LIDAR classification of points inside polygons

I'm trying to create a pdal pipeline to adjust the classification values for all points inside polygons, but I can't seem to get it to work. The filters.range works correctly because the output file ...
2
votes
0answers
24 views

Creating Swath View from Point data using Python?

My situation Input: point data from planting file Feature Attribute: [('DeletionFlag', 'C', 1, 0), ['Field', 'C', 254, 0], ['Dataset', 'C', 254, 0], ['Product', 'C', 254, 0], ['Obj__Id', 'N', 15,...
5
votes
1answer
106 views

QGIS edit toggle does not work with ANY layers I bring in (as shapefile)

I bring in polygon as Shapefiles and they display, I can select, all looks well. However the toggle edit is ALWAYS greyed out. If I make a new layer with features in it, the toggle edit is fine. ...
0
votes
1answer
48 views

Converting ENVI grid to Esri shapefile?

I have build geographic coordinates grid for raster in ENVI. It can be saved in grd format only, but I need shp (shapefile) format for opening it in ArcGIS Desktop or MapInfo. Does anyone know how ...
1
vote
1answer
22 views

Adding data from KML/shapefile/GeoJSON to OSM nodes

I have data of streets which is marked with the osm way/node ids. I would like to add speed limit data which is available in KML, shapefile, or GeoJSON to these OSM wayids (OSM wayid with start node ...
2
votes
0answers
45 views

What happens if you set QGIS as the default program to open a *.SHP file?

In the screenshots of shapefiles in this question, Accessing downloaded shapefiles/attribute data?, you can see that the .shp files have the QGIS logo as its icon. I think this means that on that ...
2
votes
1answer
111 views

Creating equally spaced coordinates on California state map created with basemap?

I have created a California state map with basemap Python library and this shapefile. Code is below from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt fig, ax = plt.subplots(...
0
votes
0answers
23 views

Coordinate system problem; two features won't match up (linear units problem?) [duplicate]

I have two features that should overlay, both are shape files and one is polygons and one is polyline. The line should essentially outline a specific region in the polygons, but they are completely ...
2
votes
2answers
55 views

QGIS 3 shapefile attribute table sort order

If I open a shapefile in two empty QGIS projects and view the attribute table the rows are in completely different orders. How does QGIS decide which order to display the rows in an attribute table ...
2
votes
1answer
136 views

Using ArcPy to insert new data into shapefile without editing it?

I want to insert new data into a empty shapefile. I have an array with the fields values of each row and I use InsertCursor to add these data to my shapefile. When I run the code if the shapefile is ...
1
vote
3answers
32 views

Merging different types (e.g., polygon with polyline) of shapefiles? [duplicate]

I want to create a watershed shapefile with areas, streams and pour points in it. Is there a way to merge the areas (polygons) with streams (polylines) and pourpoints (points)?
1
vote
1answer
42 views

Calculate area, length, width of rectangles in shapefile with Python

I have a list of rectangles imported from a shapefile into Python in degrees. (EPSG:4326) rectangles = [{'type': 'Polygon', 'coordinates': [[(-61.55002968237319, 73.546895599812856), (-61....
1
vote
0answers
33 views

Copying attributes from one point to another in QGIS [closed]

I have mapped several points on a shapefile. Some of them share the same attributes. In the attributes table I copied the attributes of the source point, select the target point with empty row, but ...
4
votes
1answer
91 views

Sharing shapefile collection

I have a shapefile and I want to share it via email. I noticed that ArcMap saves this file as a bunch of little files with various types (.cpg, .dbf, .prj, .shp, etc.). Is the best way to share a ...
4
votes
1answer
97 views

Extracting data within geometry (shape)

I have a NetCDF dataset which I normally call using the xarray function. I have recently been doing some transect analysis on the dataset, which looks something like this (the area between the ...
1
vote
1answer
174 views

Finding overlapping polygons in two shapefiles and deleting them in R? [closed]

I have two shapefiles with more than 1000 polygons each, and they represent two types of agricultural fields in the same area, which means they should be different types. Some of the polygons are ...
0
votes
0answers
16 views

Updating building data?

I need to update a building data (shapes) in ArcGIS Desktop. One Shape is with the buildings of a city from 2012 and the otherone with the buildings of the same city from the year 2019 (perhaps 300....
1
vote
2answers
59 views

Making correct shapefile for Mapbox Studio in QGIS?

I want to create an age building map of my home city. I made decision to follow this tutorial: https://www.wired.com/2013/10/how-to-map-building-ages-in-your-home-town/. Building footprint shapefile ...
1
vote
1answer
54 views

Allow client to upload ESRI shapefile in OpenLayers 3 [closed]

I want to build functionality to upload ESRI shapefile and overlay it on map using OpenLayers 3. Once user cross checked I want to save to PostgreSQL/PostGIS table. So far as I Googled I am not ...
3
votes
1answer
39 views

Extra vertices being added to polyline during ArcMap editing of shapefile?

I have a layer of multiple polylines each of which had some vertices. While editing vertices in ArcMap 10.5.1, all lines have become features with too many vertices. Does anyone know what is the ...