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

Display two different types of attributes, in same dataset, as pie charts in different colours?

Is there a python script or something (maybe there is a simpler way) to display data of the same shapefile as a pie chart but as different coloured pie charts? For example I have road links and ...
1
vote
1answer
73 views

Encoding problem with Portuguese characters while opening shapefile

I use a shapefile with names in Portuguese that contain special characters. When I add it to QGIS it exchanges special characters for symbols, so I have problems when comparing values with other ...
0
votes
2answers
33 views

Create vector .shp file and draw several lines with various attributes (L, Z, S%, etc) from coordinates pairs

I have a set or coordinates which forms lines from two points (p1-p2, p2-p3,...., p(n-1)-p(n)), I want to create a SHP file in order to draw several lines from these points, which have several ...
0
votes
1answer
26 views

Rasterization - choosing attribute from attribute table for cell value of raster - why?

When a polygon shapefile is converted into a raster, an attribute from the shapefile's attribute table must be chosen for the cell value of the raster. I am pretty sure the above statement is ...
0
votes
1answer
77 views

Generate Cesium 3-D tiles from shapefile with FME

I'm trying to generate 3-D tiles from a shapefile. Just simple shp reader directly to Cesium 3D tiles writer. It does generate files, but after uploading them to Cesium Ion it does not work. It can'...
0
votes
1answer
285 views

Getting CRS to export shapely polygon to shapefile

I am trying to export a shapely polygon to a shapefile. I have tried this, but the CRS is missing, when I try to import it in to QGIS. The shapely polygon is from this OSMNX example but edited to ...
2
votes
1answer
69 views

QGIS 'Rasterize vector to raster' failing to create viable raster

I had a DEM (.asc): Which was converted to a shapefile point cloud (see attached below) and I'm trying to convert back to raster within QGIS 3.8.2 https://1drv.ms/u/s!AjCedBZJ5Eh4kEKj4AAjcItprRax?e=...
2
votes
1answer
100 views

Clipping raster file using shapefile that has different blocks inside?

I have a TIFF file as shown below: I have a shapefile as shown: How can I separate the TIFF file into different blocks using the above shapefile?
2
votes
1answer
156 views

Reading large gpkg file in R

