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
1answer
15 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 ...
-1
votes
0answers
10 views

Features dissapeared from a shapefile, while attributes remain in attribute table [duplicate]

In two of my shapefiles, the polygons dissappeared while leaving their attributes in the attribute tables intact. In one shapefile, all 109 polygons dissapeared, while in the other, about 10 of 70 ...
0
votes
0answers
20 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
22 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
20 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
43 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
11 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
24 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
30 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
39 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
20 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 (...
1
vote
1answer
32 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
20 views

Python-shapefile convert geometry to latitude/longitude [closed]

I'm completely new to shapefiles and what I'm trying to do is to convert my point location data to latitude/longitude. What I have is 'afert .crs command' {'proj': 'tmerc', 'lat_0': 0, 'lon_0': 21,...
0
votes
0answers
6 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
36 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
35 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
votes
0answers
19 views

Eliminating difference in area? [duplicate]

I have downloaded shapefile of ecoregions. I selected Arctic desert ecoregion to measure area using fields calculator. Area of this ecoregion is 162787,71 km2. Arctic desert ecoregion is lying over ...
1
vote
1answer
53 views

Get junctions from pipeline in QGIS

I have pipeline network by shapefile, I want to get junctions and it must have link with pipes to run Epanet (id's junctions must have in node1 and node2 of pipeline). I know that we can extract point ...
0
votes
0answers
11 views

Converting PBF to Shapefile with name:xx tags as a column in the attributes

I have a PBF file containing only rivers information (extracted using osmosis when waterway=river). A conversion of this PBF to SHP works fine with ogr2ogr when I am selecting fields like "osm_id" ...
2
votes
1answer
35 views

Read M value (CoordinateXYZM) from shapefile with geotools

After successfully writing M values into a shapefile (.shp, only points for now), I now also want to read the generated file and print the full coordinate set (x, y, z and m) using geotools (23-...
1
vote
0answers
37 views

How to change the color of an specific area of a shapefile using Python?

I have this map and I need to emphasize with a different color some cities from this map: This is my code: import matplotlib.pyplot as plt import json import time import geopandas as gpd from ...
2
votes
1answer
51 views

Exporting shapefile to KML with labels

In QGIS, When exporting my point shapefile to KML, points label are not visible in Google Earth Pro. I follow these steps: In QGIS, my point shapefile has a name attribute Right click on the shape ...
0
votes
0answers
19 views

Use user-created GIS layer for online survey

I'd like to achieve the creation of an online survey where, within a particular study area, different social groups can indicate their use (presence/absence). In ArcMap (offline) I have a layer ...
0
votes
0answers
11 views

Max string length is 254 for KML?

I have a network link KML which I'm downloading via Python script and then converting to shapefile in ArcGIS Desktop. The problem I'm having is the max field length of 254. It's truncating the ...
2
votes
1answer
50 views

How can I plot scatter plots over a shapefile using Python?

This is my code: import matplotlib.pyplot as plt import json import time import geopandas as gpd from descartes import PolygonPatch from shapely.geometry import LineString borough = gpd.read_file('...
1
vote
1answer
37 views

Import Shapefile into PostGIS using DB Manger Plugin

When I try to Import Shapefile into PostGIS using DB Manger Plugin in QGIS the error message show "Error 3 Creation of data source "TEST_EST_MILION" failed: ERROR: function addgeometrycolumn(...
1
vote
1answer
29 views

Write M value into shapefile with geotools

I'm using the Java 1.8 library geotools (version "23-SNAPSHOT") to generate a shapefile. Opening the resulting .shp file with QGIS was successfull and I noticed that the gemeotry was apparently ...
2
votes
1answer
38 views

QGIS slow on show attribute table of a large shapefile and dies on showing selected

Using 3.8.2 Zanzibar 64 bits I am mystified by being able to load the attributes of an approx 1e6 features shapefile (even if it takes a bit of time), but waiting forever to show the attributes of the ...
1
vote
0answers
27 views

Format of points in Polyline shapes in a shapefile?

I am have been asked to write some code that looks at a SHP file that contains a load of Polyline shapes that are used to represent parking areas in a British council's area. I've created a C# program ...
1
vote
0answers
31 views

Clip Raster by Mask Layer - Nodata output

I am trying to clip a raster around a polygon shapefile. I have managed to do it for a series of polygons with the same raster, however one polygon is returning a blank clipping with 'nodata' in each ...
1
vote
1answer
45 views

Unable to save shapefile edits in QGIS? [closed]

I'm unable to save any shapefile edits (polygon, point, line) using QGIS. I have tried multiple versions including 3.4 and 3.8. I have tried removing all installed plugins. I have tried new projects, ...
1
vote
0answers
39 views

Expand features in shapefile

I have a shapefile with 634k features that when I open in QGIS is filtered to 6 squares. How can I expand it to get all the points, I need to make a topo map from it.
1
vote
0answers
24 views

Comparing NDWI regions with a given shapefile Google Earth Engine Python?

With the code below, I computed the NDVI, NDWI and NDWIMOD indices of a R.O.I. in order to detect water areas in that R.O.I. Now, my goal concerns to compare the water areas with a given shapefile ...
2
votes
4answers
152 views

Convert shapefile to KML

I have one big layer which contains many polygons. This layer is a shapefile and I want to convert it to be many layers, each layer containing one polygon, and those polygon layers should be saved as ...
0
votes
0answers
18 views

Converting .ers raster to .shp?

I am trying to convert .ers-raster into shapefile using ERDAS. It keeps saying "input must be thematic". Any solutions to this or any other method by which I can convert .ers raster into shapefile, ...
0
votes
0answers
38 views

Getting elevation heights from folder of thousands of shapefiles that apparently come from LiDAR?

I obtained a few folders purporting to come from LiDAR data taken of a U.S. county. The directories are set up like this. Data-folder - be_rasters -- 692500_725000 --- dblbnd.adf --- hdr.adf --- ...
0
votes
0answers
35 views

Creating shapefile based on map with ArcGIS Desktop?

I'd like to create a shapefile with ArcGIS of the map attached below. Published in an econ paper, the map divides the territory of the German Union (post 1815) in 19 states (more precision can be ...
0
votes
0answers
10 views

Importing geographical data into SQL Server Spatial

I'm uploading a shapefile containing all the world geometries of each country into SQL Server. The issue I'm facing is that for some of them I'm getting a SQL Exception during insert: A .NET ...
-1
votes
0answers
19 views

Need mountain ranges of North America polygon shape file for QGIS and help opening it in QGIS [duplicate]

Can anyone recommend a polygon shape file of the North American mountain ranges, and the website I can download it from? Something like the attached image, except I don't know where the attached image ...
0
votes
0answers
14 views

Need mountain ranges of North America polygon shape file for QGIS [duplicate]

Can anyone recommend a polygon shape file of the North American mountain ranges, and the website I can download it from? Something like the attached image, except I don't know where the attached image ...
1
vote
1answer
43 views

Seeking Shapefile of World countries with national currency attribute?

I looking for Shapefile of a World countries having an attribute of the national currency, do you know how can I get that ?
-1
votes
1answer
30 views

Seeking polygons that map out land zone type (ie Residential, Industrial, Commercial) in UK?

I'm looking at displaying the commercial and industrial areas of the UK on QGIS so that I can do some work on them. I'm not looking to add my own data to it, merely find a shapefile or geopackage or ...
1
vote
0answers
44 views

Shapefile creating “leaky” overlay in Google My Map after QGIS KML export

California has published, as shapefiles, maps of the various Fire Hazard Severity Zones in the state. I'm trying to use QGIS to convert these into a KML that I can then use as a Layer in a Google My ...
2
votes
1answer
33 views

Reducing number of polygons in a shapefile to increase the render speed for R Leaflet?

I'm trying to increase the speed of my R Leaflet map by reducing the size of the polygons. I found a great solution on stack exchange here, but for some reason, I get the following error when I try ...
1
vote
1answer
36 views

R raster to shapefile

I created a raster with the function rasterFromXYZ() in R using a dataframe with coordinates and the value of a variable, the result was this: plot(raster1) which is exactly what I need. Now I just ...
-1
votes
1answer
27 views

Saving a shapefile to a specific catalog

I have a shapefile that I would like to save to a specific catalog database. I created a new database connection in arc catalog but I am not sure how to save this shapefile that was sent to me via ...
3
votes
1answer
58 views

Finding sum of points values within distance from paths

I'm willing to plot public transport data for a university project, and I'm currently trying to find out roughly how many people live with a reasonable distance from a set of bus routes. I have my ...
0
votes
1answer
73 views

Thematic map made in QGIS [closed]

I made a thematic map of carbon stock in Russian Federation in 2017 year. I am not a cartographer and geographer at all. Tell me please what should I do with this map to make it more professional? ...
2
votes
1answer
37 views

Shapefile to polygon, then edit the polygon in order to use it as a mold

I am working on QGIS with a shapefile: I transform it through Raster-> Conversion-> Polygonize Then I eliminate some parts (Sea), and those that are bigger than one single square of grid but are ...
2
votes
1answer
59 views

ST_Distance does not give nearest node

I am trying to find the nearest point on the road network closest to a given point. I imported the road network into PostGIS from QGIS and am using the SQL window in QGIS DB Manager to query the road ...