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.

learn more… | top users | synonyms (2)

1
vote
2answers
39 views

How to combine two polyline shapefile together

Here is my question Two shapefile: * A: represent the outer boundary of the city area * B: represent the inner boundaries of the city divisions. I want to * Combine these two shapefile * ...
1
vote
1answer
38 views

fiona ValueError: invalid literal for int() with base 10: 'str'

Why below code does not work- import fiona from fiona.crs import from_epsg my_schema = {'geometry': 'Point', 'properties': {'mean_in': 'str', 'total_h1': 'str', 'total_h2': 'str', 'LOS': 'str', ...
3
votes
1answer
63 views

Counting polygons in one layer that are overlapping/touching/contained in each polygon in separate layer of contiguous polygons using QGIS?

I have a layer of contiguous (pink) polygons (UK Parliamentary constitutencies) and a separate layer containing (blue) polygons representing protected nature areas (Natura 2000 areas): Each ...
1
vote
1answer
39 views

Decompose the polygon with polyline inside

Here is my question: I have a polygon shapefile represent the whole country area. A polyline shapefile(with a bunch of line boundaries) represent the province boundaries So, how to decompose the ...
3
votes
2answers
46 views

How to detect a covered polygon by other polygon in same QGIS layer?

QGIS - Identify overlapping polygons in single layer As described this question there are 3 conditions for two polygon on a same layer. These 2 polygons can have intersection area. (How to ...
1
vote
2answers
31 views

How to create for each point feature an Euclidian Distance raster in ArcGIS

I need some comment on how to create an Euclidian distance raster for a point dataset of about 100 features in ArcGIS. I need to create a raster for each single point. My question is, if there is a ...
0
votes
2answers
30 views

Shapely Not Determining Point in State

I am pulling State geometry data from a database (populated from Shapefiles) to find what state a coordinate pair is in. I was originally using GeoAlchemy, but tens of thousands of queries to ...
2
votes
1answer
51 views

European postal code shapes provider

I am looking for a single (paid) provider of postal (zip) code shapes (boundaries) for countries in Europe. I hope to find reliable partner with reasonable pricing and update policy. What I need are ...
2
votes
1answer
58 views

Split SHP file using ogr2ogr

I am trying to split a SHP file using all the attributes in the column header SUBURB. Below is an example of the attribute table sitting behind the SHP file: Name Suburb ABC BAY ...
2
votes
2answers
106 views

Convert SHP to MIF/MID

I am new to GIS and QGIS software. is there a batch convert function to convert shape files to mif/mid files? I can do this individually but is time consuming? I have seen similar functions on here ...
2
votes
1answer
48 views

Tutorial to create Shapefile based on Districts using ArcGIS for Desktop?

I have been tasked to create shapefile of Amritsar, India (will be incorporated into R programming language) So far, I see this 2-part video tutorial, where person is assigning numbers and icons, ...
0
votes
1answer
24 views

Combining field data from multiple shapefiles into one queryable layer using ArcGIS for Desktop? [closed]

How do you combine multiple field collected data set in shapefile form in to a single layer in ArcGIS 10.3 for Desktop?
2
votes
1answer
50 views

Selecting features of vector layers based on another vector layer using QGIS?

I am using QGIS 2.12.2. I am using three vector layers (point, polyline and polygon shapefiles) of the region of interest. Any advice in making the selections from one dataset based on the other ...
2
votes
2answers
46 views

Feature Geometry/shape changed event in arcObjects

I have a feature class(polyline). there are 5 features in the feature class. I want to get notification when user changed property any of feature of feature class. How it can be achieved ? I am using ...
0
votes
1answer
24 views

ArcGIS - Make colour gradient in street network shapefile accordingly to buffer distance from central points (bus stops)

I need to do a colour gradient in the street network shapefile (cyan selection in the map attached, in a layer) accordingly to the distance from the points in the other layer (the more distant, the ...
0
votes
1answer
45 views

Clip a GeoTIFF with a shapefile

I have a geotiff file that I made in Python. After I created it, I realized it was for all of North America, and I only need the United States. I then got what I assumed was a shapefile of the US ...
2
votes
0answers
43 views

How to pull a shapefile into R from PostGIS database (in Windows)?

I'm currently working on pulling data from a PostGIS database for the first time to map in R and need some help. The database contains a shapefile of countries/regions of the world. I am able to pull ...
1
vote
1answer
51 views

ArcPy Python Script To Update Shapefile Records From CSVs

I am fairly new to python scripting. Most of the basics I have down however still learning. I am trying to create a python script to update a shapefile with information from two separate CSV files. ...
2
votes
0answers
27 views

Combining adjacent shapefiles and merging neighbor polygons currently divided by quad boundaries

The project I'm working on has been mapping ecological sites in ArcGIS on a quad-by-quad basis for the past 10 years. When entered into GIS, each quad has its own shapefile and the sites are cut off ...
1
vote
0answers
43 views

Newly added points disappearing after saving edits in QGIS.

I am adding features to a shapefile point layer in QGIS 2.12 Lyon. When I add the new point I can see it, but once I click the Save Edits button it disappears. When I click Toggle Editing button to ...
1
vote
1answer
31 views

Getting from PDF contour map of Z in area to values of Z specific points in area?

I have a PDF of a contour map of value Z for an area. For the same area, I have a set of points that I would like to match with Z values interpolated from this contour map. For an individual point, ...
6
votes
1answer
65 views

Geometry not displaying correctly in QGIS 2.12

I loaded a few Shapefiles from different sources into a PostgreSQL database, when I visualize them in QQGIS some of them are not shown. This how i added the geometry column in my tables: SELECT ...
2
votes
2answers
82 views

Editing X,Y of point in shapefile using ArcGIS for Desktop?

Arcmap 10.1: I edited the coordinates within a shapefile. They are long/lat but the point will not move to that new coordinate on the map. I know this is probably a simple fix but for the life of me I ...
1
vote
1answer
32 views

Change the ArcMap background from white to blue (i.e the sea)

Say I have an image like the map below, how can I change the white to blue, to represent that this is the ocean? It is not part of the shape file itself, so I cannot use symbology.
2
votes
1answer
52 views

Plot attribute of shapefile with R

Does anybody know how to plot any attribute of a shapefile with R? For example, like this.
0
votes
0answers
28 views

Obtaining data from Ukraine cadastre?

I'm looking for some cadastral data from Ukraine: orthophoto maps with good quality and vector cadastral parcels for this area (Ukrainian name: Битень, Район Ковельський) . I found Ukraine cadastral ...
4
votes
4answers
155 views

Swapping Lat and Lon coordinates of shapefile?

I have a shapefile that consists of one polygon whose boundary is defined by a large number of points. Whoever originally made the file inverted the latitude and longitude coordinates, so the data ...
-1
votes
1answer
25 views

What does PRIM_MILES and COUNTYP010 stand for?

I've downloaded the county boundaries (1 million scale) from this link: http://nationalmap.gov/small_scale/atlasftp.html?openChapters=chpbound#chpbound A sample of the attributes in the dataset is: ...
2
votes
0answers
52 views

Using Python to convert line shapefile to raster, value=total length of lines within cell

I have already read the similar question Convert line shapefile to raster, value=total length of lines within cell using R. And I want to realize the function using Python. ===== My attempt ==== ...
2
votes
0answers
40 views

display shapefile from postgres using arcmap?

I have uploaded shapefile using postgis extension in postgres but when i tried to display the shapefile in arcmap, it wont display the data in vector. this is the image of my connection. i followed ...
1
vote
2answers
84 views

Moving shapefile using Python shutil?

I'm attempting to iterate through several shape files within a folder and only move some of them to a new folder. I'm doing this based on contents of the DBF file where I'm using dbfread to determine ...
-1
votes
1answer
40 views

Inserting shapefile in AutoCAD Workspace?

How can I insert an ArcMap shapefile in AutoCad or how can I save the shapefile so as to put it in Autocad Workspace? Even a tool in ArcMap that exports shapefile in a form which can be inserted in ...
0
votes
0answers
15 views

Kartograph syntax for json files

I googled everywhere but i didn't find how to correctly write *.json files for kartograph.py. Is there any documentation or at least some useful examples or tutorials? I wonder where to find shp files ...
1
vote
2answers
53 views

How to access Shapefile metadata and metatypes information using OGR?

I'm trying to use ogrinfo to get some details on a shapefile. Now, the only way that I know is using orginfo: ogrinfo -ro -so -al BRA_001.shp But its display all information about the shape: ...
1
vote
1answer
19 views

Ordnance survey boundary line .shp files?

I would like to make a shapefile of Great Britain's counties. I have downloaded the boundary-line data from ordnance survey: The unzipped file appears to contain two file types: .lyr and .qml. How ...
1
vote
1answer
53 views

Clipping raster objects in PostGIS

I'm trying to cutting a raster object (from a PostGIS table) using a shapefile with reference, extracting raster data from a polygon area. My objective to work with the clipping raster into R. I'm ...
3
votes
1answer
53 views

How is the record count of a multipoint shapefile dbf file determined?

I'm writing a program to create a multipoint shapefile (.shp .shx .dbf), and I'm not sure how the format of the .dbf file should look. The .dbf starts off with a record header, followed by field ...
0
votes
2answers
46 views

Latitude / Longitude Polygon from New Zealand Geodatabase or Shapefile?

I have access to ESRI Geodatabase and Shapefile: http://www.stats.govt.nz/browse_for_stats/Maps_and_geography/Geographic-areas/digital-boundary-files.aspx. What I need is to somehow get the polygons ...
10
votes
2answers
218 views

Retrieving size of shapefile in ArcPy?

Is it possible to retrieve the size of a shapefile using python and arcpy? If so, how?
3
votes
3answers
98 views

Using ArcPy to identify Shapefiles instead of os.walk() via *.shp file extension?

I am trying to write a script that identifies all Shapefiles within my folder structure and write a list of the .shp files with their full path file name to a newly created .txt file. I was able to ...
4
votes
1answer
65 views

Rename field QgsField is not valid

In pyQGIS i tried this code (contains also debug prints): def joinLayers(inputlayer, layer, index_field, name = "JOINED", dataProvider = "ESRI Shapefile"): a = [] b = [] outpath = ...
7
votes
3answers
428 views

Pythonic alternative to Feature to Point (no advanced license)

I have a set of polygons I have calculated the centroids of, but am having trouble finding a way to output these values to a point shapefile. I dabbled with arcpy.MakeXYEvents_management, but it only ...
4
votes
1answer
60 views

How to automate joining SQL Server non-spatial database tables to ArcGIS shapefile

I have dozens of SQL Server non-spatial database tables. These are common tables, the column types are: nvarchar, int and float. I try to use Arcpy to automate joining these database tables to ...
2
votes
2answers
81 views

How to add attribute table to new shapefile using OGR?

i have made a new shapefile from the original shapefile , and now i want to copy the attribute table from the original shapefile to the new select shapefile , but i don't know how to do that? import ...
1
vote
1answer
47 views

Select points situated on zero degree slope

I need to choose points from SHP file, which are positioned on raster cells with 0 degree slope. Creating a slope raster from DME is not a problem, but I don’t know how to write a script that chooses ...
3
votes
2answers
53 views

Converting OpenStreetMap (OSM) file to shapefile?

I am trying to convert an ".osm" file to a shapefile. I want to display roads mainly. I am using qgis (on Debian Linux) .. EDIT (as recommended): O.k, here is the problem ... I want to create a ...
1
vote
0answers
38 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 ...
0
votes
1answer
30 views

Shapefile location change repair. HResult E_FAIL

I'm working on a ArcMap plugin using ArcObjects that will change the location of a shapefile that is broken. However, I'm getting HResult Error E_Fail whenever I try opening the feataure class. This ...
5
votes
1answer
132 views

How to replace a shapefile name in a directory using Python QGIS?

How to replace name or delete .shp file from directory using Python QGIS ? import os import processing input = "//input.shp" output = "//output_100.shp" interval = 100 ...
0
votes
0answers
17 views

How to handle Multiple Shapefiles to provide map tile server?

I have Nearly 60 shape file represent different regions. I use Mapnik + node js to render tiles by applying same stylesheet.xml for all shape files. Questions: 1)Is there any other way to effciently ...