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 (1)

1
vote
1answer
180 views

Geodjango - trying to get points within a polygon

I'm going through the Geodjango tutorial and trying to implement in my own project - I have loaded data from a shapefile into my model/database and I have a separate model that has a PointField. I am ...
3
votes
1answer
96 views

Join CSV using gdal/ogr

I'm trying to use gdal/ogr to join a shapefile called myshape.shp with a csv called mycsv.csv. The join field in the shape in joinshp and the join field in the csv is joincsv. I've found this command ...
1
vote
1answer
36 views

Importing a Shapefile in SpaceStat with GeoTools [duplicate]

I've just discovered the GeoTools tutorial to generate a Shapefile from a CSV containing a list of cities. I've managed to make it work but when I try to create a new Geography in SpaceStat, importing ...
0
votes
1answer
29 views

GDAL: Update spreadsheet from polygons in a shapefile

I am a beginner with GIS data, and have been looking for an answer but have not yet found it. I have a spreadsheet with lat/long points. I also have a shapefile with several numbered polygons over a ...
0
votes
0answers
39 views

Find a polygon by attribute Google map engine

I created a map via Google map Engine, (not the lite/pro). And then added an uploaded shapefile given to me as a data source. I've successfully published the map and access links are now available, ...
1
vote
2answers
62 views

Reduce shapefile to outline

I have a shapefile consisting of 10 contiguous polygons. I want to reduce this to a single polygon encompassing the entire area of the existing 10. I don't need to retain data. I've googled but ...
1
vote
1answer
61 views

Recovering shape layer which was accidentally overwritten?

I duplicated a layer set, as it was more convenient (same style and attributes). It was working fine and both the original and new layers were showing. Then I open it up another day and the original ...
0
votes
1answer
33 views

Adding a Vertex To Exisiting Feature(linear) Using OGR Python

I am working on a project that involves finding the intersection of linears in a shapefile, if that vertex(the found intersection) doesn't already exist for each(or one) of the features, then that ...
1
vote
1answer
30 views

Setting the Geometry with sql query

I am trying to merge data from a U.S. states shapefile with data on each state. I used this SQL query which is supposed to work: SELECT * FROM child_poverty_by_state UPDATE child_poverty_by_state ...
2
votes
2answers
351 views

How to convert data from a .gdb into a shapefile without ArcMap?

I have a .gdb folder with LOCK Files, FREELIST Files, ATX Files, GDBINDEXES Files, GDBTABLE Files, GDBTABLEX Files and, SPX Files. I want to convert the parcel data within this folder into a ...
1
vote
1answer
78 views

How can I convert WKT to SHP?

Using ArcGIS, ArcInfo and fme, I would like to transform data which contains wkt geometries (points, lines and polygons) into SHP. Has anyone a workflow for doing such a transformation?
2
votes
1answer
78 views

How to convert xml into readable gis format

