On Wed, Jan 22, 2014 at 10:48 AM, Damiano Albani
<[email protected]>wrote:
> On Wed, Jan 22, 2014 at 10:43 AM, Andrea Aime <
> [email protected]> wrote:
>
>>
>> GeoServer code never knows what data store it is working against, so
>> trying to reason only
>> about shapefiles is completely pointless
>>
>
> Well, I thought I had seen the term "Shapefile" mentioned a couple of
> times in GeoServer admin interface...
>
Yes, in GeoServer there is one class that knows what a shapefile is, it's
the configuration panel
where you put the location of the shapefile (and the new importer extension
too).
Everything else is done via interfaces, and due to security
related wrappers, it's normally hard to know what a store is anyways (it's
still possible, but hard and not advisable)
For your specific case I believe the issue should be solved at the level of
your application:
* configure the shapefile using REST config (this is already what you're
doing I assume?)
* make a GetFeature and see if the result is empty
* if so, use against REST config to fix the layer bounding box, but don't
set it to all zeros,
as some OGC clients may fail if you do so (they don't have anymore a
knowledge about where the
layer is in the world, cannot setup a valid request against it), make it
represent your area of interest instead
Cheers
Andrea
--
== Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information ==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users