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)

3
votes
0answers
163 views

What is the area that OGR extracts from the (geometry) shp files for polygons?

The ESRI July 1998 technical documentation for polygon shapefiles at page 10 makes no mention of either area measures or length measures (apart from byte/record-layout matters). Yet OGR enables me to ...
3
votes
0answers
53 views

Algorithm to find the boundary grid points [duplicate]

Let us consider a set S consisting of a collection of grid locations (i,j),i,j=1,\ldots,n, in 2-dimensional gridded plane. Here the point (i,j) corresponds to a rectangular grid in the X-Y plane. ...
5
votes
1answer
4k views

Parameter values to create a vector grid with 1km x 1km cells?

I created a shapefile from WKT in QGIS using the values from this link. I want to create a vector grid with 1kmx1km cells but I can't figure out what values need to be set for the X and Y parameters. ...
2
votes
1answer
807 views

Why do I get an error when I try and clip a shapefile to a shapefile using ogr2ogr?

I want to clip a shapefile to a shapefile. The input shapefile is a 1 m vector grid generated in QGIS. The tile I'm clipping to is just a simple polygon (the geometry is contained within the 1 m ...
0
votes
3answers
3k views

How to convert contours and raster surface from Petrel to shapefiles and rasters that can display in ArcGIS?

We have Petrel which is used to produce a surface of a geological horizon below the earth's surface. In Petrel we have contours (vectors) and a raster image of the same area, also visualising ...
2
votes
1answer
140 views

Writing shapefile metadata with geotools

Using GeoTools, I'm able to write features to a shapefile by essentially passing a SimpleFeatureCollection to a ShapefileDataStore. The feature collection provides both a schema and features including ...
3
votes
0answers
132 views

Dilating a polygon by a circle sector

I want to dilate a polygon by a circle sector in ArcMap. Because my python skills are not that good to figure out how I can use the R prototype of How to create an oriented buffer using arcpy? . Is ...
0
votes
2answers
187 views

Given a shape file, how can I return the polygon containing a lat/lon location?

I have a shapefile generated by the ESRI product suite. I do not have any ESRI products and my budget does not support their purchase. Aside from fiscal issues, there may be technical limitations with ...
1
vote
1answer
61 views

Exporting selected records from a shapefile

I have a shapefile consisting of insurance data and point features. I select the features I want, and then I try to go to Data - Export, and a new .shp file. The process seems to run, but the output ...
1
vote
0answers
240 views

Google Tracks convert kml to shape and preserve attributes

I've been attempting to convert a Google Tracks kmz file to an ESRI shapefile using the GDAL and libkml(http://www.gdal.org/drv_libkml.html) which I built on my Ubuntu 14.04 (64-bit) system. The kml ...
5
votes
3answers
2k views

Can we merge shapefiles with different geometries (point and polygon) to get a single layer which shows both geometries?

I want to merge two shape files in which one is of point geometry type and other is polygon type in order to get a single layer containing both points and polygon in a single map.
1
vote
2answers
2k views

QGIS conversion of Microstation .DGN to .SHP?

I'm attempting to convert a .dgn file to .shp using QGIS. I'm reading that support is only provided for v7 microstation files, is this still the case? I've been using ogr2ogr -f "ESRI Shapefile" ...
1
vote
0answers
568 views

how to get ascii grid from corine land use data?

I'm trying to get ascii grid with land use data (by one parameter - CODE_00). Afterwards I will import it into simulation tool. But I cannot figure out how to convert ascii grid from shapefile. ...
2
votes
1answer
330 views

Iterate through a shapefile

How do i iterate through a shapefile using shapely. This is my code but it keeps outputting the same id. I think that it keeps looking at the same record. fc = fiona.open("file1.shp") print fc.schema ...
1
vote
0answers
79 views

Convert CSPro .map to ArcGIS shape file?

I have census data that uses the widely-established CSPro software. It also comes with a Map viewer and the data files are .map and .mdf extensions. Does anyone know how to convert these into an ...
2
votes
1answer
396 views

Calculating area of polygon inside region?