I have data in xml format which contains a child element "GEOM" which has coordinates in the following format POINT (9.9632253030540205 52.9569277022282421) POLYGON ((9.7423702151211078 ...
0
votes
1answer
67 views

40k+ points from Shapefile, clustering them and populating on Google Maps/Webapp

I just started a new Python/Django webapp job related to GIS (and i'm totally new to GIS). Here is my task and what i have found so far, and i am stuck as to finding out what's the best way or the ...
1
vote
2answers
45 views

How to add polygon layer into raster data?

I performed a supervised land-use classification with Erdas. Landsat data was used in ArcGIS to Digitize urban areas as polygon shapefile. I want to insert these polygons into the land-use raster ...
2
votes
1answer
213 views

Mapnik + OpenStreetMap + Shapefile with Raster Images + Mod Tile + PostGIS

I am new to GIS. I have a Shapefile (.shp, .shx and .pbf). The .pbf file contains path to PNG files located on my machine only. I was able to save the Shp data to PostGis via Shape2Gis tool. Now ...
2
votes
3answers
147 views

How to rename PostgreSQL/PostGIS columns while importing Shapefiles?

I discovered shp2psql to successfully import geospatial data from ESRI Shapefiles into PostgreSQL/PostGIS. Now I would like to automatically rename the target column names. Is there any mechanism ...
0
votes
0answers
42 views

how to create a shapefile containing attributes from a list?

I have a list of features and each feature is a dict in that list. following you can see the structure: [ {"FID": 0, "Shape": polyline, "Nodes": [0,1]}, {"FID": 1, "Shape": polyline, "Nodes": ...
3
votes
1answer
130 views

Debugging ogr2ogr “AddGeometryColumn failed” and “Terminating translation prematurely after failed translation of layer”

As noted in the title, I'm getting the following error: ERROR 1: AddGeometryColumn failed for layer pretty_polys, layer creation has failed. ERROR 1: Terminating translation prematurely after failed ...
0
votes
0answers
37 views

Exporting ArcSDE feature class to shapefile using OGR?

I'd like to export data from ArcSDE for SQL Server to SHP. I've tried first to run this python script in QGIS: http://trac.osgeo.org/gdal/browser/trunk/autotest/ogr/ogr_sde.py But finally I've got ...
2
votes
1answer
24 views

OGR DeleteDataSource not working properly in Python

I have a small Python script which is supposed to delete a shapefile in case the file is empty. import sys from osgeo import ogr drv = ogr.GetDriverByName("ESRI Shapefile") ds = drv.Open(inData) if ...
1
vote
1answer
135 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 ...
0
votes
1answer
111 views

How to convert *.shp files to *.gmt format type files?

I am new at using GMT (Generic Mapping Tools) and I am wondering if it can use a shapefile of a hydrographical network. Can I perhaps change my .shp to .gmt format and combine it with a GMT map? If ...
0
votes
0answers
37 views

Unable to load shapefiles fully using shapefile.py

I am trying to load my shapefiles directly via Python rather than loading them from Arc Catalog to ArcMAP. I load these modules first: import sys import os import arcpy import numpy Then I add a ...
1
vote
0answers
51 views

Switching from ArcDesktop to ArcGIS Online

I have many GIS files that I was using to create some maps for my work. Our desktop version of ArcGIS expired and we decided to move to the basic online version. I am unable to upload any of my ...
0
votes
0answers
51 views

ArcGIS for WPF - load Shapefiles and access attributes (dbf file contents)

I'm loading various shapefiles using ArcGIS for WPF and displaying them on a map (the mechanism for doing this is taken from the ArcGIS WPF runtime examples - see ...
0
votes
1answer
43 views

Clip a shapefile based on raster extent with high accuracy

I am trying to clip a shapefile based on the extents of a smaller raster. I find the extent of the raster using this code: Extents = arcpy.sa.Raster(MyRaster).extent` Then, I use these lines to ...
0
votes
2answers
66 views

Select Layer by location does not work

I am having trouble using the "Select Layer by Location" tool. I want to select everything from shapefile A (green) that overlays with Shapefile B (red). Here is the raw data: And one example of ...
0
votes
1answer
75 views

How to plot Storm Prediction Center (SPC) Shapefile using python

I am trying to make a plot of the SPC's thunderstorm outlook using Python. I have downloaded the shapefile from this website http://www.spc.noaa.gov/products/outlook/day1otlk.html. Then I use this ...
0
votes
1answer
51 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 ...
1
vote
1answer
55 views

Why does QGIS add decimals when a csv is saved as a shapefile?

When I save a csv as shapefile the fields with decimals are saved adding decimals, then the new table in some case has new values. Old Table (CSV) ALTURA ELI ALTURA ORT 1.94 39.6 -11.19 ...
-3
votes
2answers
71 views

How to add .shp file to ArcMap? [closed]

Ive spent the last 12 hours trying to figure out how to use ArcMap. Ive made about 2% progress. I attached the link to the .shp files at the bottom. Ive been exporting .shp files via Pathfinder ...
0
votes
1answer
65 views

Creating a 10-mile radius buffer zone that averages a variable in my shapefile?

I´m trying to create a "buffer zone" for every polygon in my shapefile, which will identify a 10 mile radius around the centroid of each polygon, and calculate the AVERAGE "demand for services" (one ...
0
votes
1answer
28 views

gdal_rasterize : getting area not in or touching polygon (options -at and -i)

I would like to capture the area that is not in a polygon (option -i) and that doesn't touch that polygon. gdal_rasterize -at will return the polygon + edges, but gdal_rasterize -at -i will not ...
0
votes
2answers
58 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
2answers
29 views

Is convention to denote Building Elevation with respect to ground or sea level?

Have a query on shapefile. I have a shapefile containing a number of polygon features representing buildings. I am trying to extract the elevation of the building. I would like to know if the usual ...
0
votes
0answers
108 views

Example using sharpmap in mvc asp.net

I am wanting to open shapefile files in a ASP.NET MVC application, was researching and found sharpmap but have not found examples of how to implement the MVC. Does anyone have any examples to help me ...
0
votes
1answer
95 views

FME Workbench: Merging Multiple Shapefiles into One Database Table

I'm new to FME Workbench, but have used Quick Translator for a while. What I have is a directory: C:\Mexico\Maps\Rural where I’ve extracted the Shapefiles for multiple states. Nothing else is in that ...
4
votes
1answer
113 views

Allowing user to download shape files via geoserver

We provide layers via shape files and/or PostGIS PostGreSQL Database in geoserver-2.x.x with GCS Geometry. geoserver-2.x.x itself uses this shape files to render maps. The shape files are located on ...
0
votes
0answers
72 views

How to convert Mapinfo “.Map” file (without .TAB) into SHP?

I've got several MapInfo files but i don't have the .TAB. I only have: M044.DAT M044.ID M044.IND M044.MAP I need to convert these files to SHP. I tried to read those files with MapInfo ...
3
votes
1answer
57 views

Statistical Analysis of Shapefile Proximity within Raster Image - ArcMap10.1

I have a raster image that has been reclassified into 15 equally incremented values/levels. This raster represents "sinkhole risk" in a certain county. So level 1 is the lowest risk region and level ...
0
votes
1answer
42 views

Adding custom shapes to a new shapefile

I am using ArcGIS 10.1 and I drew a rectangular shape to designate a junction on a map and i would like to add that to a new shapefile. Could you please give me some ideas.
1
vote
1answer
48 views

how to separate a list of features from its shapefile_

I tried to copy all features in a list of dictionaries. the code looks as follows: def iterate_features(self): feature_set = arcpy.SearchCursor(self.address) for feature in feature_set: ...
0
votes
1answer
64 views

Optimum set up for large data sets such as mobile service coverage maps [closed]

When serving up large data sets such as mobile coverage maps (custom tile) mashed up with MapQuest maps and MapQuest POIs, is there any performance benefit to using shape file VS WMS tile PNGs? Any ...
0
votes
0answers
36 views

Where can i find Shapefiles of city along with the world file (.jgw) and the jpg image?

Are there any links where i can download a shapefile of a certain city along with aerial view jpeg image and the corresponding world file (.jgw) ? I need it to test an algorithm. Thanks,
0
votes
0answers
54 views

How can you calculate the union/merge two polygons in ogr2ogr?

I want to calculate the union/merge two overlapping polygons using ogr2ogr (as I have 300+ to do). I want the output to be the same as you would get if you used the 'Merge shapefiles to one' command ...
1
vote
2answers
147 views

Load .shp file in Hive(Hadoop)

I need to load .shp files in Hive more precisely in HortonWorks sandbox through Beeswax, can anyone provide example of Hive commands or steps for Beeswax ?
0
votes
0answers
35 views

Is there a way to retrieve/query country data from a shapefile programmatically using map coordinates in GeoTools?

I am using Geotools to parse and draw a shapefile. Now; when I draw that map I receive coordinates with this bit of code for my Flight Line button. void selectFeatures(MapMouseEvent ev) { ...
0
votes
0answers
73 views

Radius based search with Leaflet maps

Using leaflet I have created a simple map, played around with markers (adding/removing) and have added some GeoJSON data polygons etc. I now need help with implementing a radius search. For example I ...
0
votes
0answers
17 views

shp2pgql: how to omit the git column?

I am importing a series of shapefiles with shp2pqsql that already have a unique identifier attribute. Since shp2pqsql creates a new column called gid I am ending up with two unique identifiers per ...
0
votes
1answer
89 views

Repairing link between shapefile and layer file?

every time I open the same lyr file I have to do data/repair data source (link to the shp file). I tried to save/export that shp file again, and create the new layer file as well, but every time the ...