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

SHP file of GDAM polygon of my country to my ASSETS not match the map base borders in GEE

I upload GDAM polygon of my country as shp file to my ASSETS but as layer this borders not match the map base of GEE. Other source Geofabrik OSM shp files are exactly the same as on GEE, but they are ...
1
vote
2answers
89 views

Import shapefile to SQL Server 2019 using OGR2OGR

I'm trying to import a shapefile into SQL Server 2019, running his command: ogr2ogr -progress -f "MSSQLSpatial" "MSSQL:server=XXXX;database=test;UID=XXXXX;PWD=XXXX" "MYFILE&...
0
votes
1answer
174 views

Convert Numpy array to shapefile

I read in a raster and turned it into a binary image (land/water mask) of 0's (water) and 255's (land). I've named this array src_landCoverArray. I want to output this array as a shapefile with water ...
0
votes
1answer
32 views

Keeping symbology properties when converting from CSV layer to shapefile in QGIS

Is it possible to keep specific symbology settings when converting from a CSV file to a shapefile in QGIS? I've added categorised renderer settings within my CSV file layer and don't want to loose ...
1
vote
1answer
33 views

How to split a single polyline shapefile into many shapefiles based on unique value using GeoPandas?

I have a single polyline shapefile with multiple features (row). I want to export each row to separate shapefile with using GeoPandas. But I got Geometry error in the code. This is my shapefile: and ...
0
votes
1answer
75 views

Converting shapefile to raster by passing specific column/variable using GDAL in Python

Followed the steps from this link to create raster from shapefile using GDAL Convert an OGR File to a Raster but it is returning an empty raster. Can someone tell how to define a particular column ...
2
votes
1answer
49 views

GeoPandas: Problem with encoding

I have the problem with encoding because I need Polish letters and encoding="utf-8" didn't work. import geopandas df = geopandas.read_file(r'/home/gis/adresypolska/PRG_PunktyAdresowe_POLSKA....
0
votes
1answer
53 views

Test intersections with time indicators in R

I have a sf object with MULTIPOLYGONS that refers to flood episodes from 1800's onwards(https://data.gov.uk/dataset/16e32c53-35a6-4d54-a111-ca09031eaaaf/recorded-flood-outlines). Then I have another ...
3
votes
1answer
52 views

Selecting points shapefile by raster values

I have a shapefile point (with 200 points record) and a raster image (with 5 classes). I want to select points that fall within a specific class of the raster image. For example, I want to select ...
0
votes
1answer
21 views

How can I import assets of type folder shared by my co-worker?

I am very new to Google Earth Engine. My coworker shared his asset folder with me but as i open the link it gives me an error that "Unable to import asset of type folder".
1
vote
2answers
66 views

Converting a shapefile from decimal degrees to UTM (km) in R

The code that I have below seems like it works in converting my vector roads which is in decimal degrees into a UTM CRS so that I can more easily work on the data in kilometers rather than decimal ...
2
votes
0answers
21 views

Using ogr2ogr to convert Natural Earth data to Polar Stereographic projection

I’m trying to build some maps of the North Pole area for my website. I’ve flown over it a few times and want to make a map of the flight paths I took. As you can see, a normal Mapbox map doesn't look ...
4
votes
1answer
85 views

Changing field values on a attribute table using GDAL/OGR (ESRI Shapefile)?

I am trying to create a new column on attribute table of my shapefile. This table must be the FID formatted with 4 (or any number) digits (for instance: 0 = 0000, 1 = 0001, 2 = 0002...) but I just can'...
1
vote
0answers
39 views

Wrong scale in Print layout mode

I´m using qgis 3.16 and have the folowing Problem: If i´m in the primary Window the scale on the bottom of the scrren shows me a correct value, but if i switch into the Printlayout mode the value of ...
0
votes
1answer
84 views

Converting a Road shp file into a continous Road Raster in QGIS?

I have converted a Road shp file into a Raster in QGIS, however after the conversion the Road is no longer continous (i.e only the cell corners are touching). I have tried increasing the resolution ...
1
vote
1answer
33 views

Merging two shapefiles only for those polygons that have same boundaries or within tolerance distance using ArcMap

