...
Depends on type of spatial engine
Resetting a spatial engine
The list of layers/tables available in a spatial engine are read when the spatial engine starts up and are cached for the lifetime of the spatial engine, which means that layers/tables added to the spatial engine after startup are not know to Weave.
To update the spatial engine after a layer/table has been added the spatial engine should be reset, prior to Weave version 2.6.9 this would have to be done by either making a small unimportant change to the spatial engine configuration (e.g. adding <a/> to the config, which would be ignored, but trigger Weave to restart the spatial engine) then saving the change, then reverting it and saving the file again, or commenting out the spatial engine configuration completely, saving the file, undoing the change and saving the file again. Both options would force Weave to reload the list of available tables. And, of course you could just restart the Weave server.
As of Weave version 2.6.9 there are two options to reset a spatial engine without having to edit the configuration. Firstly the spmd
command has a new sub-command, reset
, which takes the name of the spatial engine to reset, e.g. spmd reset opendata
. The second option is a reset button in the Spatial Engine tool in the Admin UI where you can select the spatial engine from the list and click the reset button.
Examples
Connecting to ArcSDE
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<spatial:spatialengine id="arcgis"> <dbtype>arcgis</dbtype> <url><![CDATA[https<url>https://services.arcgis.com/3vStCH7NDoBOZ5zn/arcgis/rest/services/Potable_Water_Pipe/FeatureServer]]><FeatureServer</url> <crs>EPSG:28356</crs> </spatial:spatialengine> |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?set GEOPKG_FILE=platform/workspace/db/com_opendata.gpkg?> <spatial:spatialEngine id="opendata"> <dbtype>geopkg</dbtype> <database>${GEOPKG_FILE}<<database>./platform/workspace/db/opendata.gpkg</database> </spatial:spatialEngine> |
...