Tagged Questions

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)

2
votes
4answers
2k views

Qgis: How to display special characters German “ÄÜÖß” in a Map?

I have a shape file with names for Regions. These don't seem to contain special characters but ugly hyroglyphes. What can I do do display them correctly. If I import the shape as UTF-8 it doesn't ...
1
vote
2answers
1k views

shape file coordinate system

I added a shape file of Iran to Qgis. 'Tehran' has 35.6833° N, 51.4167° E coordiantes, however Qgis shows Tehran with 4772860,31296767. How i can view coordinates of a city or location in latitude ...
0
votes
1answer
693 views

Openlayers shapefile polygons hover effect

I have shapefile polygons. I'm using OpenLayers with OpenStreetMap tiles. Is it possible to create hover effect which will show up info window with some informations about that polygons? Is it the ...
2
votes
6answers
4k views

Where can I find shapefiles of pipeline data?

Does anyone know where I can get or find shapefiles for pipelines (USA location)? Preferably free as I've never done pipelines before and I'm meeting a client next week that is doing pipeline work. ...
2
votes
1answer
376 views

to extract 3d points from a shp file

I'm trying to work with the shapefile on python, the file " donnees.shp" contains 3d points I need to extract attributes from this file but my code returns an error: >>> import shapefile ...
3
votes
2answers
746 views

How to find out the co-ordinate system using .prj file

I'm very new to GIS concepts. Is there a way or procedure of finding out whether the co-ordinate system is in UTM, latitude/longitude or in stateplane using .prj file? My .prj file contains the ...
0
votes
1answer
405 views

In DIVA GIS how can I change the polygon co-ordinates of a .shp file?

I am using polygon layers from various sources to create species distribution maps however some of the layers have different polygon coordinates to others, therefore I cannot use them together as ...
5
votes
0answers
53 views

How are the edges of a polygon defined? [duplicate]

Possible Duplicate: Are long lines in shapefiles to be considered geodesics or straight lines in the 2D latlong space? In various representations, such as shapefiles and kml, polygons are ...
3
votes
1answer
225 views

Is there no EPSG code to use for Behrmann equal-area projection in ogr2ogr?

I'm trying to use ogr2ogr to reproject some shapefiles. The projection I wish to use is Behrmann equal-area. I cannot find an EPSG code to use for the '-t_srs' part of the syntax. Is there any way ...
0
votes
0answers
71 views

Trouble with making shapefile from xls file

Using DIVA GIS, each time I attempt to import some species data from an xls file to be plotted onto a map, the program becomes very slow and eventually becomes unresponsive. My dataset originally ...
2
votes
1answer
202 views

Cant' Find DotSpatial.Geometries.dll

I am trying to follow a simple tutorial on Dotspatial web page "Sample code that demonstrates how to create a Multi Polygon Feature Set" I add the DotSpatial.Data.dll to the project References but I ...
3
votes
1answer
404 views

How to stop writeOGR from abbreviating Field Names when using “ESRI Shapefile” driver

I'm currently using the following script to add some attribute data from a table to lots of individual shapefiles: library(rgdal) specieslist <- read.csv("SpeciesList1.txt", header=F) attdata ...
2
votes
1answer
379 views

Splitting large shapefile into numerous smaller files based on number of objects in each smaller file

I have a shapefile containing approximately 600 000 point-objects. Unfortunately, for a couple of reasons I need to split this file into a larger number of shape-files each containing approximately ...
6
votes
1answer
540 views

overlay county shapefiles for 2 different years

I have county-level shapefile for South Caroline in 1880 and one for 1940. I would like to overlay these two files so that they do the union and indicate the percentage of the land in 1880 that went ...
1
vote
3answers
564 views

Getting Field value for a given coordinate out of ESRI Shapefile using GDAL/OGR

I have a bunch of ESRI shapefiles that contain Land Cover data across Canada (provided by Geobase). I need to query the files and obtain the value of a certain field (called COVTYPE) in a given ...
2
votes
1answer
2k views

Why is my .prj file not being read by QGIS?

First off, I am new to GIS. I am using qgis (1.8.0), and have been given a shapefile containing .shp, .prj, .shx, .dbf, however qgis will not load the .prj file stating an invalid data source. ...
2
votes
3answers
790 views

