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
11
votes
7answers
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
188 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
49 views

Allow client to upload ESRI shapefile in OpenLayers 3 [closed]

I want to build functionality to upload ESRI shapefile and overlay it on map using OpenLayers 3. Once user cross checked I want to save to PostgreSQL/PostGIS table. So far as I Googled I am not ...
0
votes
0answers
16 views

Updating building data?

I need to update a building data (shapes) in ArcGIS Desktop. One Shape is with the buildings of a city from 2012 and the otherone with the buildings of the same city from the year 2019 (perhaps 300....
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
0answers
39 views

Pull information from one shapefile and add it to the attribute table of another?

I'm trying to create a shapefile for one particular area in Germany. I have various shapefiles which store all the information that I need. One of them is a 100m_Gitter_raster (a raster consisting of ...
2
votes
2answers
5k views

Merging attribute and geometric features in QGIS?

I have polygons shapefile in which some of the polygons have same attributes as seen below:- In QGIS, how do I merge the polygons having the same attributes into one polygon? In other words, am ...
1
vote
1answer
73 views

Copying fields from one layer to another in QGIS

I am new to QGIS. I need to create hundreds of shapefile layers with the same fields but different points and attribute values: The first shapefile one I created with 12 fields (columns). To create ...
4
votes
1answer
5k views

Getting error when clipping shapefile to shapefile using ogr2ogr?

I want to clip a shapefile to a shapefile. The input shapefile is a 1 m vector grid generated in QGIS. The tile I'm clipping to is just a simple polygon (the geometry is contained within the 1 m ...
0
votes
1answer
47 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 ...
1
vote
0answers
20 views

Shapefiles added through GeoServer REST interface contains no features [closed]

I'm using a put request to create a datastore under a workspace, and automatically register the included feature type in a new layer. The put request succeeds, and I can see the datastore points to a ...
1
vote
1answer
25 views

Add track points in layer

I have a shape file and I want to add a layer which includes the track points (x coordinate , Y - coordinate for the attribute table). I need the tracks for identifying the buidlings and for ...
1
vote
0answers
16 views

Google Earth Engine: Export table with values over time for multiple regions of a shapefile

I'm trying to quantify land use change over time in my region of interest, which is a part of Europe divided into subregions. For this, I'd like to count the pixels of each type of land cover in every ...
0
votes
2answers
493 views

GPS Pathfinder (ssf) to ESRI ArcMap (shp) Display Issue in ArcMap

I am working on a project in the Coordinate System NAD_1983_UTM_17N within ArcMap. I used a Yuma Trimble to collect data in Terrasync and made sure the projection was the same. I transferred the files ...
0
votes
0answers
40 views

Extract values of pixels from each band of a multi-band raster with a shapefile in Python

I have downloaded multiple products from EO-1 satellite and I have created digital rasters out of them. Each of them contains 10 or 242 bands (those are hyperspectral). I have also created a shapefile ...
2
votes
1answer
61 views

Banding appears when reprojecting shapefiles using R?

I have downloaded a shape file (Marine Ecoregions (last one on the page)) from the nature conservancy http://maps.tnc.org/gis_data.html I am then using R and the sf package to project this shapefile. ...
0
votes
2answers
46 views

Determining when layer has been loaded in ArcObjects?

Is there an event in ArcObjects to determine when a layer (specifically a shapefile) has been loaded into a map? I'm using ArcObjects 10.4.1 and C#
2
votes
1answer
63 views

Convert polygon shapefile geometry to text file in a specific layout, including number of nodes per polygon

I'm trying to convert a large shapefile (more than 20,000 polygons) to a text file to use in a modelling software. It needs to be in a specific format which is number of nodes, followed by all x ...
1
vote
0answers
27 views

How to specify file format of Split Vector Layer in QGIS [duplicate]

I'm attempting to use the Split Vector Layer tool in QGIS (see screenshot below) in order to separate a larger shapefile into its constituent components by object ID. The tool accomplishes this ...
5
votes
1answer
497 views

Specifying FID column name in shp2pgsql?

In ogr2ogr I can specify the name of FID column using the option -lco FID={columnname} when importing a spatial data in PostGIS database. I am using shp2pgsql in case of shapefile and cannot find a ...
3
votes
2answers
200 views

Are Xbase-dbf-files still common standard for shapefiles?

For a Java application and for my personal understanding, I am exploring how to read and write shapefiles (at least shx, shp, dbf). The main purpose is to keep the resulting Shapefile-class and it's ...
0
votes
1answer
46 views

Exporting shapefiles to NetCDF Format using QGIS?

I'm completely new to using GIS but I've got some shapefiles that I really need in NetCDF format for further analysis. Does anyone know if this is possible in QGIS? I know that you can do this ...
1
vote
1answer
43 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 ...
0
votes
1answer
27 views

Get just not null values from intersection of shapefile and buffer with Python

I generated a buffer using this question: Creating buffer circle x kilometers from point using Python? I did an intersection with this buffer and a shapefile using: intersection_origem = shp_geom....
2
votes
2answers
123 views

Deleting lines automatically which are not connected

I have a shapefile consisting of polylines. I have managed to explode these polylines (break at there vertices). There are a bunch of lines all over the shapefile which are not connected (shown in the ...
4
votes
0answers
237 views

When does a QGIS .qix spatial index of a shapefile need to be re-created?

I understand the basics of spatial indexes but would like to understand when exactly a spatial index would need to be re-created or updated? The reason I ask is because when a folder was moved to a ...
1
vote
1answer
59 views

Using Click locations to determine azimuth in QGIS 3

I am using QGIS 3 64bit. While adding points to a shapefile (layer), what expression captures the insertion point coordinates of a point feature to use as a start point for an azimuth determination ...
1
vote
3answers
70 views

Downloading shapefile from OpenStreetMap?

I am trying to download the shapefile (orange line) from https://www.openstreetmap.org/relation/271888#map=12/48.7810/9.2247 Can you explain how I can extract the shapefile from here?
1
vote
2answers
577 views

Creating shapefile of S2 cells for given level

I want to create a shapefile that has polygons matching with the outlines of the S2 cells (http://s2geometry.io/) of a given level, within a certain bounding box. Roughly what this website does: ...
5
votes
1answer
837 views

Storing datetime values in Shapefiles using QGIS?

I have a shapefile with date in a string field. I create a new field with date type and use the calculator to make the conversion. But the result only provide the date part, the time part is removed. ...
2
votes
0answers
23 views

QGIS – Edits to shapefile attribute table won't save special characters

I'm working in QGIS with a Government of Canada shapefile of all 338 federal electoral districts. The encoding is UTF-8. In the attribute table, all of the em dashes ("—") that should appear in the ...
1
vote
2answers
47 views

Convert a tab (Mapinfo) file to ESRI Shapefile with ogr2ogr

I want to convert a tab file created with MapInfo to an ESRI Shapefile (.shp) using ogr2ogr in command line. I did the following ogr2ogr -f 'ESRI Shapefile' "file.shp" "file.tab" but it gives an ...
1
vote
0answers
33 views

Automatic geometry creation [duplicate]

I am currently slowly mapping field boundaries of old agriculture map areas using QGIS. Has anyone designed a magic plugin or method so that the black outlines of the boundaries are automatically ...
1
vote
0answers
17 views

Can QGIS be used to calculate the up-slopes (total area draining to a specified point) of multiple separate points simultaneously?

I am trying to calculate the area draining to a point of 240 separate points using QGIS. At the moment I'm using the Saga - Upslope Area algorithm to individually work this out for each of the 240 ...
1
vote
1answer
513 views

Converting tags in OpenStreetMap (OSM) files to attribution in shapefiles?

I've downloaded the street data from OpenStreetMap (OSM). I'm looking for speed limit attribution and OSM seems to be the only source for my jurisdiction (Ontario, Canada). The problem is, the speed ...
1
vote
1answer
27 views

Shapefile containing several fields with the same variable at different times. How to group them into a single field?

I have a point shapefile that includes several (e.g 160) of fields with the mean temperature and wind speed [at each location] for different days. Ideally, I want to reduce the number of fields to ...
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 ...
3
votes
2answers
727 views

Change shapefile field names using ogr AlterFieldDefn

I need to change field names of a shapefile to upper case using ogr. I want to do this automatically, versus calling out each field and replacing the name with upper case. When I try to implement ...
0
votes
1answer
65 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
75 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
74 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
79 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 ...