Hi,
Congratulation for uDIG, it is a great tool that I
discover with enthusiasm. I am trying to find my way in the javadoc (uDIG and GeoTools),
which are huge. To understand uDIG plug-in creation, I try to create a real
case. Here my scheme of work (my
trouble is in the #4):
- Make a selection on
a layer.
This is a user interface operation with the use of selection
tool- no code here
- Read the filter of
the selection of this layer.
I use PostGIS. I have a Geometry table which is link to huge
schema including many descriptive tables. Geometries are points where I have
information on fish or fish habitat. One point may include many information
types (fish inventory, habitats, species observations, etc.). I know the layer
name which is my Geometry Table. I retrieve my Layer with PlatformGIS. getActiveMap().getMapLayers().
I can make a check to find the layer to catch the filter with getFilter() on
this layer. I want to use this filter to select the descriptive information in
my database.
- Read the source of
the data of the layer.
I can find the URL for the same layer
- Make a collection to
create an Iterator.
Here is my trouble, is it the right way if I try to create a FeatureCollection
from a FeatureSource? How should I link a FeatureSource to a Layer? I guess
that there is another way than FeatureSource...
- Make a View (in PostGresSQL
and Udig) to explore the data based on the Iterator.
I am not here yet, do you have a suggestion
Thank you for the help
Nouvelles
coordonnées !!!
Notez le
changement de Code Postal
Alain
Demers
Faune
Québec
Direction de la recherche sur la faune
Ministère des Ressources naturelles
et de la Faune
930, Chemin Ste-Foy
Québec, Québec
G1S 2L4
(418) 627-8692 poste
7486
Télécopie: 646-6863