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)

3
votes
1answer
178 views

Get points in point file to write into new field the census tract each is in (from another shapefile)

I have points that represent day care centers which have address and lat-long. I am using lat-long to display. Now I need to sort, count, etc. these points in conjunction with new census data. To be ...
6
votes
4answers
4k views

How to change the order of features in a shapefile?

I have a shapefile and I want to change the order of the features. Is that possible using ArcMap?
3
votes
1answer
3k views

How to generate a Shape File in DotSpatial

I have a .csv file of coordinates such as the following: -90.19, 38.62, St Louis -122.42, 37.82, San Francisco -74.04, 40.68, New York I want to create a shape file using DotSpatial that has these ...
4
votes
2answers
1k views

create temporary point geometry feature from coordinates in OGR with Python

I have two shapefiles containing two types of geometry features: one contains polygons and the other linestrings. Because I'd like to use the Within method to check whether the end(or start) of a ...
4
votes
1answer
1k views

Best way to visualize Google Maps and Mapinfo (or SHP or SQLite) at the same time?

I am having a bunch of Mapinfo data of a large area. This data has multiple layers and is also available as SHP, and of course it could be easily converted to SQLite ("SpatiaLite"). Although probably ...
18
votes
6answers
7k views

How to convert image of map into vector format?

What is the best way of converting a gif of a map into a vector format, such as a shapefile? The only relevant parts that I am interested in are the outline of the island so I realize some manual ...
2
votes
2answers
545 views

How to query data from a vector map (shapefile)?

We want to obtain the specific place of the boundaries of a shapefile. We want to be able to get the points of each polygon corresponding to a specific place in order to use these data in an ...
9
votes
4answers
6k views

using shapely: translating between Polygons and MultiPolygons

