Hello Richard,

> I guessed that something like this must be happening in the background just
> wasn't able to determine where it was being done.

It happens in the render module, specifically in StreamingRenderer.

If you want to study the gory details, have a look at the package
private StreamingRenderer.queryLayer method.

> It seems to work, does that look correct to you?
>

Well done. For a bonus mark, instead of the hard-coding "EPSG:4326"
you could query the map layer's CRS...

   myLayer.getFeatureSource().getSchema().getCoordinateReferenceSystem()

(although beware that it is quite valid for a map layer to have a null CRS)

Michael

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to