Geographical data

advertisement
Visualisation: Geography
Dr Andy Evans
Geographical data
KML
Free mapping services
GeoTools
Cartograms
Geographical data
Keyhole Markup Language (KML)
http://www.opengeospatial.org/standards/kml/
https://developers.google.com/kml/documentation/
Google
KML can be combined with GoogleMaps.
Can be used to overlay information on GoogleEarth.
Test suite:
https://kmlsamples.googlecode.com/svn/trunk/interactive/index.html
GoogleMaps can also pull in GeoRSS streams.
KML
OGS specification.
At simplest, a little like the XML we looked at last lecture:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Placemark>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates>
10,10,1
10,20,1
20,20,1
20,10,1
10,10,1
</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</Placemark>
</Document>
</kml>
Other free mapping services
Google WebGL Globe
http://www.chromeexperiments.com
/globe
PhiloGL
http://www.senchalabs.org/
philogl/
GeoTools (Leeds et al.):
http://geotools.org/
Geographical data
Features
Mapping
Includes simple Swing components for showing maps.
GML/XML conversion
Web service setup
Interaction with databases
Shapefile read and write
Graph and Network tools
Spatial queries
Data formats
Raster formats and data access:
arcsde, arcgrid, geotiff, grassraster, gtopo30, image (JPEG, TIFF, GIF,
PNG), imageio-ext-gdal, imagemoasaic, imagepyramid, JP2K,
matlab
Database jdbc support:
db2, h2, mysql, oracle, postgis, spatialite, sqlserver
Vector formats and data access:
app-schema, arcsde, csv, dxf, edigeo, excel, geojson, org, property,
shapefile, wfs
XML Bindings:
Java data structures and bindings provided for the following: xsdcore (xml simple types), fes, filter, gml2, gml3, kml, ows, sld, wcs,
wfs, wms, wps, vpf.
Additional Geometry, Filter and Style parser/encoders available for
DOM and SAX applications.
Example
FileDataStore store =
FileDataStoreFinder.getDataStore(file);
SimpleFeatureSource featureSource =
store.getFeatureSource();
MapContent map = new MapContent();
map.setTitle("Quickstart");
Style style =
SLD.createSimpleStyle(featureSource.getSchema());
Layer layer = new FeatureLayer(featureSource, style);
map.addLayer(layer);
JMapFrame.showMap(map);
GML
http://docs.geotools.org/latest/userguide/library/xml/geometry.html
http://docs.geotools.org/latest/userguide/library/xml/faq.html
See org.geotools.gml in docs
Also parses/produces KML.
Cartograms
WorldMapper (Sheffield Geography):
http://www.worldmapper.org/about.
html
Cartogram Geoprocessing Tool (Tom
Gross):
http://arcscripts.esri.com/details.asp?
dbid=15638
Cartograms
ScapeToad (Java: Chôros Laboratory)
http://scapetoad.choros.ch/
Takes in shapefiles; exports shapefiles or SVG.
You can download the src here:
http://sourceforge.net/projects/scapetoad/files/scapetoad/
ScapeToad%201.1/
Nothing to stop you using it in other GNU General Public
License, version 2, code.
Download