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

Sum of point attributes inside hexagons using QgiS UI

I'm very new to Qgis so I would very much appreciate any help you can give me. I have a point shapefile that corresponds to locations of animals captured. I've joined a table to this shapefile with ...
3
votes
2answers
2k views

Python GDAL/OGR: retrieved feature is NoneType

I'm doing some scripts in Python to deal with shapefiles, and I have an issue I don't understand. I'm looping over a shapefile, and I want to retrieve the geometry of each feature, but very often I ...
0
votes
2answers
553 views

Geotools writing shapefiles without geometries [duplicate]

When I am writing a shapefile according to CSV2SHP tutorial, it contains features without geometries. I use version 10-SNAPSHOT. For example the result of ogrinfo looks like below: D:\>ogrinfo ...
1
vote
2answers
121 views

Why can't I save csv as a shapefile

I am trying to follow the instructions given here, Tutorial: Making Heatmaps using QGIS and GRASS , to build a heat map with my own data. I taken the first step and imported a csv data table into the ...
0
votes
0answers
38 views

how to divide a Area shapefile into multiple segment, so that each segment will be a seperate feature in attribute table? [duplicate]

I'm very new to GIS, I'm using QGIS and here's what I want to do: I have a shapefile of an area . I want to divide that area into multiple segment (not grid), so that each segment will be a ...
0
votes
1answer
94 views

Are .shp files coordinates in a certain direction?

I'm working on a project where I'm importing a .shp file into SQL Server. I'm using the Catfood.dll and I'm wondering if each point in the polygon are sequential (going in the same direction)?
0
votes
0answers
109 views

Why does a shapfile shift after transformation?

I have a shapefile created in the raster package (ER_14.3_2000_poly). > #read in a raster file > ER_14.3_2000<-raster('E:/Ecoregions Models/Outputs/ER_14.3/ER_14.3_ConsensusMap3.asc') > ...
3
votes
1answer
759 views

Projection of Shapefiles for Spain (INE)

I downloaded the official shapefiles for the municipalities of Spain from INE here. It has a lot of shapefiles, but I found out that the right one for what I need is esp_muni_0109.shp. I would like ...
3
votes
2answers
496 views

Extract PostGIS line features to GPX

I have a request to provide GPX files of certain trails (around 100) that are present in OpenStreetMap. Given a local PostGIS install with OSM data, I think the process would be something like: ...
5
votes
2answers
2k views

Is it possible to route shapefiles using python and without ArcGIS, QGIS, or Pgrouting?

The question is pretty much in the title. Is there a way to route through a road line shapefile using python and some library without having to resort to converting the data into PostGIS/pgrouting or ...
10
votes
8answers
7k views

Is there a Free Opensource Shapefile Writer for .NET?

I am looking for a well documented, OpenSource Library that can create and write to a shapefile from .Net. I need lower lever access:i.e. I should be able to write feature by feature. Does such a ...
9
votes
6answers
1k views

How to programmatically check if the number of shapes = number of table records?

I have a handful of approximately 1000 shapefiles that are corrupted (see attached error message). The shapefiles were generated from eCognition Developer 8. There is a script tool that seems to ...
2
votes
1answer
151 views

Why is this line split in two?

Even though this is a single line, it is stored as a two-part polyline. I can split it and rejoin at the break, but whatever I do it won't join the two into one line. (This is most obvious if you turn ...
0
votes
2answers
411 views

Calculating distance to a feature from a reference line

I have multiple shapefiles, each containing a coastline for a specific year. I want to calculate the perpendicular distance to the shoreline from a fixed vertical reference line. Please recommend me ...
2
votes
2answers
577 views

Driver error when converting MapInfo file to Shapefile with ogr2ogr

I am trying to convert a MapInfo file to an ESRI shapefile using GDAL's ogr2ogr command as described here, but I am getting the following error: FAILURE: Unable to open datasource `Iceland2pts.mif' ...
3
votes
1answer
3k views

Setting extent and geographic projection in R

I have a raster and a shapefile that I am attempting to view and process in R. The shape file "ER_11.1" has the following specs: > ER_11.1 class : SpatialPolygonsDataFrame nfeatures : 22 ...
4
votes
2answers
8k views

