Академический Документы
Профессиональный Документы
Культура Документы
ISE OV GE
Thursday 5 January 12
Karel Maesen
Who we are
Used to be a GIS-expert/consultant Works as software architect for Enterprise Systems (Vlaamse Overheid) Works on the intersection of JEE and spatial data technology Committer for Hibernate Spatial, Geolatte
&GEOVISE
Thursday 5 January 12
Agenda
Spatial data for Java programmers Persisting spatial data with Hibernate Spatial Spatial data processing with Geolatte (+ tutorial)
&GEOVISE
Thursday 5 January 12
An Introduction
&GEOVISE
Thursday 5 January 12
&GEOVISE
Thursday 5 January 12
Dening location
&GEOVISE
Thursday 5 January 12
&GEOVISE
Thursday 5 January 12
WGS84
World geodetic datum Used for GPS
Valid locally
Examples
Lambert 72 LAEA 3035 UTM
&GEOVISE
Thursday 5 January 12
Gotchas:
Calculating with geographic coordinates Lat/Long or Long/Lat ? Google Maps -- EPSG:90093
&GEOVISE
Thursday 5 January 12
10
Discrete phenomena, well-dened boundaries Examples: streams, administrative units, roads, land plots A.k.a.: vector data
Coverage
Continuous phenomena Examples: temperature, pollution level A.k.a.: raster data
&GEOVISE
Thursday 5 January 12
11
&GEOVISE
Thursday 5 January 12
12
Geometry
Geometry = coordinate geometry + a coordinate reference system Coordinate geometry = Lists (of lists) of coordinates describing the boundaries of the geometry
&GEOVISE
Thursday 5 January 12
13
&GEOVISE
Thursday 5 January 12
14
&GEOVISE
Thursday 5 January 12
15
&GEOVISE
Thursday 5 January 12
16
&GEOVISE
Thursday 5 January 12
17
Traditional GIS
Historical Background
&GEOVISE
Thursday 5 January 12
18
Historical Background
&GEOVISE
Thursday 5 January 12
19
Historical Background
&GEOVISE
Thursday 5 January 12
20
Subtitle Text
Open Standards
&GEOVISE
Thursday 5 January 12
21
ISO / TC211
Open Standards
[A]ims to establish a structured set of standards for information concerning objects or phenomena that are directly or indirectly associated with a location relative to the Earth.
&GEOVISE
Thursday 5 January 12
22
Open Standards
The Open Geospatial Consortium (OGC) is an international industry consortium of 440 companies, government agencies and universities participating in a consensus process to develop publicly available interface standards. OGC Standards support interoperable solutions that "geoenable" the Web, wireless and location-based services and mainstream IT. The standards empower technology developers to make complex spatial information and services accessible and useful with all kinds of applications.
23
Geometry standards
Open Standards
&GEOVISE
Thursday 5 January 12
24
&GEOVISE
Thursday 5 January 12
Geometry standards
Open Standards
&GEOVISE
Thursday 5 January 12
26
Open Standards
&GEOVISE
Thursday 5 January 12
27
Open Standards
Query
disjoint(), within(), overlaps(), relate(), ...
Analysis
distance(), buffer(), union(), ...
&GEOVISE
Thursday 5 January 12
28
Open Standards
&GEOVISE
Thursday 5 January 12
29
(x4,y4,m=3.2)
(x2,y2,m=2.1)
&GEOVISE
Thursday 5 January 12
30
Open Standards
All types and methods prexed with ST_ Also denes advanced structures: Topologies, Networks
&GEOVISE
Thursday 5 January 12
31
GeoAPI
Open Standards
http://www.geoapi.org/
&GEOVISE
Thursday 5 January 12
32
Open Standards
WKB: Well-known Binary Representations for Geometry ! WKT/WKB do not contain SRID, Z- or M-coordinates ! Several Extended variants
Postgis EWKT/EWKB, Sql Server
&GEOVISE
Thursday 5 January 12
33
Open Standards
&GEOVISE
Thursday 5 January 12
34
Open Standards
Open industry standard Same scope as SFA/SFS Widely used, supported by most systems
&GEOVISE
Thursday 5 January 12
35
Open Standards
&GEOVISE
Thursday 5 January 12
36
MySQL
Partially compliant with SFS Spatial relations based on bounding box ! (incorrect) Read the documentation!!
&GEOVISE
Thursday 5 January 12
37
Oracle 11g
Adds ST_GEOMETRY type
SQL/MM compliant Interoperable with SDOGEOMTRY
&GEOVISE
Thursday 5 January 12
38
IBM Informix
Excellent SFS-compliant implementation Storage format not publicly documented
&GEOVISE
Thursday 5 January 12
39
SFS was intended for planar 2D geometries (projected map coordinates) What about geodetic data such as WGS84?
Geography
Like a geometry, but assumes geodetic coordinates ST_Length(), ST_Area(), ST_Distance() return meters Available in Postgis (WGS84 only) and SQL Server
&GEOVISE
Thursday 5 January 12
40
Many computational geometry algorithms Good quality, simple to use, very stable GEOS: port to C, used in Postgis
http://tsusiatsoftware.net/
&GEOVISE
Thursday 5 January 12
41
Fully interoperable with JTS & versions of GeoAPI Large (sprawling) set of libraries Code of variable quality
http://www.geotools.org/
&GEOVISE
Thursday 5 January 12
42
GeoTools fork Implements parts of GeoAPI Started as clean up and harmonization of GeoTools
http://www.geotoolkit.org
&GEOVISE
Thursday 5 January 12
43
Spatial data analysis library 300+ algorithms for vecor- and raster-data Interoperable with JTS
http://sextante.forge.osor.eu/
&GEOVISE
Thursday 5 January 12
44
WMS, WFS,WCS
GeoServer
Deegree
Supports WMS, WFS, WCS, WPS Smaller community
45
http://www.openlayers.org/ GeoMajas
Integrated application framework (back- & front-end) Uses GWT for client UI
http://www.geomajas.org/ &GEOVISE
Thursday 5 January 12
46
http://leaet.cloudmade.com/
&GEOVISE
Thursday 5 January 12
47
F/OSS Community
OSGeo was created to support the collaborative development of open source geospatial software, and promote its widespread use
Projects: GeoTools, GeoServer, .... FOSS4G: global conference focused on F/OSS for Geospatial
http://www.osgeo.org/
&GEOVISE
Thursday 5 January 12
48
Open data
Global dataset (roads, admin. boundaries, rivers, ...) Community-created Creative Commons Attribution-ShareAlike 2.0 license Variable quality
http://www.openstreetmap.org/
&GEOVISE
Thursday 5 January 12
49
Hibernate Spatial
GeometryUserType for JTS Geometry SpatialRestrictions API HQL Spatial Functions Marshalling/unmarshalling to DB-specic formats Service Provider Interface for SpatialDialectProviders
&GEOVISE
Thursday 5 January 12
50
Subtitle Text
Hibernate Spatial
Demo
&GEOVISE
Thursday 5 January 12
51
Supported Databases
Hibernate Spatial
Oracle Spatial (SDOGEOMETRY) Postgresql/Postgis MySQL Microsoft SQL Server 2008 GeoDB (H2)
&GEOVISE
Thursday 5 January 12
52
Status HS 1.1.x
Hibernate Spatial
HS 4
Module of Hibernate Core (4.1 probably) JTS and Geolatte-geom
&GEOVISE
Thursday 5 January 12
53