Justi,

> GML 3.2 is huge as you know so no we don't do everything, really just
> the simple geometry stuff and the feature model. Some recent support was
> added to do curves and surfaces, but mapping them still to the JTS 2d
> geometry model.

thank you for the explanation.

> When you say "spread out" what exactly do you mean. All the xml parsing
> and encoding should be contained to a single set of modules.
> 
> http://svn.osgeo.org/geotools/trunk/modules/extension/xsd/
> 
> With the gml 3.2 stuff living in the xsd-gml3 module. But the objects
> that the parser parses into / encodes from are spread out indeed among
> the other modules in geotools.

yes, I guess this is what I meant with being spread out :) I found some
objects that 'looked useful' in various packages, for example:

org.geotools.gml3.Curve class, which expects a
com.vividsolutions.jts.geom.LineString class

org.opengis.geometry.coordinate.GeometryFactory with the
createGeodesicString() function, etc.

I see the org.opengis.geometry.primitive.Ring class


or, when trying out the following code:

GeometryBuilder builder = new GeometryBuilder(DefaultGeographicCRS.WGS84);

GeometryFactory gf = builder.getGeometryFactory();

List<Position> dps = new ArrayList<Position>();
dps.add(builder.createPoint( new double[] {47.516389, 18.974444}));
dps.add(builder.createPoint( new double[] {47.515278, 19.021667}));
dps.add(builder.createPoint( new double[] {47.516389, 18.974444}));

GeodesicString gs = gf.createGeodesicString(dps);


this fails at the last line with 'not implemented'



in essence it is not clear to me what classes should be in the xsd-gml3
module, what classes are 'around' in other modules.


> Well you are certainly welcomed and encouraged to start looking at the
> xsd modules, and i think you will find that any patches you submit will
> be reviewed in a timely manner.

thank you for the encouragement.

first, as you see, I'll need a GeodesicString implementation that works.
where do you suggest I start with that? work with the class above that
says 'not implemented'?

my initial goal is to create a GML 3.2 surface, shich contains a
PolygonPatch -> Ring -> Curve -> GeodesicString


Akos

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to