Hi all,

We've put together an inline WMS request to Geoserver which is working
great except for one thing.  We can't work out how to tell Geoserver the
projection so the image appears to be slightly skewed.  The projection
we're using is EPSG:27700 (British National Grid).  Can anyone tell me how
we specify that in the following XML?  We have tried a few obvious and non
obvious ways one of which is still included in the bounding box tag below!

Many thanks,

Tom

XML:

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

    <StyledLayerDescriptor version="1.0.0"
               
xsi:schemaLocation="http://www.opengis.net/sldStyledLayerDescriptor.xsd";
               xmlns="http://www.opengis.net/sld";
               xmlns:ogc="http://www.opengis.net/ogc";
               xmlns:xlink="http://www.w3.org/1999/xlink";
               xmlns:dave="http://blasby.com";
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
    <UserLayer>
      <Name>Inline</Name>

      <InlineFeature>
      <FeatureCollection>

        <featureMember>
        <BodyPart>
          <Type>Site</Type>
          <polygonProperty>
          <gml:Polygon
xmlns:gml="http://www.opengis.net/gml";><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates
decimal="." cs="," ts=" ">527767.420902127,244282.084235991
527770.380879062,244286.203056991 527773.077014042,244290.401855097
527775.583512617,244294.600653204 527779.376240723,244301.498678664
527782.781450958,244307.896847208 527787.283254319,244317.204183011
527790.878100959,244324.901979539 527793.277413739,244330.400405631
527795.651991337,244335.758871786 527793.978243933,244336.698602791
527714.380424063,244372.598326602 527713.877475336,244370.199013398
527713.481712403,244367.999642961 527712.978763676,244365.900243908
527712.277933482,244363.600902088 527711.280281089,244361.001646117
527709.779679969,244357.502647695 527705.178935874,244347.495512208
527698.178879,244331.100205316 527693.083431239,244319.303582064
527692.877304711,244317.903982695 527696.777218612,244316.104497792
527700.776073246,244314.295015751 527714.88337279,244307.39699029
527727.976529819,244301.098793131 527743.683371217,244293.700910752
527761.6823396,244284.863440452 527767.420902127,244282.084235991
527767.420902127,244282.084235991
</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon>
          </polygonProperty>
        </BodyPart>
        </featureMember>

      </FeatureCollection>
      </InlineFeature>

      <UserStyle>
      <FeatureTypeStyle>
        <Rule>
        <Filter>
          <Or>
          <PropertyIsEqualTo>
            <PropertyName>Type</PropertyName>
            <Literal>Site</Literal>
          </PropertyIsEqualTo>
          </Or>
        </Filter>
        <PolygonSymbolizer>
          <Fill>
          <CssParameter name="fill">
            <ogc:Literal>#FF0000</ogc:Literal>
          </CssParameter>
          <CssParameter name="fill-opacity">
            <ogc:Literal>0.3</ogc:Literal>
          </CssParameter>
          </Fill>
          <Stroke>
          <CssParameter name="stroke">
            <ogc:Literal>#FF0000</ogc:Literal>
          </CssParameter>
          </Stroke>
        </PolygonSymbolizer>
        </Rule>
      </FeatureTypeStyle>

      </UserStyle>

    </UserLayer>

    </StyledLayerDescriptor>

    <BoundingBox srsName="http://www.opengis.net/gml/srs/epsg.xml#27700";>
    <gml:coord>
      <gml:X>527682.59983605</gml:X>
      <gml:Y>244271.80676733</gml:Y>
    </gml:coord>
    <gml:coord>
      <gml:X>527805.92946</gml:X>
      <gml:Y>244381.64973566</gml:Y>
    </gml:coord>
    </BoundingBox>

    <Output>
    <Format>image/png</Format>
    <Transparent>true</Transparent>
    <Size>
      <Width>500</Width>
      <Height>500</Height>
    </Size>
    </Output>

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

  </ogc:GetMap>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to