[Geoserver-devel] SLD InlineFeature now available

You can now do InlineFeature SLD requests using the Geoserver WMS.

Here's an example -- see attached picture and the GetMap request.

NOTE: all the data required to render this picture is in the sld - no
need to do any server configuration!

dave
ps. I'll be commiting this tomorrow when I've had a bit more time to
test and write a wiki for it.

----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/

(attachments)


smile.xml (9.75 KB)

Great picture !

ps. I'll be commiting this tomorrow when I've had a bit more time to
test and write a wiki for it.

Can we make you request validate by sticking with predefined FeatureTypes? Or sticking with feature types defined by the GeoServer instance?
(Does geoserver validate requests?)

<?xml version="1.0" encoding="UTF-8"?>
<ogc:GetMap xmlns:ogc="http://www.opengis.net/ows&quot; xmlns:gml="http://www.opengis.net/gml&quot; version="1.2.0" service="WMS">

<StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld&quot; xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns:xlink="http://www.w3.org/1999/xlink&quot;
xmlns:dave="http://blasby.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;

<UserLayer> <Name>Inline</Name>
    <InlineFeature>
<FeatureCollection>

<featureMember>
<polygonPropertyType>
<polygonProperty>
    <gml:Polygon>
<gml:outerBoundaryIs>
   <gml:LinearRing>
      <gml:coordinates>495.9999999999998,273.3594080338264 492.15705608064593,241.4824078677112 480.77590650225716,210.8845130818885 462.2939224605089,184.10625940653523 437.4213562373094,160.92788867182315 407.1140466039203,141.27925940310985 372.5366864730178,126.34853780940206 335.0180644032256,117.02109090097886 295.9999999999999,113.65536723163844 256.98193559677435,116.38070967447396 219.46331352698206,125.0923848477969 184.88595339607954,139.45560796026018 154.57864376269038,158.91840840264018 129.7060775394908,183.60202428710534 111.22409349774247,211.9128983252749 99.84294391935367,242.51182578242938 95.99999999999977,274.22290703646655 99.84294391935367,305.8275030185729 111.22409349774243,336.1110668292178 129.70607753949076,363.90981809437636 154.57864376269032,388.15546639264795 184.88595339607943,407.9162650570461 219.46331352698195,422.43281767688154 256.9819355967743,431.14726127595054 295.99999999999994,433.7247046738572 335.01806440322565,430.0660981662668 372.53668647301805,420.31203994949595 407.11404660392054,404.85512650301644 437.42135623730945,385.0807383079586 462.29392246050907,361.59106087482365 480.7759065022573,334.59026834900715 492.15705608064604,304.7980851038538 495.9999999999998,273.3594080338264</gml:coordinates>
   </gml:LinearRing>
  </gml:outerBoundaryIs>
     </gml:Polygon>
</polygonProperty>
</polygonPropertyType>
</featureMember>

<featureMember>
<BodyPart>
<Type>Eye</Type>
<polygonProperty>
    <gml:Polygon>
<gml:outerBoundaryIs>
   <gml:LinearRing>
      <gml:coordinates>258.9026179573446,345.5298787358037 258.15160020708265,340.87847009644474 255.89257794148665,336.46175972945855 252.21236411934922,332.4494793373287 247.25238729396733,328.9958186054119 241.2032565931534,326.2334997788005 234.29743671734818,324.2686772208749 226.80031445155032,323.17685796065103 219,323 211.1927561618295,323.11720310182625 203.68176400954502,324.08961697083316 196.75566675934604,325.8798722873709 190.6806304443575,328.4191705436116 185.69011530324488,331.6099279316227 181.97871487984867,335.83378488057826 179.68640833729688,340.45339828854776 178.90063041961827,345.1733189004622 179.65157813151987,349.8121628141678 181.91039297356954,354.1916618595544 185.5902699581454,358.1435143443593 190.54979347642887,361.5158527938156 196.5983718209452,364.1790801325401 203.5035615179965,366.0308500274606 211.00000000000003,366.99999999999994 218.80361288064512,367.76858878387065 226.61075475967777,367.63309444010645 234.12176715453285,366.66431204311004 241.047882622564,364.8773249650368 247.12293443054523,362.3408061171431 252.11317608511098,359.1009858525747 255.82425603520758,354.8196367084346 258.11677000130555,350.23723462206465 258.9026179573446,345.5298787358037</gml:coordinates>
   </gml:LinearRing>
  </gml:outerBoundaryIs>
     </gml:Polygon>
