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
0
votes
0answers
7 views

Displaying a query on a shape from a webpage [on hold]

Essentially I am going to have a webpage where a user is able to query a selection (I.e, municipality A, B, G etc...) from a drop down list, and I would like to show all assets that are within these ...
0
votes
0answers
9 views

Converting polygon shapefile to NetCDF using QGIS?

I am building a model in which landcover and hydrological/climate data are entered mainly as in the format of NetCDF. I would like to use the local data which is in the format of shapefile both for ...
-2
votes
0answers
47 views

Calculating the area of buildings in a Esri shapefile in QGIS [on hold]

I need the area of certain buildings of a shapefile. So far I did not find a solution to get these values in the attribute table.
2
votes
2answers
69 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
103 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
0answers
47 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
18 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
0answers
27 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
21 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
101 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
42 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
17 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
40 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 ...
0
votes
0answers
22 views

QGIS 3 vertex tool in WGS84 [closed]

I have a shapefile in WGS84 that I want to edit some of the polygons (move nodes, add nodes) but when the CRS of the QGIS project is set to WGS84 and I try to use the vertex tool the cursor just spins ...
2
votes
1answer
65 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
44 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
127 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
30 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
34 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
30 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
86 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
68 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
132 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
52 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
45 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
38 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 ...
2
votes
0answers
39 views

Pull information from one shapefile and add it to the attribute table of another?

I'm trying to create a shapefile for one particular area in Germany. I have various shapefiles which store all the information that I need. One of them is a 100m_Gitter_raster (a raster consisting of ...
1
vote
1answer
64 views

Copying fields from one layer to another in QGIS

I am new to QGIS. I need to create hundreds of shapefile layers with the same fields but different points and attribute values: The first shapefile one I created with 12 fields (columns). To create ...
1
vote
0answers
19 views

Shapefiles added through GeoServer REST interface contains no features [closed]

I'm using a put request to create a datastore under a workspace, and automatically register the included feature type in a new layer. The put request succeeds, and I can see the datastore points to a ...
1
vote
1answer
22 views

Add track points in layer

I have a shape file and I want to add a layer which includes the track points (x coordinate , Y - coordinate for the attribute table). I need the tracks for identifying the buidlings and for ...
1
vote
0answers
15 views

Google Earth Engine: Export table with values over time for multiple regions of a shapefile

I'm trying to quantify land use change over time in my region of interest, which is a part of Europe divided into subregions. For this, I'd like to count the pixels of each type of land cover in every ...
0
votes
0answers
29 views

Extract values of pixels from each band of a multi-band raster with a shapefile in Python

I have downloaded multiple products from EO-1 satellite and I have created digital rasters out of them. Each of them contains 10 or 242 bands (those are hyperspectral). I have also created a shapefile ...
0
votes
0answers
12 views

Country boundaries shapefile pre-1980 [migrated]

I'm looking for a shapefile with the country boundaries as they were when Czechoslovakia existed as a country. Is there any online open source resource where I can find historical country boundary ...
4
votes
2answers
103 views

CSV file not joining to Shapefile using QGIS?

I am trying to join a .csv onto shapefile data. This csv file is a non-geometric file. When I go to join the two, the shapefile reads that the columns are null. Both files have matching columns. I ...
1
vote
0answers
27 views

How to specify file format of Split Vector Layer in QGIS [duplicate]

I'm attempting to use the Split Vector Layer tool in QGIS (see screenshot below) in order to separate a larger shapefile into its constituent components by object ID. The tool accomplishes this ...
0
votes
2answers
36 views

Determining when layer has been loaded in ArcObjects?

Is there an event in ArcObjects to determine when a layer (specifically a shapefile) has been loaded into a map? I'm using ArcObjects 10.4.1 and C#
2
votes
1answer
56 views

Banding appears when reprojecting shapefiles using R?

I have downloaded a shape file (Marine Ecoregions (last one on the page)) from the nature conservancy http://maps.tnc.org/gis_data.html I am then using R and the sf package to project this shapefile. ...
-2
votes
0answers
24 views

How to custom table with shp2pgsql?

Is there any way to customize the table for shp2pgsql? I am using the tool shp2pgsql to convert shapefiles to a PostgreSQL/PostGIS database. I have run it with this command: shp2pgsql -a -s 4326 -w -...
0
votes
1answer
37 views

Exporting shapefiles to NetCDF Format using QGIS?

I'm completely new to using GIS but I've got some shapefiles that I really need in NetCDF format for further analysis. Does anyone know if this is possible in QGIS? I know that you can do this ...
2
votes
1answer
62 views

Convert polygon shapefile geometry to text file in a specific layout, including number of nodes per polygon

I'm trying to convert a large shapefile (more than 20,000 polygons) to a text file to use in a modelling software. It needs to be in a specific format which is number of nodes, followed by all x ...
0
votes
1answer
24 views

Get just not null values from intersection of shapefile and buffer with Python

I generated a buffer using this question: Creating buffer circle x kilometers from point using Python? I did an intersection with this buffer and a shapefile using: intersection_origem = shp_geom....
2
votes
0answers
22 views

QGIS – Edits to shapefile attribute table won't save special characters

I'm working in QGIS with a Government of Canada shapefile of all 338 federal electoral districts. The encoding is UTF-8. In the attribute table, all of the em dashes ("—") that should appear in the ...
0
votes
1answer
18 views

Shapefile in leaflet shifted North 0.25°

I have the following problem: I render a bunch of weather maps as PNG overlays with grads and then reproject them from EPSG:4326 to EPSG:3857 to display them in leaflet as follows: gdal_translate -...
1
vote
3answers
66 views

Downloading shapefile from OpenStreetMap?

I am trying to download the shapefile (orange line) from https://www.openstreetmap.org/relation/271888#map=12/48.7810/9.2247 Can you explain how I can extract the shapefile from here?
1
vote
0answers
32 views

Automatic geometry creation [duplicate]

I am currently slowly mapping field boundaries of old agriculture map areas using QGIS. Has anyone designed a magic plugin or method so that the black outlines of the boundaries are automatically ...
1
vote
2answers
39 views

Convert a tab (Mapinfo) file to ESRI Shapefile with ogr2ogr

I want to convert a tab file created with MapInfo to an ESRI Shapefile (.shp) using ogr2ogr in command line. I did the following ogr2ogr -f 'ESRI Shapefile' "file.shp" "file.tab" but it gives an ...
1
vote
0answers
16 views

Can QGIS be used to calculate the up-slopes (total area draining to a specified point) of multiple separate points simultaneously?

I am trying to calculate the area draining to a point of 240 separate points using QGIS. At the moment I'm using the Saga - Upslope Area algorithm to individually work this out for each of the 240 ...
1
vote
1answer
27 views

Shapefile containing several fields with the same variable at different times. How to group them into a single field?

I have a point shapefile that includes several (e.g 160) of fields with the mean temperature and wind speed [at each location] for different days. Ideally, I want to reduce the number of fields to ...