![]() |
Shapefile Display & Query via the Internet |
Well, the age of java has dawned on the UCT GIS web pages at last. This is both good, and bad. On the good side, I get to fool around with java and you get to display and even query some of the datasets available at the UCT GIS facility. On the bad side, I get to shoot myself in the foot with java, the Infernal Java Machine gets to shoot both of us in the CPU repeatedly, and you can't export the displays to get your own subsets of the data on view. Unless you use a screen capture. In which case its a picture, not geospatial data anymore. If you are unclear what the difference is, click over to ESRI's web page for their 'What is a GIS' special.
I found the unspeakably cool JShape java applet by following a posting
on comp.infosystem.gis
by Shiuh-Lin Lee. The home page
of the author, and thus JShape is
http://shiuhlin.ml.org.
Warning
Hey, its java we're getting into, so a few 'caveat browser's are called for:
JShape Help & Tips
Well, I could have made this a link that spawned a new copy of your browser, but felt it should be up to you to do that. Besides, both copies will probably stop responding when the java machine blows up on you :). The text below is copied directly from the Jshape 1.0 text file, and Copyright 1997 by Shiuh-Lin Lee.
| JShape action buttons
There are several action buttons in JShape panel allows users
to manipulate
1. [Normal] : Do Nothing, clear [ZoomIn], [Pan] and [Identify] modes. 2. [UnZoom] : Display the map in the full extent view. 3. [ZoomIn] : Zoom in the map. 4. [ZoomOut] : Zoom out the map. 5. [Pan] : Pan the map. 6. [Identify] : Identify the attribute information on the current
focused
7. [Clear] : Clear the selected features and the status window buffer. 8. [Execute] : Execute the online command entered in the command
window.
9. [Query] : Query the attribute information on the current focused
layer
|
JShape online commands
Users can enter the online command in JShape command window,
and then press
1. help : Help command. 2. count : Report the number of features on the current focused layer. 3. extent : Report the map extent information. 4. fcolor= : Change the foreground color of the features on the
current
5. bcolor= : Change the background color of the features on the
current
6. size= : Change the symbol size of the features on the current
focused
7. scolor= : Change the selection color of the features on the
current
For Example : On a road layer, users can do the following things : (a) [Execute] : scolor=red
|
Right, enough of the whingeing and fine print. This is a pretty
darn cool applet for something that is free, and so, without further ado,
use the following links to see some of our data online:
|
|
Simple, fastest to load, no real useful attribute (its a coastline, what do you expect?) |
|
|
You can also use the 'Query' and 'Identify' widgets to select/display province names. |
|
|
Umm. Of some farming territory somewhere. Extreme caution advised - its a whacking great 650 Kb jpg image in use here. |
|
|
Pretty darn impressive. Also likely to take a while to load. Beware. |