Project

General

Profile

Revision 3523

some hints about installing new shape files and/or adjusting styles etc.

View differences:

docs/spatial/new_layer_install_steps.txt
1
-----------------------
2
Preliminary steps
3
-----------------------
4
1.  Place .shp file and related files in /metacat/lib/spatial/geoserver/data/shp/ directory (or another dir under /data...this is specified when creating datastore)
5
	1.1  Add a layer description to the map frame config xml before deploying - saves you the trouble after the map layer is configured in geoserver (nice for testing immediately)
6
2.  [Re]Install metacat webapp so that these spatial files are included in deployment
7

  
8
-----------------------
9
GeoServer steps
10
For (HELPFUL!!!) details, see: http://docs.codehaus.org/display/GEOSDOC/1.2+Add+a+Dataset
11
-----------------------
12
3.  login to geoserver (DEPLOYED_CONTEXT/geoserver.jsp)
13
4.  create new namespace (optional since you can use an existing one ("metacat") if that makes sense)
14
5.  create new datastore -- point to shapefile in data directory using file://...
15
6.  create new FeatureType (use the common SRS of 4326)
16
7.  create new style (SLD) - may want to manually edit it after initial creation.  It will be in the styles folder under geoserver.
17
8.  'generate', 'submit'
18
9.  'apply', then 'save'
19

  
20
-----------------------
21
Repository steps (to keep it around for subsequent installations/deployments)
22
-----------------------
23
10.  Copy GeoServer-generated files from webapp installation location to /metacat checkout area:
24
	-DEPLOYED_CONTEXT/data/featureTypes/NEW_LAYER_FOLDER (includes one info.xml file) --> /metacat/lib/spatial/geoserver/data/featureTypes/
25
	-DEPLOYED_CONTEXT/data/styles/NEW_LAYER_STYLE.sld --> /metacat/lib/spatial/geoserver/data/styles/
26
11.  Edit /metacat/lib/spatial/geoserver/WEB-INF/catalog.xml to include the new <datastore>, <namespace>, and <style> for the new layer
27

  
28
-----------------------
29
Reinstall/deploy
30
-----------------------
31
12.  Try it out!
0 32

  

Also available in: Unified diff