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.

584 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
109 views

Determine which points fall within a 3D polygon and export this subset to a flat file

I am working in ArcMap 10 and will have a 3D representation of a zone of transmission. I would like to determine which GPS points fall within this polygon and then export this subset out to a flat ...
2
votes
0answers
895 views

QGIS Layer Properties Field Tab

When I setup my layer properties I selected some of the attributes to be hidden on the Fields tab. I would like to change the EDIT WIDGET from hidden to a different function however some of them are ...
2
votes
0answers
137 views

How to fix Graphserver warning “osmdb has no edges!”?

I'm really new to GIS. I have some shapefiles data that I'm trying to import in graphserver. I'm doing: gs_osmdb_compile output3.osm output3.osmdb And the result is: WARNING: osmdb has no edges!. ...
2
votes
1answer
95 views

Extract areas with certain pixel values from raster

I have land cover data from GEE (https://developers.google.com/earth-engine/datasets/catalog/ESA_GLOBCOVER_L4_200901_200912_V2_3) for specific countries. I would like to extract the values from the ...
2
votes
1answer
791 views

How do I read the attribute data associated with my SHP?

I'm using DotSpatial to aid in processing some geospatial data. I'm using the code below to determine if a point (lat/lon location) is within a polygon contained in the SHP. If the point is in a ...
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 ...
1
vote
1answer
48 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 ...
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 ...
1
vote
0answers
26 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
30 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
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
23 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 ...
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 ...
1
vote
0answers
26 views

Shp2pgsql-gui.exe - system error

I have got this message when I was trying to run PostGIS 2.0 shapefile and dbf loader and exporter for first time. I tryed to reinstall but it did not run after second installation either. I have ...
1
vote
0answers
33 views

Attributes encoding problem with rgdal::writeOGR

I performed an intersection of two SpatialPolygonsDataFrame on R (3.5.1) using raster::intersect. Here's the structure of the resulting SPDF attributes table > str(shp@data) 'data.frame': 944 ...
1
vote
1answer
54 views

Creating raster that contains gradients given contour shapefile using R?

Using R I'd like to create a raster from a set of contour shape files, where each cell in the raster contains a value for the derived gradient. I am using OS Terrain 50 contour lines which is open ...
1
vote
0answers
53 views

Convert SHP to JSON

I need to convert shapefile to JSON in the following data structure.How can I do this? { "field": [ { "latitude": 52.8812385372, "longitude": 6.9287692025 }, { "...
1
vote
0answers
21 views

QGIS - points at the North and South Pole disappear in the composer

I am using QGIS 3.4 to produce maps of the Arctic and Antarctic with weighted points from a csv file. I noticed that I lose the points at the North and South Pole when I add the map in the composer. ...
1
vote
1answer
22 views

Adding data from KML/shapefile/GeoJSON to OSM nodes

I have data of streets which is marked with the osm way/node ids. I would like to add speed limit data which is available in KML, shapefile, or GeoJSON to these OSM wayids (OSM wayid with start node ...
1
vote
0answers
22 views

Google Earth Engine: Export table with values over time for multiple regions of a shapefile

I'm trying to quantify land use change over time in my region of interest, which is a part of Europe divided into subregions. For this, I'd like to count the pixels of each type of land cover in every ...
1
vote
0answers
19 views

Can QGIS be used to calculate the up-slopes (total area draining to a specified point) of multiple separate points simultaneously?

I am trying to calculate the area draining to a point of 240 separate points using QGIS. At the moment I'm using the Saga - Upslope Area algorithm to individually work this out for each of the 240 ...
1
vote
1answer
60 views

Shapefile not showing in proper location

Working in QGIS 3.0.1; I just switched to QGIS and am trying to get used to it. I have a shapefile from SW Maps app of a track walked on hiking trails, and am attempting to make a basic map using ...
1
vote
0answers
35 views

Joining .csv with duplicate values to .shp layer with points and getting all points visible using QGIS?

My problem with QGIS (version 3.4.8) I have a .shp map layer containing point data of buildings. I want to join .csv spreadsheet to this layer so I can look into it and visualize different variables ...
1
vote
0answers
19 views

QGIS - How to add joined values table data to shapefile

For some reason I lost my previous question here but I proceeded a little bit after upgrading to the newer version of QGIS. My problem was combining spreadsheet .csv data to the .shp map layer, where ...
1
vote
0answers
54 views

GML file converted to ESRI shapefile with ogr2ogr missing spatial reference information

I am trying to convert Sentinel-2 cloud masks from GML format to ESRI shapefiles. I have managed to use ogr2ogr in a python script as described in the answer to Using ogr2ogr to convert GML to ...
1
vote
1answer
92 views

QGIS - exporting shapefile to convert to .JSON for use in PowerBI

I'm trying to export a shapefile I've been using in QGIS for use in PowerBI because PowerBI only supports .JSON extensions. So I've been converting them with mapshaper.org. This is my shapefile result ...
1
vote
0answers
200 views

Changing CRS of geometry in geopandas dataframe efficiently?

I have a shapefile which I am converting into a geopandas dataframe. The CRS of this shapefile is epsg:4326 and I want to convert this to epsg:3857. import geopandas as gp file_path = 'zip_poly.shp' ...
1
vote
0answers
18 views

Layering grid codes visually

Is it possible to order grid codes in a shapefile visually by building a query in ArcMap? For example in symbology I have grid codes 1, 2, 4, 5 in a shapefile and I want to make it so that when the ...
1
vote
0answers
24 views

Interpolating sea level data using ArcGIS Desktop?

I have monthly sea level data obtained from PSMSL in the form of excel sheet for the region Chennai. I want to interpolate the data in ArcGIS Desktop. The shapefile of the region has Polygons and I ...
1
vote
0answers
51 views

Synchronisation problems using QFieldSync

When resynchronizing data from QField GPKG project to QGis SHP project, using QFieldSync, attribute data are shifted to the right column. There is a lag, I have never seen something like that before. ...
1
vote
0answers
103 views

Optimizing polygon ordering

Does anyone know of any GIS tool that reorders polygons so that the path through all polygons is minimized, i.e. it solves the travelling salesman problem? Here's an example of just how poorly ...
1
vote
0answers
94 views

Shapefile not working in QGIS

I am a beginner with QGIS. I downloaded from different websites administrative levels for a country (0, 1, 2), full package: dbf, shp, shp.xlm, snb, shx, sbx, sbn, prj etc. However, QGIS is not ...
1
vote
0answers
56 views

Recovering shapefile with green question marks?

I have a shapefile with a green question mark in the ArcCatalog. The shp-extension in the shapefile has 0Kb size Is there any way to recover the corrupted file?
1
vote
0answers
415 views

Error in reproject vector file using GeoPandas

I have a vector file (in this case shp file) and I read it with GeoPandas (gpd). vector_folder = r'C:\poly' vector_file = 'poly.shp' df = gpd.read_file(os.path.join(vector_folder,vector_file)) df ...
1
vote
1answer
49 views

Using delimited text layer to keep only those polygons and records of a shapefile which match a column in the delimited text layer?

What I want to do is trim the shapefile so that only those records and associated shapes that match the same values in a column in the delimited text layer (which in my case is a CSV) are kept in a ...
1
vote
1answer
62 views

Using Click locations to determine azimuth in QGIS 3

I am using QGIS 3 64bit. While adding points to a shapefile (layer), what expression captures the insertion point coordinates of a point feature to use as a start point for an azimuth determination ...
1
vote
0answers
46 views

Most of a shapefile is not exporting to ArcGIS Online or Google Maps

I am having an issue where the vast majority of the shapefile and point data is not exporting from ArcMap. Its just in one particular area where the polylines show, the rest do not show and this is ...
1
vote
0answers
150 views

Geofencing radius distribution/ratio across multiple geofences

I understand that this problem might be simple geometry, but Im using specific shapefiles for a geographical area and looking for a specific gis solution (hopefully code). Essentially Id like to find ...
1
vote
0answers
73 views

Large increase in .dbf file size after attribute table join

I have a polygon shapefile of about 12,000 features that I joined a CSV attribute table to using 'Join attributes by field value' in QGIS 3.2.1 The .dbf file size before the join = 5.6 MB The .dbf ...
1
vote
0answers
88 views

How to parse a shapefile with Esri JavaScript API and/or ArcGIS Server?

I'm developing a webapp that uses the Esri JavaScript API 3.xx (Dojo 1.x) together with an ArcGIS Server 10.6.xx. Until now I was parsing shapefiles in my Java backend that makes use of an offical ...
1
vote
0answers
29 views

Is there a way to convert an RDL filetype to a SHP filetype

I Have an open records file from a county that provided an RDL file extension which we can view in MS 8 Viewer but is there any way of getting that into SHP format so we can normalize the data fields ...
1
vote
1answer
85 views

Creating a “catchment area” geometry from place points in QGIS

I have data from Geonames.org on the location of population centres, provided in the format of Center Name, Latitude and Longitude. Only one latitude and longitude point is provided for each ...
1
vote
0answers
193 views

OGR SetAttributeFilter does not let datasource to update

I am trying to update an attribute value for a certain feature in a shapefile. To filter out that feature, I use SetAttributeFilter. This returns the feature I want, and SetFeature also works as ...
1
vote
0answers
138 views

QGIS error while importing .shp file, missing geometry (gdal issue)

In Manjaro Linux (Antergos as well and so I suppose vanilla Arch), with QGIS 3.2 + gdal from official repository, and QGIS 3.4 + gdal-ecw from archgeotux repository, when I try to add a .shp the ...
1
vote
0answers
64 views

Solving invalid geometries

I have ASCII data from different parts of water bottoms. I would like to convert all the parts into shapefiles. But, when I use the polygonize raster to vector tool in QGIS I get invalid geometries. ...
1
vote
0answers
70 views

Summarising all the (NDVI) values pixelwise for a masked polygon

A .tif image has been created using the NDVI formula in QGIS. The resulting image shows a region, with varying grades of NDVI values over the image. A .shp file has then been created for an area of ...
1
vote
0answers
25 views

Calculating route length per grid cell using fishnet

I have a problem determining the length of the routes (boat) I've surveyed in order to calculate the survey effort. I added the GPS points of the boat and then used the points to line tool and added a ...
1
vote
0answers
49 views

How to deal with decimal separator when uploading geometries to MSSQL server using shape2sql.exe?

I'm using Shape2Sql.exe to upload .shp shapefile to MSSQL server 13.0.4502.0 on a Win10 64bit laptop. I've added Shape2Sql.exe.config <?xml version="1.0" encoding="utf-8"?> <configuration>...
1
vote
0answers
46 views

QGIS vectors and rasters

I have created a map with polygon shapefiles and am trying to import them onto an different raster but when I do they are larger than the raster image and are far away. What am I doing wrong? My ...
1
vote
0answers
177 views

QGIS “Sum Line Lengths” return 'nan.'

I have a polygon shapefile and a (merged) line shapefile (both are zipped). When I use Vector -> Analysis Tools -> Sum Line Lengths on these shapefiles, I get a layer with some of the LENGTHS filled ...