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.

569 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
126 views

Highlighting an area of a map

I would like to have a borderline around a subset South-South(SS) part of the map (Map 1) (More like highlighting the subset part). I tried to clip a vector of the subset (map 2) to the entire map, ...
0
votes
0answers
394 views

GDAL/ogr2ogr ( to convert osm to shapefile)

I use GDAL / ogr2ogr to convert osm to shapefile but I get an error. C:\Users\alo>ogr2ogr -f "ESRI Shapefile" outputdir "C:\Users\alo\Desktop\London.osm" Warning 1: Cannot find osmconf.ini ...
0
votes
0answers
79 views

Spatial Adjustment of shapefile not possible

I am trying to spatially adjust a shapefile containing several polygons to another shapefiles where spatial data is correct. Both should share exactly the same extent. However, when I am using spatial ...
0
votes
1answer
145 views

GDAL ogr2ogr OracleSpatial to Shape: Multipolygons with wholes/multiparts are missing

We're holding geodata in an Orcale database (11g) with spatial extension. I want to unload specific polygons and convert them into Shape for further local processing. The table where I'm unloading ...
0
votes
1answer
245 views

Python: Open a (line) Shapefile and calculate distance to point given as a longitude-latitude tuple

I have a pandas dataframe in python with longitude and latitude values of certain locations (see sample below): Index Long Lat 0 -98.58 ...
0
votes
0answers
172 views

Shapefile conversion to ascii grid

I'm working with shapefile files, but I need to convert to ASCII grid, and I was trying to use QGIS, but the following error occurred: File "/usr/share/qgis/python/plugins/GdalTools/tools/dialogBase....
0
votes
0answers
19 views

Check if path along triangular shapefile possible

I have a problem I came across but don't know how to solve it. I have a triangular shapefile of a river with one attribute value being the water depth. The idea is to find out if fish are able to swim ...
0
votes
1answer
57 views

Add coordinates and id field into point shapefile in R/PyQGIS

I have a points shapefile with almost 1 million features. I would like to add three new attributes: y, x (coordinates) and an ID (integers from 1). How can I perform this task in R or PyQGIS? Using ...
0
votes
0answers
618 views

Collapsing parallel lines into a single line QGIS

I have a shapefile of the Washington metro area, but along much of the route multiple lines run parallel to each other (see picture 1) and I need to collapse them into a single line. I've tried ...
0
votes
1answer
120 views

Self-intersecting geometry errors when splitting polygons

I'm having issues digitising in QGIS 2.18.20 on my mac. My normal strategy for digitising a habitat survey area is to create a (shapefile) polygon for my survey boundary, and split the shape ...
0
votes
1answer
172 views

ogr2ogr: symbol lookup error: ogr2ogr: undefined symbol: _ZNK17GDALDriverManager14GetDriverCountEv

I'm trying to import a ShapeFile inside my PostGIS database using the ogr2ogr, however I'm receiving an error: ogr2ogr: symbol lookup error: ogr2ogr: undefined symbol: ...
0
votes
1answer
216 views

Rasterize shapefile according to another big raster using gdal_rasterize

I want to rasterize a shapefile into a raster according to another raster (97284, 154208, 15001971072 (nrow, ncol, ncell)). Since the raster is very big, I am using gdal_rasterize following the ...
0
votes
0answers
76 views

How to transform a shapefile's projection in ArcGIS?

I am working with a series of shapefiles of France, which were created privately by someone (as opposed to an official institution). We can call them the P-maps. There is no .prj file associated with ...
0
votes
0answers
27 views

Shapefile is not shown on a raster image although having same CRS

I have a shapefile which was digitized from a jpg map. the only info i knew from that jpg, the map was created in lambert conformal conic(north). so, i have digitize and create my shapefile with the ...
0
votes
0answers
102 views

Change of data type after exporting from PostgreSQL to shapefile

I had loaded shapefile created in QGIS 2.8.9 with following data type in PostgreSQL as shown in image. After import the shapefile in PostgreSQL the data type shown as below. When I export the data ...
0
votes
0answers
44 views

Shape Normalization Error while importing shapefiles in cartoDB

I had succesfully installed CartoDB in Ubuntu 14.04 LTS VM and could import CSV and GeoJSON without any error. When I try to load shapefiles, the following error pops out. Error Code : 3009 Error : ...
0
votes
1answer
203 views

