Farrukh Najmi wrote:
> Hi Jodi,
>
> Thanks for the info. What I am looking for is a way to do the following:
>    * Parse geometry data encoded in GML 3 into a
>      com.vividsolutions.jts.geom.Geometry instance an then use a POJO
>      class that uses hibernate spatial to persist it into a spatially
>      extended relational database
So the thing that comes out of that Parser is a FeatureCollection; you 
can either:
- set up a FeatureFactory that produces your Pojos (they would need to 
implement the Feature Interface); or
- go through the list of Features and create a POJO for each one (note 
Feature = Geometry + Attributes, Feature is the Pojo of GIS)
>    * Query a a spatially extended relational database using hibernate 
> spatial and then marshal the matching 
> com.vividsolutions.jts.geom.Geometry instances into GML 3
Make an implementation of Iterator<Feature> wraps around your hibernate 
Collection of Pojos...
> It was not clear to me if and how that is possible using the link you 
> sent me.
Jody

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to