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
5
votes
0answers
95 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
32 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
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
20 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
16 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
26 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
25 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 ...
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?
1
vote
1answer
76 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
50 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 ...
1
vote
1answer
43 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
26 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
47 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
56 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
46 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
39 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
45 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
78 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
185 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
45 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
42 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
56 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
49 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 ...
3
votes
1answer
96 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 ...
4
votes
2answers
139 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
26 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
63 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
51 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
67 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
30 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
47 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 ...
-1
votes
1answer
34 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
46 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
77 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
54 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
41 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
41 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
71 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
145 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 ...
1
vote
1answer
42 views

Splitting an administrative region into given number of parts

I have the following plot. I want to divide the administrative region into given number (say 20) equal parts. library(maps) data(world.cities) Pakistan <- data.frame(map("world", "Pakistan", ...
0
votes
0answers
24 views

How to create and modify a multipolygon so that it does not overlap when merging layers in QGIS?

I am new to QGIS. I need to modify a shapefile so I can add a circle in a Canadian province to be used for Tableau afterwards. I tried to use QGIS to modify the shapefile. I have created a new layer ...
0
votes
1answer
34 views

Aligning shapes to terrain in CityEngine?

I have a problem. As soon as I click "Align shapes to Terrain", my shapefile rectifies and falls down the edge. In the first picture(Border_Issue1) you can see that all shapefiles have the right size,...
0
votes
0answers
57 views

How to export Google Maps zip polygon to shapefile

I have the following URL that is a zip polygon from Google Maps that I want to export to shapefile and open in QGIS. How can I do that?
1
vote
1answer
61 views

PostgreSQL - Creating DB, User privileges [closed]

I created a database named "wchiba" in postgres using : create database wchiba; Then I create a user : create a user saifeddine with password "0000"; Then I grant privileges : grant all on ...
1
vote
1answer
88 views

Extracting admin boundary data from OpenStreetMap?

I'm really just looking to get borders for cities and regions around the world. Ideally in a shapefile format. Does anyone know how I can do that from OpenStreetMap?
0
votes
1answer
28 views

password authentication failed for user “ASUS”

I'm creating table in PostgreSQL using these commands: shp2pgsql -s 32632 watershed.shp watershed > watershed.sql psql -f watershed.sql cambridge psql -f watershed.sql cambridge But I had ...
2
votes
0answers
45 views

How to make a polygon on QGIS based on a PDF image? [closed]

I'm trying to take an image out of a PDF and make a shapefile on QGIS. How can I do that?
2
votes
1answer
52 views

Finding highest value within a shapefile or feature class using ArcGIS Desktop?

I want to find the highest value within a specific area of a shapefile feature class but am unsure about how to do this. From the attatched image, I want to find the pixel within the outlined region ...
3
votes
1answer
98 views

Overlapping polygons layer order

Is there a way in QGIS to prioritize the layering order overlapping polygons. I have a shapefile with numbers in the attribute table from 1-20. Each number is associated with its own polygon. I want ...
1
vote
1answer
142 views

What causes Error in ogrInfo when using readOGR to open a layer in a shapefile? [closed]

When I use readOGR to read a shapefile from thematicmapping.org, the shapefile is successfully displayed by leaflet in a shinyapp. However, when I use readOGR to read a shapefile from mt.gov, the ...