I would like to read one variable (column) from a very large gpkg file (20GB) into R. It has only one layer. Is it any way to get one column (I assume that it is a character type but it could be a ...
0
votes
0answers
25 views

Do all coordinates in Polygon3D shapefile have to be in same XY plane?

I'm having trouble finding a definitive answer on this - Suppose you have a Polygon with 4 sides (so five vertices with the first and last being equal). Do all of the z-coordinates of the vertices ...
0
votes
1answer
49 views

Writing shapefile of multiple geometry using Python [duplicate]

How to make a shapefile containing points, polygon, and line using python shapely or pyshp?
1
vote
1answer
48 views

Working/Functioning of “sampleRegions” function in Google Earth Engine

I am doing land use classification in Google Earth Engine. I am using three different classes(forest, building, water) for classification. For each class, there is a shapefile containing polygon ...
2
votes
1answer
133 views

Getting area of shapefile polygons in square kilometers using R?

Firstly, my shapefile has an undefined projection: library(raster) x <- shapefile('file.shp') Warning message: In .local(x, ...) : .prj file is missing crs(x) CRS arguments: NA I know that my ...
0
votes
1answer
155 views

Mask rasterio raster with geopandas shapefile

I am loading a shapefile using geopandas as follows: import geopandas as gpd StudyA = gpd.read_file('.../Study_Area_Polygon.shp') Next, I am using folium to plot it interactively: m = folium.Map([...
0
votes
0answers
33 views

Metric system not working properly while creating buffer in QGIS

I am creating 10 meter buffer on line geometry shapefiles. But the output buffer is too large. CRS of my shapefile is EPSG:24383, which is in metric system. I am creating buffer using Vector > ...
2
votes
2answers
87 views

Calculate average value in GeoTIFF file inside a shapefile polygon?

I'm a forest owner and have information about my forest areas in ESRI shapefile format, in ETRS-TM35FIN coordinate system. I managed to create a text dump about the forest area in the following style: ...
0
votes
1answer
46 views

Carrying information from one shapefile to another based on location using ArcMap

I am a R user but I couldn't do this on R and decided it might be easier on ArcMap but I don't know how to use it that well. I have two shapefiles for same county, one of them has 360 features but ...
0
votes
1answer
28 views

Renaming shapefiles from Cyrillic symbols to Latin ones using ArcPy [closed]

My goal is to rename shapefiles in 2 folders via transliteration using arcpy. That means that I want to replace Cyrillic (Russian) symbols with Latin ones. Here is my code, that doesn't work. What's ...
1
vote
0answers
22 views

Identifying cities from shapefile that showcases functional urban areas (FUA) of Germany

How do I identify which FUAs do certain cities belong to (ex. which FUA does Worms belong to) from the FUA shapefile I have (see image)?
-1
votes
1answer
37 views

Seeking US coastal shapefile

I need to calculate distance to the coast based on a latitude and longitude point. My concept is to use a line of the East Coast to calculate the distance. Does anyone know where I can find a ...
0
votes
2answers
376 views

Python - Mask raster array using shapefile or rasterio

I have a raster that I have resample using rasterio, where img.shape is (5490, 5490) if img.res[1] == 20: img = img.read( out_shape=(img.count, img.height * 2, img.width * 2), ...
-2
votes
1answer
141 views

Python script for converting Esri shapefile into GeoJSON using Python and GDAL/OGR?

I know Esri shapefile can be converted into GeoJSON using Python and GDAL/OGR. Following command works on the terminal. ogr2ogr -f GeoJSON -t_srs crs:84 outfile.geojson inputfile.shp I want to do ...
1
vote
1answer
47 views

Projection system for India or Indian subcontinent with metric system

I am creating a buffer around my geometries using QGIS. The unit of the buffer is shown in degrees because the projection system is WGS84. I need to change the projection system so that unit for ...
1
vote
1answer
40 views

converting polygon data points (shapefile) into point datapoints (another shapefile), using QGIS

I am creating my own dataset for landuse classification. I have four different shapefiles for 4 different categories, forest, water, park and buildings. All these shapefiles contain polygon geometries ...
0
votes
0answers
61 views

Updating shapefiles in QGIS

I've got a parcels layer from the state and i modified it by adding fields relating to my business as in project number and a reference plan field. The state updated their shapefile by adding new ...
0
votes
0answers
26 views

Extracting data from OSM with ogr2ogr — blank output

I have an issue while extracting data from osm via ogr2ogr. What I tried: When I run from command line: ogr2ogr -f "ESRI Shapefile" example.shp source.pbf -lco ENCODING=UTF-8 -progress -sql "SELECT ...
1
vote
1answer
44 views

Converting Road shapefile with line geometries to another shapefile with polygon geometries by adding buffer to line on both sides using QGIS

I have Roads shapefile which are denoted by lines. I want to create another shapefile of roads as polygons, by adding 10-meter buffer on line. How do I do this using QGIS?
2
votes
1answer
39 views

How can I count the number of countries my GPS data fall into?

I'm working with GPS data in R from different studies and would like to list the countries that each study covers. I can easily map the data using leaflet but I'm not sure how to extract the countries....
1
vote
0answers
40 views

Union of two different shapefiles GDAL

With Python 3 and GDAL package, I am trying to merge two shapefiles that come with databases. They come with the following files: grade_id14.cpg grade_id14.dbf grade_id14.prj grade_id14.sbn ...
3
votes
2answers
125 views

Defining and changing unknown CRS into WGS84

I came across a shapefile (no information available about the original CRS) with some unknown Reference System (City of Stuttgart in Germany). Example of coordinates looks like 3465878, 5482952. I ...
1
vote
1answer
101 views

Importing and viewing polygon layer on map?

How is it possible to import and view a polygon layer (I have it in a shapefile) on a map inside MIT App Inventor? Maybe with LoadFromURL method, but in this case which file I should paste associated ...
1
vote
2answers
50 views

Set the feature class for a Python script to act upon in ArcMap

I want to use Python in ArcMap 10.5 Python window to give me the longest string in a field. I need to trim down some shapefile (they have to be shapefiles) file sizes. I want to reduce field lengths ...
2
votes
1answer
75 views

Transforming CAD File To shapefile (with Projection) Using FME Batch File

I want to convert files from within my application. I've tried a lot, but I can't find a solution. I have a DXF file with which I know the projection system (EPSG:4326). And I want to transform it to ...
2
votes
0answers
268 views

GeoPandas transform latitude/longitude coordinates to UTM coordinates

I have a shapefile which I read with GeoPandas, this shapefile has lat/long coordinates and I want to transform it to UTM coordinates. I tried this: shapefile = gpd.read_file('example.shp') #CRS = ...
0
votes
0answers
28 views

Update shapefile attributes after update of data source

In a project the data is stored in a relational database (so it could be moved to PostgreSQL) for presentation in a web repository to be presented in diagrams, tables, etc. During the last months ...
0
votes
0answers
23 views

Performing table join using NextGIS

I'm getting start with NextGIS and have a web map with a couple shapefile layers on it. Now, I'm trying to recreate some existing functionality on QGIS that involves a table join between a shapefile ...
10
votes
5answers
399 views

Creating raster where each cell records distance to sea?

I want to create a raster with a 25 metre × 25 metre resolution, where each cell contains the distance to the nearest coastline, as calculated from the center of the cell. To do this, all I have is a ...
0
votes
1answer
45 views

Reprojecting CRS from Geocode API fails to match shapefile CRS

I have a shapefile obtained from this link. library(rgdal) library(rgeos) dir <- tempdir() unzip('~/Downloads/4106902.zip', exdir = paste0(dir, '/4106902')) shape <- readOGR(paste0(dir, '/...
1
vote
0answers
86 views

Create shapefile with images as attributes using JavaScript

I want to make a feature in a react.js web application where I can export/download shapefiles from the dashboard. I have implemented shp-write which takes a GeoJSON input. It is working fine with ...
0
votes
0answers
95 views

Memory usage (or absolute bytesize) of geometry objects(shapely) in a GeoDataFrame in Python?

I am currently working on analyzing data structure and size of a shapefile. To analyze it, I was wondering how much geometry column consumes the size of a shapefile. Unlike other features, geometry(in ...
0
votes
0answers
53 views

Opening shapefile by clicking on another shapefile?

For a project I want to open another shapefile by clicking on a specific part of a shapefile. I am using Esri ArcGIS. As a result I want to click with Hyperlink tool at the blue buffer (that was made ...
0
votes
1answer
17 views

OGR Merge split part of basename

ogrmerge.py -single -o merged3.shp *.shp -src_layer_field_content {DS_BASENAME} let's me painless merge several shapefiles into one and adds a new field with the basename of the shapefile. Is it ...
0
votes
1answer
128 views

QGIS - KML File Not Displaying Correctly After Conversion

I have a ESRI shapefile made up of 140 polygons that I want to display on Google My Maps. I have my project and layer CRS set to WGS84 which is standard for displaying spatial data on google. However, ...
0
votes
2answers
107 views

Rasterize multipoint geometry in R

I would like to rasterize data on protected areas for certain countries (e.g. https://www.protectedplanet.net/country/TH, download button is at the bottom of the page). The dataset contains two ...
0
votes
2answers
41 views

Deleting several features from shapefile using ArcPy? [closed]

I recently started working with ArcMap and Python. I try to delete several objects from my shapefile in ArcMap. I would like to select for example the line which are too close together. I don't want ...
0
votes
0answers
24 views

combine layers in qgis

I have a Shapefile that includes country divisions (Polygon). I have another Shapfile that relates to the country's roadmap (Path). I also have another Shapfile that relates to the village points (...
2
votes
1answer
86 views

Remove empty polygons from shapefile in R

I have a shapefile witch contains several empty polygons. I´m extracting values from raster file based in some polygons of this shapefile. But my loop stops at every empty polygon. Simple solution ...
0
votes
0answers
17 views

Matlab's geographicToDiscrete function does not return the correct col, row

I have a shapefile with points (in WGS84) that overlap with a raster layer (also in WGS84) and for each point I want to calculate the corresponding col and row raster coordinates. I work on Matlab ...
2
votes
1answer
41 views

Polygonizing slope raster when output shapefile is more than 4 Gb?

I am trying to polygonize a slope raster using Grass's r.to.vect command. The command starts but ends up crashing because the output shapefile is more than 4 Gb. How could I get multiple shapefiles ...
0
votes
0answers
42 views

Eliminate difference between the area of polygons?

I am working with the shapefile of ecoregions. Arctic desert ecoregion is lying across two continents (Europe and Asia). According to Field calculator area of this ecoregion is 162787 km2. I have ...

1 2 3 4 5 86