ESRI shapefiles

From World Wind Wiki

Jump to: navigation, search

ESRI shapfiles or shapefiles are a common format for storing GIS related information. Basic shapefile support is included with World Wind.



Contents

[edit] Adding shapefiles to World Wind

There is a GUI available (in the “Plug-Ins” menu) to use in loading a shapefile, but the default values in the xml it generates are very basic and may or may not work for any particular file.


The more flexible way is the manual method described below:

In your main World Wind folder (eg C:\Program Files\NASA\World Wind 1.3\) there is a folder named ShapeFiles. You must create an xml file for your shapefile in that folder.

Complete documention is still being written, however it’s a simple process and you can use these sample shapefiles to get an idea of how it works.

Until the documentation is written, here are a few notes on the contents of the XML file:

Only a few shapefile types are supported. These are: Points, Arcs (aka PolyLine), and Polygons. Multipoints are not. Also, (currently) if a shapefile contains Arcs with zero or one points, WW will not render any arcs out of that file.

[edit] Examples

[edit] Suggestions

Everything that can be specified in the xml file has a sensible default. Thus, I don’t think that the xml fille should be required. Or, rather, it’s possible that J. Random Shapefile could be downloaded off the ‘net, and the downloader could create a default xml file. RussNelson 23:14, 16 Feb 2006 (GMT)

[edit] External Link