Annotation and feature styling

20 Copyright © 2006. Open Geospatial Consortium, Inc. All Rights Reserved. -- Style overlays point star symbol on annotates property value -- gml:Style gml:featureStyle gml:FeatureStyle featureType = PointOfInterest queryGrammar = xpath gml:geometryStyle gml:GeometryStyle geometryProperty = annotates geometryType = gml:Point gml:symbol symbolType = svg xlink:href = http:symbology.comstars.svgStar01 gml:GeometryStyle gml:geometryStyle gml:FeatureStyle gml:featureStyle gml:Style gml:defaultStyle pointer gml:LineString gml:id = L001 gml:pos 12 34 gml:pos gml:pos 45 36 gml:pos gml:pos 78 34 gml:pos gml:LineString pointer content Label gml:defaultStyle -- Style creates text label -- gml:Style gml:featureStyle gml:FeatureStyle featureType = Label queryGrammar = xpath gml:labelStyle gml:LabelStyle gml:style font-family:Verdana;font- size:18 gml:style gml:label gml:LabelExpression .xima:textContent gml:LabelExpression gml:label gml:LabelStyle gml:labelStyle gml:FeatureStyle gml:featureStyle gml:Style gml:defaultStyle xima:textContent My House xima:textContent xima:anchorPoint gml:Point gml:id = Pt001 srsName = crs.gml1234 gml:pos 0 10 gml:pos gml:Point xima:anchorPoint Label content annotates gml:Point gml:id = Pt001 srsName = crs.gml1234 gml:pos 30 30 gml:pos gml:Point annotates Copyright © 2006. Open Geospatial Consortium, Inc. All Rights Reserved. 21 PointOfInterest In the following example encoding an Image annotation entity is used: PointOfInterest gml:id = POI002 gml:defaultStyle -- Style overlays blue line symbol on top of Annotationpointer value -- gml:Style gml:featureStyle gml:FeatureStyle featureType = PointOfInterest queryGrammar = xpath gml:geometryStyle gml:GeometryStyle geometryProperty = pointer geometryType = gml:LineString gml:symbol symbolType = svg svg style = stroke:blue;stroke-width:5 gml:symbol gml:GeometryStyle gml:geometryStyle gml:FeatureStyle gml:featureStyle gml:Style gml:defaultStyle gml:defaultStyle -- Style overlays point star symbol on annotates property value -- gml:Style gml:featureStyle gml:FeatureStyle featureType = PointOfInterest queryGrammar = xpath gml:geometryStyle gml:GeometryStyle geometryProperty = annotates geometryType = gml:Point gml:symbol symbolType = svg xlink:href = http:symbology.comstars.svgStar01 gml:GeometryStyle gml:geometryStyle gml:FeatureStyle gml:featureStyle gml:Style gml:defaultStyle pointer gml:LineString gml:id = L001 gml:pos 12 34 gml:pos gml:pos 45 36 gml:pos gml:pos 78 34 gml:pos gml:LineString pointer content Image gml:defaultStyle -- Style places image file inside boundary Envelope -- gml:Style gml:featureStyle gml:FeatureStyle featureType = Image queryGrammar = xpath gml:geometryStyle 22 Copyright © 2006. Open Geospatial Consortium, Inc. All Rights Reserved. gml:GeometryStyle geometryProperty = xima:boundary geometryType = gml:Envelope gml:style stroke:maroon;stroke- width:5 gml:style gml:GeometryStyle gml:geometryStyle gml:geometryStyle gml:GeometryStyle geometryProperty = xima:boundary geometryType = gml:Envelope gml:symbol symbolType = other xlink:href = filecBuildingPhoto.jpg gml:GeometryStyle gml:geometryStyle gml:FeatureStyle gml:featureStyle gml:Style gml:defaultStyle xima:fileURI filecBuildingPhoto.jpg xima:fileURI xima:boundary gml:Envelope gml:lowerCorner 1 1 gml:lowerCorner gml:upperCorner 20 20 gml:upperCorner gml:Envelope xima:boundary Image content annotates gml:Point gml:id = Pt001 srsName = crs.gml1234 gml:pos 30 30 gml:pos gml:Point annotates PointOfInterest

7.7 Coordinate reference systems

References to Coordinate Reference Systems CRS may take one of the following forms: • Reference to an authority and authority maintained code • Reference to CRS definition In those cases where a CRS is identified by reference to an authority and code, it SHALL be identified by URN as per OGC document 05-010 URNs of Definitions in OGC Namespace. CRS definitions may be optionally included as dictionary entries in an XML box see Clause 8. within the JPEG 2000 file. These SHALL be encoded in GML as per OGC document 05- 011 Recommended XMLGML 3.1.1 Encoding of Common CRS definitions and may depend on additional CRS application schemas.

7.8 Units of

measure References to Units of Measure UOM may take one of the following forms: • Reference to an authority and authority maintained code Copyright © 2006. Open Geospatial Consortium, Inc. All Rights Reserved. 23 • Reference to UOM definition In those cases where a UOM is identified by reference to an authority and code, it SHALL be identified by URN as per OGC document 05-010 URNs of Definitions in OGC Namespace. Units of Measure definitions may be optionally included as dictionary entries in an XML box see Clause 8. within the JPEG 2000 file. These shall be encoded in GML and may depend on additional UOM application schemas. 8 Packaging GML in JPEG 2000

8.1 Introduction

This clause describes the mechanisms for packaging GML instance data and GML application schemas inside JPEG 2000 data files. It also provides rules for encoding references between GML instances and GML application schemas, and between GML instances. Finally it provides the rules for associating GML coverage descriptions see Clause 6.1 and 7.1 and JPEG 2000 codestreams. JPEG 2000 Part I defines several box types, including an “xml” box, for storing data associated with codestreams. JPEG 2000 Part II defines several additional box types, including a “label” box and an “association” box. This specification makes use of these three box types in order to store and reference GML data in the JPEG 2000 file. All GML instance, schema, and dictionary data is stored in XML boxes. In order to allow references between these XML boxes, each XML box is associated with a label inside of an association box. This label serves as an identifier by which the XML data can be referenced. Because JPEG 2000 Part I does not include either the label or association boxes, essential requirements for addressing XML boxes, all GMLJP2 files SHALL implement the JPX file format as defined in the JPEG 2000 Part II ISOIEC 15444-2:2004, JPEG 2000 image coding system: Extensions specification, to the extent required to support those box types. Additionally it is recommended that GMLJP2 files are written as JP2 compatible by including the string “jp2” within the compatibility list of the File Type box see ISOIEC 15444-1 Annex I. It is recommended that, according to ISOIEC JTC 1SC 29WG1 N2887; clause 3.2 - signaling, the presence of GML data in a JPX file should be signaled using the Reader Requirements box defined in ISOIEC 15444-2 Annex M with a value of 67 meaning that the file contains GML data based on the OGC standard.

8.2 Single codestream

case A single JPEG 2000 codestream is used to represent a single geographic image. The GML data instance data, schemas associated within this codestream is contained in an association box as shown in Figure 4.