Project

General

Profile

Actions

Bug #2554

closed

Store the spatial data cache outside servlet context

Added by Matthew Perry over 17 years ago. Updated over 17 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
metacat
Target version:
Start date:
09/13/2006
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
2554

Description

Currently the spatial data cache is stored within the servlet context. Geoserver's configuration hardcodes the shapefile path so storing it within the context allows you to specify relative paths in the geoserver config files. However, if you reinstall metacat, the cache will be replaced and will need to be regenerated on every "ant install". This is obviously a problem for developers who might rebuild frequently.

The proposed solution involves configuring the shp paths in build.properties and updating the geoserver config files at build-time. Doing this with ant tokens would be straighforward but we'd ideally want another solution (XML-DOM based since all geoserver configuration files are xml).

The paths would also need to be in metacat.properties so they could be accessed by the spatial harvester class.

Actions #1

Updated by Matthew Perry over 17 years ago

An alternative solution was implemented: once the initial spatial harvest is completed, the "regenerateCacheOnRestart" metacat property is set to false so that the full cache regeneration only happens once (when you first install metacat).

So the cache will still need to regenerate on every re-install but at least restarting the servlet container doesn't require the expensive regeneration.

Actions #2

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 2554

Actions

Also available in: Atom PDF