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
7
votes
3answers
17k views

permission denied when creating shapefile

I'm having problems creating new shapefiles - in QGIS 2.14.20 any new fields I create and any associated data are not saved. I've now got the same problem in QGIS 3.0, but there I get a message ...
1
vote
2answers
2k views

Convert MineSight (*.msr) files to Shapefiles or Feature classes

How would I convert the MineSight (*.msr) files to Shapefiles. MineSight files are used in MineSight Software which is used for creating block models in 3D.
5
votes
0answers
96 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 "...
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 ...
2
votes
1answer
42 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 ...
4
votes
2answers
3k views

How do I create/find .cpg files after creating a shapefile in QGIS?

I've been asked to map an area of land using QGIS, so I created a new vector layer polygon and saved it to my PC without problems. They've asked for the following files: .shp, .shx, .dbf, .prj and ....
5
votes
1answer
405 views

pgsql2shp - Number of shapes does not match number of records

I have a MultiLineString postgis layer in a db. The layer is created with the following... -- Table: public.pipe_clip_102737 -- DROP TABLE public.pipe_clip_102737; CREATE TABLE public....
0
votes
0answers
22 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
3answers
105 views

Filtering attributes in a shapefile using a common ID from an Excel file

I am using QGIS 2.18.11 and I have a shape layer with lines and polylines I need to review; but not all of them, only certain ones. The ones I need to review are marked in a specific field (rev = 0 or ...
0
votes
0answers
18 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 ...
3
votes
1answer
714 views

QGIS Union Error: multiple overlapping polygons created where only one should exist?

The Union function in QGIS appears to behave erroneously. I have two shapefiles that overlap with each other, but not within themselves. They are both valid (Vector > Geometry Tools > Check Validity),...
1
vote
1answer
129 views

Filtering shapefile layer in ArcPad?

I have an ArcPad 10.2 project that uses several Shapefile layers. How can I filter the features in one of those layers? According to my searches, I can only filter if it is an AXF layer. I'm ...
20
votes
3answers
16k views

Shapefile loader in pgAdmin 4

Recently I have updated my postgresql version. I have also upgraded pgAdmin from 3 to 4. But I was unable to load shapefile. I didn't find any plugin called shapefile loader. How can I get the ...
0
votes
0answers
27 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
26 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
44 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 ...
1
vote
0answers
52 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 ...
3
votes
1answer
121 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
1answer
246 views

Join .csv file and .shp of georeferenced points

I have georeferenced a map and saved a selection of some points on the map. These points are cities of departure and arrival and I want to join the .shp with a and excel .csv with the information of ...
1
vote
1answer
565 views

Geopandas not recognizing geometry type

I am trying to write a point in polygon spatial join to file by county. In my code I read in a geojson object of building polygons for a whole state, grab the centroid and split the centroid points by ...
5
votes
4answers
211 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 ...
0
votes
1answer
51 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 ...
3
votes
2answers
687 views

Adding iteration in model to join fields from several shapefiles into final one?

I have one grid (Atl1x1.shp) to which I need to add 9 Fields from 9 different shapefiles which are also grids (that is, 1 column from each shp, all with the same name). These shapefiles have the same ...
0
votes
1answer
27 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:...
1
vote
1answer
59 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 ...
1
vote
0answers
54 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
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
42 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 ...
0
votes
1answer
238 views

import shapefile to potree

I have converted pointcloud to potree web format and I want to add a shapefile. As it shown in examples and GitHub, I've edited HTML page and added shapefile import there, but have no result. ...
1
vote
2answers
71 views

Automatic extraction of buildings geometry from a shapefile

I have a shapefile of Montreal which includes the geometry of buildings and some attributes like the year of construction. I also have the building's geometrical data from another source. So I know ...
0
votes
0answers
108 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
3answers
63 views

Switch coordinates in shapefiles

I got some shapefiles out of a WFS service and the points and polygons are not where they supposed to be. After taking a closer look in the data I came to the conclusion, that the X an Y coordinates ...
0
votes
1answer
209 views

Importing shapefile into Mapit

Unable to import an ESRI generated shapefile (just a simple polygon layer) into the Android app. MapIT does not recognize the file(s) in the upload screen, I can not select nor view it. I have ...
5
votes
4answers
8k views

Exporting shapefiles from QGIS to PostGIS?

The tutorials I've been seeing such as this one https://saarapakarinen.wordpress.com/2015/06/13/tutorial-creating-a-postgis-database-for-qgis-part-2/ They mention a SPIT plugin that I can't find ...
0
votes
2answers
3k views

Getting ArcGIS Desktop to project shapefile?

I am using ArcGIS 10.1 (SP1). I got a shapefile with polygons representing some features of the landscape in my study area. This file has been provided by a third party institution. The coordinate ...
3
votes
1answer
51 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
58 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 ...
1
vote
2answers
686 views

Editing blank feature class in ArcMap?

I am very new to ArcGIS Desktop. I have a jpeg showing an old map of NYC zones. I was able to georeference this image with a shapefile of NYC blocks. I wish to now create a new feature class where I ...
1
vote
1answer
180 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 ...
4
votes
2answers
151 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
42 views

How can I turn editable a shapefile that has been previously saved filtered?

After describing this issue in Qgis: Shape layer turns non-editable if saved filtered (where the answer basically was "if you filter, don't edit"), it has happened again (filtering and editing ...
1
vote
1answer
624 views

Using QGIS vs. SVG to export with area names?

Is there the possibility of exporting a SVG files (from shapefile) which retains the area names? Basically any closed path should have the original name attributed to shapefiles. But not only. I ...
0
votes
1answer
29 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
1answer
24 views

OGRInfo On Shapefile = zero length delimited identifier error

I have an ESRI Shapefile that I can open in ArcMap and QGIS and show the attributes fine. However when I try to load to PostGIS using ogr2ogr I get an error saying ERROR 1: ERROR: zero-length ...
3
votes
2answers
98 views

Extracting desired values from KML file using QGIS?

I have a kml file of roads that I would like to convert into a shapefile using QGIS, I understand that this should be a straightforward task however I am running into the issue of extracting necessary ...
6
votes
4answers
1k views

Converting factfinder2.census.gov map data to KML?

I've downloaded a map from http://factfinder2.census.gov/faces/tableservices/jsf/pages/productview.xhtml?pid=DEC_10_SF1_P1 (limited to San Francisco census tracts), and I'd like to convert it to KML ...
1
vote
1answer
37 views

QGIS Union erroneously creating gaps

I'm trying to do a union between two Polygon Shapefiles, but when I do Vector > Geoprocessing Tools > Union I have the odd issue where most of it works fine, but some areas are returned in the union ...
0
votes
0answers
67 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
63 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 ...