I have two shapefiles for district boundaries of India in 2001 and 2020. Because boundary of districts changed over time since districts merge and split, I want to export only those districts (they ...
4
votes
2answers
227 views

Combining CSV and shapefile to find area name where stations are located

I have one shapefile with marine areas. The other is a CSV file with some station names and coordinates. I would like to get table with stations names and corresponding marine area names, where the ...
0
votes
0answers
17 views

Summing values of smaller polygons within larger ones using ArcMap

I am trying to find the population for Neighborhoods in Chicago. I have a shapefile of the Neighborhoods and a shapefile of census tracts with the population for each tract. The neighborhoods are ...
2
votes
1answer
44 views

Create a raster from polygon

I have a shapefile of thousands of polygons. I'm looking to loop through each polygon and create a raster of the shapefiles boundaries for each polygon. I'm looking for each raster to have the value ...
1
vote
1answer
35 views

Different styles of area in same shape layer

I'm using QGIS 3.16. I have the following problems: One of my shape-layer has several areas. Now I want to give every area a different style/colour. I already found the function to give all areas the ...
0
votes
1answer
53 views

Merging shapefile with dataframe and plotting using R

I am using R. I have a shapefile that gives me the provincial boundaries for a state and I want to use another dataset to combine the aggregate total enrolment in schools by 'district' to the ...
2
votes
1answer
48 views

Lost Polygons after clipping Shapefile using QGIS clip fuction

I'm trying to clip the CORINE Land Cover 10 ha Shapefile (https://gdz.bkg.bund.de/index.php/default/open-data/corine-land-cover-10-ha-clc10.html) with a district shapefile to get my investigation area....
0
votes
0answers
29 views

Editing areas in shapefile + scalebar

I´m using Qgis Version 3.16 I have the following problems: One of my layer has several areas. Now I want to give every area a different style. I already found the function to give all areas the same ...
0
votes
1answer
64 views

QPJ Files missing [closed]

So i have these shapefiles which i got for a thesis, a shapefile layer with 6 files. And i tried to make a shapefile layer where i crop the district from the old layer and pasted it in the new layer. ...
1
vote
1answer
36 views

PyQGIS CRS projection issue when converting shapefile to heatmap

I am trying to create a Python script that runs in the QGIS Python Console and uses the QGS API to create KDE heatmaps from shapefiles. The shapefiles can come in any number of CRS's but the heatmaps ...
0
votes
1answer
26 views

Extracting a region's outline of roads from a GIS database, as a vector image

It's now about 5 days I've been trying to extract an outline of the internal transportation routes of a city (Tehran) from various kinds of GIS sources, and exporting that outline as a vector image, ...
1
vote
1answer
52 views

How to override shapefile geometry type in OGR

I'm new to ogr. I tried to copy a WFS layer to shapefile using CopyLayer but I get this error. ERROR 6: Geometry type of `Multi Curve' not supported in shapefiles. Type can be overridden with a layer ...
0
votes
1answer
44 views

OGR - 'NoneType' object has no attribute 'CreateLayer'

I have an error when i wan't to create a Shapefile layer with OGR. When I run my script for the first time, everything all right, layer is well created. But when i run it for the second time ...
0
votes
0answers
21 views

Creating shapefile using GDAL OGR? Script runs but does not create the files

This script runs but does not create the shapefile files. It works, however, if I were to replace the driver for GeoJSON and create a GeoJSON file. Context: I'm working through Chris Garrard's "...
0
votes
0answers
29 views

Two files with same coordinate systems should overlap but don't [duplicate]

I'm a complete beginner and I have been trying to solve this problem for hours now without success. I know there are other questions like this one and I've tried to apply the answers to my problem, ...
1
vote
0answers
49 views

No transform is available between OGC:CRS84 - WGS 84 (CRS84) and EPSG:3035 - ETRS89-extended / LAEA Europe

I am trying to add a shapefile to QGIS that contains reconstructed UK postcode polygons (January 2015), which can be found in this link https://www.opendoorlogistics.com/downloads/ in the section 'UK ...
1
vote
1answer
131 views

Creating polygons from points with undefined order using QGIS

I have a point shapefile that contain a batch of features. I want to create polygons from these points. Each point should define a boundary of polygon. There is an unique "ID" field that ...
4
votes
1answer
251 views

Reading non-standard JSON / TopoJSON files in GeoPandas

I am unable to read a TopoJSON / JSON file in GeoPandas. The issue is that it's a JSON file with keys that are "probably" not standard. I tried to use the from_features() method but it gives ...
1
vote
0answers
45 views

Cropping background map by shapefile in QGIS

I would like to crop OpenStreetMap by shapefile of the country in QGIS v3.12.1. I knew some Plugin for that in the older version of QGIS however, it is not available anymore. So what are the options? ...
0
votes
2answers
92 views

Making a rectangular vector shapefile that is a perfect square in QGIS

I'm having trouble making a square vector shapefile, using "Make Rectangle from Extent" (or anything really). I've googled for hours, regrettably the older plugins aren't compatible and of ...
2
votes
1answer
87 views

What files needed to merge two shapefiles using QGIS?

I am trying to build a choropleth map for an assignment. This requires that I merge the shape files in the following compressed folders into a single shapefile. folder 1 folder 2 I have just ...
1
vote
1answer
257 views

How to project Lambert Conformal Conic to WGS84 in Python?

I am using pyproj to re-project Canada's Census Tract boundary shapefiles that are currently in "PCS Lambert Conformal Conic" system. I want to convert them to latitude and longitude WGS84 ...
0
votes
0answers
65 views

Handling large shapefiles and many features( e.g > 1 million points) in Mapbox and GeoServer

I have some issues. But I want to get clarity/assistance on a fundamental one. I use GeoServer as my tile server to my client using Mapbox GL JS. Now, I have uploaded a shapefile that constitutes ...
0
votes
0answers
33 views

Coordinate format query (to create shapefile in ArcGIS)

I am trying to create a shapefile for houses in a particular region (using WGS84). I have GPS data for the houses but when I attempt to create the shape file I end up with just two dots, rather than ...
1
vote
0answers
27 views

Code only saving last polyline with ArcPy

My shapefile contains multiple polylines to segment and buffer and save in a new shapefile. My ArcPy code only saves the last polyline. How do I save each output? def main(): import arcpy fc = r'D:\...
0
votes
0answers
28 views

Using glob to select all shapefiles in a subfolder within a for loop

I want to iterate a script through a number of subfolders within the folder TQ. Within each subfolder are a number of shapefiles that I need to merge and then rasterize. I created a for loop to ...
2
votes
1answer
68 views

Order of layers in PyQGIS layout function

I'm creating a standalone PyQGIS application with a function to print a layout with all layers on the existing canvas. Here is the current code for printing all the layers on canvas onto a layout, and ...
0
votes
1answer
37 views

Converting lat/long to northing/easting given data from a .prj file [duplicate]

I have been given the a file containing a bunch of lat long coordinates along with this information that came from a ".prj" file alongside a ".shp" file: GEOGCS["GCS_GDA_1994&...
0
votes
0answers
70 views

How to Access/Write to a Shapefile in S3 Bucket using BOTO3 and GDAL

I'm trying to access and make edits to a shapefile that's located in a zip on an S3 bucket. So far I've used /vsizip/vsis3/ to access the zip file that the shapefile in question came in. I've made the ...
4
votes
0answers
65 views

ogr2ogr creates too many columns with LEFT JOIN

I am creating a GeoPackage using several shapefiles using ogr2ogr (GDAL 2.2.4): ogr2ogr -f GPKG /path/to/out.gpkg -append -nln out -a_srs EPSG:4326 /path/to/in1.shp ogr2ogr -f GPKG /path/to/out.gpkg -...
1
vote
1answer
43 views

Adding shapes to polygon feature in the same row

I've got somehow simple issue but cannot process it. I am working with shapefile in QGIS (3.10 on MacOS), where having several polygon features stored as rows. I want to somehow (manually) edit some ...
0
votes
0answers
31 views

Creating shapefile of a raster image in QGIS 3.6

I use QGIS 3.6 on Windows and I have been trying to convert raster images into shapefiles. I managed to do that for Digital Terrain Models only, using the conversion --> vectorize tool in the qgis ...
1
vote
0answers
18 views

Getting the coordinates of the points inside of a shapefile/Getting the coordinates of the closest point if there are none

I'm working with an ERA5 (0.25x0.25 degree) temperature dataset for Europe in order to get average temperature in small statistical regions called NUTS 3. So far I've used a shapefile of the NUTS 3 ...
3
votes
1answer
91 views

Combining two shapefiles using common attribute

I have two shapefiles "sf1" and "sf2" for same area. "sf1" is population data for year 2015 and has 6 variables. "sf2" is population data for year 2010 and ...
1
vote
0answers
25 views

Running weekly sceduled project with different input data on QGIS Server

I would like to run a QGIS project with a QGIS server, weekly scheduled. I wish the project to run with a different input data, a shapefile layer. Could such a setup be automatized with QGIS server?

1 2
3
4 5
95