</polygonProperty>
</BodyPart>
</featureMember>

<featureMember>
<BodyPart>
<Type>Eye</Type>
<polygonProperty>
    <gml:Polygon>
<gml:outerBoundaryIs>
   <gml:LinearRing>
      <gml:coordinates>405.90261795734455,345.5298787358039 405.15160020708265,340.87847009644486 402.8925779414866,336.46175972945866 399.2123641193491,332.44947933732874 394.2523872939673,328.99581860541184 388.20325659315347,326.2334997788004 381.2974367173482,324.2686772208749 373.80031445155043,323.176857960651 366,322.99999999999994 358.19275616182955,323.11720310182625 350.68176400954513,324.08961697083305 343.7556667593461,325.87987228737086 337.68063044435763,328.4191705436115 332.69011530324497,331.6099279316227 328.97871487984867,335.8337848805782 326.68640833729694,340.45339828854776 325.9006304196183,345.1733189004622 326.65157813152,349.8121628141678 328.9103929735696,354.1916618595544 332.5902699581455,358.14351434435935 337.549793476429,361.51585279381567 343.5983718209455,364.1790801325401 350.50356151799673,366.0308500274606 358.00000000000034,366.99999999999994 365.8036128806454,367.76858878387065 373.61075475967806,367.63309444010645 381.12176715453313,366.66431204311004 388.04788262256443,364.8773249650368 394.12293443054506,362.3408061171434 399.11317608511087,359.10098585257504 402.8242560352075,354.81963670843487 405.11677000130555,350.237234622065 405.90261795734455,345.5298787358039</gml:coordinates>
   </gml:LinearRing>
  </gml:outerBoundaryIs>
     </gml:Polygon>
</polygonProperty>
</BodyPart>
</featureMember>

<featureMember>
<BodyPart>
<Type>Nose</Type>
<polygonProperty>
    <gml:Polygon>
<gml:outerBoundaryIs>
   <gml:LinearRing>
      <gml:coordinates>310,286 309.6157056080646,282.09819355967744 308.47759065022575,278.3463313526982 306.6293922460509,274.88859533960795 304.14213562373095,271.85786437626905 301.11140466039205,269.3706077539491 297.6536686473018,267.52240934977425 293.90180644032256,266.3842943919354 290,266 286.09819355967744,266.3842943919354 282.3463313526982,267.52240934977425 278.88859533960795,269.3706077539491 275.85786437626905,271.85786437626905 273.3706077539491,274.88859533960795 271.52240934977425,278.3463313526982 270.3842943919354,282.09819355967744 270,286 270.3842943919354,289.90180644032256 271.52240934977425,293.6536686473018 273.3706077539491,297.11140466039205 275.85786437626905,300.14213562373095 278.888595339608,302.62939224605094 282.34633135269826,304.47759065022575 286.0981935596775,305.6157056080646 290.00000000000006,306 293.9018064403226,305.6157056080646 297.65366864730186,304.4775906502257 301.1114046603921,302.6293922460509 304.142135623731,300.1421356237309 306.62939224605094,297.111404660392 308.47759065022575,293.65366864730174 309.6157056080646,289.9018064403225 310,286</gml:coordinates>
   </gml:LinearRing>
  </gml:outerBoundaryIs>
     </gml:Polygon>
</polygonProperty>
</BodyPart>
</featureMember>
</UserLayer>

</StyledLayerDescriptor>

<BoundingBox>
<gml:coord><gml:X>0</gml:X><gml:Y>0</gml:Y></gml:coord>
<gml:coord><gml:X>500</gml:X><gml:Y>500</gml:Y></gml:coord>
</BoundingBox>

<Output>
<Format>image/jpeg</Format>
<Transparent>false</Transparent>
<Size><Width>501</Width><Height>501</Height></Size>
</Output>

<Exceptions>application/vnd.ogc.se+xml</Exceptions>

</ogc:GetMap>