Adding attributes to each vertex of shapefile using shapely?

I have two polygons in Python: poly1 = shapely.geometry.polygon.Polygon([(3,4), (2,4),(2,2),(3,2)]) poly2 = shapely.geometry.polygon.Polygon([(4,4), (3,4),(3,2),(4,2)]) that look like this: ...
0
votes
0answers
461 views

Importing multiple shapefiles into one single Postgres table

I am trying to import in one single table different shapefiles using the command: shp2pgsql -D -s 4326 -c my_shapes_table -I *.shp > my_shapes_table.sql I have tried different combinations of ...
0
votes
0answers
204 views

Is there a way to retrieve shapefile attribute table information for a given coordinate in R?

Does anyone have an idea how could one get information out of shapefile attribute table (class SpatialPolygonsDataFrame in R), in my case data from column that contains species names, based on a list ...
0
votes
0answers
44 views

Creating query for set of polygons which would select adjacent polygons for which combined area is greater than number?

I have a set of parcels, represented as polygons shapefiles and I need to build a query, to select all the polygons, which are adjacent, with the sum of the areas of 2 polygons,greater than 1000 acres....
0
votes
0answers
159 views

How to create an atlas coverage layer from multiple lyers with multiple geometries in QGIS?

I have multiple layers (multi-point, multipart polygon, multipart lines). I want to create a hidden coverage layer based on all those to create an atlas of my QGIS project. Obviously, I can't easily ...
0
votes
0answers
71 views

Reclass a landuse shapefile based on another shapefile using R

I have a landuse shapefile that I want to modify based on another shapefile. In this example I have three classes in landuse shapefile A. Say I'd know that everything within one of the small ...
0
votes
0answers
386 views

Automate conversion from SHP to GPX file with Python

I've been trying to establish a method whereby I can automatically convert a shapefile to a GPX file using python, but having terrible luck in doing so. Currently the only method that i've come ...
0
votes
0answers
464 views

Plotting shapefiles with Pyshp in Python omits some shapes

I want to plot a cloropleth map of Scotland with Pyshp, but only a fraction of the shapes are plotted. The shapefile of Scotland has 32 shapes, and it is available here. The values dictating the ...
0
votes
0answers
443 views

converting geojson to shapefile gives error “Unable to Unable to open datasource using following drivers”

Im trying to convert geojson file to shapefile. Below is the code import ogr2ogr import json def main(): #note: main is expecting sys.argv, where the first argument is the script name #so, the ...
0
votes
0answers
532 views

ogr can't read shapefiles or json files even though geojson and esri shapefile are included in driver list

I am running gdal/ogr on mac os 10.12.4. I recently reinstalled gdal and now am having an issue when I try to read shapefiles or geojson files - I get the error: Unable to open datasource '/path/to/...
0
votes
0answers
79 views

Identify the length and orientation of the features in P2 relative to features in P2? (ArcGIS)

I try to measure the maximal length and orientation of features in one shapefile (S1) relative to polygons in another shapefile 2 (S2). My goal is to evaluate the spreading of patches of beetle-...
0
votes
0answers
66 views

Display Integer Data in Format of String in the Shapefile Table

I have a Field in a Shapefile which has 3 unique Integer values as [1, 2, 3] but I want to display them in table as string like 1 - A 2 - B 3 - C so eventually in the table will be A, B or C but ...
0
votes
0answers
170 views

Are the CORINE Landcover datasets available by country?

I found the overall dataset for Europe but it is a huge file for my computer to run. I would like to have a shapefile for the Netherlands specifically. http://land.copernicus.eu/pan-european/corine-...
0
votes
0answers
591 views

Style for OSM in QGIS that can be exported to SLD

I need some production ready styles for OSM maps, which I can export into SLD. I am looking for styles for a long time and unsuccessful, so I decide create custom style by some manual. Can you give me ...
0
votes
0answers
96 views

Projected coordinate system

I used projected (Hungarian EOV) orthophoto for segmentation and classification in eCognition (I defined EOV in ecognition as well), the result was exported into shapefile. I opened orthophoto and ...
0
votes
0answers
87 views

Granularity of elevation in GMTED2010 data / understanding shapefiles

