Geoserver: Difference between revisions
From charlesreid1
(→Data) |
|||
| Line 28: | Line 28: | ||
Here is a tutorial: http://docs.geoserver.org/stable/en/user/gettingstarted/shapefile-quickstart/index.html | Here is a tutorial: http://docs.geoserver.org/stable/en/user/gettingstarted/shapefile-quickstart/index.html | ||
===Importing Shape Data=== | |||
Download the NYC roads shape file package linked to in the tutorial. | |||
This goes in the Geoserver data directory. Remember from the [[Geodroplet]] page that this is a directory in our Tomcat webapp directory, so the whole thing is at <code>/var/lib/tomcat7/webapps/geoserver/data/data</code> (NOTE THE DOUBLE DATA!). | |||
Move the map data to the Geoserver data directory: | |||
<source lang="bash"> | |||
sudo mv nyc_roads /var/lib/tomcat7/webapps/geoserver/data/data/. | |||
</source> | |||
You'll also have to change the owner to the Tomcat user: | |||
<source lang="bash"> | |||
sudo chown -R tomcat7:tomcat7 /var/lib/tomcat7/webapps/geoserver/data/data/nyc_roads/ | |||
</source> | |||
Now we keep following the instructions. | |||
===Creating Workspace=== | |||
Still logged into the Geoserver web portal as the admin, we go to Data and Workspaces, on the left hand side menu. | |||
We pick add a new workspace, name it and populate it following the tutorial instructions [http://docs.geoserver.org/stable/en/user/gettingstarted/shapefile-quickstart/index.html]. | |||
===Creating Store=== | |||
Followed the tutorial instructions to create a store for NYC roads data... | |||
===Creating Layer=== | |||
Created a layer for looking at that map... this is a lot of steps, making for a cumbersome workflow... | |||
And finally, the document ends, at an anticlimactic moment. The map isn't that interesting, there are no other satellite or other map layers on it, and I'm not sure what to do with this. | |||
[http://docs.geoserver.org/stable/en/user/gettingstarted/shapefile-quickstart/index.html] | |||
Revision as of 05:29, 27 January 2015
This guide picks up where the Geodroplet page left off:
http://docs.geoserver.org/stable/en/user/gettingstarted/web-admin-quickstart/index.html
Logging In
Username/Password
Default username/pw are admin/geoserver. First thing I did was change those.
Server Status
Server status page shows some useful info:
Data
On the left hand side menu, there is a cluster of items labeled "Data".
Here is what "Stores" looks like:
There's also "Layers," "Workspaces," etc. Not clear what all of this is for, I'm just browsing through it... Geoserver documentation isn't saying much about what these things are. (This is the web interface quick start, after all...)
Tutorial
Here is a tutorial: http://docs.geoserver.org/stable/en/user/gettingstarted/shapefile-quickstart/index.html
Importing Shape Data
Download the NYC roads shape file package linked to in the tutorial.
This goes in the Geoserver data directory. Remember from the Geodroplet page that this is a directory in our Tomcat webapp directory, so the whole thing is at /var/lib/tomcat7/webapps/geoserver/data/data (NOTE THE DOUBLE DATA!).
Move the map data to the Geoserver data directory:
sudo mv nyc_roads /var/lib/tomcat7/webapps/geoserver/data/data/.
You'll also have to change the owner to the Tomcat user:
sudo chown -R tomcat7:tomcat7 /var/lib/tomcat7/webapps/geoserver/data/data/nyc_roads/
Now we keep following the instructions.
Creating Workspace
Still logged into the Geoserver web portal as the admin, we go to Data and Workspaces, on the left hand side menu.
We pick add a new workspace, name it and populate it following the tutorial instructions [1].
Creating Store
Followed the tutorial instructions to create a store for NYC roads data...
Creating Layer
Created a layer for looking at that map... this is a lot of steps, making for a cumbersome workflow...
And finally, the document ends, at an anticlimactic moment. The map isn't that interesting, there are no other satellite or other map layers on it, and I'm not sure what to do with this.