This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
geoserver.sh
61 lines (47 loc) · 3.24 KB
/
geoserver.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
> wmadata_store.xml
echo '<dataStore>
<name>wmadata</name>
<connectionParameters>
<host>172.25.0.2</host>
<port>5432</port>
<database>nwis_db</database>
<user>wmadata_reader</user>
<passwd>changeMe</passwd>
<dbtype>postgis</dbtype>
</connectionParameters>
</dataStore>' > wmadata_store.xml
curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" \
-d "<workspace><name>wmadata</name></workspace>" \
http://localhost:8080/geoserver/rest/workspaces
curl -v -u admin:geoserver -XPOST -T wmadata_store.xml -H "Content-type: text/xml" \
http://localhost:8080/geoserver/rest/workspaces/wmadata/datastores
curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" \
-d "<featureType><name>gagesii</name><nativeCRS>EPSG:4269</nativeCRS><srs>EPSG:900913</srs></featureType>" \
http://localhost:8080/geoserver/rest/workspaces/wmadata/datastores/wmadata/featuretypes
curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" \
-d "<featureType><name>gagesii</name><nativeCRS>EPSG:4269</nativeCRS><srs>EPSG:900913</srs></featureType>" \
http://localhost:8080/geoserver/rest/workspaces/wmadata/datastores/wmadata/featuretypes
curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" \
-d "<featureType><name>huc08</name><nativeCRS>EPSG:4269</nativeCRS><srs>EPSG:900913</srs></featureType>" \
http://localhost:8080/geoserver/rest/workspaces/wmadata/datastores/wmadata/featuretypes
curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" \
-d "<featureType><name>huc12</name><nativeCRS>EPSG:4269</nativeCRS><srs>EPSG:900913</srs></featureType>" \
http://localhost:8080/geoserver/rest/workspaces/wmadata/datastores/wmadata/featuretypes
curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" \
-d "<featureType><name>huc12all</name><nativeCRS>EPSG:4269</nativeCRS><srs>EPSG:900913</srs></featureType>" \
http://localhost:8080/geoserver/rest/workspaces/wmadata/datastores/wmadata/featuretypes
curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" \
-d "<featureType><name>huc12agg</name><nativeCRS>EPSG:4269</nativeCRS><srs>EPSG:900913</srs></featureType>" \
http://localhost:8080/geoserver/rest/workspaces/wmadata/datastores/wmadata/featuretypes
curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" \
-d "<featureType><name>catchmentsp</name><nativeCRS>EPSG:4269</nativeCRS><srs>EEPSG:4269</srs></featureType>" \
http://localhost:8080/geoserver/rest/workspaces/wmadata/datastores/wmadata/featuretypes
curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" \
-d "<featureType><name>nhdarea</name><nativeCRS>EPSG:4269</nativeCRS><srs>EPSG:4269</srs></featureType>" \
http://localhost:8080/geoserver/rest/workspaces/wmadata/datastores/wmadata/featuretypes
curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" \
-d "<featureType><name>nhdflowline_network</name><nativeCRS>EPSG:4269</nativeCRS><srs>EPSG:4269</srs></featureType>" \
http://localhost:8080/geoserver/rest/workspaces/wmadata/datastores/wmadata/featuretypes
curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" \
-d "<featureType><name>nhdwaterbody</name><nativeCRS>EPSG:4269</nativeCRS><srs>EPSG:4269</srs></featureType>" \
http://localhost:8080/geoserver/rest/workspaces/wmadata/datastores/wmadata/featuretypes