How to compare and report the shift between two shape files

Ok, I have two shape files.One is an original route polyline file and another is an updated polyline file, where the shape is modified to google maps. How can I compare the updated shape file with ...
4
votes
2answers
1k views

Dividing Earth into continent polygons

Is there a simple (low res is fine) polygonal data set that divides the entirety of Earth's surface into continents, with no overlap and no area excluded? Specifically: North America, South America, ...
2
votes
2answers
548 views

Where can I get a multipoint shapefile?

I'm trying to find a multipoint shapefile to do some testing for an application I'm working on, but I cannot seem to find one (and do not have ArcGIS to create one). Can anyone suggest a place to find ...
2
votes
1answer
594 views

How to meassure the length of common edges between polygons?

I have a shapefile that contains several polygons which in fact represent the limits of several counties. My task is to find each length of each shared border. So in other words I want to know how ...
4
votes
2answers
795 views

Python - Check for number of shapefiles in a directory

I want to test: to see whether or not ONE AND ONLY ONE shapefile (which will be based on a filename wildcard) exists in a directory. Add these shapefiles to a list Use this list variable as an ...
4
votes
1answer
803 views

How does QGIS handle opening files and how can I improve this?

We are using shapefiles with a large attached database to it (162 Mb for 133000 features) Opening this shape file on a remote server takes about 5 minutes whereas DivaGIS takes 7 seconds for the same ...
2
votes
1answer
271 views

merging TIGER Line shp files for better labeling in ArcGIS

When working with TIGER line shp data at county level scale the labeling of roads, rivers, railroads, etc. is cumbersome due to all of the tiny line segments. Merging the dozens of segments that ...
3
votes
2answers
7k views

Click a marker icon to open a pop-up, using OpenLayers

Background Looking to create a pop-up that performs an Ajax request when the user clicks a marker on an OpenLayers map. The markers, however, have different icons. The following is working code that ...
4
votes
1answer
9k views

How to import shape file into SQL Server 2008 R2 using only SQL scripts?

I am trying to import some shape files into SQL Server 2008 R2. I found this useful tool called Shape2SQL however I am not sure how I can import shape file directly using only SQL scripts as this is ...
1
vote
3answers
4k views

Merging Two or More Layers using ArcGIS for Desktop?

I am working with three clipped layers that are shown in the TOC. I created these layers from a large watershed shape-file. However, each clipped layer includes the layer before it and only expands on ...
3
votes
1answer
365 views

Python: shp file to GML using OGR

I am trying to convert a shapefile to GML 3.1.1 . I am using gdal 1.9.1 however the GML conversion it generates for a geometry feature is GML 2 and it also swaps the long/latitude coordinates. Are ...
3
votes
1answer
140 views

Spidertracks to GIS

I have some data that will be comming to me from helicopter flights and was recorded with Spidertracks software. Does anyone know how to convert flight tracks from 'Spidertracks' gps flight tracks ...
7
votes
3answers
4k views

How to display a Shapefile on a browser? -offline-

Plot points on a Shapefile like this: https://github.com/gka/pyshpgeocode and then convert it to HTML and display it on a browser? Is this practical method to display the map on a browser? Any cons ...
2
votes
2answers
2k views

Create points from lines

I used the Bearing Distance to Line command (Data Management) in arc to convert UTM coords (i.e. of a plot center), bearing and distance to the figure shown below. The end of each line represents a ...
1
vote
2answers
929 views

How to batch convert Shapefiles to GMLs?

I know how to do this within Quantum GIS but I have 30+ shapefiles that need to be converted to GML. Is there a Python script sample or plugin for Quantum GIS that I can use to convert my shapefiles ...
3
votes
1answer
808 views

How to save a newly created shapefile in PostGIS?

I am creating shapefile using shapefile.py and my database has records more that 65k which is the limit of the shapefile. How can I create shapefiles then? Is it possible that somehow I am able to ...
1
vote
1answer
621 views

Aligning coordinate systems: gpx, LiDAR, shapefile

I am working on a project based on a lidar data set (for use in LidarViewer in Linux, a basic x,y,z viewer) that was downloaded from #1 below at Opentopo.org and looking to add onto this data set with ...
-1
votes
1answer
236 views

