Christian Müller ha scritto: > Andrea, I don't want to tease you but I am afraid you have overseen > something.
No problem. > Imagine a data source which is able to do a NON preserve topology > generalization. Ah, but it's not able to perform a preserving one? Right, did not think about this case... basically every system I know of supports at least the topology preserving case, the other option is kind of a rendering specific optimization. > This data source hast to supports both hints. > Hints.GENERALIZATION_DISTANCE > Hints.PRESERVERE_TOPOLOGY > For a renderer client, it works because > Hints.PRESERVERE_TOPOLOGY==false. A WFS client uses > Hints.PRESERVERE_TOPOLOGY==true and this does not work. What should the > data soure do ?. Throw an exception ?. Right... hmmm... this is problematic, since a hint is either supported, or not... it cannot be partially supported. FeatureSource.getSupportedHints just returns a set of hints, not their values. If you support a hint, you support whatever value it might assume. So I guess this closes the question, the case where the FS is only able to do non topological preservation cannot exist, that FS cannot declare it supports the PRESERVE_TOPOLOGY hint. Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
