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
0answers
12 views

Converting shapefile to .osm.pbf

I am trying to convert a GIS LINE shapefile into a .osm.pbf file on Windows. I've done some research on the topic and some tools that kept coming out are: Merkaator shp2osm - which deals mostly with ...
1
vote
0answers
17 views

Automatic zoom when uploading shapefile R

I would like to set a zoom on the shapefile's canvas when it is uploaded. is there a function for that? Here is my script that allows adding the shapefile after reading with OGR : observeEvent(input$...
1
vote
1answer
28 views

Save a shapefile in a temporary file

I would like to add a line after the transformation of my shapefile in order to save it in a temporary file. uploadShpfile <- reactive({ if (!is.null(input$shp)) { inFile <- input$...
1
vote
1answer
18 views

Adding information of a shapefile to a GPS coordinate

I am using ArcMap 10.6.1 and I am currently trying to add information to a GPS coordinate. This coordinate (red) lies within a shape from a shapefile, and the shapefile as some attributes (yellow box)....
2
votes
1answer
29 views

Changing color for Shapefile in Google Earth?

I have a shapefile that desrbibes the post/prior routes from/to a certain venue. The white lines are the routes and each segment has a different foot traffic value. The segment in the image has a ...
0
votes
1answer
44 views

In ArcGIS 10.6, How do I remove FID columns from automatically being created/inserted during Merge?

When I go to merge some polygons, it automatically adds an FID for each polygon as a column. It takes forever to go through and delete each FID for the output. Two questions: Is there a way to prevent ...
1
vote
1answer
10 views

Convert point layer to text in v8 design file

I have a shape file point layer with field "name" having attribute values e.g. 'city name'. I want these attribute values as text in v8 design file using FME. Any help please.
-1
votes
0answers
17 views

Debug and speed up rendering of shapefile with WMS on GeoServer? [duplicate]

I'm currently working with French mobile coverage data in shapefile format (can be found here: 2019-T1_Metropole_Cartes de couverture 4G). The files have been uploaded to our GeoServer for further ...
5
votes
0answers
83 views

PostGIS vs shapefile vs geodatabase precision [closed]

How coordinates are stored in a PostgreSQL/PostGIS database? If not adjusted manually, is it "infinite"? Or up to some digits(15?). My question is the following: If I work in a PostGIS database with "...
2
votes
1answer
19 views

Convert Java object to JSON with jackson

I am trying to read the data from a shapefile and once read, I want to convert it to a JSON file. To read the data I'm using the geoTools library, and to write to JSON, I use the geojson-jackson ...
-1
votes
0answers
22 views

Zipped shapefile upload, R Shiny [closed]

I've created a feature to import a shapefile (via .dbf .prj .shp .shx) but I would prefer to import only a zipped shapefile. How will I be able to transform this function? Here's my code : server.R ...
1
vote
0answers
20 views

API for publishing data from shapefile [duplicate]

I have a client asking to develop a system which provides API to consume data from their POI, PA and MPA datasets (in shapefile). Essentially more like the existing Google Maps or HERE Map API which ...
0
votes
0answers
13 views

Assign shape file attribute as a vertex label in networkx

I have a shapefile which has attribute 'num' and I want it to use it as vertex ID. It means if I print G.nodes() and G.edges() then the vertex IDs should appear as per attribute 'num'. But in networkx ...
0
votes
0answers
9 views

Merging elevation values of multiple point shapefile

In ArcMap I have thousands of points with elevation values from an aviation route. This route is stored in a multiple point shapefile. I made a polyline shapefile based on the route x, y locations. Is ...
0
votes
0answers
24 views

Using R for analysing relations between administrative borders (neighborhood of polygons) and voting results (or void votes)

What would be the relatively simple way to verify if there is a relationship between administrative borders (polygons) and voting results (like: void votes). This would be used to verify if voting ...
0
votes
0answers
21 views

What is the geom_type at CreateLayer() in ogr for xyz-GeoJSON?

My GeoJSON-File is a Multipolygon which creates several triangles with a X, Y and Z coordinate. Z determines the height of the specified point for X/Y. If i try to render my GeoJSON into a shapefile ...
0
votes
0answers
6 views

Seeking Traffic Analysis Zones (for city of Shenzhen) in computer readable format? [migrated]

I'm looking for (something like) shapefiles of Traffic Analisys Zones in the city of Shenzhen. If there are several I would like to get most recent, but any would serve the purpose.
1
vote
0answers
24 views

Ranking water basins by canopy cover? [closed]

I have a river raster that is composed of a range of canopy cover percentages by pixel. I want to rank which water basin's have the river with the best canopy cover. How do I do this?
0
votes
0answers
14 views

Migrate geocoding app VB6 and MapObjects 1.2 a new language [closed]

I am somewhat new in GIS programming. I have been assigned the job of migrating a backend app to a new language. This app is used for reverse-geocoding (from coordinates recover the address) which ...
1
vote
1answer
31 views

OGR SetAttributeFilter with multiple fields?

I am trying to open a layer using OGR in Python and filter the features using SetAttributeFilter() where two fields are greater than zero. from osgeo import ogr driver = ogr.GetDriverByName('ESRI ...
1
vote
0answers
43 views

Shapefiles with same coordinate system do not match [duplicate]

I have a problem with ArcGIS. I'd like to project two layers in the same coordinate system (WGS84/Mercator; 3395) but these don't match. I have one map with sovereign states borders, drawn from ...
0
votes
1answer
38 views

How to retain all attribute data when clip two shapefile?

I have two shapefiles, one is soil map and another one is paddock map. I want to label every paddocks with soil type, but I don't know how. I tried to use intersect , but it created more polygon like ...
0
votes
1answer
22 views

How to create circular polygon and add it to shapefile as a layer?

I have such data of points which could be stored with their radii. cdf = rbind(matrix(c(100, 200, 10), ncol = 3), matrix(c(400, 300, 20), ncol = 3)) di = c("1", "2") spcs <- list() for (c in 1:...
0
votes
1answer
36 views

shp2pgsql Load Data Type Inconsistent

I'm having trouble when trying to upload a shape file in postgresql/PostGIS. There's a field with type "date", but actually there'r two elements with content : '20012060' and it returns ERROR when I ...
1
vote
1answer
53 views

Points Plotted Without XY coordinates

I am currently trying to figure out how a set of points were plotted without full XY coordinates. I was given Y coordinates, but not X and there are points plotted on a map. I think these points were ...
0
votes
1answer
41 views

Populating column in shapefile attribute table based on row values of another column in R? [closed]

I'm using R to manipulate an attribute table of a shapefile. The shapefile attribute table has two columns: Location ID, and Height. I want to add a third column titled "Mean", which provides the ...
0
votes
1answer
22 views

Split by Attributes tool exporting to DBF files only? [duplicate]

I am using the "Split by Attributes" tool in ArcGIS 10.6 to go through a shapefile, and split it up into new files by an attribute value. The tool runs perfectly, however I notice it only exports to ...
1
vote
0answers
26 views

GML file converted to ESRI shapefile with ogr2ogr missing spatial reference information

I am trying to convert Sentinel-2 cloud masks from GML format to ESRI shapefiles. I have managed to use ogr2ogr in a python script as described in the answer to Using ogr2ogr to convert GML to ...
0
votes
0answers
36 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 ...
5
votes
4answers
122 views

Finding distance between buildings and nearest road using QGIS?

I am very new to working with GIS data. I am currently using the QGIS tool to work with the data. I have two datasets: Buildings - polygon shapefile with information about different buildings in a ...
1
vote
1answer
31 views

Saving only selected features after doing a selection by location in QGIS using Python Terminal?

I wrote the following script to save only the selected features after have a selection by location done. But I have got an error when the saving line is executed. I don't want to load these layers in ...
3
votes
1answer
35 views

Read N number of rows from shapefile using GeoPandas

Pandas has a parameter nrows for selecting how many rows will be read into the dataframe. Does GeoPandas have a similar parameter? Couldn't find in the documentation.
2
votes
1answer
52 views

Identify topological errors using FME

I have one single shapefile with many features. There are three different topological errors that I want to be identified (only identified). Line A consists of many segments and some of segments ...
0
votes
1answer
39 views

Error when extracting specific field of shapefile in Google Earth Engine?

I'm trying to extract specific field data which is in shapefile. There was an error while executing the following code in GEE as argument invalid type. the screenshot shows the error message. Can ...
2
votes
1answer
40 views

Splitting vector layer into shapefiles (not geopackage) using QGIS?

Using QGIS 3.6.3, I have a layer with ten polygons. I want to use split vector layer to split the file into ten shapefiles, But the result output file is a Geopackage. How can I get ten shapefiles by ...
3
votes
2answers
79 views

Creating building shadows in QGIS?

Can anyone think of a simple way to create a polygon to represent building shadows? I have a shapefile with height information for the buildings and I want to create a simple plan looking like the ...
0
votes
1answer
19 views

How to convert coordinates to shapefile with R package's dataset?

I need construct spatial weight matrix for data which syear=1995 (house$s1995==1)in housedataset in spdeppackage,So I tried writeOGR function as the link suggeust to get shapefile enter link ...
0
votes
0answers
41 views

QGIS Layer creation failed for shapefile

QGIS v3.4.4 New project and trying to add a shapefile (line) layer w/ manual data entry. Layer>Create layer>New Shapefile layer Fill out the form w/ a file name, geometry type and I added a ...
0
votes
0answers
35 views

Scraping Uber service coverage from Uber City website into shapefile?

I would like to get a full national wide coverage of Uber service area. I find there are specific coverage boundaries by city on its website. For example, https://www.uber.com/cities/charlotte/. Is ...
1
vote
1answer
41 views

QGIS - exporting shapefile to convert to .JSON for use in PowerBI

I'm trying to export a shapefile I've been using in QGIS for use in PowerBI because PowerBI only supports .JSON extensions. So I've been converting them with mapshaper.org. This is my shapefile result ...
0
votes
0answers
18 views

Creating shapefile/GeoJSON from CSV with zip codes

I have a CSV file containing zip codes to territory code mapping. I would like to create a map showing the boundaries of the territories as either a shapefile, GeoJSON, or TopoJSON. I was able to ...
1
vote
3answers
39 views

Use a .shp file to map multiple entries in a .csv in QGIS

I have a .csv file with several entries with data for events which happened in places, and a corresponding .shp file which shows the locations where the events took place. How would I go about mapping ...
0
votes
1answer
27 views

Seeking Boston shapefile 1630?

I found this map on Reddit and was curious if anyone knows how it was made. https://www.reddit.com/r/boston/comments/2xu9ix/modern_map_of_boston_compared_to_original_1630/ I think I could make it ...
1
vote
1answer
43 views

Opening a shapefile with no extension in QGIS [closed]

I am trying to open an open license shapefile in QGIS (this is the link: https://pub.uni-bielefeld.de/record/2674065), I am not sure if the information is not there or if the content is not complete; ...
0
votes
1answer
41 views

Input points shapefile in shiny app

The application I created allows me to import a polygon shapefile into my Leaflet map. However, I would like to set up a point shapefile import on the same button. I tried several attempts, especially ...
0
votes
2answers
39 views

Reading shapefiles using for loop: Error in readOGR() : length(dsn) == 1L is not TRUE

I'm using a for loop to read in multiple shapefiles within a directory and manipulate them individually. Presently I cannot do this because the for loop results in the error: "Error in readOGR(...
0
votes
0answers
38 views

TIFF somewhat does not match with a shapefile

Two layers, one .shp and a NDVI image (from the MODIS, exported it in TIFF format from envi), have the same geographic coordinate system (GCS_WGS_1984), but they are not overlapping 100% in ArcGIS. ...
1
vote
1answer
35 views

Creating 1 hectare rectangle polygon surrounding points and dividing it into equal sized sub-quadrats in ArcGIS Desktop?

I have a set of points like this: ] I have only these points' information. Now I want to draw a boundary of this points whose size should be 1 hectare (100m x 100m). After that, I want to subdivide ...
1
vote
1answer
69 views

How to convert a jpeg map of borders into a shapefile?

I have a map of French departments from the 19th century (impossible to find in shapefile format) in jpeg format and I would like to convert it into a shapefile in order to regroup raster data and ...
2
votes
1answer
135 views

How can we extract values from a raster and put it in a shapefile?

I just started using QGIS for a research project and I am not at all familiar with the software nor the formats used. I have a shapefile representing the different departments of France, delimited by ...