Map Request Using Stacked Styles WFS Map Requests

3-14 Oracle Fusion Middleware Users Guide for Oracle MapViewer RangedBucket seq=2 label=3711390.5 - 5516977.25 low=3711390.5 high=5516977.25 RangedBucket seq=3 label=5516977.25 - 7322564 low=5516977.25 high=7322565 Buckets VariableMarkerStyle AdvancedStyle style style name=EQRBRANK AdvancedStyle BucketStyle Buckets low=1 high=196 nbuckets=4 styles=C.RED,C.RB13_1,C.RB13_ 6,C.SEQ6_01 BucketStyle AdvancedStyle style styles legend bgstyle=fill:ffffff;fill-opacity:50;stroke:ff0000 profile=SMALL position=SOUTH_EAST column entry text=Map Legend is_title=true entry text=POP90: entry style=POPVMK tab=1 entry text=RANK90: entry style=EQRBRANK tab=1 column legend map_request

3.1.13 Map Request Using Stacked Styles

Example 3–14 requests a map using the rendering element, and it defines multiple styles C.COUNTIES and PIECHART1 to be applied on each theme feature. Example 3–14 Map Request Using Stacked Styles ?xml version=1.0 standalone=yes? map_request title=Theme with Stacked Styles datasource=mvdemo width=600 height=450 bgcolor=a6caf0 antialiase=true format=PNG_STREAM center size=18 geoFeature geometricProperty typeName=center Point coordinates-122.729,40.423coordinates Point geometricProperty geoFeature center themes theme name=STACKEDSTYLES jdbc_query MapViewer Map Request XML API 3-15 label_column=state spatial_column=geom label_style=T.STATE NAME jdbc_srid=8265 datasource=mvdemo asis=falseselect geom,state,HHI0_10,HHI10_15,HHI100UP,HHI15_25,HHI25_ 35 from states jdbc_query rendering style name=C.COUNTIES style name=PIECHART1 value_columns=HHI0_10,HHI10_15,HHI100UP,HHI15_ 25,HHI25_35 rendering theme themes styles style name=piechart1 AdvancedStyle PieChartStyle pieradius=10 PieSlice name=A color=FFFF00 PieSlice name=B color=000000 PieSlice name=H color=FF00FF PieSlice name=I color=0000FF PieSlice name=W color=FFFFFF PieChartStyle AdvancedStyle style styles map_request

3.1.14 WFS Map Requests

This section contains examples of WFS map requests, one using a predefined theme and one using a dynamic theme. Example 3–15 requests a map using a predefined WFS theme named BC_ MUNICIPALITY, which is defined as follows: INSERT INTO user_sdo_themes VALUES BC_MUNICIPALITY, WFS theme, BC_MUNICIPALITY, THE_GEOM, ?xml version=1.0 standalone=yes? styling_rules theme_type=wfs service_ url=http:www.refractions.net:8080geoserverwfsGetCapabilities? srs=EPSG:3005 rule features style=C.BLUE features label column=name style=T.CITY NAME 1 label rule styling_rules; Example 3–15 shows a map request that renders this predefined WFS theme. Example 3–15 Map Request Using Predefined WFS Theme ?xml version=1.0 standalone=yes? map_request 3-16 Oracle Fusion Middleware Users Guide for Oracle MapViewer title=Predefined WFS MAP datasource = mvdemo width=640 height=480 bgcolor=a6cae0 antialiase=true format=PNG_STREAM center size=76000 geoFeature geometricProperty typeName=center Point coordinates1260500,470000coordinates Point geometricProperty geoFeature center themes theme name=bc_municipality themes map_request Example 3–16 shows a map request that uses a dynamic WFS theme. Example 3–16 Map Request Using Dynamic WFS Theme ?xml version=1.0 standalone=yes? map_request title=WFS MAP datasource = mvdemo width=640 height=480 bgcolor=a6cae0 antialiase=true format=PNG_STREAM center size=76000 geoFeature geometricProperty typeName=center Point coordinates1260500,470000coordinates Point geometricProperty geoFeature center themes theme name=wfs wfs_feature_request service_ url=http:www.refractions.net:8080geoserverwfsGetCapabilities? srs=EPSG:3005 feature_name=bc_hospitals spatial_column=the_geom render_style=M.STAR label_column=name label_style=T.CITY NAME datasource=mvdemo MapViewer Map Request XML API 3-17 theme themes map_request Example 3–17 shows a map request for a dynamic WFS theme with an advanced style to render features. Example 3–17 Map Request Using Dynamic WFS Theme with an Advanced Style ?xml version=1.0 standalone=yes? map_request title=WFS Theme with Advanced Style datasource = mvdemo width=640 height=480 bgcolor=a6cae0 antialiase=true format=PNG_STREAM center size=10. geoFeature geometricProperty typeName=center Point coordinates-70., 44.coordinates Point geometricProperty geoFeature center themes theme name=wfs wfs_feature_request service_url=http:199.29.1.81:8181miwfsGetFeature.ashx? srs=EPSG:4326 feature_name=usa spatial_column=obj render_style=CBSTATES label_column=STATE_NAME label_style=T.CITY NAME feature_attributes=state datasource=mvdemo theme themes styles style name=CBSTATES AdvancedStyle BucketStyle Buckets default_style=C.COUNTIES CollectionBucket seq=0 type=string style=C.RB13_ 13MACollectionBucket CollectionBucket seq=1 type=string style=C.RB13_ 1NHCollectionBucket CollectionBucket seq=2 type=string style=C.RB13_ 7MECollectionBucket Buckets BucketStyle AdvancedStyle style styles 3-18 Oracle Fusion Middleware Users Guide for Oracle MapViewer map_request

3.1.15 Java Program Using MapViewer