Finding the area of a polygon feature in a shapefile [closed]

Excuse the very simple question. How do i find the area of a selected polygon feature in a shapefile?
5
votes
1answer
129 views

Tools for discovering spatial data defects

Spatial data often have defects that may include incomplete polygons, sleathers (non-uniform administrative boundaries), overlaps, having points that belong to more than one polygon, etc. I have a ...
3
votes
3answers
681 views

Add date to feature class name?

I still working on my big project, big at least for me, but I am currently stuck on this: I have a lots of .shp, that I want to move to a gdb. While creating a feature class, I want to add date ...
2
votes
2answers
253 views

Problem with Coordinate Tolerances when I export my .shp files to .mdb

When I export my shapefile to a personal geodatabase using ArcMap, the result is not the same as the original database. I do not know how to solve this problem.
3
votes
1answer
525 views

Polygon with the same points over and over

I am in the process of reading shape files (provided to us by the vendor dealing with GIS products) using a C# program and loading them into a SQL database. I first read the text for the shape and ...
1
vote
1answer
280 views

problem after merge shapefiles, can't show it on OpenLayers with GeoServer

I have 5 .shp files, after merge it with geomerge, I can't use it on OpenLayers with GeoServer. it's only show white layer and when i click it, it show error message: Internal error occurred ShapeType ...
10
votes
1answer
886 views

Conflate (merge) private shapefile data with OSM data

Background Downloaded Alberta OSM data from Geofabrik and have it running on a private Linux server using PostgreSQL 9.1, PostGIS 2.0, Mapnik 2.1.0, osm2pgsql, Apache 2, mod_tile, renderd, and ...
0
votes
1answer
246 views

one row is discarded while importing shapefile into postgres

Please help me in following issue. I need to import a polyline shapefile into Postgres9.1 through shp2pgsql command.When i did like this, i got an error as "NOTICE: CREATE TABLE will create ...
4
votes
1answer
230 views

How to generate xml for use with geoxml3

I have a kml and shp I would like to convert to an xml to use with geoxml3. How would I go about doing such a thing? The xml I generate should look something like this: <?xml version="1.0" ...
4
votes
2answers
4k views

Arcpy - How do I specify the precision and scale of a new field?

I'm wanting to create a field with a maximum of 1 decimal place and then calculate a value into it: (I know that all my values are < 10) arcpy.AddField_management('C:/shapefile.shp', 'myField', ...
3
votes
2answers
151 views

Selecting a suitable GIS for my project

I need to develop a web-based map using existing shape files. Using the web-map, we must be able to select a region and produce contours for that selected region. Can any one suggest the best open ...
6
votes
1answer
1k views

How import a shapefile on-the-fly and have GeoServer render it instantly?

I am tasked with adding one feature to an existing app. It was built with OpenLayers and GeoServer. The task is to import a shapefile on-the-fly and have GeoServer render it instantly. However, I ...
0
votes
1answer
103 views

Raster and shp overlap not working with user CRS mercator

I created a GeoTiff raster in python, that is projected with the following CRS: *"+proj=merc +lon_0=34.9586601257 +k=1 +x_0=-0 +y_0=1453756.01544 +a=6370997 +b=6370997 +units=m +no_defs"* When I load ...
2
votes
1answer
399 views

QGIS apply style to shapefile

I'd like to create a Categorized style in QGIS, classify with it data in a shapefile and then save the shapefile with the new categorized style. Is it possible?
1
vote
2answers
177 views

How to have a nullable field included in a shapefile using the Geotools library?

I am trying to add a new field to a shapefile and need it to store null values. But by using SimpleFeatureTypeBuilder from the Geotools library and then using the Add command, it is not giving the ...
0
votes
0answers
51 views

ESRI Shapefile to ARCGIS Javascript JSON format [duplicate]

Possible Duplicate: How to convert SHP into GPX or JSON? We're in the proces of adding a new feature to our Web Application where we employ the use of ESRI's ArcGIS Javascript API alongside ...
1
vote
3answers
556 views

Automatically assign numbers to point file in various order in QGIS

I know how to automatically assign numbers to a new point files using the $rownum function in the field calculator. However it does it from the top-left over and down like reading a book. I could ...