Hello again Andrea

Sorry for not showing up for a while, but other projects here kept me 
busy. A colleague of mine was trying to build the test for fixing the 
issue with the PostgisDataStore, but he ended up with a little problem.

When using epsg-wkt, the call for CRS.lookupIdentifier seems to fail 
(returns null) on a .prj read from a shapefile (which does not have EPSG 
codes in it). I guess that is to be expected and the same call does work 
when linking with epsg-hsql, however the tests within the gt-postgis 
package are all linked up with epsg-wkt for some reason.

So, the possible pathways I see are:
- Leave everything as it is, but the test will be a little useless in 
this case.
- Change to link with epsg-hsql, then the test will work fine (I vote 
for this one, but I don't know if there are any inconvenient consequences)
- Change to link with something else that makes more sense, maybe 
epsg-postgresql (but I couldn't figure out how to make that work at 
first glance - I have to specify a postgis database somehow for it to 
connect)

That't it, thanks for all
Milton


Andrea Aime wrote:
> Milton Jonathan ha scritto:
>> OK then, I'll use that for the correction then
>>
>> But just for noting: the method CRS.lookupEpsgCode() did work fine 
>> with all .prj files I have (and none of them contain the code, they're 
>> quite like the one you described). But it only works when performing a 
>> full scan, as happens with CRS.lookupIdentifier
> 
> Hum... you're right, sorry. I must have misread the first code sample
> you posted, I thought you were just going through the CRS identifiers.
> If you post a patch in a jira issue I'll commit it, and make sure
> the same is done in the new jdbc datastores (btw, do you have
> any test case as well?)
> 
> Cheers
> Andrea
> 

-- 

Milton Jonathan
Grupo GIS e Meio Ambiente
Tecgraf/PUC-Rio
Tel: +55-21-3527-2502

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to