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
1 answer
73 views

Batch rename of geotagged photos taken inside a shapefile

I have hundreds of geotagged JPEG photos, with camera default naming, that are taken somewhere out there but always inside the borders of a shapefile. I need to rename them all with the shapefile id ...
user avatar
1 vote
1 answer
57 views

Plotted shapefile doesn't lie on base map

I am working on choropleth map showing particulate matter by some district of an area. The attribute table is as shown below (with geometry):- The code I used is:- library(mapview) library(dplyr) ...
user avatar
  • 133
1 vote
2 answers
173 views

Writing empty GeoDataFrame to shapefile using Python

I don't know why this is so hard to find or to do, but how does one create an empty .shp with geopandas? I essentially want to duplicate the processes of creating a type: polygon shapefile from QGIS, ...
user avatar
  • 1,037
1 vote
0 answers
50 views

Missing fields when importing shapefile to PostgreSQL/PostGIS using Geotools [closed]

I want to import shapefiles to database using geotools , the code below worked for only one shapefile ( which was imported successfully ) , so I supposed my code was working fine , but when I ve tried ...
user avatar
2 votes
1 answer
57 views

Google Earth Engine: extracting pixel values at points from a shape file and creating a table with extracted pixel values and associated point IDs

this is my very first time working with the GEE and I have tried now for over 2 weeks to write my own code for this, but I'm pretty desperate with it - it just doesn't work. I have a shape file with ~...
user avatar
  • 23
2 votes
1 answer
68 views

Getting coordinates from random points in polygon and sync it with shapefile in QGIS

In QGIS I have a shapefile that contains a polygon of administrative boundaries in a country. I need to add six random points inside the polygon. Can i get the coordinates from random points feature ...
user avatar
1 vote
2 answers
80 views

Atlas and county level data, but creating maps zoomed out to the entire U.S map

I am using QGIS 3.16.12. I have a dataset of 150 retail companies, each selling a product over 100 counties across the country. This dataset also includes data on the number of sales per county for ...
user avatar
  • 109
2 votes
0 answers
71 views

Convert x,y to lat, long values

I am a senior with limited GIS experience. I am using QGIS to convert northings and eastings to latitude and longitude. I am having difficulty extracting lat, longs from one last survey shapefile. I ...
user avatar
  • 51
0 votes
1 answer
54 views

Export WFS Features as Shapefile giving Error number: (8, '') using PyQGIS

I am new to PyQGIS and trying to export a WFS Feature as a Shapefile called Test.shp. uri = r"https://www.geoportal.rlp.de/mapbender/php/wfs.php?INSPIRE=1&FEATURETYPE_ID=2939&VERSION=2.0....
user avatar
0 votes
0 answers
31 views

QGIS - Problem with exporting an edited Excel file (.txt) as a shapefile

I'm having a problem with exporting an edited Excel file (.txt) as a shapefile.. Here's the workflow: I've created a new vector layer with 5 dots --> I export the layer data to excel and add 2 new ...
user avatar
0 votes
2 answers
96 views

Clip NetCDF files by shapefile

I have 7000 nc4 files and I need to clip netCDF files based on a shapefile, but I have a problem with rasterio. After I run this code, I got the error: #AttributeError: module 'rasterio' has no ...
user avatar
  • 17
1 vote
0 answers
38 views

Selecting and moving points/polygons from multiple shapefiles in QGIS

