Hi,
you are direcly specifying the crs as a literal, therefore I think it
doesn't properly convert the provided CRS code to a proper
CoordinateReferenceSystem object.
(We will check whether a proper converter exists for that, in the next
days.)
You should let it take from the request. Please, check the attached
examples.
warp.wps.xml represents a WPS request to be posted.
warp.sld.xml represents the SLD doing the renderingTransformation using the
georectifyProcess.
As you can see, it deals with some env function which pass down the values
using the parameter substitution mechanism.
As an instance,
/geoserver/wms?LAYERS=mylayer&...&srs=EPSG:32632&env=gcp:values
width, height, bbox, crs are directly taken from the WMS request's
parameters.
Hope this helps.
Cheers,
Daniele
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Ing. Daniele Romagnoli
Senior Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
On Thu, Jul 11, 2013 at 10:46 AM, Simone Giannecchini <
[email protected]> wrote:
> Ciao,
> I have asked Daniele (who worked on this implementation) to check the
> process to see if it can be used as is as a Rendering Transformation
> (which means inside an SLD for doing
> the GeoRectification on the fly). We'll keep you posted.
>
> Regards,
> Simone Giannecchini
> ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it for
> more information.
> ==
>
> Ing. Simone Giannecchini
> @simogeo
> Founder/Director
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39 333 8128928
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
>
> On Mon, Jul 8, 2013 at 4:18 PM, alsteine <[email protected]> wrote:
> > Hello Geoserver User List,
> >
> > I encountered an error message when trying to warp a raster layer "on the
> > fly" using SLD. It should call the function "GeorectifyCoverage" and
> apply a
> > rendering transformation to the image based on some Ground Control Points
> > (GCP):
> >
> > <Transformation>
> > <ogc:Function name="gs:GeorectifyCoverage">
> > <ogc:Function name="parameter">
> > <ogc:Literal>data</ogc:Literal>
> > </ogc:Function>
> > <ogc:Function name="parameter">
> > <ogc:Literal>gcp</ogc:Literal>
> > <ogc:Literal>[[[0, 0], [308639.500,
> > 5154180.500]], [[0, 450], [308639.500, 5150929.500]], [[600, 0],
> > [315730.500, 5154180.500]], [[600, 450], [315730.500,
> > 5150929.500]]]</ogc:Literal>
> > </ogc:Function>
> > <ogc:Function name="parameter">
> > <ogc:Literal>targetCRS</ogc:Literal>
> > <ogc:Literal>EPSG:32632</ogc:Literal>
> > </ogc:Function>
> > </ogc:Function>
> > </Transformation>
> >
> > Unfortunately it reports upon request from OpenLayers:
> >
> > Could not convert the value EPSG:32632 into the expected type
> interface
> > org.opengis.referencing.crs.CoordinateReferenceSystem for parameter
> > targetCRS
> >
> > Nobody was able to even give me a hint on how to tackle that, so I
> address
> > myself to you in this matter. More details on my question can be found on
> > GIS Stackexchange
> > <
> http://gis.stackexchange.com/questions/65162/geoserver-georectification-via-sld-fails
> >
> > .
> >
> > Best,
> > xandriksson
> >
> >
> >
> > --
> > View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Geoserver-Georectification-via-SLD-fails-tp5064734.html
> > Sent from the GeoServer - User mailing list archive at Nabble.com.
> >
> >
> ------------------------------------------------------------------------------
> > This SF.net email is sponsored by Windows:
> >
> > Build for Windows Store.
> >
> > http://p.sf.net/sfu/windows-dev2dev
> > _______________________________________________
> > Geoserver-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
<?xml version="1.0" encoding="UTF-8"?>
<wps:Execute version="1.0.0" service="WPS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>gs:GeorectifyCoverage</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>data</ows:Identifier>
<wps:Reference mimeType="image/tiff" xlink:href="http://geoserver/wcs" method="POST">
<wps:Body>
<wcs:GetCoverage service="WCS" version="1.1.1">
<ows:Identifier>it.geosolutions:georectified</ows:Identifier>
<wcs:DomainSubset>
<gml:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#404000">
<ows:LowerCorner>0.0 -7070.0</ows:LowerCorner>
<ows:UpperCorner>10647.0 1.0</ows:UpperCorner>
</gml:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>gcp</ows:Identifier>
<wps:Data>
<wps:LiteralData>[[[2721, 3263], [-122.472109, 37.73106003]], [[4163, 3285], [-122.4693417, 37.729929851]], [[5773, 4046], [-122.466702461, 37.7271906]], [[8885, 4187], [-122.462333, 37.725167]]]</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>targetCRS</ows:Identifier>
<wps:Data>
<wps:LiteralData>EPSG:4326</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>transparent</ows:Identifier>
<wps:Data>
<wps:LiteralData>true</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- a Named Layer is the basic building block of an SLD document -->
<NamedLayer>
<Name>Warped</Name>
<UserStyle>
<Title>Warping</Title>
<Abstract>A sample style that draws a line</Abstract>
<FeatureTypeStyle>
<Transformation>
<ogc:Function name="gs:GeorectifyCoverage">
<ogc:Function name="parameter">
<ogc:Literal>data</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>gcp</ogc:Literal>
<ogc:Function name="env"><ogc:Literal>gcp</ogc:Literal></ogc:Function>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>bbox</ogc:Literal>
<ogc:Function name="env"><ogc:Literal>wms_bbox</ogc:Literal></ogc:Function>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>targetCRS</ogc:Literal>
<ogc:Function name="env"><ogc:Literal>wms_crs</ogc:Literal></ogc:Function>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>width</ogc:Literal>
<ogc:Function name="env"><ogc:Literal>wms_width</ogc:Literal></ogc:Function>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>height</ogc:Literal>
<ogc:Function name="env"><ogc:Literal>wms_height</ogc:Literal></ogc:Function>
</ogc:Function>
</ogc:Function>
</Transformation>
<Rule>
<RasterSymbolizer>
<Opacity>1.0</Opacity>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users