Following on from Records of shapefile do not contain every field, where @scruss provided some very helpful Python code. I seem to have a fundamental inability to understand a shapefile (reader ...
0
votes
0answers
102 views

Limitations of PostGIS Shapefile Import GUI tool?

I would like to improve my knowledge regrading this issue. I am using PostgreSQL version 9.5 (x64bit) on Windows 7 Enterprise (x64bit Machine). I have a table containing 3515214 rows of X,Y ...
0
votes
1answer
148 views

Ordnance Survey Maps in .osm.pbf format

I see that you can download Ordnance Survey maps as ESRI Shape files, so I would like to take those and convert them into a .osm.pbf file so that I can more easily use them. Are there any tools out ...
0
votes
0answers
520 views

geotools shapefile does not support utf-8 for dbf header

I create a ShapefileDataStore to create a new shapefile and call dataStore.createSchema(...) . But it does not work for utf-8 header fields. I checked the geotools source code and realized that it ...
0
votes
0answers
143 views

Number of polygons in shapefile too high

I downloaded administrative shapefiles from www.gadm.com/country (China). The Python (Basemap) code below tells me that there are 2365 polygons in it. However the .csv and .dbf files included with the ...
0
votes
0answers
164 views

OGR: How to save shapefile to HDD?

I'm new to OGR module and I can't figure out how to save new layer to my HDD. I allready have shapefile with lines and buffer and I want to clip lines with buffer. from osgeo import ogr os.chdir(r"...
0
votes
0answers
39 views

Enclosing building models from bottom (Missing GroundFeatures) using FME?

I have 3D building model of the city and I would like to export it to proper CityGML model. I am trying to find out, how to make an intersection of building and terrain in order to make "...
0
votes
0answers
174 views

Label rendered with empty features using geotools

I am using geotools to generate some images based on the shapefile data, it works well until I tried to add labels for the line features: the labels are rendred even there is no features in the images....
0
votes
0answers
101 views

Multiuser editing coupled with Google Street view?

I am currently looking for an interface with two essential features: Ability for multiple users to edit data simultaneously Ability for all users to use Google Street View within interface (As an add-...
0
votes
0answers
200 views

Feature Points Shapefile missing Spatial Reference Information

I'm working with ArcMap 10 and I have a feature points shapefile from the Florence (Italy) municipality open data (http://opendata.comune.fi.it/statistica_territorio/dataset_0040.html). Each point is ...
0
votes
0answers
369 views

MultiPatch Shapefile import into PostGIS Database

I have geometry of buildings in Shapefile MultiPatch format. I want to import it into PostGIS database in the same format. Is that even possible? If yes, then how?
0
votes
0answers
531 views

Why is ArcGis change precision of double field after copy?

I create the attribute table of a shapefile and while I copy it by using the "copy features" tool it change the precision from 11 to 14. I create two fields with the name poly_x and poly_y and they ...
0
votes
0answers
108 views

Complexity of US 5-Digit Zip Code Boundaries from Scratch?

Does anyone have any idea how difficult it would be to create 5-digit zip code boundaries from scratch? Let's suppose you start with a good outline of the US. Where would you source the fundamental ...
0
votes
0answers
84 views

Rasterize and union problem

i've done the union first and then rasterized it. But now i want instead of that, to rasterize each one and then merge it as one. How do i do that? I mean without the union first off. on<-union(...
0
votes
0answers
125 views

Merging SHP lines with attribute data combined?

I have one shapefile which contains hiking routes and another shapefile which has ski routes. Sometimes they follow the exact same path. In QGIS if the lines mentioned above are in the same SHP I ...
0
votes
0answers
508 views

Convert shapefile to tiles for WMS requests

I have a shapefile (world countries) and this file is fix (I don’t want to edit it). I create a Vector layer with this file in GeoServer and I get this file with WMS layer from GeoServer. In this ...
0
votes
0answers
59 views

How do I export to a shapefile?

I created a new map, connected to my ArcGIS service, and dragged a map from a map service into the Table of Contents. The map is drawn on the screen with all my data points and I can see the ...
0
votes
0answers
280 views

error converting shapefile to geoJSON with Ogre online tool

I am using on online tool built with ogr2ogr to convert shapefiles to geoJSON: http://ogre.adc4gis.com/ It's worked well except for one shapefile, and I can't see why... The shapefile has only six ...
0
votes
0answers
397 views

Shapefile to Rectangle Overlay/Intersect Test?

I have a shapefile and a repository of images that have corner Lat/Long points. I want to search that images who overlaps/intersects to shapefile. Here is the scenario that I am doing, creating a ...