Hi Andrea,

I thought those would catch your eye ;). And my rationale was not to be 
irresponsible, i fully realize the repercussions. But... in this case 
(the RESTful case) the user is creating a new feature type. When the 
user creates the new feature type they have the option of specifying the 
bounding box and the computation only happens when they do not. So in 
this case it is really the user asking for what they get since they did 
not specify the bounding box. Now that happens in 
initFeatureType(FeatureTypeInfo)

There is also a bounds computation buildFeatureSource(FeatureSource) 
which is also called by REST when a shapefile (or some other vector 
file) is uploaded. Now again the user has the ability to prevent this by 
requesting that no automatic configuration take place, and then they can 
manually specifying the bounding box (either native or lat lon) later.

So in both cases the user has the choice and can avoid the bounds 
computation. Although I do admit in both cases it would be pretty easy 
for the computation to occur by default. In the first case I would not 
be against throwing an exception if they don't specify the bounding 
box... or making them explicitly set a parameter which allows us to 
compute it. The second case would be hard... it would more or less kill 
the "upload shapefile and go" use case.

-Justin

Andrea Aime wrote:
> Hi,
> I've just noticed that CatalogBuilder computes on
> its own the native bbox while creating FeatureTypeInfo objects.
> This is a big no-no when dealing with bigger datasets, as it
> may lockup GeoServer for minutes.
> I would like to remove that computation, but not sure what
> the side effects might be, I guess I may end up breaking
> something in the RESTConfig configuration?
> RESTConfig should also allow the user to decide wheter
> to compute the native bbox, or just use the provided lat/lon
> bbox
> 
> Cheers
> Andrea
> 


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to