Stack Exchange Network

Stack Exchange network consists of 174 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
Make your voice heard. Take the 2019 Developer Survey now

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.

0
votes
0answers
9 views

Unique values from street names

I need you help, pls!!! (sorry for my English) I have a shapefile with 2.000.000 (duplicate) street names. I need the unique values of two columns of every row (street name and street place) and ...
0
votes
0answers
6 views

Projecting Microstation .dgn that has no coordinate system

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
12 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
44 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 ...
0
votes
0answers
10 views

Extracting rainfall data from a netCDF file for a catchment in Python [on hold]

I need to extract rainfall data (including lat, lon, time) from a netCDF file for a catchment. I have the catchment shapefile (that means, I have the catchment boundary). How can I do it in Python?
3
votes
0answers
47 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 ...
0
votes
1answer
36 views

Which datum transformation should I use when projecting from 4326 to 53008 in ArcMap?

I have a polygon shapefile which is on WGS84 and I want to re-project it on EPSG:53008 (World Sinusoidal). When I'm trying to do it either by 'Save as' or by 'Data management tool - Project" it says ...
-1
votes
0answers
25 views

Exporting All data from Case IH AFS Basic [on hold]

I'm working on some data sets being stored in Case IH's AFS Basic software. I do not have access to the raw files (.cn1), I need the data stored within AFS. I've worked with SMS in the past but I'm ...
0
votes
0answers
31 views

Matching streets in two line datasets with PostGIS or QGIS?

