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
0
votes
1answer
73 views

Why is PyShp unable to open my .dbf or .shp files? [closed]

Trying to learn to use Python to map some geographic data by following some tutorial and I can't seem to get them to work. I'm hoping this is just a simple error on my part. First, the link(s) to ...
0
votes
0answers
59 views

Auto zoom when uploading shapefile R / Leaflet

I would like to configure an automatic zoom at the canvas of the shapefile layer that I upload. For that it would be necessary that a function automatically detects the latitude and the longitude of ...
1
vote
2answers
2k views

Can't choose interpolation attributes of my shapefile

I am attempting to interpolate data of a point shapefile. In the attribute table all attributes are shown correctly. When I am trying to interpolate them with Raster >> Interpolation no attributes to ...
-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 ...
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
1answer
24 views

Keeping minimum when converting from shapefile to raster?

I have a shapefile that I am trying to convert to raster. The shapefile has overlapping polygons. I would like to keep the minumum value of these overlapping polygons when converting to raster. ...
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
2answers
75 views

Need a specific field in FME KMZ to shapefile conversion

I am converting a KMZ to shapefile and need to see a field called "Type Name", but it is not in any of the shapefiles' attribute tables. I have every name exposed in Format Attributes in the Reader ...
2
votes
1answer
54 views

Recover lost polygons from shapefile in QGIS

I've committed a newbie error it seems in GQIS with a polygon shapefile. I wanted to remove about 15 of the 210 polygons, and put those 15 in another file. I made a duplicate of the polygon ...
1
vote
0answers
32 views

Joining .csv with duplicate values to .shp layer with points and getting all points visible using QGIS?

My problem with QGIS (version 3.4.8) I have a .shp map layer containing point data of buildings. I want to join .csv spreadsheet to this layer so I can look into it and visualize different variables ...
1
vote
1answer
88 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

QGIS - How to add joined values table data to shapefile

For some reason I lost my previous question here but I proceeded a little bit after upgrading to the newer version of QGIS. My problem was combining spreadsheet .csv data to the .shp map layer, where ...
61
votes
6answers
145k views

Opening shapefile in R? [closed]

I need to open a shapefile from ArcMap in R to use it for further geostatistical analysis. I've converted it into ASCII text file, but in R it is recognized as data.frame. Coordinates function doesn't ...
2
votes
2answers
507 views

.xml missing in shapefile, problems with displaying in arcgis

This morning when I opened my .mxd (ArcGIS version 10.2.2) several shapefiles were not showing in the data view window or selectable. Zoom to layer also did not work. The attributes of the shapefile ...
1
vote
0answers
28 views

QGIS 1.8 and Shapefile units in seconds [closed]

I have QGIS 1.8 on Centos 6.5 (I cannot update this system). I have a problem with opening a shapefile layer with units in seconds (created in ERDAS). QGIS doesn't display and doesn't save ...
0
votes
0answers
15 views

Troubleshooting incorrect raster footprint files in ArcMap mosaic dataset?

I'm using ArcMap 10.5 to create a mosaic dataset of ~18 raster images. They're cube files (.cub) with highly variable shapes, extents, and occasional overlap. They load into the mosaic and display ...
2
votes
1answer
2k views

Selecting cells within polygon layer without extracting them using ArcGIS Desktop? [closed]

I know how to use the tool, Spatial Analyst Tools > Extraction > Extract by mask for cells that lie within a polygon shapefile, but is there anyway to just select those cells without having to ...
1
vote
1answer
82 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 ...
1
vote
1answer
41 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
26 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
3answers
2k views

QGIS does not show FID field of vector data

Shapefiles (vector layers) has FID or OID fields associated with each row (feature). This information is readily available in the attribute table viewed in Arcmap. However, QGIS Desktop does not seem ...
2
votes
1answer
38 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 ...
4
votes
3answers
3k views

Unable to open datasource 'MySQL' using ogr2ogr

I am trying to dump shapefile data into MySQL using GDAL ogr2ogr command ogr2ogr –f MySQL MySQL:SHP_DB,host=localhost,user=root,password=root feature_object.shp -nln phil_custom -update -overwrite -...
0
votes
1answer
53 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
11 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.
6
votes
2answers
890 views

How can I turn a vector layer into a graph G = (V, E)?

I have a number of rail networks, in the form of shapefiles of the "line" type. I want to turn them into a more abstract graph format, i.e. the kind with vertices and edges, not chart-type graphs. ...
8
votes
3answers
19k views

Finding municipal-level administrative boundary data for India? [duplicate]

Does anyone know how to find a shapefile with boundaries of Indian municipalities? I have tehsil boundaries as for year 2001, but I would like boundaries of municipalities and, ideally, also ...
7
votes
3answers
16k 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
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 "...
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
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 ...
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
401 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
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
3answers
95 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
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 ...
3
votes
1answer
689 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
128 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
15k 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
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
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 ...
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 ...
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 ...
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
518 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
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 ...
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 ...