Hi, I have developed a data store according to GeoTools AbstractDataStore interface, and it works fine in GeoServer 2.0.2. But in new version, when I try to publish a layer, FeatureReader.getEnvelope is not called when I click “compute from data” below Native Bounding Box.
Is there any change I must to do to use this new version? I think I should alter my data store, but I do not know where.
Thanks!
Hmmm… I am not aware of a FeatureReader.getEnvelope() method. At least not on the interface, maybe you are referring to a specific implementation?
I am not aware of any behaviour changes with regard to geoserver calculating the bounds, it might be that AbstractDataStore in geotools has changed in some way. That said the method geoserver uses to get the bounds is FeatureSource.getBounds().
Also if you plan to update your datastore you may want to consider subclassing ContentDataStore rather than AbstractDataStore. The former is a better starting point for new datastores and is currently being maintained.
Hope that helps.
-Justin
On Thu, May 19, 2011 at 12:59 AM, 钱晓明 <kyleqian@anonymised.com> wrote:
Hi, I have developed a data store according to GeoTools AbstractDataStore interface, and it works fine in GeoServer 2.0.2. But in new version, when I try to publish a layer, FeatureReader.getEnvelope is not called when I click “compute from data” below Native Bounding Box.
Is there any change I must to do to use this new version? I think I should alter my data store, but I do not know where.
Thanks!
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
–
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.