Explanation: I have 2 tables on PostgreSQL, one table named 'city' that have linestrings wich represents streets from a city (using QGIS I downloaded OpenStreetMaps data and imported to PostgreSQL ...
0
votes
4answers
54 views

Problem editing, clipping, and saving large shapefile QGIS 3.4

I'm working with a very large shapefile in QGIS 3.4. I only need one section of the layer (near the main city, not the areas outside it) and I'm trying to delete the large sections which I don't need. ...
1
vote
2answers
75 views

Reproject all shapefiles in same folder in same projection with raster?

I have 4 shapefiles in the same folder names like that (1996.shp, 2000.shp, 2006.shp, 2014.shp) and one raster. I need to reproject all shapfiles in the same projection (4326) of raster, but I do it ...
0
votes
0answers
22 views

full python 3 script to load shp file inpo Postgis file

I am using Python 3 libraries to programmatically push a shapefile into a remote POSTGIS data base. I retrived the code googling aroung and slighty modifing it. Here the script: import pandas as pd ...
0
votes
1answer
80 views

Extract longitude and latitude from object in shapefile

I'm new to GIS and (ESRI) shapefile. I would like to extract GPS-Coordinates or longitude and latitude from every object in a shapefile, mainly from polygons. Here is a picture with one of these ...
0
votes
0answers
30 views
+50

Create a valid shapefile with phpmyadmin/Shapefile lib

I'm trying to create a shapefile with the PhpMyAdmin\ShapeFile library. I followed the example in the Github project repository, but I would like to create a shapefile within polygon elements, not ...
1
vote
1answer
84 views

Determine on which side of a line points are located

I have a point shapefile (point.shp) and a line shapefile (line.shp). I want to determine on which side of the line each point is located. The best would be to use a pyqgis command to add a field to ...
0
votes
0answers
26 views

Get a column from database and populate the shapefile attributes?

I would like to know how to get copy a specific columns from the database and add that column in a shapefile attribute table? I am open to other better ideas.
0
votes
0answers
24 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
7 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 ...
0
votes
1answer
33 views

QGIS: Clip a shapefile based on values in a raster

I would like to clip a shapefile based on the values of a raster file beneath it, using QGIS. The specific context is a shape file of Local Government Areas overlaid onto a population density raster....
1
vote
1answer
41 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 ...
2
votes
1answer
27 views

.CSVT File no longer converting string variable to float value

I was testing joining a dataset to shapefiles in Qgis. The text file that I used in my earlier testing as my csvt file worked perfectly and I was able to create gradient maps using my joined dataset. ...
0
votes
0answers
25 views

Comparing Multiple Shapefiles

I have 4 shapefiles that I need to compare spatially, to highlight inconsistencies between them in ArcGIS. I have used the Feature Compare tool so far, but I'm looking for a faster way to compare the ...
0
votes
0answers
53 views

Convert classified point matrix to shapefile

I've use R to generate a matrix of points tagged to separate categories. Each point has a lat, long. and category. When I plot them in QGIS (using colored points of the appropriate size) it looks like ...
4
votes
2answers
95 views

Clustering 30m pixels into 120m pixels, fishnet using QGIS?

I have a raster file representing tree cover loss made of 30m*30m pixels taking the value 0 or 1. 0 means no loss and 1 means tree cover loss. I want to cluster these pixels into bigger pixels of the ...
2
votes
1answer
41 views

Joining 2 layers by location doesn't join desired fields from attributes tables

I have 2 layers that I'm trying to join by location: 1 is a point layer (CRS 4326) and the other is a shapefile layer (CRS 4326). The shapefile layer has a field in the attribute table whose values I ...
5
votes
2answers
71 views

Measuring average, min and max of vertex height of linear shape using QGIS?

I have a linear shape, all of the vertexes of each segment has a z-value, stored in the geometry. I need for every record, segment the average, min and max height value aggregated from their vertex ...
0
votes
0answers
38 views

Rasterise shapefile as 1 band (grayscale)

My code converts shapefiles to rasters. I had first done this in colour, but now I need greyscale (1 band). The code seems to create this for the first raster file, but the other raster files seem ...
-3
votes
2answers
26 views

Get stats from a shape inside another shape

I have a big shapefile with many features. Then I have a another shape of less size, wich is in the same space that the first shape. I need to get stats (area, %) from the first shape that only match ...
0
votes
0answers
24 views

Merge two shapefiles into one new shapefile with OGR/GDAL library in C#?

I am currently coding a C#/WPF application that lets you choose two shapefiles and create a new merged one, with the content of both shapefiles. My problem is that I am quite new (1 month with gis) ...
0
votes
1answer
39 views

Converting bulky shapefiles (54 MB) to GeoJSON

I am trying to convert my shapefile to GeoJSON using the below code snippet: StringWriter writer = new StringWriter(); String geoJson = null; FeatureJSON fjson = new FeatureJSON(); fjson....
2
votes
1answer
33 views

Coordinates offset when using Mapshaper to convert shapefile to GeoJSON

I'm a newbie to the GIS world and I'm trying to convert a shapefile to GeoJSON for use in Mapbox. When I view the resulting layer in Mapbox, most of the features appear southeast by 20-30 feet of ...
0
votes
0answers
58 views

Finding out which U.S. state a tweet was generated in

I have a database of records with latitude and longitude information (imagine this is a CSV file containing tweets and their geo-coordinates). I also have shapefiles of U.S. states. I want to add ...
2
votes
1answer
23 views

How to export a unique ID field of a geopackage

When I am converting my geopackage file in shapefile, the unique ID field is not exported. I could duplicate it before exportation, but I wanted to know if it could be done in one step, in order not ...
2
votes
2answers
78 views

Cannot select polygon from shapefile in QGIS?

I am working currently on a small-scale map using among other sources Natural Earth shapefiles (NE). For an unknown reason, one of the polygons created by me on the basis of the fragments of NE ...
0
votes
0answers
27 views

Matching the attribute table name to the file name in QGIS

I have been using v.rast.stats to generate shapefiles and basic statistics from raster files. Once the shapefiles are generated, the name field in the attribute table has a generic name, which is the ...
0
votes
0answers
22 views

Multi-polygon shapefile geometry incorrect when imported as FC in gdb

I am attempting to import a multi-polygon shapefile (the shapefile was generated from a postgis table, I did not generate this file) into a file geodatabase manually (right click, select import, run ...
0
votes
0answers
25 views

How to write multiple polygon Lat Lon info into a shapefile?

I have the Lat Lon information of the boundaries of 43 shapefiles. Now I want to combine all these 43 polygons into a single shapefile. How can I do that? What I did is I converted every polygon to a ...
0
votes
1answer
45 views

Single Side Buffer pyQGIS

I am trying to create a single side distance buffer around a line on QGIS. Here is the code I am writing but I don't get the expected result: processing.runalg("qgis:fixeddistancebuffer","input.shp"...
1
vote
1answer
55 views

Restoring a shapefile on ArcMap

I just edited a shapefile in ArcMap and I was unaware that this would edit the shapefile in ALL ArcMap documents in which I had used it. I want to restore this shapefile but cannot figure out how. ...
0
votes
1answer
66 views

Field Value shapefile - Add values

I have a shapefile that contains three lines. I want to add a specific numeric id to the field "line_id" and a string id to the field "border_id". Basically, for the first line, I want to add the ...
0
votes
1answer
33 views

Two parallel lines (vectors), only one feature (ID) [closed]

I have one shapefile that contains two parallel lines in yellow in the picture. Both lines have the same feature (these lines were originally both sides of a fixed distance buffer around a line). I ...
0
votes
0answers
24 views

Has QGis 3.4 some limitation for filenumber to load shp files? [duplicate]

I want to load over 600 shp files at once in qgis 3.4. Is there a limitation on the number of shapefiles that can be added?
0
votes
0answers
43 views

How to import a data with unknown coordinate system to a data with known coordinate system

I have recieved a Group of shape files with unknown coordinate System. The coordinates are like: 536605 , 5658923 and I can not find the corresponding projection/coordinate System. It looks like that ...
0
votes
0answers
51 views

Reprojecting shapefile using DotSpatial gives unexpected lat/long coordinates?

I need to take an uploaded polygon shapefile and extract some information from it, including the lat/long positions of the centroids of the features. Using DotSpatial I attempt to Reproject the ...
0
votes
2answers
45 views

Import shapefile as table in MS SQL Server (QGIS 3)?

I have made a successful connection with MS SQL Server in QGIS 3. I can see all of the tables. I know with QGIS 2 and PostgreSQL you had to use DB Manager to import a shapefile as a table. Well, DB ...
0
votes
1answer
27 views

shp2pgsql creates one dimensional shapes

I use shp2pgsql to import an .shp ESRI shapefile into PostgreSQL database. I use brew installed shp2pgsql. I used this command first: shp2pgsql -I -s 4326 /path/to/shape_file.shp public.os_gb | psql -...
1
vote
0answers
20 views

How to output file with all overlaps between two Shapefiles - Neighborhood/Zip Codes [closed]

I have a pretty specific problem I would like help with. I have two shapefiles: neighborhoods from https://www.zillow.com/howto/api/neighborhood-boundaries.htm zip codes from the census bureau: ...
0
votes
1answer
35 views

How can I write a zipped shapefile with ogr2ogr and /vsizip/?

After reading a bit of GDAL Virtual File Systems docs, I am trying to write a zipped Shapefile using this gdal command involving the use of /vsizip/: ogr2ogr -f "ESRI Shapefile" /vsizip/test.zip\test....
0
votes
1answer
33 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 ...
5
votes
2answers
439 views

How can a missing .shx file be created?

I am using ArcGIS 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 complete ...