Thanks Martin - I think I am good for a couple of days.
The following will let us explore the problem (when you get a moment):
- a static final boolean in CRS - if you change it to "true"
GeoTools.getDefaultHints() will be used rather then "null"
- a static final boolean in FactoryRegistry - if you change it to "true"
anytime"null" is passed in from anywhere GeoTools.getDefaultHints() will
be used instead.
- a static final boolean is in GeoTools so you can just make
getDefaultHints() return "null" everytime
- The common factory finder is happy with the use of Hints right now
I have a theory to bounce off you.... right now
GeoTools.getDefaultHints() returns a copy of the stored hints (so client
code can add to these defaults). It could be that this use of copy is
not an assumption you made? (All your examples have a single Hints map
used for an entire application). I figured that users would like the
default hints to start out with, and then override a few settings in code.
This "making a copy" may have a consequence we can explore during
debugging....
It appears as if Hints may be modified during the course of "the
discovery process", as an example a Hint that was originally the name of
a class looks like it will be replaced with the class. The Hints are
also used to determine if "we already have that". Does the
implementation of hints equals take into account that
"org.geotools.filter.DefaultFilterFactory" should be equals to an
instance of DefaultFilterFactory? If not we may be creating factories
more often then intended.
Cheers (and enjoy Paris).
Jody
> Jody Garnett a écrit :
>> This should set off some alarm bells, basically providing Hints in
>> the CRS class was the first time the GeoTools library has been hooked
>> up as intended (and it did not go well).
>
> I'm sorry to be unable to help right now (I'm in Paris right now for a
> meeting event). I will be back to my office next week. I will look at
> the factory vs CRS issue then.
>
> Martin
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel