Hi,

I believed that your users wanted to get back an image put into black frames. 
However, I had a feeling that I had read about something like that and indeed: 
http://geoserver.geo-solutions.it/edu/en/wps/raster_processes.html


-Jukka Rahkonen-



Stephen Brooke wrote:

It turns out that the feature for the user being able to specify a BBOX used to 
clip coverage data returned from an ImageMosaic layer is not a high priority 
after all, especially since the user can simply zoom in to the extent that they 
want and get essentially the same result.
Thanks for your help,

--Steve

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Andrea Aime
Sent: Wednesday, September 03, 2014 10:19 AM
To: Stephen Brooke
Cc: Rahkonen Jukka (Tike); 
[email protected]<mailto:[email protected]>
Subject: Re: [Geoserver-users] CQL Filter not working with BBOX function and 
ImageMosaic layer

On Wed, Sep 3, 2014 at 7:16 PM, Stephen Brooke 
<[email protected]<mailto:[email protected]>> wrote:
Thanks Andrea for your response.  I tried your suggestion to add the CRS as an 
additional parameter to the BBOX function:   &CQL_FILTER=BBOX(the_geom, 48, 49, 
18, 19, 'EPSG:4326')

Unfortunately, it doesn’t seem to work either and I get the same complaint 
about not being able to cast to “ReferencedEnvelope”:

Caused by: org.geotools.data.DataSourceException: Unable to create this mosaic
        at 
org.geotools.gce.imagemosaic.RasterLayerResponse.prepareResponse(RasterLayerResponse.java:1387)
        at 
org.geotools.gce.imagemosaic.RasterLayerResponse.processRequest(RasterLayerResponse.java:1228)
        at 
org.geotools.gce.imagemosaic.RasterLayerResponse.createResponse(RasterLayerResponse.java:1194)
        at 
org.geotools.gce.imagemosaic.RasterManager.read(RasterManager.java:1125)
        at 
org.geotools.gce.imagemosaic.ImageMosaicReader.read(ImageMosaicReader.java:849)
        at 
org.geotools.gce.imagemosaic.ImageMosaicReader.read(ImageMosaicReader.java:828)
        at 
org.geoserver.catalog.SingleGridCoverage2DReader.read(SingleGridCoverage2DReader.java:146)
        at 
org.geoserver.catalog.CoverageDimensionCustomizerReader.read(CoverageDimensionCustomizerReader.java:200)
        at 
org.geoserver.catalog.CoverageDimensionCustomizerReader.read(CoverageDimensionCustomizerReader.java:190)
        at 
org.geoserver.wms.map.RenderedImageMapOutputFormat.readBestCoverage(RenderedImageMapOutputFormat.java:1296)
        at 
org.geoserver.wms.map.RenderedImageMapOutputFormat.directRasterRender(RenderedImageMapOutputFormat.java:861)
        ... 107 more
Caused by: java.lang.ClassCastException: com.vividsolutions.jts.geom.Envelope 
cannot be cast to org.geotools.geometry.jts.ReferencedEnvelope
        at 
org.geotools.gce.imagemosaic.Utils$BBOXFilterExtractor.visit(Utils.java:250)
        at org.geotools.filter.spatial.BBOXImpl.accept(BBOXImpl.java:216)
        at 
org.geotools.filter.visitor.DefaultFilterVisitor.visit(DefaultFilterVisitor.java:119)
        at org.geotools.filter.AndImpl.accept(AndImpl.java:65)
        at 
org.geotools.gce.imagemosaic.catalog.CachingDataStoreGranuleCatalog.getGranuleDescriptors(CachingDataStoreGranuleCatalog.java:152)
        at 
org.geotools.gce.imagemosaic.RasterManager.getGranuleDescriptors(RasterManager.java:1135)
        at 
org.geotools.gce.imagemosaic.RasterLayerResponse.prepareResponse(RasterLayerResponse.java:1336)
        ... 117 more

Any other suggestions?

Fix the code in GeoTools and make a pull request on GitHub :-)
As a much less direct approach, open a bug report at 
http://jira.codehaus.org/browse/GEOS

Cheers
Andrea

--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to