On Sat, Aug 6, 2011 at 8:43 PM, Alessandro Ferrucci
<[email protected]> wrote:
> Hello,
> I am tracing backwards the entirety of a getMap request, I have gotten to
> the DefaultWebMapService reflect method, and obviously, from the name of it
> this method looks to be called through reflection
> some where ? (probably through some spring bean reference?)

The dispatcher.

> What I'm trying to figure out is where the configured DataStore (like
> postGIS) is queried to retrieve the FeatureSource for the layer requested
> and then where that FeatureSource is iterated through and painted on the
> Graphics object
> which in turn gets encoded to a particular type.  I see that the
> RenderedImageMapOutputFormat.produceMap performs the final rendering so it
> looks like that's the class that iterates the FeatureCollection.

StreamingRenderer does the actual query, FetaureSource, FeatureCollection
are just intermediaries, the actual thing holding to a database connection
and result set is a FeatureIterator or a FeatureReader.

> What module looks up the DataStore from the catalog? and then where is that
> DataStore queried for the FeatureSource?

ResourcePool is the factories for stores, the feature source is grabbed from
FeatureTypeInfoImpl which in turns delegates to ResourcePool, but as I said
the actual data access happens only in StreamingRenderer.

If you implement a store properly there is no need to know all of this though.

Cheers
Andrea


-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to