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
17 views

How to convert shapefile to AutoCAD DWG using a 1:1 scale in ArcGIS Desktop?

I have a potential job that has a requirement of delivering a boundary in AutoCAD. These are the requirements: Digital copy of wetland delineation in AutoCAD shall be provided, with the survey at 1:1 ...
2
votes
1answer
40 views

How to do a layer/ shapefile filling of thickness / transparent by value in QGIS?

I have a shapefile with 500 rows. My goals is to assign each row a specific value of transparency. I know I can group these and then manually assign a transparency to these groups, however I want to ...
1
vote
1answer
35 views

QGIS 3: WFS and local shp

I am new with using WFS layers. My issue is the following : I have a local shapefile which contains a column with a unique id for each entity. I would like to download from a WFS only the vectors that ...
0
votes
0answers
16 views

Geodatabase WildCard File Path Code [duplicate]

Does anyone know how I can use a wildcard in a geodatabase path? Basically I have this old script that uses both shapefiles and geodatabases. I would like to update the script to have a wildcard in ...
1
vote
0answers
37 views

Vector layer no longer editable in QGIS?

This problem was previously mentioned for QGIS 2.16 but I was hoping that QGIS 3.16.5 will not have the same problem. Somehow a vector shapefile gets into a state where it is not possible to edit the ...
1
vote
1answer
30 views

Extracting convex_hull polygon from CSVwith scipy.spatial ConvexHull and output it to a shapefile

I'm looking for a Python solution for extract a convex_hull polygon from quite big CSV (nearly 150 millions points) and return back the polygon to a shapefile. After reading the CSV with pandas (pd....
0
votes
1answer
31 views

From DWG to shapefile

I can't export a project (road) from AutoCAD Map3D to shapefile (QGIS). I tried also with Leica Infinity, but the only data I have exported are my benchmarks, but not the polylines of the road. I ...
3
votes
1answer
44 views

Removing grid from showing up in shapefile

I am pretty new to QGIS. I have the following result generated (map shown). The issue I am having is I am not sure how to get rid of gridlines inside the map in a manner that it just shows the outside ...
2
votes
0answers
25 views

QGIS: Placing points on a shapefile in relation to their distance to other points on that shapefile

I'm attempting to add UK railway signal-boxes to QGIS to extract their coordinates - there's over 1000 of them. I have: The entire UK railway network shapefile The coordinates of train stations on ...
0
votes
0answers
27 views

Creating unique field in shapefile for editing in ArcMap

How do I make a unique and not null field in my attribute table on ArcMap such that when creating new features(through vectorizing) and populating the fields, it gives and error if the field value ...
0
votes
0answers
34 views

How to extract the data from a GML file to a shapefile format? or select only few features from a large GML file?

I have a very big GML file on buildings in Denmark. (I could only download a 'whole country' in one file, so it is big as 17GB, no.of features over 1million). I only need a very few of them in a small ...
1
vote
1answer
25 views

Error keeps showing while I try to merge shapefiles

I am trying to merge shapefiles (I have multiple of them in one folder) but it keeps returning this error. I'm not sure what that means. I didn't change the path or the data. import arcpy, os arcpy....
2
votes
2answers
207 views

Create a shapefile from geometry with OGR

As I see from the GDAL/OGR available solutions, most of the new OGR data sources (shapefile etc.) are being created from an already existing similar file. This way many steps of directly creating ...
1
vote
1answer
48 views

Downloading file using URL value in shapefile field accessed via ArcPy cursor

