Creating Gis Datasets

THL Toolbox > Developers' Zone > Gis Development > Creating GIS Datasets

Creating GIS Datasets

Contributor(s): Quentin Devers

It includes the creation of both the geometry and the attributes. For example, if you consider a layer for the streams of Tibet, the task is to: 1) draw the streams, 2) gather the names of the streams in Chinese and in Tibetan from the existing maps you can find.

These datasets can have two destinations: the Place Dictionary, and the Interactive Map interface. To make the distinction, in the first case we will talk of *shapes*, and in the second case of *layers*.

*shapes*: theses are datasets aimed for the Place Dictionary. What does it imply? -> The Place Dictionary (abbreviated PD hereafter) is made of two distinct modules:

  • there is the PD itself that is to hold what we usually call attributes in GIS. Each place in Tibet or in the world can have an entry created there, in which you can list all the different names of this place (in Tibetan, English, Chinese, etc.), in which you can add descriptions of the place, in which you can record precisely the administrative hierarchy of that place, etc. An example: [Lhasa|external link: http://places.thlib.org/features/637]
  • there is the postGIS database associated to the PD, which is intended to hold the geometry of the different places recorded in the PD. These can be points, lines and polygons.

What make the link between the two modules are the FID of the places: each place created in the PD has a FID, and then this FID has to be given to the geometry of this place in the postGIS database to have the two associated together. The particularity of this system is that you can have more that one shape in the postGIS database to which you can give a particular FID in order to associate more than one geometry to a particular place. One practical example could be that for the USA, you can have one polygon showing the USA at the very beginning of its creation after independence, then one polygon showing the USA each time a new state is added. In this case, we would have a set of polygons that all have the same FID, and they would all be associated with the single entry in the PD called "USA".

On a practical level, you're going to create the shapes in a GIS software such as ArcView. For the attributes the most convenient is to create a spreadsheet. And to have a FID colon linking the two (on a first step you probably won't have a FID, so just take any kind of made up ID system that you will transform into FIDs later on). To know how to get FIDs, ask Andres Montano.

One wiki about how to import shapes to the postGIS database: [THL Place Dictionary Shapes Importation Manual|external link: https://collab.itc.virginia.edu/access/wiki/site/c06fa8cf-c49c-4ebc-007f-482de5382105/thl%20place%20dictionary%20shapes%20importation%20manual.html]

*layers*: these are datasets that are not aimed for the Place Dictionary. For example, if you have a shapefile showing the literacy in the different Tibetan counties: such a shapefile is not made to go in the Place Dictionary. These are not just shapes (in the PD the shapefiles you create are just shapes without attributes that you upload to the postGIS database), but these are *layers* with specific attributes. Such layers are aimed to be visualized in the [Interactive Map|external link: http://thlib.org/places/maps/interactive] (under the "Map Layers" section). Two things about these layers: 1) you need to make the names of the different fields of the shapefile clear and easy to understand, 2) you have to create a symbology that makes it easy to understand what one is looking at.

One wiki about how to add layers to GeoServer: [Importing SHP Files to PostGIS/Creating GeoServer Feature Types|external link: https://collab.itc.virginia.edu/access/wiki/site/c06fa8cf-c49c-4ebc-007f-482de5382105/importing%20shp%20files%20to%20postgis-creating%20geoserver%20feature%20types.html]

Resources

In a general way it's good if you have a look at the different wikis contained in [THL Toolbox > Places & Geography|external link: https://collab.itc.virginia.edu/access/wiki/site/c06fa8cf-c49c-4ebc-007f-482de5382105/places%20%26%20geography.html]

Logins and Authorizations You'll Need

To do the job, you'll need to have logins and write/read authorizations to these different systems:

  • Collab: see with Steve Weinberger
  • BlueUnix: see with Steve Weinberger
  • postGIS database: see with Steve Weinberger and with Ron Bentley for a SSH connection
  • GeoServer: see with Ron Bentley
  • Place Dictionary: see with David Germano

People to Work With and Get Info From

  • Steve Weinberger: for about all the subjects
  • Andres Montano: for stuff about the Place Dictionary
  • Ron Bentley: for stuff about the postGIS database, about Geoserver, and about GIS stuff in general
  • Tom Benner: for stuff about the map cataloguing interface and other GIS interfaces.
  • David Newman: to have a history of past GIS activities when THL was still THDL

Glossary

Provided for unrestricted use by the external link: Tibetan and Himalayan Library