I n t e r o p e r a b i l i t a GML Geography Markup Language Rozšířená verze Jan Růžička, jan.ruzicka@vsb.cz Připraveno pro seminá ř v rámci konference GIS Ostrava 2007, 28.1.2007
G M L Ú č e l Jazyk pro modelování, přenos a ukládání prostorových dat včetně jejich prostorových a neprostorových vlastností Vytvořen pomocí jazyka XML Specifikace je definovaná XML schématy GML soubor=xml (textový) soubor Současná verze 3.1 = ISO CD 19136 = Draft
G M L S c h é m a t a GML v.2 tvoří 3 základní schémata: Geometry.xsd definuje geometrickou složku geoprvků Feature.xsd definuje hlavní model prvekvlastnost. Rámec pro vytváření prvků Xlink.xsd definuje funkce pro odkazování GML v.3 rozšířeno o dalších 25 schémat Kompatibilní s GML v.2
G M L X L i n k XLink je integrován do GML Použito pro implementaci asociací mezi objekty pomocí referencí (odkazů) GML prvky v sobě mohou obsahovat atributy pro používání odkazů href=uri komponenta určující cíl asociace (id zdroje)
G M L D a t o v é t y p y Definuje je a rozšiřuje NullType (unknown,missing, ), Null element (<element name= Null type= gml:nulltype />) booleanornull (obsahuje hodnotu boolean nebo nulovou), stringornull, integerornull, NameOrNull, doubleornull booleanlist, doublelist, integerlist(1,2,3), NameList
X S D N u l l T y p e <simpletype name="nullenumeration"> <restriction base="string"> <enumeration value="inapplicable"/> <enumeration value="missing"/> <enumeration value="template"/> <enumeration value="unknown"/> <enumeration value="withheld"/> </restriction> </simpletype>
G M L D a t o v é t y p y SignType (+, ) CodeType (odkaz na číselník) MeasureType(=měřítko) (<abc:height uom = #m >50</abc:height>) CoordinatesType (definuje zápis souřadnic x,y )
G M L H i e r a r c h i e
G M L F e a t u r e s c h e m a Definuje rámec pro vytváření prvků a kolekcí prvků Všechny prvky (features) jsou odvozeny ze základní třídy AbstractFeatureType AbstractFeatureType (_Feature): Definuje vlastnosti: boundedby(vymezení území čtvercem a časem), location, time Dědí z třídy AbstractGMLType (_GML): metadataproperty, description, name, id
G M L F e a t u r e Vlastnosti (Properties) Geometry (definováno v Geometry schema) Topology Temporal
G M L F e a t u r e c o l l e c t i o n s Skupiny (sady) geoprvků Prostorový referenční systém (Coordionate reference system)
G M L G e o m e t r y s c h e m a Definuje rámec pro definování geometrických prvků Všechny prvky (geometries) jsou odvozeny ze základní třídy AbstractGeometryType (_Geometry) ISO 19107 Spatial Schema
G M L G e o m e t r y s c h e m a geometrybasic0d1d.xsd geometrybasic2d.xsd
G M L C o o r d i n a t e s gml:coordtype, gml:coord Deprecated by 3.0 <complextype name="coordtype"> <sequence> <element name="x" type="decimal" /> <element name="y" type="decimal" minoccurs="0" /> <element name="z" type="decimal" minoccurs="0" /> </sequence> </complextype> <element name="coord" type="gml:coordtype" />
G M L C o o r d i n a t e s gml:directpositiontype, gml:pos <complextype name="directpositiontype"> <simplecontent> <extension base="gml:doublelist"> <attributegroup ref="gml:srsreferencegroup"/> </extension> </simplecontent> </complextype> <element name="pos" type="gml:directpositiontype" />
G M L V e c t o r gml:vectortype, gml:vector <complextype name="vectortype"> <simplecontent> <restriction base="gml:directpositiontype"/> </simplecontent> </complextype> <element name="vector" type="gml:vectortype" />
G M L E n v e l o p e gml:envelopetype, gml:envelope <complextype name="envelopetype"> <choice> <sequence> <element name="lowercorner" type="gml:directpositiontype"/> <element name="uppercorner" type="gml:directpositiontype"/> </sequence> <element ref="gml:coord" minoccurs="2" maxoccurs="2"/> <element ref="gml:pos" minoccurs="2" maxoccurs="2"/> <element ref="gml:coordinates"/> </choice> <attributegroup ref="gml:srsreferencegroup"/> </complextype>
G M L G e o m e t r y t y p e s Primitives Complex Composite Agregate MultiPrimitive
G M L P r i m i t i v e s Point Curve Surface
G M L P r i m i t i v e s - b a s i c Simple Geometric Primitives (0 and 1 dimensional) Simple Geometric Primitives (2 dimensional)
G M L S i m p l e G e o m e t r i c P r i m i t i v e s ( 0 d, 1 d ) gml:abstractgeometricprimitivetype, gml:_geometricprimitive ) gml:pointtype, gml:point gml:pointpropertytype, gml:pointproperty gml:pointarraypropertytype, gml:pointarrayproperty
G M L S i m p l e G e o m e t r i c P r i m i t i v e s ( 0 d, 1 d ) gml:abstractcurvetype, gml:_curve pouze abstraktní gml:linestringtype, gml:linestring
G M L S i m p l e G e o m e t r i c P r i m i t i v e s ( 2 d ) gml:abstractsurfacetype, gml:_surface pouze abstraktní gml:polygontype, gml:polygon gml:exterior, gml:interior, gml:outerboundaryis, gml:innerboundaryis
G M L S i m p l e G e o m e t r i c P r i m i t i v e s ( 2 d ) gml:abstractringtype, gml:_ring pouze abstraktní gml:linearringtype, gml:linearring
G M L D a l š í G e o m e t r i c P r i m i t i v e s ( 1 d ) Obloluk gml:arcstringtype, gml:arcstring, gml:arctype, gml:arc Kružnice gml:circletype, gml:circle Spline gml:cubicsplinetype, gml:cubicspline, gml:bsplinetype, gml:bspline Bezier gml:beziertype, gml:bezier
G M L D a l š í G e o m e t r i c P r i m i t i v e s ( 1 d ) Transformační matice gml:affineplacementtype, gml:affineplacement Clothoid gml:clothoidtype, gml:clothoid...
G M L D a l š í G e o m e t r i c P r i m i t i v e s ( 2 d ) Obdélník Trojúhleník, TIN Point Grid Parametric surfeces Cone, Sphere, Cylinder...
G M L D a l š í G e o m e t r i c P r i m i t i v e s ( 3 d ) Skládáním 2d (2.5d) ploch
G M L A g r e g a c e, K o m p o z i c e Skládání Kompozice gml:compositecurvetype, gml:compositesurfacetype,... Sdružování Agregace gml:multigeometrytype
G M L C o o r d i n a t e r e f e r e n c e s c h e m a referencesystems.xsd coordinatereferencesystems.xsd datums.xsd coordinatesystems.xsd coordinateoperations.xsd dataquality.xsd Založeno na ISO 19111
G M L T y p y s y s t é m ů Geocentric Temporal Engineering Image Derived Geographic Projected Vertical
G M L C R S - J a k o s t d a t dataquality.xsd ISO 19115, ISO 19114
G M L T o p o l o g i e ISO 19107 gml:nodetype Uzel gml:edgetype Hrana gml:facetype Plocha...
G M L Č a s a d y n a m i k a ISO 19108:2002, ISO 8601, ISO 11404 Čas pro geometrii, čas pro topologii, referenční systém Pro atributy i geoprvky
G M L Č a s a d y n a m i k a gml:relatedtimetype relativní čas před, po, během, Topologie vazby v časové ose
G M L Č a s a d y n a m i k a
G M L Č a s a d y n a m i k a <gml:track> <gml:movingobjectstatus> <gml:validtime><gml:timeinstant> <gml:timeposition>2005-11- 28T13:00:00</gml:timePosition> </gml:timeinstant></gml:validtime> <gml:location><gml:point> <gml:pos>140. -35.</gml:pos> </gml:point></gml:location> <gml:speed uom="#kph">12.</gml:speed> <gml:bearing> <gml:compasspoint>se</gml:compasspoint> </gml:bearing> </gml:movingobjectstatus>
G M L Č a s a d y n a m i k a <gml:movingobjectstatus> <gml:validtime><gml:timeinstant> <gml:timeposition>2005-11- 28T14:00:00</gml:timePosition> </gml:timeinstant></gml:validtime> <gml:location><gml:point> <gml:pos>140.1-34.9</gml:pos> </gml:point></gml:location> <gml:speed uom="#kph">23.</gml:speed> <gml:bearing> <gml:compasspoint>ese</gml:compasspoint> </gml:bearing> </gml:movingobjectstatus> </gml:track>
G M L D e f i n i c e a s l o v n í k y Možno přenášet seznamy definic i celé slovníky např. doplňující prostorovou informaci
G M L J e d n o t k y, m ě ř h o d n o t y e n í a units.xsd declares a set of components for defining units of measure measures.xsd declares a set of typed measures valueobjects.xsd describes structures for aggregates and lists of measures
G M L S m ě r Direction schema Určení směrů pro různé objekt, např. pohybující se objekt, směr větru, apod. gml:compasspoint <gml:direction> <gml:directionstring>towards the lighthouse</gml:directionstring> </gml:direction>...
G M L P o z o r o v á n í Observations schema Určení místa a směru pozorvání a dalších doprovodných údajů gml:using gml:target gml:resultof
G M L C o v e r a g e s ISO 19123 Coverages support mapping from a spatiotemporal domain to attribute values where attribute types are common to all geographic positions within the spatiotemporal domain. A spatiotemporal domain consists of a collection of direct positions in a coordinate space. Examples of coverages include rasters, triangulated irregular networks, point coverages, and polygon coverages. Coverages are the prevailing data structures in a number of application areas, such as remote sensing, meteorology, and bathymetric, elevation, soil, and vegetation mapping
G M L C o v e r a g e s coverage.xsd grids.xsd MultiPointCoverage MultiCurveCoverage MultiSurfaceCoverage MultiSolidCoverage Gridded Coverage (discrete point coverage) Rectified Grid Coverage (discrete point coverage)
G M L D e f a u l t s t y l i n g defaultstyle.xsd SMIL
G M L D e f a u l t s t y l i n g
G M L D e f a u l t s t y l i n g animation SMIL
G M L M o d u l a r i z a c e Import jen částí např. GML 2 pouze feature.xsd
G M L P r o f i l y Mechanismy jak vytvářet vlastní profily
G M L T e s t o v á n í Návod k testování normative
P o u ž i t é z d r o j e OGIS. GML 2.0 OGIS. GML 3.0 OGIS/ISO. GML 3.1 Duchoslav T. Geography Markup Language 3.0