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)

2
votes
0answers
50 views

Show dimensions on polygons

I have a shapefile that contains all of the property parcel lines in King County, WA. We are currently displaying this data through mapbox on our site with no issues. We would like to be able to show ...
0
votes
1answer
373 views

in R : get a SpatialPolygonDataFrame from gIntersection{rgeos] with sub-area as attribute?

I am using gIntersection (package rgeos) to intersect a polygon shapefile containing 20 buffers zones, with another polygon shapefile containing "ground occupation mode (GOM)" (an area divided in ...
5
votes
2answers
354 views

writeOGR with a spatialpolygon simplified by gSimplify

I'm using gSimplify (rgeos package) to simplify the geometries of a shapefile. The funcion works good, but now I can't write the output in a new shapefile. I tried some ways: writeOGR(simplyshape, ...
2
votes
2answers
157 views

Creating a really large shapefile without eating all the virtual memory

I am doing something similar to below to create a really large (large than memory on my machine) shapefile: shapes = shapefile.Writer(shapefile.POINT) shapes.autoBalance = 1 shapes.field('MyId','N') ...
1
vote
2answers
534 views

How to update postgis layer from shapefile in QGIS?

My usual workflow with updating layer from shapefile was to: Open DB Manager; Load SHP files into QGIS; Open DB Manager; Import file (with drop option). Now my problem is that I have created ...
1
vote
1answer
118 views

Can I calculate an average height from a contour dataset?

Hi all first time posting here, however have had a lot of help from this forum! Basically I have a contour dataset and need to find the average height.. seems simple but I cannot seem to find an ...
2
votes
0answers
85 views

Export shapefile from spatialite

I am using a spatialite db to perform a union and dissolve over a vector file. The vector inside the db looks like this: when I export the table with: ogr2ogr -f "ESRI Shapefile" -overwrite ...
1
vote
2answers
739 views

Can I merge a polygon and a point Shapefile?

I have two shape files that I want to merge. One is of polygons, the other is a point file. The polygons are missing information in the attribute table that the point file has. In general, the two ...
1
vote
2answers
54 views

On line shapefile, how to compare attribute between consecutives edges

I have a line shapefile with speed restriction attribute on each edge. I like to verify differences between two consecutive edges for all shapefile edges. Example: One line has speed restriction set ...
1
vote
1answer
361 views

Converting .fdshape to .shp or other QGIS readable format

I have been searching for a solution to being able to read .fdshape extension files in QGIS with no luck. It seems that the data had to be converted from .shp to .fdshape in the first place so I was ...
0
votes
1answer
72 views

How to choose a shapefile interactively in R

I am writing a function in R where i want the user to choose a Esri shapefile from its destination folder. Since a shapefile is made of several files how can i select them. For a point feature class i ...
1
vote
1answer
39 views

Create statistics by features in QGIS [duplicate]

I've a polygon layer for parcels in a landscape protection area and a point layer, contains zoological data (e.g species, entities, etc.). How can I make a statics for each polygon, contains the list ...
3
votes
5answers
3k views

Counting road intersections and blocks

I have a shp file that consists of the road system of Mexico City. I would like to count the number of road intersections (crossings) and blocks (which I would define as a segment starting from one ...
0
votes
1answer
65 views

Join line segments sharing a common attribute, using GDAL

I'm having trouble rendering a shapefile consisting of trail routes broken down into many short segments. So I'd like to combine them into a small number of line features, which share a NAME and touch ...
0
votes
0answers
143 views

How to build .vrt of shapefiles?

I've a huge number of shapefiles and I would like to create a VRT as I do with gdalbuilvrt for raster. I find here https://github.com/dwtkns/gdal-cheat-sheet that it should be possible and the format ...
3
votes
1answer
899 views

Is there a way to export the style, along with a shapefile, to a kml in QGIS?

I see there were plugins in the past that may have done this such as qgis2kml and qgis2google, but they no longer exist.
4
votes
2answers
3k views

merge shapefile using ogr2ogr and retrieve the attribute of both

Ciao, I have two shape files that I want merge (overlay/intersect) having in the destination the attributes of the two sources file. ogr2ogr file_merged.shp tl_2010_us_uac10_conus_albersUA.shp ...
3
votes
2answers
1k views

Keeping color of shapefile constant in ArcGIS Desktop?

I am using ArcGIS Desktop 9.3 when I use a color for the shapefile it changes everytime when I close and open ArcMap. How I can constantly keep the color of the shapefile that I work with?
1
vote
2answers
61 views

Replacing shapefiles in MXDs using only Python options available prior to ArcPy?

I am trying to come up with a python script that will go through a designated folder, locate all MXD files within the folder, and then check each MXD to see if it contains a specified shapefile, which ...
5
votes
1answer
103 views

How to check spotheight in closed polyline contour data using ModelBuilder or ArcPy?

I'm new in using ModelBuilder or Python script. So, i have a set of contour data and a good contour data should contain a spotheight* in every closed polyline contour data. Is there any solution to ...
0
votes
1answer
189 views

Grid-type shapefile from raster GeoTIFF

I need to produce a shapefile from a raster. I need to be able to specify either an interval, or manually define the intervals. The input file is a GeoTIFF. I would like to use GDAL and/or Python. ...
5
votes
3answers
295 views

How to know if shapefile is georeferenced?

I have a shapefile which is located in province in indonesia. it contains many sub-province if i removed sub regions inside a shapefile, and it leaves a small region, and my question is that small ...
1
vote
0answers
18 views

calculating total area of multiple polygons in qgis [duplicate]

I wish to know the total area of all polygons within a shapefile layer. So far I have added a new column to the attribute table that shows me the individual area of the polygons.I tried to copy the ...
2
votes
1answer
147 views

Trying to limit my shapemap to state boundary lines in R

I have a feeling I'm either trying to do this incorrectly, or I'm just not searching for the correct terms, but I cannot figure out how to do what I want to do. I am trying to plot the ranges of fish ...
5
votes
1answer
2k views

Extracting intersection areas in R

I have two polygons. One contains fields(X,Y,Z) and the other contains soil types (A,B,C,D). I want to know what area of every field contains which type of soil. I tried the following: ...
1
vote
1answer
3k views

Google API for Boundary coordinates

Is there any Google API (or any other) which can provide boundary information (i.e. Lat, Lng) for a particular location. Location can be a city, district or a region with in a city. For Example Dammam ...
0
votes
0answers
80 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 ...
1
vote
1answer
246 views

QGIS fails to clip and produces empty shapes

I've seen this type of question a few times and have tried all the different suggestions but no luck. I have 2 layers, one polygon and one line. I want to keep the lines based on a selected polygon. ...
-4
votes
1answer
180 views

How to convert inp to shp with Python? [closed]

How would I convert an EPANET .inp file into python lists in order to convert it to .shp files?
0
votes
1answer
39 views

Properly placing my raster over a shapefile on my map

I have an ASCII file that I converted to a raster. My heading on the ASCII file is: NCOLS 156 NROWS 720 XLLCORNER -170989.3011812 m YLLCORNER 1417628.464462 m CELLSIZE 1 ...
1
vote
0answers
466 views

Linking to PDFs via attribute field of shapefile for ArcGIS Online?

I am working with some data that cannot be presented in an attribute table. Therefore I would like to attach a specific PDF to each point within a shapefile. Is there a way this can be done in ...
1
vote
0answers
96 views

Assign a IGeometry to Feature.Shape

I'm trying insert a feature into a FeatureClass, but when I try to assign the geometry to featurebuffer the app return the next Error: The remote procedure call failed. (Exception from HRESULT: ...
0
votes
2answers
279 views

How to get average values per coordinates in ArcMap/R?

I have a point shapefile. It has multiple points at different spatial locations. Within each point there are multiple values that I want to get the average of. In this case the new file would have one ...
1
vote
1answer
194 views

Clipping LAS data with multiple shapefiles

I am looking for a method to clip with multiple shapefiles (139 shapefiles polygon) a lidar.las file. I'm using the software Fusion, as described in: How to clip LAS data using shapefile polygons ...
1
vote
1answer
89 views

Joining Parcel/Building Attributes Based on Coordinates

GIS noob here: I downloaded a building footprint shape file for a city and imported it as a vector layer in QGIS. I was hoping to see street address information in the attribute table, but there was ...
15
votes
2answers
18k views

Adding shapefile or feature class as layer in ArcGIS Desktop using Python/ArcPy?

I am trying to automate various tasks in ArcGIS Desktop (using ArcMap generally) with Python, and I keep needing a way to add a shape file to the current map. (And then do stuff to it, but that's ...
0
votes
0answers
85 views

.shp to GMT, fault lines appear connected

I used ogr2ogr to convert a .shp to GMT. Trying to plot fault lines, but when I plot the faults in GMT they all seem to be connected. The .shp data is in log/lat, which is what I want for the GMT ...
1
vote
1answer
71 views

arcgis 10.2 .shp with no projection info but .xml file

I need help opening a shp file which has no projection info in ArcGIS 10.2 I have .shp , .shx , dbf and .xml file. The .xml file details are below . QUESTION : can i make .proj from below ...
1
vote
1answer
108 views

How to insert non-spatial features into a Polygon shapefile - FME 2015

Here is the issue: I have the original data (a shapefile with spatial a non-spatial features) which I need to transform: (highlighted those non-spatail features) I need to make some ...
1
vote
1answer
167 views

Plotting shapefile on map using ArcGIS API for JavaScript?

We are using dojo framework to develop our portal.We have bind the arcgis map in our web portal.Is there any arcgis JavaScript API which will accept the path of the shape file and plot that shape ...
1
vote
1answer
117 views

How to adjust a complete shapefile of multiple points on ArcMap taking other few as reference?

I recieved a shapefile with georeferenced trees, but they didn't used a GPS to get the coordinates (not sure how they did it, some traditional stuff maybe?). So, the position doesn't match exactly on ...
3
votes
2answers
3k views

Where can I download a free dataset containing major ports across the world?

I am working on an analysis and would like to incorporate major maritime ports from across the world. Some initial searching turned up a dataset produced by General Dynamics, however it will be ...
2
votes
2answers
190 views

Using Geotools: How to convert these strange coordinates from a shapefile into regular lat and long?

I use this dataset from the European Union: http://www.eea.europa.eu/data-and-maps/data/administrative-land-accounting-units Opening the shapefile with Java' Geotools, I see coordinates like: ...
3
votes
1answer
128 views

Is it possible to define a custom CRS for a shapefile in QGIS that uses hundredths of a US foot?

I have several polygon shapefiles whose coordinates are defined as 100x their original coordinates projected from the Washington State South HARN State Plane in us-ft (EPSG 2927). I would imagine the ...
3
votes
2answers
626 views

How to delete empty fields from a Shapefile with QGIS or ogr2ogr?

I have a Shapefile with a lot of empty columns but many of them are empty. Using QGIS or ogr2ogr, how do I remove all attribute columns where everything is NULL?
48
votes
11answers
21k views

Identifying Coordinate System of Shapefile when Unknown?

I have a Shapefile but its coordinate system is Unknown, and there is no *.prj file. How I can identify it now? Are there any tools that could help?
0
votes
0answers
96 views

leica-geo-office unable to export shapefiles without freezing

I’m trying to export shapefiles from leica geo-office to AutoCAD. LGO keeps freezing up whenever it opens a navigation window. Such as when trying to choose the path to save the Fieldwork Report or ...
0
votes
1answer
34 views

Growing error from west to east when overlaying raster and shape

I am using a shape of Austria from gadm.org which I want to overlay with a netCDF file in R. As the netCDF has projected coordinates in EPSG:31287, I have reprojected the shape using FWtools and the ...
3
votes
2answers
358 views

Creating shp from txt files using ArcPy?

I have a txt file like this: Point 0 347172.2 4269952.7 60.9090909091 1 337172.8 4278952.4 85.7334909091 2 344572.3 4547952.2 123.909673091 3 347532.8 8777952.8 456.467809091 END The third column ...
0
votes
0answers
60 views

How to Post Kartograph File on Wordpress?

I can't for the life of me figure out how I can post what I created with Kartograph.py to my Wordpress site. I have the following files and the created the following with Kartograph: