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
2answers
26 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
37 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
26 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
25 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 ...
0
votes
0answers
27 views

Overwrite my shapefile in a temporary file

I would like to save my shapefile in a temporary file (named after the name of the shapefile). I would like this one to be saved after the transformation of the coordinate system. For the moment, my ...
1
vote
0answers
15 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 ...
60
votes
6answers
139k 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
462 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
13 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 ...
1
vote
0answers
23 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$...
2
votes
1answer
1k views

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

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
77 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
35 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
19 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
31 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
2k 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
46 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 ...
10
votes
6answers
26k views

QGIS exporting attributes in a KML file

Here is what I am doing: Create a layer by uploading a shapefile into QGIS Select attributes of that file Export selected attributes with the "save only selected features" check box when I save the ...
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 ...
6
votes
2answers
878 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
18k 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
13k 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
85 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
20 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 ...
3
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 ....
-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 ...
5
votes
1answer
386 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
14 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
79 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
10 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
625 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
126 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 ...
1
vote
1answer
131 views

Converting multiple geometry KML to Shapefile

I have a KML file with multiple geometry, points and polygons. I want to convert it to a point Shapefile and a polygon Shapefile. Using OSGeo4W Shell I tried this : ogr2ogr -where "OGR_GEOMETRY='...
1
vote
1answer
33 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 ...
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
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
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
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.
0
votes
1answer
39 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
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 ...
2
votes
1answer
1k views

How to create dynamic maps based on updated attributes in SHP file

I am novice GIS'er. I can create maps and do basic transformation of the SHP file using QGIS. I also succesfully applied formatting based on attributes. I am able to add new attributes to SHP file in ...
2
votes
1answer
41 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
242 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 ...