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.

639 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
538 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
534 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
90 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
69 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
580 views

How to extract the study area from a netCDF by a shapefile boundary with Python?

I have a global size netCDF document, the variable is three dimensions, including time. lat and lon. I have a shapefile boundary for my study area, both of them have same projection. How can I extract ...
2
votes
0answers
81 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
524 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
637 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
2k 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
591 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
39 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
303 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
132 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
483 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
377 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
1k 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
438 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 ...
2
votes
0answers
470 views

converting shp to fileGDB with ogr2ogr changes geometry type?

I'm converting a shapefile to file geodatabase with GDAL 1.11.3 and the ESRI FileGDB driver. ogrinfo on the .shp gives: $ ogrinfo NED1_Index.shp INFO: Open of `NED1_Index.shp' using driver `ESRI ...
2
votes
0answers
928 views

Importing shapefile problem, unknown geometry type in QGIS

I have used ArcGIS extensively, but am at a new job with only access to QGIS. I am trying to import a few shapefiles and am having some problems. First, I opened the shapefiles in esris free browser, ...
2
votes
0answers
1k views

NetCDF to Shapefile with Python and GDAL?

I need to save my outputs, which are netcdf files or panda python tables, to shapefiles. They cannot be rasters because the software I am loading them into accepts shapefiles only. I have googled ...
2
votes
1answer
576 views

Searching for UN regions/sub-regions shapefile

for a visualisation project I need the boundaries of the UN regions as defined here : http://unstats.un.org/unsd/methods/m49/m49regin.htm That's 21 polygons for the sub-regions. I have been looking ...
2
votes
0answers
155 views

UK Postcode and London destination

New to this site... I'm working with Postcode regions in the UK and was wondering if anyone know if there is a dataset which give you postcode region and the most likely station destination within ...
2
votes
1answer
128 views

Pre-1998 Indonesia Kabupaten (Level 2) Shapefile

I am trying to find some "old" (pre-1998) Indonesia boundary files at the Kabupaten and province levels. It is important that they are pre-1998, or at least dating before the peak of the secession of ...
2
votes
0answers
1k views

Has anyone implemented the leaflet.shapefile plugin?

I'm trying to implement the leaflet.shapefile plugin to enable a user to upload a zipped shapefile and overlay it on my webmapping site as can be done in the demo version of the site. http://leaflet....
2
votes
0answers
295 views

DLLs or examples to support writing a shp, shx, dbf file as memory stream for uses on Azure website?

I'm trying to read/write shapefiles for a web service for an azure website and I do not have the luxury of accessing the local file storage (which means that reading/writing from/to disk is out of the ...
2
votes
0answers
2k views

GeoPandas save to shapefile issue: Unable to open EPSG support file

When I try to use to_file() to write a GeoPandas GeoDataFrame to a shapefile I get the following error. df3.to_file('~/Desktop/testout.shp', driver = 'ESRI Shapefile'); ERROR:Fiona:OGR Error 4: ...
2
votes
0answers
223 views

WFS-T with Geoserver and a Shapefile

I have read that Geoserver fully supports WFS-Transactions. But for example here somebody also mentioned that shapefile-datastores would not be the best choice for using Transactions in Geoserver, and ...
2
votes
0answers
176 views

Merge Spatial polygons from shapefiles

I have downloaded the shapefiles from the following website: http://download.geofabrik.de/europe/france.html Each zip contains a "landuse" shapefile and I want to merge all of them in one single ...
2
votes
0answers
832 views

Using a ShapeFile spatial index with ogr2ogr and ogr.DataSource.ExecuteSQL()

I created a spatial index foo.qix for a foo.shp with ogrinfo -sql "CREATE SPATIAL INDEX ON foo" foo.shp However, when I do a query with ogr2ogr and look at it in strace, it doesn't use that index: ...
2
votes
0answers
101 views

What is the most suitable way to get the boundary of a state or a country or the whole world dynamically?

I am working on a project where I have to create filled map charts based on the data client has provided. The data has latitude and longitude information. Based on the selected level (city or state or ...
2
votes
0answers
2k views

Export to shapefile error in QGIS from POSTGIS table

I am attempting to export a postGIS layer to a shapefile in QGIS 2.6.1 Brighton. The table has 244,674 rows. The data displays perfectly well in QGIS but when I attempt to export to shapefile I get ...
2
votes
0answers
730 views

MS Access to Google Earth Pro

I am embarking on a new project and hoping for some pointers. I am reasonably tech savvy but definitely in the "advanced beginner" category for coding... but keen to test myself. I am trying to find ...
2
votes
0answers
245 views

Geotagging photos with Point Shape via Time Stamp

I have waypoints which I marked with a GPS device - unfortunately no track/route. And I have photos which I took at the same day. Now I want to interpolate the points to line and use this line to ...
2
votes
0answers
274 views

ITV zone shapefile

Where can we get ITV zone shapefiles for the UK? I need to create filled maps using this data.
2
votes
0answers
318 views

Reconstituting features from E00 format, without ArcGIS

Recently I used OGR to convert an ESRI E00 format file to shapefiles. I am dealing with vector data, many polygon features per file. I was dismayed to find that none of the resulting shapefiles(you ...
2
votes
0answers
391 views

MapInfo : Can not load table

I've generated a shapefile using .NET DotSpatial library, when I try to open the file in MapInfo I face below error, "Cannot open table. unable to open table road." How do I determine what's the ...
2
votes
0answers
105 views

Divided road segments from XTools Pro need unique, informative IDs

I can divide segments with my road using XTools Pro, but I want to give a useful identifying number to each segment. For example: If D100 road has been divided into 20 segments, the segments must ...
2
votes
0answers
163 views

Converting pre-ADF coverages to current shapefiles?

I have a set of old coverage files, published at 1995-1996 in a CDROM by an official mapping authority. They were, therefore, made with ArcView 1.x and don't have the ".adf" extension. The files that ...
2
votes
0answers
105 views

Shapefile name specific failure with Append in ArcGIS 10.2

Can anyone tell me why the append (Desktop Management) function is not working on my 64 bit Windows 7 machine with ArcGIS 10.2.2 under the specific conditions described below? All tests on my machine ...
2
votes
0answers
336 views

does the census bureau provide clipped / water-bounded files as nice as certain cities?

this question says they do but when i compare what i can find in the cartographic boundary files section of the census bureau's gis page, they don't look as good as certain shapefiles provided by the ...
2
votes
0answers
39 views

Path on network returning wrong results

I have created a shapefile of polylines that represent a path with multiple intersections. Then I have used the networkx python library to create a network. At the first the results were satisfactory. ...
2
votes
0answers
639 views

Kartograph - AttributeError: _Shape instance has no attribute 'parts'

I am new to GIS and open source tools so bear with me. I am attempting to convert a shapefile to svg by running kartograph as a python module. My source file (provided by the local GIS ...
2
votes
0answers
415 views

Exporting feature class from Geodatabase to shapefile, shortens/abbreviates field values in resultant file?

I'm exporting feature class (File Geodatabase) to shapefile, after exporting the field values in resultant shapefile is shortening, like if a field value is Andhra Pradesh then in Feature class ...
2
votes
0answers
462 views

Neighborhood boundaries and building footprints for Johannesburg?

Are there any sources for free (or commercial) and distributable neighborhood and building footprint datasets for Johannesburg out there? I've already looked on: Google OpenStreetMap joburg.org.za ...
2
votes
0answers
408 views

Ecoregions shapefiles: subsetting, extracting and summarizing data from raster

I am attempting to subset and project an ecoregions shapefile from : EPA ECOREGIONS my data set is found here: SHAPEFILES and RASTER When I run this code, two major problems occur: 1) I cannot get the ...
2
votes
0answers
469 views

Global height data as polygons — Natural Earth doesn't have it?

I love the bathymetry data from Natural Earth. I've been looking for the last few days for the same basic data but for land. I'm trying to find general elevation shapefiles, as polygons. I don't need ...

1 2 3 4 5 13