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)

0
votes
0answers
99 views

FME incorrectly reading SHP file schema in reader

I am trying to read in a SHP file using the FME SHP file reader and some of the fields are not being read in correctly to FME. This is causing random values to be introduced into the dataset. The ...
5
votes
1answer
7k views

How to convert shapefile to SVG keeping internal data?

I am very new to GIS. I found a tutorial on how to make a choropleth using Python tools. I want to follow it but use my own data and map. However the tutorial uses a US map SVG file and I need to use ...
2
votes
1answer
79 views

After joining data from csv file to shapefile, why are all values zero in categorized renderer?

I have joined data from a csv file to my shapefile. The attribute table shows a successful join. I have converted the variable of interest to INTEGER. But when I go through Style to categorize the ...
1
vote
1answer
386 views

export openlayers as .shp file in Qgis

Is it possible to save an openlayers map as a shape or tab file in Qgis. I would like to have a part of an area from google maps as a shape file for later use?
1
vote
1answer
217 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 ...
2
votes
2answers
1k 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
396 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
104 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
34 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
79 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
94 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
460 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
373 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: ...
4
votes
2answers
1k 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
7answers
5k 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
797 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
150 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
274 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
457 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
2k 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 ...
3
votes
2answers
4k 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
348 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 ...
2
votes
2answers
2k 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
239 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
324 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
2k 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 ...
0
votes
1answer
583 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
3answers
2k 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
214 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
22 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
128 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
565 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
4
votes
1answer
410 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
1k 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
354 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 ...
3
votes
1answer
573 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 ...
0
votes
0answers
236 views

How to convert shapefile to tpk using python(ArcGIS 10.1)?

I'd like to convert shapefile to tpk using Arcpy.I surf in ArcGIS 10.1 help but i couldn't find any desire reference to help me . How can i convert shapefile to tpk using arcpy ? which function i need ...
2
votes
2answers
4k 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
258 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
395 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
505 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
3k 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 ...
1
vote
2answers
915 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
472 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
766 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 ...
6
votes
5answers
2k 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
299 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
208 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
348 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 = ...