Andrea Aime wrote:
> Jody Garnett ha scritto:
>> Andrea Aime wrote:
>>> Hi,
>>> I was investigating the possibility of comparing a random
>>> WKT file found along with a shapefile or grid coverage
>>> against the EPSG database to find out the equivalent
>>> EPSG code.
>>>
>>> ....
>>>
>>> I could code a special comparator for each kind of CRS (projected, 
>>> geographic and the like) but was wondering if there is a better way,
>>> and if I'm making some mistake in assuming the more lenient method
>>> is a good one.
>>>   
>> This sounds similar to the work Martin wanted to do for epsg-hsql. My 
>> impression that using HSQL is the better way, as you can specifically 
>> query the
>> various parameters using SQL (rather then making several "equalish" 
>> methods).
>
> Well, the latter is more work, and I'm trying to get a short term
> solution. Having query method is nice, but in order to make things
> work in the forecoming chained authority we would need each authority
> to implement these query mechanisms, which in some (file based) 
> authorities would become equality checks anyways, so why not start with
> them :-)
Right - premature optimization being the / of all evil.

You may not want to call the method "equal" through - indeed some kind 
of match may be a better fit.
Jody

-------------------------------------------------------------------------
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

Reply via email to