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
2
votes
0answers
33 views

Fetching the on-click data from the website into QGIS

I would like to fetch the on-click data into QGIS and show them as the placemarks. Basically the issue comes from i.e this website: https://eclipse.gsfc.nasa.gov/SEgoogle/SEgoogle2001/...
0
votes
1answer
396 views

Identify EPSG in SQL Server

I have been trying to load a shapefile available at https://www.elections.on.ca/en/voting-in-ontario/electoral-district-shapefiles/open-use-data-product-licence-agreement/download-shapefiles.html to ...
0
votes
2answers
373 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), ...
0
votes
0answers
21 views

Splitting polygon by sections obtained from IDW interpolation

I used IDW to show the rainfall pattern over a region ... the attached picture show the result ... my area split into three ranges that show 3 different colors... How can I split one original polygon ...
0
votes
0answers
20 views

How to upload only a shapefile to R shiny and convert it to spatial dataframe?

I have been searched to upload a shapefile in ui.R and to convert the shapefile to spatial dataframe using sf in server.R. But I didn't got any answer. If someone knows let me know.
3
votes
2answers
316 views

Saving shp polygon from Google Earth

I have made a polygon in Google Earth, but somehow there is no icon or feature for saving .shp. Is there any way to save a shapefile in Google Earth?
0
votes
1answer
68 views

Add coordinates and id field into point shapefile in R/PyQGIS

I have a points shapefile with almost 1 million features. I would like to add three new attributes: y, x (coordinates) and an ID (integers from 1). How can I perform this task in R or PyQGIS? Using ...
2
votes
0answers
911 views

ogr2ogr failed to reproject shapefile error exceeds limits [closed]