Choosing the correct value for proj4string for shape file reading in R “MapTools”

I am having a shape file of polygons and another CSV file which contains a list of points as (Lat, Lng) pairs.. I want to check for each (lat, lng) pair from the CSV file which polygon does it fall ...
1
vote
1answer
585 views

SAGA GIS ----> need to export shapefiles to SVG

I am trying to export three shapefiles to svg files but the problem I could not make these shapefiles polygon to black outlines to be export to svg files. How do I do that ? I tried to run that in ...
3
votes
2answers
3k views

Checking if Lng and Lat fall inside polygons from ESRI Shape file

I have two input files. First: CSV file with a list of points each defined with Lng, Lat, Name Second: ESRI Shape file defining a number of polygons I would like to determine for each point I have (...
1
vote
1answer
369 views

How do I convert shapefiles and display them on top of Google Maps?

I generated a set of maps of my region. Each municipality has some associated data. I would like to overlay that data on a google map and display them in a website. (I don't like the flash format) Do ...
6
votes
1answer
410 views

Importing a shapefile into Postgres: Can I use Multiple CPU Cores?

I'm importing some shapefiles into Postgres/PostGIS. I'm using Windows 8 and the shapefile importer/exporter GUI. It maxes out one CPU core. I'm wondering if there is a way I can use multiple cores ...
5
votes
4answers
4k views

Export to a Shapefile and maintain Domain Coded Values

I maintain a complex parcel fabric that uses coded value domains for a few fields. These are short integer fields with values from 1 - 6. These values represent say 1:Integrated Registered Survey Plan,...
0
votes
1answer
1k views

When I export shapefiles from ArcMap 10 there appears to be no xml file created?

When I create shapefiles in ArcMap, be it by selecting certain features from existing data or creating new polygons/points/lines, I look in My Computer and see a dbf prj sbn and sbx file. These ...
3
votes
1answer
302 views

Unwanted spaces being placed in shapefile text fields by ArcGIS Desktop?

I have a table with a row Page_Number_N some of the rows have values and others just have a space. For example record 4 is just a space. Field values are Strings. 1 2 3 5 When I start an edit ...
-3
votes
3answers
5k 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 ...
0
votes
1answer
296 views

How to symbolize features in QGIS?

Why is a shapefile shown as coloured independent features in ArcGIS shown in a single colour in Quantum GIS? What can I do to display this layer (wwf ecoregions) with the different ecoregions ...
0
votes
0answers
23 views

Shapefile is not a valid or recognised data source. [duplicate]

I have some shapefiles that I have been using before, some months back, but now I try to load them into QGIS but I get the message: districts.shp is not a valid or recognised data source. I realise ...
1
vote
1answer
169 views

Integrating shapefile in spatialite DB with spatialite gui

For a project, i need a to display datas of a shapefile in an Android app (Geopaparazzi). I'm doing it by integrating the shapefile into a spatialite DB with spatialite gui 1.5 (1.6 having issues with ...
2
votes
2answers
1k views

How to rotate North oriented Map [duplicate]

I want to rotate my North oriented point shapefile to 45%,is there any way to rotate it QGIS or Mapinfo? Thanks, RKM
6
votes
1answer
719 views

Splitting a shapefile into many shapefiles with open source

I want to create a shapefile for each of the 72,000 census tracts in the United States that includes the census blocks in that tract using open source software. I will probably start with a state ...
1
vote
1answer
2k views

How to append a vector layer using Qgis and Python?

I am working on scripting some data processing using Qgis and Python, but I'm running across issues that I need to debug. Since my data is really large, and run-times can be lengthy, I would like to ...
1
vote
1answer
410 views

QGis creating shape file of several points out of two Excel sheets

I am about to create a Qgis file on which it should be visible which companies are working together. As source I have got two Excel Tables. Table = Distribution Centers Table = Point of sales I ...
4
votes
1answer
765 views

Reprojecting Natural Earth “Admin 0 – Countries” shapefile to Web Mercator

I haven't received a reply posting this same question on the Natural Earth forums, so I figured I'd give it a try here. I’m trying to reproject the 1:10m "Admin 0 – Countries" shapefile into a Web ...
2
votes
2answers
7k views

How to convert CAD Annotation to Shapefile with attributes?

How to add AutoCAD Mtext to GIS attribute table using FME? What transformer I should use? The reader file in CAD and I want to transform it to GIS Shapefile. In this case I want to expose the ...
1
vote
1answer
71 views

Combining shape files and exporting

I am new to QGIS and I need to know if if is possible to merge 2 shapefiles that do not have a common field and then export to Excel. Example of shapefiles: Countries broken up in to Municipality ...
1
vote
2answers
340 views

How to intersect shape files with elevation models?

I have a high resolution digital elevation model (DEM) and a line shape file displaying a bycicle track. The DEM has 1 meter resolution. The line shape is something like 25 km long. What I need is a ...
0
votes
1answer
655 views

How to create feature LineString in a Polygon shape file layer (OGR/GDAL)?

I used below codes to create ShapeFile layer OGRDataSource *poDS, *poSHPDS; OGRLayer *poSHPLayer; ...... poSHPLayer = poSHPDS->CreateLayer (shpFileName, NULL, wkbPolygon , NULL); And I ...
2
votes
1answer
725 views

Help building SQL query to get a list of streets of a city

From two layers in PostGIS (osm_places and osm_roads), I would need to have the roads belonging to a certain city. It would be fair enough to get the street names of all streets in a radius of X ...
3
votes
1answer
6k views

How to resize shapefile features proportionally in QGIS?

In Quantum GIS (1.8.0-Lisboa) on Windows (OSGeo4W Install), how exactly would you resize a feature proportionally. The only way I've found to do this is by hand using either the Freehand Editing (0.2....
1
vote
2answers
1k views

How to select features in layer using dataset statistics (stdev and mean) and ModelBuilder?

I am trying to solve following problem. I need to select features from the shapefile by attribute in Model builder. The attribute should be a statistics which you can calculate by the tool :"Summary ...
2
votes
0answers
704 views

Geoserver - empty native SRS field

I'm converting layers from shape files to postgis with the below command: shp2pgsql -s 22175 -c -W "latin1" path/file.dbf' table_name db_name | psql -d db_name Next, I add this layer to the ...
1
vote
1answer
909 views

How to add Shapefile to map?

How to Add Shapefile to map in ArcGIS Silverlight application runtime ? I published the shapefile feature as map service on arcgis server and consumed it my SL Application through the service Url ...
9
votes
5answers
3k views

Automate SHP to JPG creation

Does anyone know of a way to batch convert shapefiles to jpegs or another common image format? edit: I should have clarified that I would like to apply a styling to each shapefile, and then export ...
0
votes
1answer
387 views

Problem with showing Shape file in Geoserver

I have a number of Shape files from a customer. I can read them with both ogrinfo and QGIS. They don't have a prj-file, but I know that the projection is EPSG:3006. When I add them as layers in ...
0
votes
1answer
256 views

Can't convert geometry from Dgn file to Shape file?

I am using below codes to try convert geometry from a Dgn file to Shape file. But, I can't exit the Feature reading loop. Are there anyone know why and how to fix it ? Please download the dgn file ...
1
vote
1answer
441 views

QGIS Crashes when I try and overwrite a shapefile using QgsVectorFileWriter.writeAsVectorFormat (QGIS 1.8, MacOS 10.7.5) [closed]

I'm somewhat new to this, and working on a plugin. My plugin will create a points memory layer, which is then written out as a shape file using QgsVectorFileWriter.writeAsVectorFormat. self.writer = ...
1
vote
1answer
565 views

Python GDAL/OGR: WGS84 & meters units

I'm dealing with shapefiles projected in: GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_84",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT["Degree",0....
2
votes
1answer
1k views

How to merge multiple ADF files to a single shape file? [duplicate]

I have a set of adf file which use the same structure. How can I merge all ADF to shp file? Does the ogr2ogr command can help in this case?
0
votes
0answers
186 views

Convert shapes in CSV to shape file

I have a csv file in which one of the fields contains a "shape" polygon in ESRI format. The other fields are textual, numerical, ext. How do I go about creating a layer from only the polygons in the ...
2
votes
2answers
941 views

Looking for a GeoJSON describing the french departments

Is there any place where I could find a GeoJson describing the borders of the french departments, or do I have to convert a .shp file?