How do I download files through Python using URLs located in a shapefile with ArcPy? The script needs to read a shapefile, create folders and download images using URLs in more than 1 field/record (...
1
vote
0answers
23 views

New shapefile layer [duplicate]

About creating new shapefile layer. Is it possible to give default folder for saving a file so user can just write the name of new file and not giving the whole path in addition to the name
7
votes
1answer
139 views

Projection transformation of a shapefile

I am using QGIS 3.18.1. I am working on a map around Alaska. I added a world basemap, then added DEM and finally drew a few polygon shapefiles on top. I then tried to find a projection more ...
1
vote
2answers
88 views

Splitting shapefile into multiple by value from field in QGIS

I am working in QGIS. I have a shapefile and its table and I need to export each row as a new file called "Fecha" field: Finally, I will get 6 shapefiles such as 20130612.shp, 20130714.shp, ...
1
vote
1answer
60 views

Reading coordinates from shapefile using shapely

I have coordinates and I am trying to find the roads they are on in a shapefile. My code is as follows: import shapefile from shapely.geometry import Point # Point class from shapely.geometry import ...
0
votes
2answers
29 views

How do I import .lyr files to QGIS? ukhab files. want to add them to a project

I am trying to add these layer files to QGIS but when I go to import they do not appear in the folder as they are saved as .lyr files but this is not an option. I am sure there is a really basic thing ...
2
votes
0answers
31 views

Editing shapefile adding fields with values with pyshp

I'm trying to add some fields to a shapefile using pyshp. The code I have to far is: import shapefile # Read in our existing shapefile r = shapefile.Reader(r"C:\...\Edit_SHP\TracksLines.shp"...
3
votes
1answer
89 views

SQL request with a shapefile data with PYTHON

I have a shapefile with some attributes (Hylac_id, Lake_name, ...) and i want to catch the polygone with a specefic Lake_name. The database than I use is available on the website https://www....
0
votes
1answer
58 views

FionaDeprecationWarning: Collection.__next__() is buggy and will be removed in Fiona 2.0. Switch to `next(iter(collection))`. record = next(c)

I have some Python3 code used to import shapefiles using fiona. This is the main set of lines: I created some code (Python3) with these lines: c = fiona.open(dataDir + "/" + sourceFile, ...
0
votes
0answers
19 views

Molusce Value error: operands could not be broadcast together with shapes (13,)(14,)

I am a PhD student and working on LULC changes. I am trying to use MOLUSCE. When I go to "Area Changes" tab, and I press the "Update tables" or "Create changes map", I ...
4
votes
2answers
186 views

What is the difference between QGIS file types?

When I open the .qgz-file there are the others opened with it at the same time? or what is the use of other types?
0
votes
0answers
42 views

Problem uploading shapefile to GEE

Im trying to upload my city shapefile in to GEE assets, but its always be error message appear : Error: Projection exception. Ensure the projection is specified correctly and the coordinates are ...
1
vote
1answer
55 views

Run QGIS script without going through QGIS

I have the following script that I'd like to run without using QGGIS. Is there a way to do that? import processing from processing.core.Processing import Processing Processing.initialize() ...
0
votes
1answer
24 views

st_combine and st_union produce empty attribute table for shapefile (how to edit before st_write?)

I am starting with R programming and I am having a hard time figuring out how to edit the attribute table of a shapefile after using st_combine and st_union. My shapefile has multiple polygons and I ...
2
votes
2answers
45 views

Calculating the area of multiple polygons using GeoPandas

I am writing a Python script to calculate the area of polygons, as I have a small polygon, I am getting the area of polygon 0.000. A shapefile contains multiple shapefiles. I am thinking due to the ...
0
votes
1answer
22 views

Finding percentage of raster contained in shapefile using ArcGIS Pro

Using ArcGIS Pro, I have a raster that shows tree height and a shapefile that contain parcels of land. I am trying to find out the percentage of the raster that intersects with the shapefile for each ...
0
votes
0answers
28 views

Coordinate System problem

I have 3 shp layers, representing the coastline of South Africa, the harbour area and the study area. I first loaded the coastline and the harbour area, and put them into the WGS 84 - UTM 35S (EPSG ...
0
votes
1answer
29 views

Converting polygons to lines and find the intersection between the lines and polygons from another layer

I have three two different layers of polygons. I am using QGIS 3.16.2 (Hannover) in windows 10. I am not expert by using the vector data. However, I would like to find the intersection point between ...
0
votes
0answers
63 views

QGIS - Misaligned vector layers

I am using QGIS Version 3.16.4-Hannover and Windows 10 but I also tested on Linux Mint 20. I have a problem with several imported shapefiles from different sources. I do not know if I do something ...
1
vote
1answer
72 views

Digitizing and converting PDF to shapefile using QGIS

Is there a way to convert the pdf to shapefile in QGIS? I have plenty of PDF files (I think they are exported from AutoCAD) and I need to georeference them and convert them to shapefile. It would be ...
0
votes
0answers
14 views

Convert 3D-Buildings as MultiPolygonZ to 2D shapefile with height feature

As of March 2021 Switzerland provides the swiss 3D building geodataset for free, it is available as dxf or gdb, the latter contains MultiPolygonZ geometries (buildings also with complex roof ...
0
votes
1answer
51 views

Basemap not showing up when saving Shapefile

I am very much a beginner here. I am trying to create a Shapefile to send to an agency to indicate where I will be conducting field work. I am using OCM Landscape Basemap, and I just have a few points ...
0
votes
1answer
36 views

Error saving geodaframe to shp: AttributeError: 'Series' object has no attribute 'to_file'

I have been struggling with a problem related to Getting AttributeError: 'DataFrame' object has no attribute 'to_file' from GeoPandas even though file converted into GeoDataframe ...
1
vote
0answers
58 views

Why don't OpenStreetMap building footprint shapefiles match up with Google Maps or Google Earth?

I've been accessing OpenStreetMap shapefiles using osmnx and then exporting those files into kml files so that I can view them on Google Earth. However, when I do so it appears that the building ...
0
votes
0answers
29 views

Converting .mvt file to .shp file

I managed to scrape an .mvt (mapbox vector tile) file from an online interactive map: here. I procured a landuse development layer. What I want to do is, to reproject this to EPSG:4326 WGS 84 so that ...
1
vote
0answers
23 views

Create new point feature of a shapefile if a condition is met when creating a new line feature

I am working with multiple ESRI Shapefiles, both Line and Point types. Every shapefile has a set of fields and some of them share common values (by default) or have values that refer to each other ...
3
votes
1answer
56 views

Loading zipped shapefile from URL using PyQGIS

I am working on importing weather data from an online source into QGIS 3.10 using Python. When I download the data and use the 'vsizip,' it works perfectly fine and loads the file into my project (...
2
votes
1answer
36 views

Changing degrees to metres [duplicate]

I got a shapefile which is in degrees format. For a vector analysis, I need it to be in meters to set a maximum distance. I can't do that with degrees. I know about on the fly CRS change; That's not ...
0
votes
1answer
23 views

How to clip symmetric difference shapefiles in Google Earth Engine?

I need to clip symmetric difference two shapefiles in Google Earth Engine. How can I do this? I tried this code, but error: var a2 = ee.FeatureCollection(table2) var a1 = ee.FeatureCollection(...
1
vote
0answers
62 views

How to reduce the dbf size in shapefile in QGIS?

Edit of post: I decided to edit the post to answer the comments below / and to change the example of shapefile that I used originally. I am working with QGIS and I have a shapefile with points (that ...
0
votes
0answers
27 views

Conducting common-attribute dissolution ONLY on adjacent features using QGIS

I am working in QGIS. I have a shapefile of city parcels, which I am trying to dissolve where parcels have matching owners AND are touching. "Owner" is an attribute field. How can I ...
4
votes
1answer
65 views

Feature filter for shapefile doesn't work

I have a multiline shapefile with EPSG 25832 and want to use the feature filter in the layer properties source tab. The query looks like this:"Abweichung" = 'Revier 1 zu Pflegebezirk 1' and &...
0
votes
0answers
39 views

Construct a shapefile from information in a dBase file in QGIS

I am using QGIS. I have been provided a dbf file but no shp or index files. Each line in the .dbf file corresponds to a line I wish to show on the map. Each line in the .dbf file has a unique ...
0
votes
1answer
51 views

Polygon Drill on Open Data Cube

I face a crucial problem with ODC. I try to do a spatial join with a shapefile (polygon drill). I have followed the following steps: Read the shapefile and get the first polygon to test Ensure that ...
0
votes
0answers
41 views

Polygon Extent to Xmin, Ymin, Xmax, Ymax .csv

I have a piece of code that reads in a .csv file and outputs a shapefile. After processing and altering the shapefile. The shapefile contains multiple polygons. I need to turn it back into the .csv, ...
0
votes
0answers
33 views

Problems with adjacency matrix with poly2nb in R

I am working with a shapefile of Ohio precincts, with the hope of performing areal regression models (probably BYM2). To build the adjacency matrix, I used poly2nb from the spdep package. As a double-...
2
votes
2answers
75 views

Convert two polygons to one

I use QGIS 2.18.5 and I get in stuck with two polygons I cannot solve. I want to make a new polygon from these two which looks like this: I made thew new one: Cut 1 polygon and paste to other layer. ...

1
2
3 4 5
97