Creating Gis Datasets
<h3 class="heading-h6"><a name="THLToolboxhomegtDevelopersZonegtGisDevelopmentgtCreatingGISDatasets" class="anchorpoint"></a><a href="/tools/wiki/home.html">THL Toolbox</a> > <a href="/tools/wiki/Developers%27%20Zone.html">Developers' Zone</a> > <a href="/tools/wiki/Gis%20Development.html">Gis Development</a> > Creating GIS Datasets</h3><p class="paragraph">
</p><h3 class="heading-h1"><a name="CreatingGISDatasets" class="anchorpoint"></a>Creating GIS Datasets</h3><p class="paragraph"><strong class="bold">Contributor(s):</strong> Quentin Devers</p><p class="paragraph">
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.</p><p class="paragraph">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*.</p><p class="paragraph">*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:
</p><ul class="star"><li>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|<img src="/" alt="external link: " title="external link"/><span class="nobr"><a href="http://places.thlib.org/features/637" target="rwikiexternal">http://places.thlib.org/features/637</a></span>]</li>
<li>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.</li></ul><p class="paragraph">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".</p><p class="paragraph">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.</p><p class="paragraph">One wiki about how to import shapes to the postGIS database: [THL Place Dictionary Shapes Importation Manual|<img src="/" alt="external link: " title="external link"/><span class="nobr"><a href="https://collab.itc.virginia.edu/access/wiki/site/c06fa8cf-c49c-4ebc-007f-482de5382105/thl%20place%20dictionary%20shapes%20importation%20manual.html" target="rwikiexternal">https://collab.itc.virginia.edu/access/wiki/site/c06fa8cf-c49c-4ebc-007f-482de5382105/thl%20place%20dictionary%20shapes%20importation%20manual.html</a></span>]</p><p class="paragraph">*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|<img src="/" alt="external link: " title="external link"/><span class="nobr"><a href="http://thlib.org/places/maps/interactive" target="rwikiexternal">http://thlib.org/places/maps/interactive</a></span>] (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.</p><p class="paragraph">One wiki about how to add layers to GeoServer: [Importing SHP Files to PostGIS/Creating GeoServer Feature Types|<img src="/" alt="external link: " title="external link"/><span class="nobr"><a href="https://collab.itc.virginia.edu/access/wiki/site/c06fa8cf-c49c-4ebc-007f-482de5382105/importing%20shp%20files%20to%20postgis-creating%20geoserver%20feature%20types.html" target="rwikiexternal">https://collab.itc.virginia.edu/access/wiki/site/c06fa8cf-c49c-4ebc-007f-482de5382105/importing%20shp%20files%20to%20postgis-creating%20geoserver%20feature%20types.html</a></span>]
</p><h3 class="heading-h2"><a name="Resources" class="anchorpoint"></a>Resources</h3><p class="paragraph">In a general way it's good if you have a look at the different wikis contained in [THL Toolbox > Places & Geography|<img src="/" alt="external link: " title="external link"/><span class="nobr"><a href="https://collab.itc.virginia.edu/access/wiki/site/c06fa8cf-c49c-4ebc-007f-482de5382105/places%20%26%20geography.html" target="rwikiexternal">https://collab.itc.virginia.edu/access/wiki/site/c06fa8cf-c49c-4ebc-007f-482de5382105/places%20%26%20geography.html</a></span>]
</p><h3 class="heading-h2"><a name="LoginsandAuthorizationsYoullNeed" class="anchorpoint"></a>Logins and Authorizations You'll Need</h3><p class="paragraph">To do the job, you'll need to have logins and write/read authorizations to these different systems:
</p><ul class="star"><li>Collab: see with Steve Weinberger</li>
<li>BlueUnix: see with Steve Weinberger</li>
<li>postGIS database: see with Steve Weinberger and with Ron Bentley for a SSH connection</li>
<li>GeoServer: see with Ron Bentley</li>
<li>Place Dictionary: see with David Germano</li></ul><p class="paragraph">
</p><h3 class="heading-h2"><a name="PeopletoWorkWithandGetInfoFrom" class="anchorpoint"></a>People to Work With and Get Info From</h3><ul class="star"><li>Steve Weinberger: for about all the subjects</li>
<li>Andres Montano: for stuff about the Place Dictionary</li>
<li>Ron Bentley: for stuff about the postGIS database, about Geoserver, and about GIS stuff in general</li>
<li>Tom Benner: for stuff about the map cataloguing interface and other GIS interfaces.</li>
<li>David Newman: to have a history of past GIS activities when THL was still THDL</li></ul><p class="paragraph">
</p><h3 class="heading-h2"><a name="Glossary" class="anchorpoint"></a>Glossary</h3><ul class="star"><li>GeoNetwork: this is the system we use for cataloguing maps and datasets. [Editorial interface|<img src="/" alt="external link: " title="external link"/><span class="nobr"><a href="http://sds8.itc.virginia.edu:8080/geonetwork/srv/en" target="rwikiexternal">http://sds8.itc.virginia.edu:8080/geonetwork/srv/en</a></span>] (check with Ron if it is still the correct deployment of it), [Public interface|<img src="/" alt="external link: " title="external link"/><span class="nobr"><a href="http://www.thlib.org/places/maps/collections" target="rwikiexternal">http://www.thlib.org/places/maps/collections</a></span>]</li>
<li>GeoServer: this is the system that serves all the geographical data we have. Ask Ron or Tom for more info about it.</li>
<li>Collab: this is the wiki system of UVA. Ask anyone to have more live explanations about it. [Collab |<img src="/" alt="external link: " title="external link"/><span class="nobr"><a href="http://collab.itc.virginia.edu/portal" target="rwikiexternal">http://collab.itc.virginia.edu/portal</a></span>]</li>
<li>BlueUnix: this is the file storage system for THL. Ask anyone to have more live explanations about it.</li>
<li>Jira: this is the system used to manage workflow in THL. If you're reading this it means you already know about it. [Jira|<img src="/" alt="external link: " title="external link"/><span class="nobr"><a href="http://jira.shanti.virginia.edu/jira/secure" target="rwikiexternal">http://jira.shanti.virginia.edu/jira/secure</a></span>]</li></ul><ul class="star"><li>Place Dictionary: [link|<img src="/" alt="external link: " title="external link"/><span class="nobr"><a href="http://places.thlib.org" target="rwikiexternal">http://places.thlib.org</a></span>]</li>
<li>Interactive Map: [link|<img src="/" alt="external link: " title="external link"/><span class="nobr"><a href="http://thlib.org/places/maps/interactive" target="rwikiexternal">http://thlib.org/places/maps/interactive</a></span>]</li>
<li>Map Catalog: [link|<img src="/" alt="external link: " title="external link"/><span class="nobr"><a href="http://www.thlib.org/places/maps/collections" target="rwikiexternal">http://www.thlib.org/places/maps/collections</a></span>]</li></ul><p class="paragraph">
</p><h3 class="heading-h6"><a name="ProvidedforunrestrictedusebythespanclassnobrimgsrcsakairwikitoolimagesicklearrowgifaltexternallinktitleexternallinkahrefhttpwwwthliborgtargetrwikiexternalTibetanandHimalayanLibraryaspan" class="anchorpoint"></a><em class="italic">Provided for unrestricted use by the <span class="nobr"><img src="/" alt="external link: " title="external link"/><a href="http://www.thlib.org" target="rwikiexternal">Tibetan and Himalayan Library</a></span></em></h3>