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

Fill shapefile column with raster value, shapefile with alias name and calculated field

I've to sample raster values to fill a column of point shapefile using Python, and for this I've no problem. But this shapefile has some fields with alias name and some fields that result from a ...
2
votes
1answer
32 views

Reading single row in PyShp with shapefile.Reader

I use PyShp and shapefile.Reader to read shapefile files. If I want to read a whole file I use: with shapefile.Reader(file) as shp: for row_num, row in enumerate(shp.iterRecords()): print(...
0
votes
0answers
30 views

Shapefile not overlaying with OpenStreetMap using QGIS [closed]

.shp is created from delimited text option, then exported as a shapefile in WGS84 then reprojected to 43N WGS84. Why are my two shapefiles not overlaying in QGIS?
1
vote
1answer
56 views

QGIS Vector layer stretched across entire map

I have a weird problem. I've imported the vector layer with extends between 2 hemispheres near international date line. It means the map bounds in QGIS. Unfortunately instead of having the object ...
1
vote
0answers
24 views

Union of multiple shapefiles (polygons) in ArcMap creates random vertical and horizontal lines (sections) in output

I have made a union of 4 features (polygon shapefiles) in ArcMap. However in the final output it has made random completely vertical/horizontal lines/sections in the final union. So it should look ...
1
vote
1answer
51 views

Reading a shapefile into networkx as undirected graph

import networkx as nx from networkx.algorithms import approximation as ax Road = nx.read_shp('/Users/benjaminhendel/Downloads/scatteredroads.shp') #Reading Road Data Base = nx.read_shp('/Users/...
1
vote
1answer
28 views

Symbol missing in legend when adding to layout map

I am new to QGIS and I am trying to make a map of India displaying some values. I want to have a legend, and I customised the legend in layers panel, the Layers panel clearly displays my legend. But ...
-1
votes
0answers
37 views

Looking for a tool (probably command-line) for converting very large shapefile (~2GB) to GeoJSON/TopoJSON

I'm working with the USGS NHD national river/stream data. I want to eventually narrow the dataset down, but first I'd like to convert it from a shapefile into a GeoJSON. Usually, I use mapshaper.org ...
0
votes
1answer
34 views

Clipping multiple shapefiles using ArcPy

I am fairly new to Python. I created a folder with 4999 bufferfiles. Specifically, there 5km radius buffer circles, and I am trying to use the clip function with the already made bufferfiles to clip ...
4
votes
2answers
73 views

Python: shapefile.Reader, how to set up .iloc?

I would like to set up range of reading by shapefile.Reader. I couldn't find any suitable documentation. I would like to read rows 0-100. In Pandas or GeoPandas I use df.iloc[0:100], but what should I ...
1
vote
1answer
46 views

Can not resolve the error: Incomplete shapefile definition in 'filename.shp'

I'm trying to add a feature to draw a map but this error: "Incomplete shapefile definition in 'eez v11.shp'" keeps popping. Here is the code I wrote: fname = 'eez_v11.shp' shape_feature = ...
2
votes
1answer
30 views

Adding multiple features from GDB files using PyQGIS

I tried to add all features from a GDB with PyQGIS. layer = QgsVectorLayer(r"path.gdb") QgsProject.instance().addMapLayer(layer) This source code, only add one feature from GDB, but ...
0
votes
0answers
22 views

Reading shapefile(zip) without saving it to the drive in C# [closed]

I'm currently stuck on this issue, I've tried almost everything but didn't get further than this. What I'm trying to do is read the shapefile and extract the data to save it in my PostGIS database(...
2
votes
1answer
29 views

How do I change extent of shapefile into lat lon of NetCDF file?

I have loaded a shapefile and NetCDF into R, and I want to extract data based on the extent of the shapefile. I have done the following, but when I want to extract it I get NA's as the extent differs ...
0
votes
0answers
26 views

Datasets with same geographic and projected coordinate systems, appearing in different locations [duplicate]

I have two different sets of data (multiple shapefiles in each), when I import dataset 1 lets call it, into ArcMap it displays this error message: I then use Define Projection tool on dataset 1 which ...
0
votes
2answers
34 views

Create list of shapefiles names from shapefiles in a folder, if folder does not contain shapefile type, print a statement stating this [closed]

I am creating a list of shapefiles names from files in a folder: items = os.listdir(r'E:/folder/test') print('checking directory...') print('your files are: ') print() filenames = [] for names in ...
0
votes
1answer
30 views

Analysing Raster, Shapefile and DBF together using ArcGIS Pro

Note at the bottom for a possible solution, though it's not very elegant! I’m at a bit of a brick wall – I think this probably has a really simple solution, but I’m not quite sure where to start. ...
0
votes
0answers
37 views

QGIS cutting tile with shapefile [duplicate]

I already have a Sentinel-2 tile imported in QGIS and a shapefile corresponding to the area I want. How do I cut the Sentinel 2 file?
0
votes
0answers
16 views

QGIS - Export raster layer to SVG with maximum detail

I'm trying to export the "Stamen Terrain labels" raster shapefile to an SVG. So I added it to a new QGIS project then I'm trying to use print composer to export the SVG. I want the entire ...
1
vote
1answer
81 views

Is it possible to efficiently get all the polygons inside a polygon from a shapefile without using PostGIS?

I have a huge shapefile (over 400MB) of an entire city that contains many polygons of the residential area of this city. I can check it on QGIS as the following: This shapefile contains a huge number ...
0
votes
1answer
33 views

Can I concatenate multiple shapefiles into one using ogr2ogr?

I know I can convert multiple shapefiles to other formats like described in this question. Also, I know that I can merge multiple shapefiles into one when I have a PostGIS database like described on ...
0
votes
0answers
16 views

OGR2OGR unable to initialize connection to the server for [ConnectionString]

Im trying to import a shape file to SQL Server 2017 using ogr2ogr ogr2ogr -overwrite -f "MSSQLSpatial" "MSSQL:server=.\[SQL instance];driver=SQL Server Native Client RDA 11.0;database=...
0
votes
0answers
13 views

db manager shapefile import error [duplicate]

I am trying to import a shapefile using db manager to postgresql. My shapefile has OBJECTID (PRIMARY KEY), ID (STRING FIELD eg: 2543-96-7948 )and several other attributes of type string. When ...
1
vote
0answers
32 views

Filling in attribute data in QGIS; entered data is erased when saved

I have encountered a very frustrating issue for as long as I have used QGIS, across all versions I have used (up to 3.14). I believe it happens with shapefiles only but I have not verified the issue ...
0
votes
0answers
16 views

Create a folium map with a pop up window appearing when clicking a shapefile feature

I'm trying to create a folium map that will have the following features: A layer will be created from a shapefile including multiple polygon features. When clicking on a single feature a pop up ...
0
votes
1answer
22 views

Classifying points within polygon, outside of polygon OR within buffer at polygon edge using R

I have two objects, a SpatialPointsDataFrame, "points" and a SpatialPolygonsDataFrame, "world_buffer" (both +proj=utm +datum=WGS84). The SpatialPolygonsDataFrame is the world's ...
0
votes
1answer
30 views

Exporting shapefiles to file geodatabase results in no coordinate system (ArcMap)

I export shapefiles with a defined coordinate system to a file geodatabase assigning the export coordinate system same as input file, but when I try to import them back into the project from the file ...
1
vote
1answer
30 views

Categorising raster data based on shapefile boundaries

I've tried searching for an answer but honestly I'm not even sure how to word my search. I'm using Arc GIS Pro. I have two layers that I want to analyse. The first layer is a shapefile and it covers ...
0
votes
0answers
19 views

Dissolving shapefile boundaries results in exogenous left over boundaries?

I'm trying to dissolve shapefile boundaries based on an attribute. I want to combine many smaller polygons so that the result is a series of polygons which are composed of the outside boundaries of ...
0
votes
1answer
32 views

Batch clipping all files in folder and then save using ArcPy

I'm trying to use a script to batch clip all files in a folder, then saved with a _clipped.shp at the end of the original, I need a script that is something like this: arcpy.env.workspace = "E:\\...
1
vote
3answers
54 views

How to update one column in file GDB by using FME?

I have one point shape file (in FME: reader) file which I exported to Geodatabase (in FME: writer). Meanwhile I edited only some features (lines on table) on my point shape file in one column. Now I ...
3
votes
1answer
33 views

Save geodataframes from list to separate shapefiles

I have a list of geodataframes which I imported from a folder full of shapefiles: import glob import geopandas as gpd shapefiles = glob.iglob('E:/folder/shapefiles/*.shp') gdfs = [gpd.read_file(file) ...
1
vote
2answers
42 views

How do I iterate a clipping process through a list of geodataframes?

I have a folder full of shapefiles, I would like to read them into geopandas and then clip them all to one boundary iteratively. I have loaded all of the shapefiles into a list with this correctly ...
0
votes
1answer
34 views

Having more than 10 letter on header while exporting SHP to Excel using ModelBuilder ArcGIS

When I export a shapefile to Excel from ArcGIS using ModelBuilder the header maximum length is 10. I would like to know how can I have more.
-1
votes
0answers
36 views

Seeking other source of information for road networks to increase precision of shapefiles in Balkans [closed]

I am trying to create an infrastructure map for Balkan countries. The thing is that for countries such as Albania, Bosnia - Herzegovina e.tc., the shapefiles from OpenStreetMap http://download....
2
votes
1answer
53 views

Reading all shapefiles in a folder using geopandas and then clip them all iteratively

I have a folder full of shapefiles, I would like to read them into geopandas and then clip them all to one bounding box iteratively, however I'm stuck on the first part which is reading each shapefile ...
1
vote
2answers
54 views

Creating a Polyline from a CSV File

I am creating a shapefile based on three columns in my CSV File - Latitude, Longitude, and Laps. For the most part, I understand how to loop through the data and create the many points based on the ...
1
vote
1answer
24 views

One polygon shapefile is not visible despite successful export with QGIS2WEB [closed]

In my application, all the layers including vector and raster layers successfully imported and web-hosted, but only one vector layer is not visible online, which is visible in desktop mode as well as ...
1
vote
0answers
36 views

Shapefile database structure [closed]

I'm a longtime GIS user who's just recently started learning more about data structures, cursors, and search/sort algos. I've used arcpy.mapping's UpdateCursor and the like for years now and didn't ...
0
votes
0answers
27 views

Calculating the longest path length in drainage network using Python

I have a drainage network and I want to obtain the longest path length between two coordinates of the shapefile; is there is a way to automate this process in Python? For example, in the image, I want ...
0
votes
0answers
36 views

Polygon divider plugin for QGIS gives me “failed float divmod()” error

I'm trying to split a polygon shape file from an open data city .shp file. And Polygon Divider keeps giving me this error. Even when I start a new project, and create a new layer to create a square ...
2
votes
1answer
45 views

How to write a list of Polygons to a .shp file in Python

I create a list of Polygons and MultiPolygons outmulti as follows: for pol in polygonToMulti: for pol2 in tre: if pol.intersects(pol2)==True: counter = counter+1 # ...
0
votes
1answer
43 views

Downloading large data from PostgreSQL DB using WFS request in Shape-zip format using GeoServer

I am using GeoServer 2.18.0 on CentOS 7 & it's deployed under Tomcat 9. We have few large spatial tables in our PostgreSQL/PostGIS database (those table has spatial index and vacuumed) Using WFS ...
0
votes
0answers
17 views

Lowering Raster (elevation map) by shape ile (roads)

I have a raster layer that I want to carve (CNC) roads onto. I have a shapefile of the roads. I used Serval Plugin for the lake to lower it so I could put epoxy into it, but the roads are not all one ...
1
vote
0answers
14 views

Extending geometry of one MultiLine shapefile alongside the geometry of another MultiLine shapefile in Qgis 3.16.5

I'm trying to extend segments of one polyline shapefile from the intersecting point wit another multiline feature alongside the vertices of this secon line feature. For this I'm using the nod tool, by ...
2
votes
2answers
109 views

Manually digitalize points in QGIS with automatic ID

I would like to create a few thousand points by clicking on specific points in my background map. I have created a shapefile-layer for this task. But when I click on the map, QGIS always asks for a ...
2
votes
2answers
104 views

Creating new rows from columns using FME

I am trying to convert columns to new features by using FME 2020. I have tried Attribute splitter than feature joiner but until now without any great success. The image below explains what I need. Any ...
0
votes
1answer
40 views

Slow response of Open Data Cube for large amount of polygons

I have indexed 5 Sentinel-2 images and I am requesting the data (10 bands and the 5 images) for each one of 180,000 polygons included in a shapefile. Each request needs 8 seconds for the related data ...
1
vote
0answers
64 views

Reducing shx file size using QGIS

I have a shp with size 673'476 KB, with shx size 192'422 KB (as shown in the picture below). This file is with points. Is there any way that can I reduce the shx file size using QGIS?
1
vote
0answers
48 views

How to preserve imported shapefile's original precision decimals in QGIS

How can I preserve an imported shapefile's original precision decimals in QGIS? Whenever I import an ESRI shapefile into QGIS, it automatically rounds off all fields containing decimals (data type ...

1
2 3 4 5
97