It seems that QGIS supports only moving one shapefile at a time. I have installed the MultipleSelection plugin but I receive the following. 2022-06-09T13:42:21 WARNING Traceback (most recent ...
user avatar
  • 19
1 vote
1 answer
27 views

Cannot invoke "org.geotools.data.DataStore.getTypeNames()" because Datastore is null

I would like to import shapefiles to PostGIS. the method I used to work with takes as argument the path of the shapefile ( a string ) , but since I need to link this to my frontend , I can only work ...
user avatar
0 votes
1 answer
105 views

Converting .xls to .shp

I'm very much a GIS novice but have been maintained an interactive tool on arcGIS for several years and am only now experiencing a problem with it. We are collect and update data on an Excel ...
user avatar
  • 1
1 vote
0 answers
44 views

Change color of a line segment from a new point layer

i have a shp with an infrastructure and I was wondering if I can change the color of its segments after doing a snap of a point from a new layer on a the line vertex. The infrastructure has start and ...
user avatar
1 vote
1 answer
30 views

v.clean rmarea resulting in empty result

I got some issues with v.clean in QGIS. I try to get rid of small polygons in a vectoriced raster layer. The Layer got one column with integers with value 0 or 1. I use: { '-b' : True, '-c' : False, '...
user avatar
  • 119
1 vote
1 answer
100 views

Google Earth Engine: Separately extracting states with same names from FAO dataset

I am trying to filter Punjab shape from the FAO GAUL: Global Administrative Unit Layers 2015, First-Level Administrative Units in Google earth Engine. But since two states from two different countries ...
user avatar
  • 111
1 vote
1 answer
40 views

QGIS crashed when QgsVectorFileWriter.FieldValueConverter() was used as fieldValueConverter option

I want to export the PostGIS layer as a shapefile. I need to use replace all selected raw field values with displayed values in QGIS. To do so, I follow PyQGIS Export table with Replace all selected ...
user avatar
0 votes
2 answers
63 views

Merging large number of .shp files via command line with ogrmerge.py

I have a directory containing many (about 100,000) .shp files. I would like to merge them together via the command line using ogrmerge.py like this: $ ogrmerge.py -single -o output.shp *inputs.shp I ...
user avatar
0 votes
0 answers
114 views

Show shapefile data in Flutter app

In Flutter there is availability of one package which cost more than 6k USD per year, looking a affordable method for Flutter to show shapefile in a Flutter app with data lines between continents and ...
user avatar
  • 1
2 votes
1 answer
101 views

Polygon boundary from shapefiles not in latitude/longitude format

I just downloaded the shapefiles for the County boundaries in Minnesota from here. Now I am expecting the boundaries of the Polygons/MultiPolygons to consist of latitude and longitudes (according to ...
user avatar
0 votes
1 answer
50 views

Select and save as shapefile feature in R using sf

How can I select the shapefile feature there is, "D3" in "New.Code" columns using sf packages in R Here is the attribute table of my shapefile:
user avatar
1 vote
0 answers
29 views

Download/Export complete Dataset of WFS with limited amount of features in QGIS

I want to export a WFS Dataset with over 14.000 Features in it. The Amount of features one can download is limited to 300. Is there any way to extract all features to one shapefile in QGIS, even if ...
user avatar
0 votes
0 answers
39 views

How to make polygon shapefile from .csv file with ShapeSTArea and ShapeSTLength features?

I have a .csv file that includes x and y coordinates as well as ShapeSTArea and ShapeSTLength features. (see below) I'm hoping to turn this .csv file into a shapefile that instead of displaying ...
user avatar
0 votes
0 answers
22 views

Integrating multiple attribute in dataset to one attribute in shapefile

I would like to integrate the multiple years of disaster dataset with the shapefile picturing the city affected. However, when I joined the layer (Properties, Joins), only one data is selected for ...
user avatar
  • 1
2 votes
1 answer
34 views

Splitting feature into individual features in QGIS

In QGIS I have a layer that is made up of a large number of polygons that are merged together to form one feature. Is it possible to split this feature into the individual polygons that make it up so ...
user avatar
1 vote
0 answers
35 views

Why new shapefile is not appearing in QGIS? [duplicate]

In QGIS 3.24.2 I have just opened a new project and when I add a new shapefile layer it brings up a box saying that the layer already exists and asking if I want to overwrite it. However, I haven't ...
user avatar
2 votes
0 answers
48 views

Finding and removing overlaps in a shapefile using PostgreSQL

I was wondering if it's possible to remove any overlapping areas that occurs in a column based on a sample of the table for the shapefile with 2 important columns: Shape area Geom I'm trying to find ...
user avatar
  • 21
1 vote
1 answer
73 views

Holes closing near extent boarder

I have a shapefile that looks like this: the yellow polygone is a sqare of full extent size (not separate polygons) with class 0. Polygons of other colors have another classes (1, 2). If to look ...
user avatar
1 vote
0 answers
84 views

Shapefile field precision change python

I have a shapefile where some columns from the attribute table of this shapefile have "Double" datatype with precision 15 (see below) How can I change it to have precision 2 using Python? ...
user avatar
1 vote
0 answers
129 views

Loading shapefile data into L.shapefile says nodebuffer is not supported by this platform

I am having a shapefile that is converted to a Base64 string. I am converting it to a file and then trying to convert to arrayBuffer using 'FileReader' to fit the data to match (L.shapefile) https://...
user avatar
0 votes
1 answer
67 views

'union' between spatial polygons and spatial points in R

I have a gridded map shapefile with grid identifier cells (gid). dput(head(grid)) structure(list(gid = c("183253", "183254", "183255", "183256", "183258&...
user avatar
  • 39
0 votes
2 answers
69 views

Seeking Italy building shapefile [closed]

I'm looking for a buildings layer shapefile for Italy but the one I can find for free here looks incomplete in comparison to when I do a sense check against Google Earth: https://mapcruzin.com/free-...
user avatar
  • 11
0 votes
1 answer
80 views

Split TIFF and shapefile into smaller parts [closed]

I have a large TIFF file (14 GB), and along with it, I have a shapefile, covering parts of the TIFF in different shapes I want to basically just split the TIFF into smaller squares, while also ...
user avatar
0 votes
1 answer
37 views

Opening shapefile in ArcGIS Desktop

I have the following files: file.cpg, file.dbf, file.prf, file.sbn, file.sbx, file.shp, file.shp.xml, file.shx How do I open this in ArcGIS Pro which is looking for a file with extension .aprx or ....
user avatar
1 vote
1 answer
33 views

Artificially extend a DEM to clip it

I have a DEM that is slightly too short for one of my shapefiles. I would like to extend the DEM to the North so it covers entirely the shapefile, and then clip the DEM to the extent of the shapefile. ...
user avatar
  • 137
1 vote
1 answer
32 views

Last record of a shapefile not visible on the map

I am trying to load a .shp in QGIS, specifically a line .shp. Weird thing is that when loading it shows all the lines (records) except the last record (the one with the highest ID record). I tried ...
user avatar
  • 11
6 votes
2 answers
247 views

Creating Virtual Layer as union of multiple layers with same schema in QGIS

I have a Layer Group surveyor with lots of layers (shapefiles) with seemingly random names, and with identical schemas. I would like to combine them all to one layer; preferably with a Virtual Layer. ...
user avatar
0 votes
1 answer
58 views

Implement plot purchases on fictional map [closed]

I have a high res fictional map (PNG) of a ancient city. How can implement it as a game where people buy plots on it? I have an image with Dimensions - 2000 x 2000. I Managed to use Maptiler and ...
user avatar
3 votes
2 answers
176 views

Selecting points which touch "boundaries" of another polygon using QGIS

I have an quite complicated polygon shapefile and a lot buffers around points (second shapefile). These small polygons are within and outside of the big polygon. I need to select those polygons which ...
user avatar
1 vote
1 answer
213 views

Converting x/y in Pandas DataFrame to lat/long

I have written the following Python code to convert various input files into a shapefile using Pandas. The coordinates of the input file are x,y which is what my shapefile outputs to, but I would like ...
user avatar
0 votes
0 answers
32 views

How to create a mosaic from different shapefile in R?

I have 37 shapefiles with different names.Individually each of them represent a different part of a country. I would like to create a mosaic of my 37 shp to just have one a the end. To make things ...
user avatar
2 votes
1 answer
128 views

CRS is empty but GeoDataFrame plotted correctly when reading shapefile with GeoPandas

I have a shapefile that I created in QGIS using the projection NAD_1983_2011_StatePlane_Virginia_North_FIPS_4501_Ft_US. When I load the shapefile into Python as a GeoDataFrame, it appears that the gdf ...
user avatar
0 votes
1 answer
78 views

GeoPandas input file to shapefile with coordinate system information

I have written some Python code to convert different input files to a shapefile using geopandas. import pandas as pd import os import geopandas as gpd from shapely.geometry import Point #convert to 3D ...
user avatar
1 vote
1 answer
30 views

Delete a shapefile feature without mixing up the feature IDs?

If I open a (shapefile) feature source and delete a feature, something happens with the IDs (some mixup). If I close and open the shapefile again it is still mixed up. But when I close the shapefile ...
user avatar
  • 63
1 vote
1 answer
38 views

QGIS Aggregate 1x1km grid into 10x10km for Brazilian Land-Use Data

I'm working with an externally-provided dataset, which is a 1x1km grid of the Brazilian Amazon. Each grid cell contains information on the percentage covered by various land-covers e.g. 30% Pasture, ...
user avatar
  • 19
3 votes
1 answer
144 views

Getting all shapefile layers in project using PyQGIS

I'm writing a plugin that needs to check a few things for every shapefile layer in the current project. I am iterating over the layers as shown below, but cant figure out how to check if it is a ...
user avatar
2 votes
2 answers
65 views

Merging multiple point layers with common fields to create single table in QGIS

I have seven point shapefiles at the same geographic location with three common fields ("ID", "name2", "name3") and a fourth field, ("uni_value") that is unique ...
user avatar
  • 203
2 votes
0 answers
72 views

How to clip GeoTiff according to shapefile using javascript?

Situation: I am plotting data provided in a GeoTIFF file on a map using Reactjs and geoTiff.js. An example of the GeoTiff files I am using is at the following link: https://drive.google.com/file/d/...
user avatar
2 votes
0 answers
29 views

QGIS find connected lines and store them as Attribute

I have the following issue and as I'm quite a QGIS beginner I don't know how to solve it. I have several Shape files that contain multisection lines. The all have an attribute called "ID". ...
user avatar
  • 21