I am new to geographic information systems and i need to calculate the area of a a polygon ( a circle to be precise) that falls inside the boundaries of a region, say a state or a country. For ...
1
vote
1answer
109 views

How to display shapefile without map in Android?

I have a shape file which has some building data and I want to display that building structure in android I have checked nutiteq sdk but they are providing shp file on map not only shape file can I ...
3
votes
2answers
1k views

What is the best way to get from wkt to shapefile in Python?

I am querying tables from a SQL-Server database and would like to convert the table into a shapefile. It has wkt geometries and wkb as columns in the table, along with other attributes that need to ...
3
votes
1answer
95 views

How to set decimal precision in shapefile via javacode

we are using the below code : SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder(); builder.setName("Location"); String wkt = "GEOGCS[" + "\"GCS_WGS_1984\"," + " DATUM[" ...
1
vote
1answer
43 views

Operations between shape layer and csv layer

I've got a question for you! I have a .shp layer containing point geometry with xy coordinates in the attributes (left) and a .csv layer containing a square Origin/Destination matrix(right): I ...
1
vote
2answers
357 views

Worldwide High-Resolution Water Body Shapefiles with Consistent Scale

Where from your website can I access worldwide vector water body shapefiles that have better resolution than the generic SRTM 90m data? Do you have coastlines and inland features (lakes, estuaries, ...
4
votes
3answers
167 views

Can you recycle shp and shx files in shapefile fishnet (vector grid) where only dbf data changes?

I'm periodically getting data from an external partner that is bound to a very large fishnet (vector grid) in shapefile format. The fishnet itself sits at around 400~ megabytes, but the only data that ...
5
votes
4answers
1k views

Now that NationalAtlas.Gov is retired/removed, where is the largest source of public shapefiles for the USA?

I used nationalatlas.gov for many years, downloading various shapefiles regarding water, roads, boundaries, environmental factors, and more. NationalAtlas.gov was a central public site that many GIS ...
3
votes
4answers
2k views

How to create a new Shapefile with the same attributes as an existing one?

It is quite a frequent occurrence that I want the data I'm about to add to a new shapefile, to have all the same attribute fields as one I created in a previous project. For example, I might have ...
3
votes
1answer
1k views

Changing field / alias names in a shapefile using ArcMap10.2

I have a query regarding changing field and alias names in a shapefile. ArcGIS info for 10.2 says: ...For example, you can do any of the following: Define an alias for a field name so the field ...
2
votes
0answers
70 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 ...
0
votes
1answer
222 views

Error Applying Symbology to Shapefiles

I'm trying to apply symbology to my dataset after it is populated to the map display, but I am getting the following error. Have I placed the ApplySymbologyFromLayer code incorrectly? Traceback ...
1
vote
1answer
244 views

Creating an online form with intergrated google maps

Not sure if anyone can help, but i am looking at creating an online form that includes a map (google or something similar) where the user can draw a poly and when the user hits submit, i get all the ...
3
votes
2answers
323 views

shapefile record has no attribute named bounds

This is the code that I am using to print the bounds of my shapefile. import fiona import shapely import shapely.geometry fc = fiona.open("filename.shp") shapefile_record = fc.next() shape = ...
3
votes
0answers
243 views

How to set Vertical Coordinate system when creating a 3D shapefile?

I'm working with GDAL v1.11 and am seeing the vertical CS stripped when exporting a 3D shapefile (from oracle spatial). This is the command I'm running: ogr2ogr -f "ESRI Shapefile" B_POINT.shp ...
2
votes
1answer
2k views

How can I relocate a georeferenced image, shapefiles and grid using Spatial Adjustment tool?

I somehow georeferenced an image about 120 miles east of where I should have georeferenced it. This should be a simple fix, except that I then proceeded to digitize that extremely detailed image ...
2
votes
1answer
44 views

Clip_Management seems to delete shapefile?

We have some python code that clips a very large shapefile for further processing. We can see the process create all the output files, but then just as the process is finishing, they get deleted. ...
4
votes
2answers
3k views

Intersect Shapefiles using Shapely

What I'd like to try and do is intersect some point buffers with census tracts, maintain their ID's and the tracts attributes. I found a sample from ...
14
votes
1answer
6k views

Instantiating spatial polygon without using a shape file in R

So, the usual way we read a shapefile in R is via the maptools package, like this: sfdata <- readShapeSpatial("/path/to/my/shapefile.shp", proj4string=CRS("+proj=longlat")) However, I have a use ...
2
votes
1answer
105 views

How can I properly clip a shape file to get the section I want using QGIS?

I've tried the other "how to clip" instructions here, but consistently get an empty shapefile from the clip. QGIS Version: 2.4.0-Chugiak OS: MacOS 10.10 Input File: San Diego (South Map) 1999 Topo ...
1
vote
2answers
360 views

How can I generate a SVG file of Mexico and USA at states level (Admin1)? Kartograph fails

I am trying to include a US map at the state detail on top of this maps: http://crimeinmexico.org/ I am using Kartograph for the small map. I have installed kartograph in Mac OS X and I am able to ...
5
votes
1answer
914 views

Automating plan report generation using ArcGIS Desktop? [closed]

i have shapefile that contains a lot of parcels "parcel has like fields (n° parcelle,proprietaire, cin) see picture : and i want for all parcels to generate this plan : take a parcel and ...
1
vote
0answers
156 views

Converting *.asc to *.shp without using ArcGIS for Desktop or QGIS?

I am trying to perform file conversion programmatically, using C#. I have read the ESRI Shapefile Technical Description (An ESRI White Paper—July 1998). I cannot calculate records for *.shp file ...
1
vote
1answer
196 views

Best way to show shape file in a layered map

I'm creating my first app using maps and shape files. I have some shapefiles with attached dbase databases and I would like to show these shape files as an overlay on a map. I have JavaScript code ...
3
votes
1answer
450 views

Are polygons stored clockwise or counterclockwise in a shapefile? [duplicate]

I'm working with polygon coordinates in QGIS using PyQGIS using ESRI shapefiles as input data. My question is, are the polygon vertices (I'm referring only to the outer boundary in the case of ...
3
votes
1answer
210 views

Using Geodatabase Annotation in ArcView 3.2?

I've been asked to take a parcel layer (shapefile) that contains house numbers and create an annotation layer so the house numbers are displayed in a separate annotation layer rather than a label to ...
2
votes
1answer
149 views

Clip raster by shapefile in parts

Please help write .sh script command to clip raster by polygonal shapefile. Shapefile have name field with unique name of polygon feature. On the output must be rasters with name of polygons in ...
4
votes
1answer
252 views

Looking for shapefiles for Canadian shale plays with labels and/or meta data about the plays

I work for a company in the oil and gas industry. We are making a geospatial map with mapbox and leaflet. Our task is to show shale plays in relation to other industry items like well sites. We ...
1
vote
1answer
56 views

Unable to add features in QGIS 2.4.0

QGIS beginner problem. I can no longer create features with "Add Feature" in QGIS. The info triangle message is "Transform error caught: forward transform of (0.000000, 0.000000) PROJ.4: ...
3
votes
2answers
98 views

Digital Elevation Model and Shapefile not aligned in openWind

I have a digital elevation model and a shapefile containing point features for the location of wind turbines. These two layers appear to be aligned in QGIS but when I open them in openWind, they are ...
2
votes
0answers
44 views

OpenLayers preview problem?

I just want display shapefile (.shp) that I have made in QGIS in openlayer geoserver. but There is a strange object that appears. I want to ask how to get rid of the strange object.
2
votes
0answers
27 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
1answer
283 views

Plotting Postal Codes from .csv Files in QGIS

I have Canadian postal code data that I would like to plot. This data is currently stored in a simple .csv file. At the moment the only other data I have is FSA data from Statistics Canada. Is ...
2
votes
1answer
127 views

Opening shape file in OpenWind

In QGIS I have used the OpenLayers plugin to locate a wind farm. I have then used the add feature function to place a point at the base of 7 turbines. I have saved the shape file as an ESRI Shapefile. ...
2
votes
0answers
195 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 ...