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)

0
votes
0answers
18 views

How do I get polygon coordinates from shape files? [duplicate]

I have a shapefile that only has area and length data for the shapes, but I need to get the polygon coordinates. I've tried re-projecting with GDAL (at least I think that is what I did here) my ...
1
vote
1answer
17 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
86 views

Writing shapefile with projection defined crashes fiona

I've just started trying to use Fiona to write out shapefiles. I found the example code below, which seems to work fine from shapely.geometry import mapping, Polygon import fiona # Here's an example ...
0
votes
1answer
24 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 ...
6
votes
3answers
2k views

How to read Greek fonts (ISO-8859-7) in shapefile attributes within QGIS 1.8.0?

I'd like to ask whether there is a way to read greek fonts in a shapefile's attribute table within QGIS 1.8.0.
-2
votes
3answers
607 views

How to add a field to a shapefile using R

This question is trying to make sense of a post that already exists that looks good, but is failing in practice. The second ranked answer uses the foreign package to read a shapefile attribute table ...
1
vote
1answer
37 views

Geodjango - trying to get points within a polygon

Edit: I think my problem might be that my data sets include shape_length and shape_area data instead of lat/long(which are included in the World Borders) so I think I need to convert it somehow... ...
1
vote
0answers
25 views

from shape files to a database

I've previously converted simple shape files to WKT so that I can store them in RDMS that has spatial capabilities. I'm a new user to QGIS, which I'm using to browse a shape file. But now I have a ...
1
vote
2answers
225 views

How to convert Shapefile to TopoJSON with grouping neighbor shapes by some criteria

I have a shapefile with countries, which I convert to GeoJSON using ogr2ogr and then converting that json to another TopoJSON, using topojson command-line tool. Everything works like charm, but now I ...
0
votes
1answer
83 views

Selecting a valid format file

There has been an error when uploading a shapefile I want to start with some imported data. Upload a file. Please, select a valid format file # when upload a zip file: Oops! There has been an ...
0
votes
0answers
132 views

How to convert a shapefile to binary grid?

I have a polygon shapefile with a UTM projection which I read into MATLAB: s = 'C:\path\to\shapefile.shp' % Read the shapefile shp = shaperead(s); How can I convert this simply polygon into a ...
2
votes
0answers
34 views

Join CSV using gdal/ogr

Forgive what may be a silly question, but I'm not much of a gdal/sql guru. 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 ...
0
votes
0answers
10 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 ...
4
votes
1answer
993 views

Union, Dissolve, Buffer — multiple layers, all in one step?

I'm a new user of Quantum GIS (1.7.3) and I need to repeat a task multiple times, so I'm wondering if there is a quicker way to do the following (with three or more polygon layers - each layer has a ...
0
votes
0answers
6 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
48 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
65 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 ...
1
vote
1answer
39 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
15 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
2answers
84 views

Problem when converting sosi to shapefile with ogr2ogr on Linux

I am trying to convert a SOSI file (Norwegian geodata format) to a shapefile. I have set up gdal, but apparantly there is a lot of things that I dont have support for. When I do a ./configure, this is ...
2
votes
2answers
54 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
1answer
89 views

Import Shapefile on postgis doesn't show in QGIS

I'm currently working on a project about a database and some shapefiles. The database is built on PostGis with tables including some dots as geometry type columns. Once imported them on QGIS, I can ...
0
votes
2answers
46 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 ...
5
votes
2answers
793 views

How does shp2pgsql define schema?

Can anyone explain how it is that the shp2pgsql loader for loading shapefiles into PostGIS goes about defining the schema for a table when importing a shapefile? To further explain, shapefiles are ...
0
votes
1answer
23 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
91 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
2answers
31 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 ...
1
vote
1answer
36 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
43 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
0answers
59 views

what happens to attribute table while performing union, intersection, difference of gml and shp file in QGIS

I am trying to do an analysis of the data conversion from shapefile to GML file using QGIS. For the analysis I have taken a point, line and polygon file. I first took a shapefile and converted it into ...
5
votes
1answer
411 views

Ogr2Ogr exported this boundary 90 degrees incorrectly

I've got some GEOGRAPHY data in my Sql Server 2008. I wish to export it as a shapefile (so I can import it into QGIS) and when I do, it's rotated 90 degrees to the left and then flipped 180 degrees to ...
6
votes
2answers
6k views

Adding shapefiles to PostGIS database

I was able to create a Postgresql database and then I executed, createlang plpgsql geospecies psql -d geospecies -f postgis.sql psql -d geospecies -f spatial_ref_sys.sql So now can I directly ...
0
votes
1answer
100 views

Creating a layer in arcmap by dragging a table from an OracleDB

I am working on a project for a client, they gave us some data from their oracleDB, and when I connect to it in arc map I can just drag and drop the tables from the catalog window into arcmap and they ...
1
vote
0answers
15 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
17 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 ...
0
votes
0answers
32 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": ...
2
votes
1answer
17 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
57 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
43 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 ...
10
votes
2answers
10k views

How do I add a shapefile in ArcGIS via Python?

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
1answer
103 views

How to convert from .SHP to .MAP for mapsforge?

We are using mapsforge, a Java component for Android. This component use a proprietary format file (.map) that can be download from OpenStreetMap (OSM). I need to use .shp maps, so I want to know how ...
2
votes
1answer
125 views

Natural Earth: How to get the position of all provinces that belong to a state

This question is about Natural earth 1:10 states and provinces.shp file. I'm using ogr2ogr and want to know the name of the id i need to pass . In purpose of pulling out the right states regions. ...
0
votes
0answers
23 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
39 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
29 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
103 views

CartoDB st_makeline with geography datatype

Hi I am using an online cartodb account to try and create a shapefile based on flight routes between one airport and another. So far, I have uploaded my lat/long points for each connected airport, ...
0
votes
1answer
29 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 ...
5
votes
3answers
154 views

Missing Scottish Administrative Data in OS Opendata sets

I'm not sure if this forum is really the correct place to ask, but impertinence would lead me to believe that there may be some one on here that may know the answer. I'm using the Ordnance Survey Open ...
0
votes
1answer
96 views

Why are map tiles being repeated? Using MapServer and Openlayers

Problem I have: map tiles from my layer are being repeated. Shapefile is projection 3059. I have specified 3059 is in the mapfile and also when creating map object. I know OpenLayers.Layer.WMS is ...
9
votes
2answers
1k views

How to split non-contiguous feature in QGIS?

I have a shapefile with a feature that is non-contiguous. I want to split the areas on the left from the area on the right. However, QGIS's Split Features tool requires you to draw a line over the ...