Controlling Text Style Orientation
2.2.3 Orienting Text Labels and Markers
You can control the orientation of text labels and markers on a map by using oriented points. The oriented point is a special type of point geometry introduced in Oracle Spatial for Oracle Database 10g Release 1 10.1. In an oriented point, the coordinates represent both the location of the point and a virtual end point, to indicate an orientation vector. The text is aligned or the marker symbol is rotated according to the orientation vector, which is explained in Section 3.2.5 and illustrated in Figure 3–3 in that section. For more information about oriented points, see Oracle Spatial Developers Guide.2.2.3.1 Controlling Text Style Orientation
To orient the text label of a point in the direction of an orientation vector, you can specify the point as an Oracle Spatial oriented point in the map request. When MapViewer labels an oriented point, it automatically centers the text label on the point position, and aligns the label so that it points in the direction of the orientation vector. For each feature to be so labeled, you must specify its location as an oriented point. You can group these oriented points in a single table and create a spatial index on the column containing the point geometries. You can then create a theme based on the table, specifying a desired text style as the labeling, and specifying transparent color style as the rendering style so that the points themselves are not displayed on the map. MapViewer Concepts 2-7 Example 2–4 is a map request that labels a single oriented point with coordinates 12,14, 0.3,0.2, where 12,14 represents the X and Y coordinates of the point and 0.3,0.2 represents the orientation vector. It renders the point using a dynamically defined transparent color style named transparent_color to ensure that the text is displayed but the underlying point is not displayed. Example 2–4 Labeling an Oriented Point map_request title=Labeling Oriented Points datasource=my_datasource width=400 height=300 antialiase=true format=PNG_STREAM themes theme name=theme1 jdbc_query spatial_column=geom jdbc_srid=8265 render_style=transparent_color label_column=label label_style=t.street name datasource=tilsmenv SELECT SDO_GEOMETRY2001, 8265, NULL, SDO_ELEM_INFO_ARRAY1, 1, 1, 3, 1, 0, SDO_ORDINATE_ARRAY12, 14, .3, .2 geom, Oriented Point label FROM dual jdbc_query theme themes styles style name=transparent_color svg width=1in height=1in g class=color style=stroke:ff0000;stroke-opacity:0 rect width=50 height=50 g svg style styles map_request Figure 2–2 shows part of the map generated by the request in Example 2–4 . The label is the phrase Oriented Point. Figure 2–2 Map Display of the Label for an Oriented Point2.2.3.2 Controlling Marker Orientation
Parts
» Oracle Fusion Middleware Online Documentation Library
» Overview of MapViewer Oracle Fusion Middleware Online Documentation Library
» Unpacking the MapViewer EAR Archive Using the MapViewer Administration Page
» Deploying MapViewer in an Oracle Fusion Middleware 10gR3 Environment
» Verifying That the Deployment Was Successful
» Running SQL Scripts Creating MapViewer Array Types, if Necessary
» Specifying Logging Information Configuring MapViewer
» Specifying Map File Storage and Life Cycle Information
» Restricting Administrative Non-Map Requests
» Specifying a Web Proxy Specifying Global Map Configuration Options
» Customizing the Spatial Data Cache Specifying the Security Configuration
» Customizing SRS Mapping Customizing WMS GetCapabilities Responses
» Configuring the Map Tile Server for Oracle Maps Defining Permanent Map Data Sources
» Logging in to the MapViewer Administration Page Performing MapViewer Administrative Tasks
» Creating a Container Oracle RAC Data Source Creating a MapViewer Data Source
» Deploying MapViewer on a Multiprocess OC4J Instance Deploying MapViewer on a Middle-Tier Cluster
» How Secure Map Rendering Works
» Getting the User Name from a Cookie Authenticating Users: Options and Demo
» Getting Started with MapViewer Prerequisite Software for MapViewer MapViewer Demos and Tutorials
» Scaling the Size of a Style Scalable Styles
» Specifying a Label Style for a Bucket
» Controlling Text Style Orientation
» Making a Text Style Sticky Getting a Sample Image of Any Style
» Styling Rules in Predefined Spatial Geometry Themes
» How MapViewer Formulates a SQL Query for a Styling Rule
» Styling Rules with Binding Parameters Applying Multiple Rendering Styles in a Single Styling Rule
» Caching of Predefined Themes
» Prepare the translations. Feature Labels and Internationalization
» Defining a Point JDBC Theme Based on Two Columns
» Storing Complex JDBC Themes in the Database
» Creating Predefined Image Themes
» Using Bitmap Masks with GeoRaster Themes Reprojection of GeoRaster Themes
» Creating Predefined Network Themes
» Using MapViewer for Network Analysis
» Custom Geometry Themes Themes
» Thematic Mapping Using External Attribute Data
» Attributes Affecting Theme Appearance
» Cross-Schema Map Requests Oracle Fusion Middleware Online Documentation Library
» Workspace Manager Support in MapViewer
» Map Request with Center, Base Map, Dynamically Defined Theme, and Other Features
» Map Request with an Image Theme Map Request for Image of Map Legend Only
» Map Request with SRID Different from Data SRID Map Request Using a Pie Chart Theme
» Map Request Using Advanced Styles and Rendering Rules
» Map Request Using Stacked Styles WFS Map Requests
» Java Program Using MapViewer
» map_request Attributes map_request Element
» bounding_themes Element Map Request DTD
» geoFeature Element Map Request DTD
» jdbc_georaster_query Element jdbc_image_query Element
» jdbc_network_query Element jdbc_query Element
» jdbc_topology_query Element legend Element
» map_tile_theme Element north_arrow Element
» operation Element operations Element
» parameter Element scale_bar Element
» style Element styles Element theme Element
» themes Element theme_modifiers Element
» Information Request DTD Map Response DTD
» MapViewer Exception DTD Geometry DTD OGC
» Usage Model for the MapViewer JavaBean-Based API
» Creating the MapViewer Bean Setting Up Parameters of the Current Map Request
» Adding Themes or Features to the Current Map Request
» Adding Dynamically Defined Styles to a Map Request
» Manipulating Themes in the Current Map Request
» Sending a Request to the MapViewer Service
» Using Optimal Methods for Thick Clients
» Preparing to Use the MapViewer JavaBean-Based API Using MapViewer JSP Tags
» addJDBCTheme MapViewer JSP Tag Reference Information
» addPredefinedTheme getMapURL getParam MapViewer JSP Tag Reference Information
» identify MapViewer JSP Tag Reference Information
» importBaseMap init makeLegend MapViewer JSP Tag Reference Information
» run setParam MapViewer JSP Tag Reference Information
» JSP Example Several Tags for MapViewer
» Granting Network Access Creating a MapViewer Client Handle
» Adding a Data Source Administrative
» Removing a Data Source Administrative Redefining a Data Source
» Listing All Data Sources Administrative or General-Purpose
» Installing the SDO_MVCLIENT Package Listing All Maps General-Purpose
» Listing Themes General-Purpose Oracle Fusion Middleware Online Documentation Library
» Listing Styles General-Purpose Listing Styles Used by a Predefined Theme General-Purpose
» Architecture for Oracle Maps Applications Simple Example Using Oracle Maps
» Map Tile Layers How Map Content Is Organized
» Theme-Based FOI Layers User-Defined FOI Layers
» Map Tile Layers and Map Tile Sources Storage of Map Image Tiles Coordinate System for Map Tiles
» Tile Mesh Codes Tiling Rules
» Global Map Tile Server Configuration Map Tile Layer Configuration
» Predefined Theme-Based FOI Layers
» Templated Predefined Themes Dynamic JDBC Query Theme-Based FOI Layers
» Creating One or More Map Tile Layers Defining FOI Metadata
» Creating the Client Application
Show more