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

Which language can I use to code a program that can create, edit, and update a shapefile or a feature class [closed]

I happen to have a task of creating a program that is web based, this program has to be able to load shapefiles it has created onto the chosen basemap in the interface (i.e. Mapbox ). I have a problem ...
0
votes
0answers
14 views

Looking for a comprehensive open source for building shapefiles USA [migrated]

I am currently looking for a comprehensive source for Building Shapefiles in the USA, particularly New Jersey. I have come across a few websites e.g. geofabrik (http://download.geofabrik.de/north-...
-2
votes
1answer
23 views

Multiple CSV to Shapefiles in ArcMap [closed]

I am using ArcMap 10.7. Is there is Python code or a model to amend and output multiple CSV files into a single shapefile?
2
votes
1answer
33 views

Filter by attribute names from another layer in QGIS

I have two map layers. One layer (1) contains whole road network and another (2) have some roads from this network, but from another source. Both layers have road_name attribute. How can I select only ...
-1
votes
0answers
37 views

extracting KML elevation data [closed]

I am using ArcMap. How do I convert a KML file (line) to a shapefile that includes the elevation profile information? I need a shapefile with the elevation data and also to have the elevation ...
0
votes
1answer
35 views

Writing script to append Multiple GPX Files using ArcPy

I am using ArcMap 10.7. How do I write a script to insert multiple GPX Files as a Feature Class? What I was thinking is batching the files together in to one file and then running the code I ...
2
votes
1answer
42 views

How to convert DXF to ESRI Shapefiles?

I like to convert this DXF file to ESRI Shapefiles. I tried the following command: ogr2ogr -f "ESRI Shapefile" test.shp Umweltzone-Neu-Ulm.dxf ... which output the following warnings ...
1
vote
1answer
26 views

Check if function-argument is valid vector-geometry in Python GeoPandas

I wanto to build a function (let's call it clip) that accepts a vector-file (can be a shapefile, a geopackage....) and a raster. How can I make sure the argument that the users gives to the function ...
7
votes
1answer
120 views

How does a shapefile 2GB limit equate to 70 million points?

Reading this article by ESRI, it says that the 2GB limit translates roughly to 70 million Points. When looking at the spec, the header has a field at Byte 24 representing file length in 16-bit words ...
1
vote
0answers
31 views

Convert CSV file to shapefile and show data in view [closed]

I'm searching differents methods with QGIS to convert my CSV file to shapefile and show my points in the view. I tested differents methods that I have seen on the forum and It's not really what I want ...
5
votes
0answers
33 views

OGR failing to unpack polygons and respective holes from shapefile

I'm trying to unpack shapefiles in Python (v3.7.4) using the GDAL-OGR library (v2.3.3). Each shapefile has only one feature containing multiple polygons with holes. They cannot be produced differently....
3
votes
1answer
505 views

How can I switch line direction from the Linux commandline?

I want to reverse the line direction for all lines in a shapefile from the Linux commandline (that is to say, using a script). Currently I'm using the SwapVectorDirection QGIS plugin which works well ...
2
votes
0answers
54 views

Clipping shapefile with DEM using ArcMap

I have a layer with shapefiles that represent watersheds. I'd like to exclude watershed polygons (or sections of these polygons) that fall below 2500 meters. Is there a way to do this by clipping ...
0
votes
1answer
29 views

QGIS raster area by clipped mask and 2 layers

I have two layers, one is a tif file with inclination of the soil of a whole county (which I got from the SRTM-relief) and the other file is a shape file which contains all the properties in this same ...
0
votes
0answers
26 views

Illegal GeoJSON after converting from a copied SHAPE file [closed]

I am converting a copied SHAPE file into GeoJSON and for some reason the GDAL library is generating an illegal GeoJSON, see details below {"type": "FeatureCollection","features":[{"type":"Feature", "...
1
vote
1answer
42 views

Why do I get the same error code when Geocoding?

Whenever I use the 'MMQGIS' plug in to 'Geocode' a CSV file containing postcodes to get the longitude and latitude which will enable me to plot the locations as a layer on QGIS, it always come up with ...
0
votes
0answers
31 views

Conversion from shapefile to GeoJSON fails with large shapefile [closed]

I just noticed that the conversion from shapefile to GeoJSON fails when the shapefile is too large, in my case the shapefile is 400 MB. The converted GeoJSON has coordinate values that are bigger ...
0
votes
0answers
18 views

How to convert an esri shapefile to a 2d array in C#? [closed]

I have to find the shortest path among multiple shapefile consisting of lines and polygons. So I want to convert the features of multiple shapefiles into a single 2d array so that I can apply the ...
1
vote
1answer
43 views

System.ApplicationException: 'EPSG PCS/GCS code 4326 not found in EPSG support files. Is this a valid EPSG coordinate system?'

I have setup a consol app in C# that uses the GDAL.CORE NuGet, it seems to work fine when converting most of the .shp files I have, however with one .shp file I am getting the error below: System....
5
votes
1answer
105 views

Using option “resize” when making temporary layer into permanent shapefile in QGIS

I have a temporary layer I want to make permanent into a .shp file. In the settings, there is an option called resize. I can choose between yes and no. What is the usecase of this option and when ...
-1
votes
0answers
21 views

Sorting and deleting attribute features from shapefile [duplicate]

I am polygonizing a single band raster and creating an area field to the shapefile. I want to keep the 10 largest polygons by area and delete the rest. The following script computes the area for all ...
1
vote
1answer
44 views

Convert DWG to SHP in QGIS?

Given files by client: .dwg .bak QGIS doesn't like it; FREECAD doesn't like it; RhinoCAD doesn't like it or Illustrator. QGIS > Project > Import as .dwg/.dxf actually asks for .gdb, which doesn't ...
2
votes
1answer
42 views

Creating new shapefile using pyshp

I am trying to strip data out of an existing shapefile to create new shapefiles. I have made the loop work, and made the new file, but I cannot work out why I cannot add records to the new file I am ...
1
vote
0answers
38 views

Recenter maps to overlap in GDAL [closed]

I have a really basic question which I can't wrap my head around. I have a GeoTIFF of the world and a shapefile containing the oceans. The problem is that the GeoTIFF is centered at -180° longitude ...
1
vote
1answer
47 views

extract() while keeping polygon ID in output

im trying to extract the mean from a satellite imagery. The point is, that when Im using this code (simplified for this example): > semana21 <- raster("Semana21.tif") > poly <- ...
0
votes
0answers
42 views

After shapefile to GeoJSON conversion coordinates look wrong?

I have downloaded a shapefile of Iceland. Here is the source: http://www.arcgis.com/home/item.html?id=7a21f6f05b8d45848ed16298cbf96d59. I then converted the shapefile to geojson, using this tool: ...
0
votes
0answers
10 views

How to use a shapefile to Object based classification on eCognition?

Let me ask you a question about object-based classification with eCognitoin's Developer license. With the esstentials license, after the segmentation, a shape file to be used as teacher data was read ...
4
votes
3answers
115 views

Hiding points in shapefile layer using QGIS

I am using QGIS 3.4 I would like to hide all points that end with "5". For example, I would like to hide: 55, 65, 75, 85 and any point ending in "5". What method can be use to make this possible?
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
18 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.
0
votes
1answer
25 views

US Census Bureau Shapefiles with district IDs

I am loading senate district polygon shapefiles from https://www.census.gov/cgi-bin/geo/shapefiles/index.php?year=2019&layergroup=State+Legislative+Districts into my Leaflet map. Well, to be ...
0
votes
0answers
20 views

Is there a way of getting a Layer on QGIS expressing all infrastructure in the UK? [migrated]

I want to be able to plot Aquifers and Borehole wells in the UK. I need to find out how far each aquifer and borehole well is from surrounding building and infrastructure. Is the only way to do this ...
1
vote
1answer
184 views

Shapefiles rewritten to 100 bytes

When you run QGIS and open a project file (.qgs), a new version of QGIS will read the .shp files and update them for format changes that go with the new version. The changes finish, but don't work, ...
4
votes
1answer
76 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 ...
2
votes
0answers
31 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
44 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
24 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 ...
3
votes
2answers
311 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?
1
vote
0answers
41 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
35 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
29 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
0answers
45 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 ...
2
votes
1answer
36 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....
2
votes
1answer
90 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 ...
2
votes
0answers
50 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
38 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
0answers
47 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) ...
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
0answers
4 views

Does anyone have better maps for the east coast of the USA, or the entire USA to use with XASTIR directly? [migrated]

I have a fresh install of XASTIR running on a Pi 3, but the maps are pretty poor at showing details. Does anyone have any mapps they can share with me for my XASTIR system, that are better than what ...