Hi Christian,

I will delegate to Andrea on this one since he is the rendering expert 
but I will say that imo this is a perfectly valid use of a query hint. 
And indeed afaik many other type of hints are passed down by the render 
to perform similar functions like decimation, etc...

2c,

-Justin

Christian Müller wrote:
> Last week I posed a question about having a FeatureSource which has also 
> some generalizations of the vector data to speed up response time and reduce 
> data transfer. 
> 
> While it  is is surely not the problem to implement such a FeatureSource, I 
> need the ScaleDenominator from the caller. 
> 
> I studied the source and I want to ask the specialists about the following 
> assumptions: 
> 
> 1) StreamingRenderer and ShapeFileRenderer use 
> FeatureSource>>getFeatures(queryObject)
> 2) The Query interface offers the possibility to pass Hints 
> 
> My idea would be to pass the scaleDenominater as a hint to the queryObject.  
> This makes sense since
> the scaleDenominator is only usefull for some use cases and should not be 
> part of the FeatureSource API. 
> 
> I am not sure here if the ScaleDenomintar is enough, perhaps a unit of 
> measure is also required. On the other side,  the Query interface offers a 
> getter for the CRS, I think I can get the unit from the CRS, yes or no ? 
> 
> Anyway, if my assumptions come close to the truth, I would do such an 
> implementation and insert one line in the mentioned renderer classes to test 
> it. 
> 
> opinions ?
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Geoserver-devel mailing list
> Geoserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to