Re: [Geoserver-devel] XStreamPersister.SRSConverter taking a lot of time

2009-06-17 Thread Justin Deoliveira
Andrea Aime wrote: > Justin Deoliveira ha scritto: >> Andrea Aime wrote: >>> Justin Deoliveira ha scritto: Unfortunately I have run into this issue in a few places, and the only time the answer is to do a full lookup. I always to try to set fullScan to false, but it seems to only w

Re: [Geoserver-devel] XStreamPersister.SRSConverter taking a lot of time

2009-06-17 Thread Andrea Aime
Justin Deoliveira ha scritto: Andrea Aime wrote: Justin Deoliveira ha scritto: Unfortunately I have run into this issue in a few places, and the only time the answer is to do a full lookup. I always to try to set fullScan to false, but it seems to only work some of the time. I understand the

Re: [Geoserver-devel] XStreamPersister.SRSConverter taking a lot of time

2009-06-16 Thread Justin Deoliveira
Andrea Aime wrote: > Justin Deoliveira ha scritto: >> Unfortunately I have run into this issue in a few places, and the only >> time the answer is to do a full lookup. I always to try to set >> fullScan to false, but it seems to only work some of the time. I >> understand the cost of the lookup

Re: [Geoserver-devel] XStreamPersister.SRSConverter taking a lot of time

2009-06-16 Thread Andrea Aime
Justin Deoliveira ha scritto: > Unfortunately I have run into this issue in a few places, and the only > time the answer is to do a full lookup. I always to try to set fullScan > to false, but it seems to only work some of the time. I understand the > cost of the lookup but I see no other altern

Re: [Geoserver-devel] XStreamPersister.SRSConverter taking a lot of time

2009-06-16 Thread Justin Deoliveira
Unfortunately I have run into this issue in a few places, and the only time the answer is to do a full lookup. I always to try to set fullScan to false, but it seems to only work some of the time. I understand the cost of the lookup but I see no other alternative in a case where you *need* an S

[Geoserver-devel] XStreamPersister.SRSConverter taking a lot of time

2009-06-16 Thread Andrea Aime
Hi, investigating why saving a feature type was taking so long on trunk I found out this code: @Override public String toString(Object obj) { CoordinateReferenceSystem crs = (CoordinateReferenceSystem) obj; try { return "EPSG:" + CRS.lookupEpsgCode(crs, true); } catch