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.

765 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
42 views

Selecting weights while transferring from shapefile to network

I have a shapefile representing roads (LineStrings) and I need to transfer it to a networkx type (with the lengths as weights) so I can do some network analysis. I have used the s2g library to do so ...
2
votes
0answers
83 views

Dragging one shapefile into QGIS creates three layers?

I am using QGIS 3.0.1. Everytime I drag in a shapefile (actually, *.shp, .shx and .dbf) I get three layers, that seem to differ just in symbology color. This happens with both shapefiles I get from ...
2
votes
0answers
94 views

Exporting shapefiles with symbology using ArcGIS Pro for use in ArcGIS Runtime

I have a set of shapefiles with elevation values in its attribute. In ArcGIS Pro, I have placed these shapefiles into a Scene as a 3D layer. Then I have added extrusion, and the shapefiles are ...
2
votes
0answers
106 views

Add layer info to points, keeps failing in QGIS

Within QGIS, I am looking to get an extra column in the points file, describing in which layer the point lies. All points are within 1 layer: Layer source >SHP file from shapefile.zip. Validate layer ...
2
votes
0answers
1k views

remove/fill gaps inside polygon qgis

I have created a polygon from grass gis and found small triangle like structure inside the polygon (sometimes at the edge to outside), that I want to remove/fill. I tried with geometry check to fix ...
2
votes
0answers
489 views

Shapefiles to Adjust Hawaii and Alaska

Does anyone know if there is a shapefile available which moves Alaska and Hawaii closer to the continental USA? I have attached a photo which might help.
2
votes
1answer
292 views

Unicode problems while writing selected features to a new shapefile with Fiona

I have a shapefile with a large number of geographic features (marine protected areas). I'm trying to read through all of the areas in the shapefile, select those that fit a certain criterion, and ...
2
votes
0answers
252 views

Creating a Graph from a lines AND a points shapefile in networkx using read_shp

I am trying to use networkx for analysing networks which I represented in QGIS as a line shapefile and a point shapefile. If I import only the lines shapefile using networkx.read_shp('lines.shp') I ...
2
votes
0answers
158 views

Way to refresh shapefile in Spotfire

I am a beginner in working with geospatial data. What I have done so far: 1) I created a map chart visualization in spotfire. 2) I created a shapefile using QGIS. 3) I added the shapefile in the ...
2
votes
0answers
604 views

“DBF file can not be opened” error using shp2pgsql

I am trying to import a shapefile using shp2pgsql. I wrote this command: shp2pgsql -I -s 2154 -W "LATIN1" W:\IGN\BDPARCELLAIRE-RGF93-LB93-MAJ2013-V4\BDPV_1-2_SHP_LAMB93_D01\COMMUNE.shp CADASTRE....
2
votes
0answers
446 views

Rasterio is masking wrong area?

Okay, my goal is to mask a geotiff by means of a shapefile. Firstly, I made sure that the shapefile and geotiff had same projections: from osgeo import ogr, osr import gdal import os driver = ogr....
2
votes
0answers
70 views

V.net.connect result causing “not responding” error

