Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
2answers
32 views

Copying shapefile to Feature Dataset using ArcPy?

How do I copy a shapefile to a Feature Dataset? Here is is my script. import arcpy import os arcpy.env.workspace = "C:/temp" dataset1 = "C:/SDE.gdb/temp1" arcpy.CopyFeatures_management("scrap....
1
vote
1answer
44 views

Identifying line intersects within single polyline shapefile using QGIS?

I have a shapefile representing a road network, there is an issue with the network in that some roads have duplicated features in the shapefile (seperate digitisations with seperate attributes but for ...
0
votes
1answer
21 views

ArcGIS Runtime: Loading multiple shapefiles into a single ShapefileFeatureTable

If the shapefile is too big (above 2GB) and I have split it into 2 shapefiles, how do I load that 2 files into ArcGIS Runtime via ShapefileFeatureTable, or something equivalent?
-2
votes
0answers
25 views

Creating Circle polygons from series of point data with variable radii requirements using QGIS? [duplicate]

I am looking for a method to produce a polygon shapefile based from details within a point shapefile's attributes. For example: Point ID / Easting / Northing / Radius (m) Pt_1 / 10000 / 20000 / 7 ...
1
vote
1answer
48 views

How do I find the percent overlap between two shapefiles in QGIS?

I have two different shapefiles (first and second). I want to calculate how much overlap there is between the liquefaction zones in the second shapefile and each of the neighborhoods in the first. I'...
2
votes
1answer
35 views

Populating new field in shapefile with values from list?

I'm looking to populate a newly created field in a shapefile that from a list using basic python and osgeo tools. The values are integers and in a python list that is the length of the number of ...
2
votes
0answers
49 views

Map not showing while following tutorial for QGIS [closed]

1I downloaded and installed QGIS 3.4 and tried to load an example shapefile layer as described in this tutorial using the provided shapefiles. But the images are not showing up. I tried to uninstall/...
0
votes
0answers
42 views

ArcMap QGIS different distortion

I have a problem with a shapefile (EPSG:31287 MGI_Austria_Lambert). I tried to solve it on my own, but I just have no clue as to what's the error. So I use a basemap from basemap.at (WMTS: https://...
0
votes
1answer
28 views

Converting CSV with LineString into shapefile using ArcGIS Desktop?

I have a CSV which I've imported into ArcGIS Desktop, and it contains a Linestring column. How do I convert it into a shapefile? Example of what one of the fields contain below: [[51.53878768021,...
0
votes
0answers
20 views

NHGIS census files get lat/lon from polygon

I've never worked with shapefiles before and I'm having a lot of trouble with something that I think should be pretty simple. So I have the census tract files from NHGIS for 1980 and the structure ...
2
votes
1answer
252 views

Why are Shapefiles limited to 2GB in size? [closed]

I'm hoping somebody can clarify for me why .shp are limited to a 2GB file size? Having read through the ESRI considerations and technical description, I cannot understand why it exists. Since they ...
0
votes
1answer
27 views

BufferUnderflowException in GeoServer when trying to render from one specific shapefile

I am using GeoServer, I uploaded multiple shapefiles onto GeoServer data folder and created Datastores followed by Layers in the GeoServer Dashboard. Out of the 33 shapefiles I used, 30 are rendering ...
1
vote
0answers
38 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
votes
0answers
15 views

GDAL ogr2ogr how to select by type not column name [duplicate]

I want to select column name by type (geometry column) not by name. How can I do that? Here is my ogr2ogr command "ogr2ogr>/var/www/html/logs/exception.log 2>&1 -f OCI OCI:".CFG_DB_USER."/"....
2
votes
1answer
49 views

Excel co-ordinate file to polygon shapefile

So I am making a map of fishing intensity. Currently, I have an excel table with the mid-latitude and mid-longitude for each of my intensity data points. I also have the c squared value for each point ...
1
vote
2answers
35 views

Writing GDAL/OGR point shapefiles over 4GB size?

I am writing point shape files for a Monte-Carlo predictive model. My shapefiles are exceeding 4 GB in size. I see corrupt attribute table entries. Is this a result of the large file size? I'm ...
0
votes
0answers
19 views

Prevent Export/Save As of Vector Layers/Shapefiles

I have created a database using postgreSQL and created multiple users assigned with different roles Some of the users can only select and view the data and not update or delete any record. It works ...
0
votes
1answer
22 views

Google Earth Engine Import shape as draggable Layer

How to import a shape or image into GEE and drag it around like the self-drawn imports? Edit: the asset is uploaded and also added to the map, but it´s projected according to its coordinates, I want ...
0
votes
0answers
17 views

Extract pixel number of Hansen lossyear map

I would like to extract the number of Hansen pixel for each different polygon of a shapefile. So if the polygon contains for example 10 pixel of Hansen I would like a column with this value. This is ...
0
votes
0answers
30 views

QGIS temp shapefile missing

I am creating a buffer around a PDA point. Something I have done previously with no problems. However, this time it is coming up with an error message saying, it has failed to open the Shapefile 'C:\...
2
votes
1answer
68 views

Sorting (ORDER BY) rows from Shapefile using Python?

I'm writing a Python script where I have to read a Shapefile, sort its rows/records by a specific field, and then write a new shapefile with that new order. Does anyone how can I do it? I'm using ...
2
votes
0answers
33 views

Shapefile lines disappear, but data remains

I'm working in QGIS 3.4 on a line type shapefile layer with +/-5000 records. I made an edit to the start/end nodes of a couple of lines to move them to a point node from another layer; then when I ...
0
votes
1answer
26 views

Multiple records for a single point feature in a shapefile

Is it possible to have a single point feature associated with multiple records in an attribute table? For example, if I had a shapefile of type POINT containing 100 points indicating fire hydrants ...
1
vote
1answer
31 views

QGIS3 How to export shapefile symbology to scale?

I'm looking how to export in QGIS3 a vector layer with a determined scale. It was straightforward in QGIS2 when I was exporting to a shapefile I had the option symbology scale but it disapear in QGIS3 ...
2
votes
3answers
85 views

Coordinate system for shapefile, no .prj file, using R

I am trying to use the shapefiles found on this page for oil & gas data from the Netherlands: https://www.nlog.nl/en/files-interactive-map from table at the bottom with "ARC_grid" and "Google ...
1
vote
1answer
25 views

How to convert a multipolygon to multilines with Python?

How can I convert MultiPolygon to Multiline? I want to work with the boundary of multipolygon. In R I can just do : as(my_multi_polygone, 'SpatialLines') But I don't know how to do it in Python?
4
votes
2answers
60 views

Identify and delete all unrequired fields from Shapefile using ArcPy

I have some Shapefiles inside one Folder and for the sake of data compression I want to delete all fields from Table of Content that can be removed (that are not required)! What I have: What I ...
2
votes
2answers
72 views

Points to shapefile, with curved lines given center and radius (QGIS)

I'm a newbie in GIS and for a project I need to create a shapefile given some points in lat/lon. I have been following this tutorial: https://community.pyramidanalytics.com/t/q5tk8w/creating-a-...
4
votes
3answers
78 views

Seeking alternatives to Geodatabase to describe topological relations?

According to switchfromshapefile.org, there is no way to describe topological relations in a shapefile. I am aware that this can be done using a Geodatabase and I have heard of TopoJSON. If there are ...
1
vote
1answer
83 views

Converting GeoJSON to shapefile using GeoTools Java

I am implementing a web service in Java which takes a GeoJSON file as input and converts it into a shapefile. My code looks something like this :- @RequestMapping(value = "/uploadFile", method = ...
0
votes
1answer
32 views

Manually edit shapefile coordinates (polygon) QGIS 3

In the QGIS2.18 version I was used to see the point editor table when I would be in editing mode and have clicked a point. A list would appear, with all the points in the selected polygon and their x ...
1
vote
0answers
45 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 ...
2
votes
1answer
78 views

How to split and reproject a polygon shapefile into a grid based on area proportion with QGIS?

I have a shapefile with polygons (municipal.shp) which contains a variable (float numbers) for each municipality of an area. I want to distribute these values into a vector grid (grid.shp) with ...
0
votes
0answers
47 views

Seeking library that reads/writes shapefiles to use with .net core 2.2?

Previously I used to use Easy Gis .net. Now we have a .netcore 2.2 project and I need to read/write Shapefiles. I have googled for 2 hours and I didn't find anything. I also tried to use dotspatial ...
1
vote
1answer
54 views

Convert a shapefile with variable values to a raster and distribute the values spatially in each grid cell

I want to convert a shapefile (polygons in WGS84) which contains 3 variables (float values) for each municipality of an area. In fact it contains 1035 municipalities. I want to convert it to a raster ...
1
vote
0answers
47 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 ...
0
votes
1answer
27 views

Rasterise a shapefile with gdal into a new raster file with multiple bands

I want to convert a shapefile (polygons) which contains also 3 attributes (CO,NOX,SOx) with float values. I used the following command gdal_rasterize -a CO -a NOx -a SOx -ot Float32 -ts 1000 1000 -...
-1
votes
1answer
103 views

Python - Creating a shapefile from a bounding box coordinates list [closed]

There is already few existing questions about this topic, but I unfortunately did not find something that could fix my problem... I have a point Lat, Long coordinate i.e. Lat= 10 and Long = 10. I ...
0
votes
1answer
32 views

An old point layer created from PLSS grid does not line up with current PLSS grid layer

I have two vector layers which I am having trouble lining up. First, I have a point layer that was developed a decade ago to sample information from Public Land Survey System records in Washington and ...
0
votes
1answer
35 views

Join linestrings in shapefile of watercourses that have same NAME and PERENNIALITY

I have a shapefile (link below) of only watercourses comprised of many short linestrings. OpenJUMP displays this about each segment LINESTRING ( 153.05422 -26.44881350000003, 153.05448 -26....
2
votes
2answers
42 views

Batch converting KMLs to shapefiles in PyQGIS?

I have a folder full of KML files and I want to create a .shp, .shx, .prj and .dbf files from these KMLs. How can I accomplish this? Below is the code that I am working on: enter code here import ...
1
vote
1answer
104 views

Reclassifying shapefile using ArcGIS Desktop?

So I have a shapefile consisting of 1000 polygon records. I would want to reclassify one field "Value" into a new blank field named "New Value". As an example: record = 1; value = 25.6 record = 2; ...
0
votes
0answers
31 views

Digital Soil Map of the World [duplicate]

I have downloaded a digital soil map of the world from: https://worldmap.harvard.edu/data/geonode:DSMW_RdY It has lots of files in it with different endings (shp, sbx, xls etc.). I am using QGIS 3.4. ...
1
vote
0answers
15 views

Solving an Undefined Projection for US Counties (1990) [duplicate]

After inserting the cs99_d90.shp file obtained from the 1990 US Census, I received an error message claiming: The following data sources you added are missing spatial reference information. This ...
2
votes
1answer
47 views

Calculating Length of Line features using GDAL, Shapely libraries of Python [closed]

I have a line shapefile named "river" which has 385 features. I would like to calculate the length of each feature using Python. I am currently using GDAL, Shapely, and Fiona libraries.
0
votes
1answer
45 views

How to perform shapefile/raster integrated functions

Description: I'm having trouble with some Raster/Shapefile manipulation. My problem is that I have a shapefile that I would like to use to update my rastervalues with. The shapefile has multiple ...
0
votes
0answers
16 views

Projecting Microstation .dgn that has no coordinate system [duplicate]

I have a set of .dgn drawings that have been sent to me from a client. All of which were never assigned to a coordinate system upon creating them. I am attempting to assign a coordinate system to ...
0
votes
0answers
20 views

Plotting GeoJSON or a shapefile as a choropleth interactive map

I need some help to complete the following code to display choropleth interactive map by clicking on a button. # Plotting the shapefile observeEvent(input$shape, { p1=leafletProxy("gridmap") %>%...
1
vote
1answer
57 views

Polygons are unable to be edited and have no feature, although they are listed in attribute table with three features

I found that several lakes in the GRanD database (global reservoirs and dams) are unable to be selected for editing like normal polygons, and they have no feature at all, although they are shown in ...
3
votes
0answers
59 views

Shapefile polygon operation efficiency

I would like to make a graph from a shapefile, where edges would express spatial relations between polygons according to DE-9IM For that, I use fiona + shapely My code is working but it is extremely ...