When you say that GML2 does not provide a feature collection (but defines the
abstract feature collection type), that means that it does not declare a
feature collection element? But WFS 1.1, WFS 1.2 and GML3 declare a generic
feature collection element?
>
>
>
I cannot remember the details; I expect you are right :-)
>
> When you say that the SimpleFeatureCollection does not handle mixed feature
> types, does that just mean that it can only hold SimpleFeature elements or
> that the same feature type created from the SimpleFeatureBuilder must be used
> to created all of the features in the SimpleFeatureCollection?
>
>
>
I am talking specifically about the GeoTools interface SimpleFeatureCollection;
it has a single method getSchema() that returns the SimpleFeatureType of all
the members. It does not provide access to the descriptor representing the
feature members; that is the subject of a change proposal:
-
http://docs.codehaus.org/display/GEOTOOLS/FeatureCollection+Descriptor+for+FeatureMembers
For more details:
- http://docs.geotools.org/latest/userguide/library/main/collection.html
In short SimpleFeatureCollection does not handle everything GML can do :-)
> But then you need different feature types to create the different geometries?
> For example.
>
>
>
Yes; and different feature collections to hold them.
Notes on your example: featureMember is not a good name for Point -
featureMember in gml is supposed to be a full on feature extending abstract
feature etc... something about the feature substitution group.
Translations this is not a CAD file format; you are working with real world
objects; not shapes.
Note in your featureMember; you can have a featureType defined that has an
attribute of type Geometry.class; allowing it to hold different kinds of
geometry.
You may wish to review the following:
- http://docs.geotools.org/latest/userguide/library/main/feature.html
Jody
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users