I have a point shapefile layer (744 points) that I want to connect to a line shapefile layer (42 lines) using v.net.connect from GRASS 7. The process gives me the desired output, even if in wrong CRS (...
2
votes
0answers
63 views

Invalid Variant Type Issue - Saving from ArcGIS FeatureServer Layer to Shapefile in QGIS

I'm using QGIS 2.18.10, and I have an ArcGIS server feature layer pulled up that I would like to save locally to my hard drive for editing purposes. The remote layer with which I am working is the ...
2
votes
0answers
206 views

Shape index, compactness and assymetry index with PostgreSQL /PostGIS

I am working on automated land parcel identification and would like to extract road/river/thin and linear-like polygons from a massive dataset. For now, the only index I can get some answers from is ...
2
votes
0answers
106 views

Using CRS, DEM and Shapefile in QGIS?

I have a DEM of a region (metadata here) that I got from converting 16 las files using pointcloudviz. Now I have that loaded up in QGIS, and I have a shapefile I made from a hiking trip in that same ...
2
votes
0answers
99 views

Summing data within a specified radius

I have created a map to display 2011 census data using .shp files of output areas in England and Wales and joined this to a csv file which has the census data for each output area. I then display he ...
2
votes
0answers
163 views

counting raster pixels inside or on the boundary of a postgis ingested shapefile

I'd like to count the number of raster pixels that either intersect a boundary or are contained inside the boundary and think ST_Intersects might be a good tool for this. When using ST_Intersects on ...
2
votes
0answers
139 views

Protect spatial data with digital signature

I've been asked to provide a solution to protect spatial data (format .shp) with digital signature that are bundled together into a single file, much like signed PDF for example. I've been googling ...
2
votes
0answers
575 views

Querying with Large FeatureCollection in Google Earth Engine using Python?

I am trying to process a Tanzania shapefile downloaded from GADM Global Administrative Areas. # im -> {Image} ee.Image({...}) # self.geom_coll -> {FeatureCollection} ee....
2
votes
0answers
131 views

GeoJSON files using too much memory?

I have about/more than 400 GeoJSON layer files in my QGIS project. When I checked the task manager memory, it displays qgis.bin.exe *32 using about 1,334,000 of CPU memory. I had another version ...
2
votes
0answers
81 views

Publishing shapefile in Geoserver

I started to use GeoServer, I uploaded shapefile and I want to publish it but I don't want to show all of the "Feature Type Details". For example, I want to publish only geometry. I know it's possible ...
2
votes
0answers
185 views

How to extract information from a tiff through the use of a shapefile?

I am having trouble in using the data from the South America amazon from a shapefile. What I was asked to do was to take the data from the loss of forest in a format where it is possible to make sense ...
2
votes
0answers
94 views

Overlaying thousands of points of a route from shapefile and dbf on google maps

I have to overlay thousands of points(data taken every second) of a route from shapefile and related data for each points in dbf. I have to show point related data in a popup on click of a point. I ...
2
votes
1answer
123 views

Selecting nearby polygons in QGIS?

I am working with QGIS and I have two different polygons, one with municipalities and another with conservation units (from Brazil). I need find out which Conservation units falls within 50 km from ...
2
votes
0answers
139 views

Create multipolygons grouped by field, ogr2ogr

There is a large polygon data set which I would like to aggregate some of the polygons with the same values in a specific field to multipolygons. I would like to do this using ogr2ogr. I have the ...
2
votes
0answers
395 views

Getting latitude and longitude of vertices/corner points of polygon/building from online maps such as OpenStreetMap?

I have tried using JOSM(Java OpenStreetMap) and QGIS for directly getting latitude and longitude of vertices/corner points of polygon/building but I am unable to get. Is there any way to get?
2
votes
0answers
438 views

Simplifying boundaries of divisions of country using QGIS?

I am trying to create a map to show all the divisions of a country (regions, departments), but the original map (one SHP file), with a lot of detail in the boundaries, is 5-Mb sized. I'd like to ...
2
votes
0answers
1k views

Export SQL Server to Shapefile with OGR, difference between 2014 and 2012

I'm trying to export some data from a SQL Server table to a shapefile. I have tested this on a 2014 SQL Sever and it works but when I try and run it on a 2012 SQL Server it creates a blank output. ...
2
votes
0answers
725 views

How do I create this map polygon outline in QGIS

I'm quite new to QGIS and want to create a map using this technique The map of GB is made up of lines on one layer. Each of the yellow polygons must touch or overlap each other and have the outline ...
2
votes
0answers
2k views

Representing a Shapefile with OpenLayers3

I'm trying to represent a shapefile over an ICC raster map using OpenLayers3. I'm quite new to OpenLayers3 and GIS, so I'm still trying to figure out how it works. So far I've deduced I need to ...
2
votes
0answers
2k views

Clip shapefile with shapefile

There are two shapefiles. One is a compilation of municipalities on the coast with borders extending into ocean. The second shapefile is a coastal border. I'm trying to clip the municipality ...
2
votes
0answers
634 views

Shapefile “structure” of multipolygon

I am trying to generate a shapefile with Joel Lawheads pyshape-library. This works fine so far, but I have one important question: Is there any mandatory or recommended order of the rings of a ...
2
votes
0answers
95 views

Shapefiles with phantom (deleted) features become corrupted when edited with LTR version (2.14.5)

We seem to have come across an issue whereby a Shapefile that has been created/edited with previous versions of QGIS and has phantom (deleted) features, as discussed/resolved in Bug Report 11007, now ...
2
votes
0answers
70 views

Add new points into a shapefile iteratively with PyQGIS

I would like to create a filtered layer with the same attributes than an other layer, based on a condition. Moreover, I would like to fill in the shapefile iteratively when my condition is verified. ...
2
votes
0answers
87 views

Label edits disappear upon saving?

I am trying to label a map I'm creating in QGIS v 2.8.9. I'm using data defined labeling to both manually place and rotate labels. I've created the required fields (X, Y, and Rotate) all as decimal ...
2
votes
0answers
624 views

How to export a training shapefile as an XML spectral signature file via QGIS?

I recently used the answer from Using Orfeo Toolbox object based classification in QGIS tutorial/workflow? to perform an object base segmentation on a SPOT image I acquired a while ago. I tried both ...
2
votes
0answers
754 views

Find Properties of Nearest Line Segments to Point in Python

I have been trying to find a workable Python approach to finding nearest line segments to one (or more) points, and came accross @gene's solution to @RustyMagoo's problem here: from shapely.geometry ...
2
votes
0answers
3k views

How to convert Shapefile to KML in Python

My goal is to extract certain shapes from a shapefile, and render the chosen shapes in a KML file. From searching gis.stackexchange, I was able to piece together the necessary components, and the ...
2
votes
0answers
742 views

Wrap the set of points to the minimum polygon

Given I have a set of points which represents the circles which are intersected. As result I'm trying to receive the boundary which represent the polygon which wraps all circles. Please take a look ...
2
votes
0answers
40 views

Basic statistics function on certain attributes stops at 6% on certain layer in QGIS?

I am trying to use the basic statistics function in QGIS on an attribute in a vector shapefile but it reaches 6% and then gets stuck and does not load anymore. It works fine on other layers/other ...
2
votes
0answers
360 views

Filtering Small Areas of Shapefiles Using R

I'm trying to use the method proposed by the @ialm in the Question "How to speed up the plotting of polygons in R?" There, he loads the maps using getData from the raster package, I tested and it ...
2
votes
0answers
46 views

Programatically populate field_4 after choosing values from other fields?

I'm working with QGis 2.8, editing the attribute table of a SHP file, named "myTable". I need to populate field_4 with the conditions listed below: For 1 to n (it runs across records of myTable) ...
2
votes
0answers
155 views

Load shapefiles stored in web page in QGIS?

I prepared a map with QGIS and published it via QGIS cloud free. Some layers are quite big, and the cloud size 50MB limit has been reached. If the layer sources could be stored in my web page --- ...
2
votes
0answers
513 views

Ogr2ogr: Shape to MySQL. Delete (or ignore) “geometry_columns” and “spatial_ref_sys”

I'm exporting a shapefile to my MySQL database. But as standard it also add the additional metadata tables: "geometry_columns" and "spatial_ref_sys" Is there a way to either delete these tables or ...
2
votes
0answers
423 views

How to remove projection in terminal from .shp file with valid .prj available

I have .prj, .shp, .sbn, .sbx, .shx, .dbf files where the content of the .prj file is the following: PROJCS["S-JTSK_Krovak_East_North",GEOGCS["GCS_S_JTSK",DATUM["D_S_JTSK",SPHEROID["Bessel_1841",...
2
votes
1answer
2k views

Converting XML to polyline shapefile?

I want to convert this XML file to a polyline shapefile. <?xml version="1.0" encoding="utf-8" standalone="yes"?> <ci nc="BMSKDMA10" nl="BMskDMA10" mt="6" ct="DM" dtt="17342" dtu="15/01/2016 ...
2
votes
0answers
50 views

Shapes & categories

I am very new to this so please only smile if a dumb question. I have divided the oceans into 31 regions. Each region has various sub regions, example I have region 08; of which it is further broken ...
2
votes
0answers
391 views

Problems opening ArcGIS 10.3.1 .shp files in QGIS

I'm using QGIS version 2.12.1-Lyon for Mac and trying to import a .shp file that was apparently created with ArcGIS 10.3.1. I keep receiving the "invalid data source" error message no matter how I try ...
2
votes
0answers
662 views

QGIS not showing attribute updates

I have a feeling I know the answer to this but want to make sure before I start redoing all the work. I've recently started using QGIS to help with mapping of an estate. Last week a created a new ...
2
votes
0answers
477 views

Using a file .shp with ESRI Geo Tools for Hadoop

I've a file .shp that I would like to load into a TABLE using HIVE with ESRI Geo Tool for Hadoop. These tools read JSON files and I've tried to convert my file into a .json format using GDAL Library ...

1 2
3
4 5
16