I cannot get correct transformation from WGS84 to the Hungarian EOV EPSG:23700 (Hungarian Datum 72) using ogr2ogr. I am using ogr2ogr from the fwtools shell. I have a shapefile in GCS WGS84 (epsg ...
4
votes
1answer
87 views

Adding file info using ogrinfo -sql UPDATE expression

I try to add the filename with the tool ogrinfo in a bunch of shape files for later merging reasons under Debian 8 and gdal 2.4.0. I stuck by expressing a valid statement for UPDATE part. For the ...
4
votes
2answers
298 views

Seeking spatial data for very specific administrative boundaries in Ontario

I was wondering if anyone might know where I can download the rectangular administrative boundaries shown in the image below. I have highlighted one of them in red. On the image, you can see that ...
1
vote
2answers
264 views

Axis order in user Shapefile

I have a shapefile which has the following PRJ GEOGCS["WGS 84", DATUM["World Geodetic System 1984", SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], ...
1
vote
1answer
159 views

Rebuilding .shx using python/pyshp?

EDIT: I've tried running the code linked in the duplicate flag, it's posted here for reference, and it doesn't run. I had already referred to that answer in my initial post. My problem Downloaded ...
2
votes
2answers
406 views

Are US Census tracts GEOID the same across different years?

I want to know if it is appropriate to join tables from different years to the same census tracts TIGER file. If all census tracts' IDs do not stay the same, then how would they change when adding ...
2
votes
0answers
37 views

Extract point cloud data from shapefile with Python

I am trying to plot profiles from LAS data. So my first step is to extract the data using a shapefile. I found this piece of code on the laspy website and thought I could use it to do this : def ...
0
votes
0answers
35 views

Importing shapefile into PostgreSQL failing [duplicate]

I have installed PostgreSQL 12 on my Windows 10 OS. I installed the PostGIS extension as well. I would like to import a shapefile and am using shp2pgsql-gui to do so. The import is failing and there ...
1
vote
1answer
45 views

US Census block boundaries shapefile [closed]

I am searching for a single file of all roughly 11 million US census blocks. Where can I find this?
1
vote
1answer
29 views

Remove z-value from XYZ point in sf

I have a sfc-object consisting of just points. Unfortunately, when I read in the shapefile, it created points of type XYZ. Now I removed some points and can't figure out how to export the remaining ...
1
vote
0answers
42 views

Auto-generate Grid Reference for Point and Polygon features within existing Shapefile, QGIS

I have various point and polygon layers (shapefiles) which I use regularly in QGIS (3.6.3), and often need to work out their location as an 8 figure grid reference (British co-ordinates, EPSG-code ...
1
vote
1answer
39 views

QGIS Natural Earth Geometries

When I insert country borders from Natural Earth, they look broken when zoomed out. When I zoom in they look correct. Is there any way to correct this, particularly when creating a map in layout?
0
votes
1answer
35 views

Geocortex and ArcMap

I am currently working with a shapefile made up of multi-part polygons symbolizing zoning areas. Geocortex is a web-based service used to display your data. When I click on a larger polygon in ArcMap ...
1
vote
2answers
642 views

FWTools ogr2ogr command does not seem to recognise dim parameter

I am trying to convert a 3D shapefile to 2D via FWTools shell. This is the command I am trying ogr2ogr REGC2013_GV_Clipped_lonlat_2d.shp REGC2013_GV_Clipped_lonlat.shp -dim 2 Which returns the ...
1
vote
2answers
3k views

python mask netcdf data using shapefile (xarray & geopandas)

I am using the following packages: import pandas as pd import numpy as np import xarray as xr import geopandas as gpd I have the following objects storing data: print(precip_da) Out[]: <...
2
votes
1answer
45 views

Measuring percentage overlap between home ranges and another shape file in R

I have tracking data from multiple animals and I have created kernel density estimates of their home ranges. I want to find out the proportion of each home range area that falls within protected areas....
3
votes
1answer
96 views

Different colors on the same polygon in 3D view of QGIS

I have a .shp file with buildings represented as polygons. My goal is that, in a 3D representation, I am able to have different colors in a single polygon (building) depending on its height. For ...
1
vote
1answer
812 views

rotate point along line layer [closed]

I have two layers: point and line (postgis or shp) The line layer represent a hiking trail. The point layer the mountain passes. The points are exactly on the same position like the node of the line. ...
2
votes
0answers
51 views

Using QGIS field calculator expression on Execute SQL

The following expression copy only minimum value from group/subset to a new column field in QGIS. Case when "FID_Net"=minimum("class", "FID_Net") Then "FID_Net" Else 0 End But this expression on ...
4
votes
1answer
328 views

Keep attribute data while converting XML file to shapefile in QGIS?

I want a map of particular area in shapefile format from Google Earth. I created a map using polygon method and save it as KML file format, but when I convert it from ".xml" to "shapefile" format ...
2
votes
0answers
51 views

Shapefile error in QGIS, rivers of a map

I am a beginner with QGIS. This file was sent to me along with others by my professor. One of them doesn't work. I'm mapping an Australian river catchment (Daly), one of the shapefiles is for the ...
1
vote
1answer
65 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
39 views

Selecting elements by grouping with one attribute and specific rule using QGIS

I have a question about a specific query for a Shapefile-Layer in QGIS 3.4. I have a Point-Shapefile with the name point.shp. The Shapefile has a lot of different points with a large amount of ...
0
votes
1answer
386 views

Spatial overlays : Union between multiline and multipolygon with geopandas

I try to overlays (apply union) my multipolygon on the multiline with GeoPandas, but it seem like the GeoPandas overlay function work only with (Multi)polygon. Is there any way to make that with ...
0
votes
0answers
52 views

Downloading MODIS data using Python with help of shapefiles

I want to download MODIS data at 250m (2 bands) and 500m (5 bands) for arond 2700 regions. I have the shapefiles for each of the region. How can I download the raw MODIS data (surface reflectance) ...
3
votes
3answers
403 views

Filtering out labels surrounding active feature in Atlas

Let me put it this way, if I’ve tried data-defined rendering and the common featureid expression and it’s still not working - and I think one or both options should - what basic thing could I be ...
1
vote
0answers
16 views

Mapbox Studio - How to slice a rail line shapefile tileset into different parts?

Mapbox newbie here. I am trying to build a railway map and when its security systems are expected to be completed. So I have added a rail line shapefile as a tileset to a Mapbpx Studio style. I want ...
0
votes
1answer
39 views

Splitting polygons and getting areas to split also

I have been provided with a shapefile with certain land areas to split. How do I split the polygons so that the new areas are calculated and are listed in the attribute table? Currently I've been able ...
0
votes
0answers
34 views

Creating a buffer around line segments in QGIS [duplicate]

I am trying to create buffers around a shapefile of rivers, the shapefile consists of line segments. I am trying to create a 5,25, 75, 100-meter buffer around the lines using the multi-distance buffer....
1
vote
1answer
172 views

Unable to import shp to QGIS 3.0

I'm using QGIS Desktop 3.8, and unable to import a shapefile. I get the following error: "The layer already exists. Are you sure you want to overwrite the existing file?" I'm super frustrated, ...
0
votes
0answers
36 views

how to display attributes of a Shapefile in android

I have called a shapefile and is able to display the map in android. However, I'm unable to retrieve and display the attributes. private void symbolizeShapefile() { // create a shapefile ...
0
votes
0answers
56 views

Using pyshp to create line shapefiles with color

I am using PyShp to create line shapefile in Python. w = shapefile.Writer('shapefiles/line') w.field('name', 'C') w.line([ [[3,2],[2,6]] ]) w.record('linestring1') w.close() Is there a way to ...
1
vote
1answer
39 views

PostGIS shapefile import manager error: syntax error

I'm trying to use PostGIS Shapefile Import/Export Manager to import a shapefile that was created in QGIS. The shapefile has all the blocks of the 2010 U.S. Census for Oregon and was exported as a ...
2
votes
1answer
208 views

Unicode problems while writing selected features to a new shapefile with Fiona

I have a shapefile with a large number of geographic features (marine protected areas). I'm trying to read through all of the areas in the shapefile, select those that fit a certain criterion, and ...
1
vote
1answer
62 views

Writing shapefile using PyQGIS

In QGIS 3.10, the data for the layer SIMnodes seem to be OK as inspected in the respective data table but trying to save it into a shapefile: cSIMnodes = QgsProject.instance().homePath() + '\\...
0
votes
1answer
293 views

Rasterize shapefile according to another big raster using gdal_rasterize

I want to rasterize a shapefile into a raster according to another raster (97284, 154208, 15001971072 (nrow, ncol, ncell)). Since the raster is very big, I am using gdal_rasterize following the ...
1
vote
1answer
1k views

Clearing areas outside map in R [duplicate]

I succeeded with @eblonde in the discussion (problem with polygon smoothing in R) to smoothing polygons in R. Code: inter1= read.table("c:/inter2.csv", header=TRUE) #add a category (required for ...
0
votes
1answer
159 views

Self-intersecting geometry errors when splitting polygons

I'm having issues digitising in QGIS 2.18.20 on my mac. My normal strategy for digitising a habitat survey area is to create a (shapefile) polygon for my survey boundary, and split the shape ...
1
vote
1answer
188 views

Using xlsx data to clip shapefile in ArcGIS Desktop

I have an Excel table with just one column, with 1150 records, each of them a species name. I also have a shapefile with 24,000 records, each of them a species name and its geographic range. I need to ...
2
votes
0answers
57 views

Determine which points in a CSV are within a shapefile polygon using GDAL / OGR in Python [closed]

I have a csv file containing columns with latitude, longitude and some values, and a shapefile with a few polygons. Some of my points/rows in the CSV are within, and some outside the shapefile ...
0
votes
1answer
218 views

GDAL ogr2ogr OracleSpatial to Shape: Multipolygons with wholes/multiparts are missing

We're holding geodata in an Orcale database (11g) with spatial extension. I want to unload specific polygons and convert them into Shape for further local processing. The table where I'm unloading ...
17
votes
4answers
39k views

Where can I download the Google Road network as shapefile?

Is there any site from where I can get Google Road network as shapefile? As per my knowledge It is not distributed by google. So anybody can suggest how can I create this road network for a custom use?...
0
votes
1answer
247 views

ogr2ogr: symbol lookup error: ogr2ogr: undefined symbol: _ZNK17GDALDriverManager14GetDriverCountEv

I'm trying to import a ShapeFile inside my PostGIS database using the ogr2ogr, however I'm receiving an error: ogr2ogr: symbol lookup error: ogr2ogr: undefined symbol: ...

1 2 3 4 5 86