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
34
votes
2answers
34k views

Understanding difference between Polygon and Multipolygon for shapefiles in QGIS?

Creating Scratch layer gives me a choice between Polygon and Multipolygon, so I started wondering how should I make use of them. Reading a new book "Mastering QGIS" (through this answer by Joseph to ...
0
votes
1answer
93 views

Drawing a marker on a shapefile with the given latitude and longitude?

I am using shapefiles to draw a custom map. They were created successfully with the help of ArcGIS Desktop. Now I need to draw a marker on shapefile based on an existing tuple of lat, lng. How can I ...
1
vote
0answers
11 views

Parser for NOTAM into GIS point objects whith attributes

I am participating in a gis application development project. There is a task of planning from a drone flight application, taking into account the limitations of NOTAM. Everything would be fine if it ...
4
votes
4answers
6k views

Identify polygon containing point with R sf package

I would like to be able to map geocoded coordinates to a region on a .shp file in R using the sf package. I can load up the map and plot it but I am struggling with the code to return the region for ...
0
votes
1answer
21 views

Combining layers and changing fieldnames in Arcgis Pro ModelBuilder

I have layers containing polygons. The difference between the layers are the periods of the year about which the layers have information. So layer 1 is called Lawn_p1 and layer 2 is called Lawn_p2 (p ...
0
votes
0answers
23 views

How do I link or join data in MS Acess to shapefiles in QGIS?

I am creating a spatial database for five buildings for a project that I am working on. I have spatial data in the form of a shapefile and attribute data in Microsoft Access(with a table and queries). ...
0
votes
1answer
16 views

Computing annual spatial (zonal) statistics of a NetCDF file for polygons in shape-file [closed]

I have a NetCDF-file containing annual GDP data for Africa. I also have a shape-file containing provinces in Africa as polygons. I now want to compute statistics (ie. mean, sum, ...) per polygon ...
0
votes
0answers
20 views

MultiPatch shapefile volume calculation in QGIS

I have an ESRI Shapefile containing MultiPatch geometries (3D Buildings). I'm struggling to calculate the volume with help of QGIS or similar freely available software. I read that ArcGIS might have ...
-1
votes
0answers
17 views

Predicting LAI values from from vegetation indices [closed]

I am working on a project which involves using satellite images to predict LAI values based on field derived LAI computed from DHPs in CAN-EYE software. I have everything set but with a challenge on ...
0
votes
1answer
47 views

Classification error “Layer error: Property 'class' of feature '00000000000000000000_0' is missing”

I am trying perform a Random Forest classification using an uploaded shapefile of polygons with only one class = 0. Get error Cover crop classification: Layer error: Property 'class' of feature '...
-2
votes
0answers
22 views

Getting data for the shapefile without downloading the entire dataset [closed]

I want to insert a shapefile to the map, and only download data for the shapefile instead of downloading the entire dataset. var dataset = ee.ImageCollection('NASA_USDA/HSL/SMAP_soil_moisture') ...
0
votes
0answers
49 views

Downloading and using government data in QGIS? [closed]

I have perused this website and I'm sure someone somewhere has answered this but it is not getting me anywhere. Basically this is what I want to do: Download poverty data for New York from govt. (I ...
0
votes
0answers
18 views

Downloading and using government data?

I need to put government data into a shape-file (right now I have points locating schools, and have the census tract layout in QGIS (outline of NYC) I just need the poverty data mapped onto this) - if ...
2
votes
1answer
43 views

Applying Rule-Based Style taken from another layer to layer with no geometry

I have two layers "Suburb_Type", that has more than 1000 suburbs in shapes and is styled with categorisation rule. (columns: 'suburb_code', 'geometry', 'category_variable') "Suburbs_in_Study", with ...
1
vote
1answer
38 views

GeoServer 2.17 - added Shapefile with geometry of type “3D Polygon”, rendering fails exception “Must have at least 2 spatial dimensions”

I've downloaded a public shapefile and added it to Geoserver 2.16 just fine. QGIS as well. I added it to a GeoServer 2.17 as well, but when trying to preview, it causes the following exception 2020-...
1
vote
2answers
35 views

When trying to rasterize a SpatialLine .shp, I get a raster with points instead of lines?

EDIT: I've solved the problem, the resolution was simply not high enough to properly show the lines in the plot. My code now looks like this and works fine: r <- raster(ncol=1000, nrow=1000, ...
1
vote
1answer
26 views

Overlaying shapefile layers in R [closed]

I'm very inexperienced in using R for GIS. I looked at other posts but couldn't find an answer. I'm trying to create a map that shows a municipality, roads through it and shop locations. I've ...
0
votes
1answer
51 views

Display shapefile data - Leaflet 1.4.0

I'm a new member and a beginner with Leaflet and JavaScript. I try to display shapefile data on my webmap with Leaflet. But it doesn't work. All the data (.shp, index.html... ) in WGS84 are on my ...
0
votes
0answers
21 views

Error 'maximum record length has been exceeded' [closed]

While exporting data in ArcGIS as shapefile I am getting error: maximum record length has been exceeded I have checked my Excel for criteria mentioned before like field name length etc.
1
vote
1answer
466 views

Setting reference frame for shapefile with pyshp?

I'm using pyshp to create new shapefiles with Python 3. My code runs without errors, but when I open the resulting file in ArcMap I get this error: The following datasource you added is missing ...
1
vote
1answer
24 views

Getting polygons out of .shp

I have a shapefile with lines. In the attributes of the line shapefile I have known coordinates. I want to get polygons out of these points which reach to the next line. As a goal I want a grid out ...
0
votes
0answers
33 views

Projection identification

Looking for 1914 world boundaries, I've found those https://github.com/kgjenkins/tq-world-historical-boundaries. Looking more the source of this was http://web.archive.org/web/20080328104539/http://...
0
votes
1answer
32 views

Is it possible to export a filtered layer in ArcGIS Desktop?

I'm considering purchasing ArcGIS as an ArcGIS noob. (Their trial is currently limited to Coronavirus support clients). I would be using the software to generate shapefiles of US zip codes by state. ...
3
votes
1answer
42 views

ogr2ogr - accomodate spaces in -select properties

I have a geojson feature collection. Some of its features have spaces in their property names. I am attempting to use the -select argument to limit which properties are included in the output. Is ...
0
votes
2answers
697 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), ...
3
votes
3answers
7k views

Export shapefiles in QGIS to import to ArcMap

I have one question regarding export shapefiles from QGIS to import after to ArcMap 10.6. I export the shapefiles as Save data/ESRI shapefile. After when I try to upload in ArcMap this shapefile, I ...
0
votes
0answers
28 views

How to see uploaded Shapefile into QGIS 3.12? [closed]

I'm an absolute beginner so I imagine this is an easy question. I upload a shapefile and it shows up as a layer, buy I can't find what I uploaded anywhere. I saw it could be something with the CRS but ...
0
votes
2answers
29 views

Exporting feature class in one shapefile to new shapefile using ArcMap

In ArcMap, how can you export the feature class of one shapefile to a new shapefile? I want everything in the old shapefile to go into the new shapefile.
0
votes
0answers
7 views

Importing Line Shapefiles in Excel 3D Maps?

I have managed to use the 3D Maps feature from Excel to visualise points at certain Lat Long coordinates from a data range. I have successfully managed to import complexe polygons via shape files. ...
0
votes
1answer
495 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 ...
2
votes
1answer
36 views

Distance Matrix between centroids QGIS

I'm using QGIS and I would like to measure the distance between the centroid of King County in the US and the centroids of all other US counties. I have imported the shapefile and I have executed the "...
1
vote
1answer
77 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 ...
0
votes
1answer
55 views

Convert GeoPackage to ESRI shapefile format

I learned that to convert a DWG file with all its layers from AutoCAD to an ESRI shapefile format in QGIS, one has to first import it as a GeoPackage, and then convert it from a GeoPackage to a ...
2
votes
2answers
769 views

Deleting shapefile element using Fiona?

I have downloaded a shapefile (.shp) that I'd like to read in using fiona.open and delete records. The reason I'd like to delete records is that some records have "None" geometries. So I want to ...
0
votes
1answer
28 views

GeoPackage to Shapefile export

When creating a GeoPackage vector layer in QGIS 3.10.x, it provides the following geometry types: Point, Line, Polygon, Multipoint, MultiLine, MultiPolygon, CompoundCurve, CurvePolygon, MultiCurve, ...
1
vote
0answers
20 views

Matching the borders of two shapefile layers to exclude gaps

I am using QGIS 3.11.0. I am having trouble making two different vector layers fit together without gaps or overlaps. My two datasets are from different sources - one of land based bedrock geology ...
2
votes
4answers
6k views

Change shapefile coordinate system using Python

I am struggling with Python and Kartograph.py. I'd like to change coordinate system of the whole shapefile from EPSG:5514 to EPSG:4326. Found some code in here working for points, but I don't know how ...
0
votes
2answers
26 views

Comparing two shapefiles of US States using ArcMap

I would like to use ArcMap to create an overlap of two shapefiles; i.e. Alaska vs Texas state. link (source: alaska.org/how-big-is-alaska ) Is it possible to move the Alaska shapefile next and/or to ...
0
votes
1answer
19 views

Create Multiple Shapefiles from GeoJSON

I am attempting to convert a GeoJSON Feature Collection into multiple shapefiles. The shapefile a feature ends up in depends on a specific property of the GeoJSON, layer_id. My desired output is a ...
0
votes
1answer
31 views

How to create multiple graduated layers using different attributes/columns? [duplicate]

I have a shapefile for which I'd like to create multiple graduated layers for each attribute/column. At present, I manually duplicate the layer and then change the column from the drop down list, ...
1
vote
2answers
35 views

Using arcpy search cursor to relate a .csv and a .shp?

I'm trying to write a script that relates data from a .csv file to a utility pole shape file. Basically, we want the script to iterate through the pole # fields in each table and determine which pole ...
1
vote
0answers
16 views

How do I get the country codes from polygons in my “grid data” polygon dataframe?

I am relatively new to working with spatial data in R. I have two spatial polygon data frames. The first one is a shapefile which has a "grid structure" of a resolution of 0.5*0.5 for the whole world (...
2
votes
3answers
45 views

Dividing shapefile into multiple shapefiles using an attribute value in QGIS Graphical Modeler

I have a shapefile with a column that have project references, I want to create a different shapefile for every project reference there is. Note that the project references are not unique in the ...
0
votes
1answer
26 views

Merging two point shapefiles as one in using shapely and fiona

I am a little bit confused. I have two point shapefile in the same Co-ordinate reference system, and I am trying to merge them using shapely to merge them together as one and output the geom with ...
0
votes
1answer
9 views

Generating a graphic for publication: How to change color and border weight of shapefiles in ArcGIS Pro 2.4.0?

I am trying to generating a graphic for publication. I am using ArcGIS Pro 2.4.0, and I am trying to draw a border around experiment plots using a rectangular shape file. As can be seen in the below ...
0
votes
0answers
34 views

How do I save file to .shp with have many attribute? [duplicate]

Is there a way to save a file to .shp with have many attribute (I use QuickOSM to create a building Layer and I tried to save but it get error) and Is there a way to change .KML to .shp ? I get ...
6
votes
2answers
2k views

Creating missing .shx file?

I am using ArcGIS Desktop to view one shapefile. Only a select number of features are being displayed. The same number are showing in the attribute table even though the database file (.dbf) has a ...
0
votes
1answer
29 views

How to convert from a webmap on ArcGIS to downloading shapefile format?

I have a ArcGIS item in the format of a Web Map and would like to download it as a shapefile (or similar format, such as KMZ or CSV, would also be acceptable) Is this possible, and if not, why? By ...
0
votes
1answer
39 views

R raster extract() and keep the original shapefile attributes

I use the R function extract() in order to extract the values from a raster dataset. The shapefile that I use with the extract() function has some columns/attributes -for example the unique ID and a ...
1
vote
0answers
29 views

Polygons not displayed properly. Grey colour above the data [closed]

I am trying to import a shape file cotaining Wind data over Sweden. I have to zoom in very much to be able to view the data under the grey colour that appears. I figure it has to do something with the ...

1
2 3 4 5
89