[EDIT: the solution to this was simply to use OGR to read shapefiles. See geographika's example.] In an ESRI shapefile, there is no distinction between Polygons and MultiPolygons. Furthermore, there ...
10
votes
2answers
3k views

Point (of a linestring) within Polygon using ogr and Python

I'm currently working on a project in which I need to build a topological network out of the geometry features I find in shapefiles. So far using Ben Reilly's open source project I've managed to ...
8
votes
3answers
1k views

Polygon shapefile with null values

Does anyone know where I can find a sample shapefile that has null entries in it (preferably a polygon shapefile)? I'm not sure how to create one with null entries. Thanks, Jeff
6
votes
5answers
2k views

Problem loading OS OpenData multipoint shapefile into PostGIS

I am trying to load the OS OpenData Strategi shapefile dataset into a PostGIS database. I have had no problems with the polyline and polygon shapefiles, but I am unable to get the point shapefiles to ...
12
votes
3answers
909 views

Centralizing shapefile data into database

I've got hundreds of shapefiles from various different GIS projects that I want to start consolidating into a single database platform, currently attempting this with Postgres / PostGIS. Hardly any ...
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 ...
7
votes
3answers
3k views

How To Convert A Set of ARC/Info ASCII .e00, .e01, .e02, etc Files Into .shp Files

I have a set files that I downloaded with extensions (.e00, .e01, .e02, etc). I have read that these are files used by ARC Info mainly, but I do not have ARC and nor am I really that interested in ...
3
votes
2answers
396 views

mapserver displays raster image in mirror

I've installed Mapserver and used a map file to set a raster layer and vector(shp) layers on top of it. However, although displayed in the expected order, the png file is displayed in mirror(compared ...
3
votes
2answers
1k views

How to get accurate mile markers from DOT ShapeFile?

I'm having trouble getting accurate mile markers through route traversal using PostGIS. Based on the discussion in Geocode from mile marker/milepost to latitude/longitude?, I downloaded Texas ...
7
votes
5answers
5k views

update one shapefile attribute table with values from another dbf table

I try to explain here what I am trying to do: I have one shapefile and one independent dbf table with the same fields. In the dbf table all the fields are populated but in the shapefile attribute ...
4
votes
5answers
1k views

Simplify shapefile parcel layer

I have a very large shapefile with over a million parcels within it. The problem I am having is that the polygons representing each parcel are very jagged. What I am looking for is a simple and fast ...
7
votes
2answers
771 views

Control the colors of a shapefile

I have a Shapefile with road data. Sometimes the roads are blue, sometimes they are green. I didn't used to mind, but now I'm tiling everything so I need to control the colors. I'm loading it with ...
7
votes
5answers
9k views

I am struggling to convert .dwg to .shp, ideas?

Any ideas as to how can I convert dwg to shp? I tried Kosmo and gvSIG. gvSIG kind of worked but it seems like I lost information.. in addition everything was converted into lines, no polygons. I can ...
24
votes
8answers
11k views

Open Source Tool capable of reading Esri File Geodatabase (.gdb)?

I have an ESRI File Geodatabase (.gdb) file that I would like to convert to shapefile (or any other non-proprietary format). Are there any Open Source tools to do so?
2
votes
1answer
628 views

I have several layers (polylines and polygons) that are of the same area but they don't overlap in ArcMap as they should, what do I do?

For my GIS project for my class, I have downloaded several vector layers from different websites (polyline of the continental divide, a boundary polygon of New Mexico, a rivers and water bodies layer ...
2
votes
4answers
333 views

mapserver not displaying anything

I've been reading through Tyler Mitchel's Web Mapping Illustrated and also downloaded a copy of the itasca sample from maptools.org. Then created some shapefiles in OpenEV and modified the itasca.map ...
8
votes
4answers
2k views

how can i convert a shapefile to lat and lon boundaries?

i have a shapefile of country subdivisions and i would like to extract an array of bounding lat and lon for each division.. is it possible to do?
10
votes
2answers
2k views

How to add custom Feature attributes to ESRI Shapefile with Python?

I am seeking a way to take an existing ESRI Shapefile that has a Feature set of 200 countries. Each country Feature has an attribute of "NAME." My objective is to create a Python script that adds an ...
5
votes
1answer
172 views

How display outlines in a Map, only from a scale, but the colored polygon in all scales?

I want to display a shape with UMN-Mapserver. It has different coloured polygons and also outlines. But I want to display the outlines only, from a specific scale. I could add MINSCALE 150000, but in ...
24
votes
4answers
11k views

Which character encoding is used by the DBF file in shapefiles?

Which character-encoding is used by the dbf-file in Shape-files? It seems it is handled different, based on the program and the local encoding-settings of the machine. Which encoding is 'right' - ...
14
votes
6answers
1k views

Creating simple image from vector data

Can anyone suggest a quick (and preferably open source) way to create an image from a shapefile. For example, I have a shapefile containing parcel boundaries, I want to create a png file depicting ...
6
votes
1answer
1k views

Updating Lat/Longs and actual position of point shapefile

Greetings everyone, quick question regarding lat/longs and updating a point features actual location. I have a point shapefile with over 3000 points that are updated frequently, when they are updated ...
1
vote
2answers
314 views

Programmatically modify MapTip Expression

If I load a layer via a shapefile and set ((ILayer)myLayer).ShowTips = true; How can I change the tip content (I want to point it to a different column or have a expression of multiple columns) ...
3
votes
1answer
515 views

Opening a shapefile with roads, how to display the roadnames?

I am using ((AxMapControl)myMap.AddShapeFile( directory, shapeFileName) To display a shape file which has road data. Now the roads display properly, but the road names aren't displaying. How can ...
13
votes
5answers
2k views

Does Re-Projecting an ESRI ShapeFile only update the content of the .prj file?

if i wish to change the projection of some shapefiles from .. lets say NAD83 (4269) to WGS84 (4326) ... and by using some 3rd party app .... does this mean the .prj file is only updated .. and not the ...
4
votes
1answer
2k views

Mapnik Style Filter on River/Lakes Shapefile attributes (from Natural Earth Data)

As a followup to this question, I downloaded the vector data here: http://www.naturalearthdata.com/downloads/10m-physical-vectors/ and I successfully created the rasterized water/land mask I ...
5
votes
2answers
782 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 ...
3
votes
2answers
489 views

TIGER/Line processing

Does anyone know of scripts for merging TIGER/Line shp files? It is for extracting the road features only, but for the whole of USA. They are provided as shp files for one county at a time here: ...
5
votes
1answer
2k views

How to use QGIS to fix an invalid geometry without it telling me I'm not allowed?

I have a shapefile, and it's got a self-intersecting geometry in it. I'd like to fix the self-intersection, but it will require a few moves. When I attempt to move a point using the QGIS edit tools, I ...
1
vote
2answers
1k views

“Item not found in this collection” when trying to set the Shape on IFeatureBuffer

I'm working on code to open a 3rd party data file and convert it into a collection of features in a custom layer based on FeatureLayer. I have had no issue importing the data itself (nodal data for ...
1
vote
2answers
3k views

How can I convert Shapefiles (SHP) to KML? [duplicate]

Possible Duplicate: How can I convert KML to ESRI’s shapefile format? I have SHP files, I want KML files, what tools can convert?
17
votes
12answers
11k views

Shapefiles to Text

How can I convert a shape file (GIS) to text? or, How can I extract the information in a shape file?
36
votes
21answers
37k views

Are there any free administrative boundaries available as shapefiles?

After learning about the US Census's TIGERLines datasets I'm addicted to GIS :) I've working with the following layers, from the USA data Country boundaries State boundaries County boundaries City ...
6
votes
1answer
222 views

What is the best way to store Flickr's Shapefiles Public Dataset in SQL Server 2008?

I'm wanting to import specific locations from the Flickr Shapefile Dataset into SQL Server would like to know what is the best way to store the data in SQL Server 2008? Link the the 1.0 Dataset: ...
17
votes
9answers
7k views

How can I convert an excel file with x, y columns to a shapefile?

How can I convert an excel file with x, y columns to a point shapefile? There are some somewhat optional requirements in addition to the correct creation of a shapefile: Column types (as per ...
58
votes
19answers
43k views

How to convert between KML and Esri's shapefile (SHP) format?

My users are sending me point data that were digitized using GoogleEarth. How can I convert their KML to a shapefile?
23
votes
10answers
36k views

How to convert MapInfo TAB and/or MIF to SHP using free tools or ArcGIS for Desktop core product?

How do I convert MapInfo TAB and/or MIF files to SHP using only free tools or ArcGIS itself? I've not had much luck trying to do this in the past and I don't want to have to shell out for the ArcGIS ...
12
votes
7answers
10k views

Where can I find Canadian postal code geometries?

Where can I find the shapefiles for Canadian postal codes?
5
votes
1answer
611 views

How to convert a line Shapefile into a CSV with nodes and links?

Is there a way to convert a linear shape file into a csv file of the following format: Node_1, Node_2, attribute_1, ...., attribute_x 1 2 "hello" 567845.334 I have looked at ...