when I say:
So, I think geoserver should manage feature types by a custom id, wich by
default it's ok to be the same as the feature type.
I think you may be right (sigh). I *really* don't have budget to fix
this one (I am running over right now).I have been bothered by the need to keep the datastore/typename unique
at the same time as keeping the namespace/typename.
Keeping them orthogonal is the right answer. Adding "view" based
FeatureTypes only complicates the problem.
I need to revisit WMS spec, but I think it would be of great help to be able
of declaring views, for cascaded layers
and the like. Anyway, I agree that such a functionality may be dificult to
manage in WFS, due to locks... for WMS it would be enough with the actual
<definitionQuery config element to declare the filtered type...
What would be perfect is to have that DataStore getView( Query ) method
completed. And make the GeoServer just keep track of FeatureSource
instances. Making use of Query to change the typeName/namespace in the
same manner as we change attributes and coordinate systems.
It should... I think I don't really get the whole idea... (I get it for
.getView, but can't figure out how to maintain WFS and WMS in sync in the
case that both services serve different datasets...)
Is getNamespace in FeatureType just for GML Writer?
yeah, I think so. Shouldn't namespace be obtained directly from the
datastore reference holded in featuretypeconfig? (I don't remember right now
if ftypeconfig has a datastore association, but I think yes) As a lot of
other things, I've put it there just as the start action in the migration
process, hoping to iterate later to beatufy the design. And unfortunatelly
time has eat me, leaving lots of inconsistencies and garbage. I apologize.
If you have time to work on this - I can arange a delay or something. We
are building a ui on top of GeoServer so such fundemental changes have
big consequences. The only saving grace here is that we are not finished
the AttributeType/FeatureType handling today. But we will be on Tuesday.
I have no time right now
I need to finish some work for a meeting on wed. in madrid. sorry.
On a related note - could I ask you to look at DataStore.getView (The
method does not exists - the comments for it do). I would really like to
steal you View code, which I am impressed with, from GeoServer inorder
to implement such a beast.
sure, i'll take a look, and hope to be able of putting my hands on over
friday...
no way of doing it before from my side but feel free to ask anything
related
to my code, I'll be glad of helping in some manner.
Cheers,
Jody
best regards,
gabriel