Geoserver Japan: Difference between revisions
From charlesreid1
(Created page with "This page covers the use of Geoserver to import GIS information about historical feudal Japan, in particular 1664 boundaries among daimyos. This data is available on Harvard's we...") |
No edit summary |
||
| Line 1: | Line 1: | ||
This page covers the use of Geoserver to import GIS information about historical feudal Japan, in particular 1664 boundaries among daimyos. This data is available on Harvard's website: http://www.fas.harvard.edu/~chgis/japan/archive/ | This page covers the use of Geoserver to import GIS information about historical feudal Japan, in particular 1664 boundaries among daimyos. This data is available on Harvard's website: http://www.fas.harvard.edu/~chgis/japan/archive/ | ||
=Prep for Geoserver= | |||
==Copy Data== | |||
First, copy the data to the Tomcat server where Geoserver is running: | First, copy the data to the Tomcat server where Geoserver is running: | ||
| Line 7: | Line 11: | ||
sudo chown -R tomcat7:tomcat7 /var/lib/tomcat7/webapp/geoserver/data/data/feudaljapan1 | sudo chown -R tomcat7:tomcat7 /var/lib/tomcat7/webapp/geoserver/data/data/feudaljapan1 | ||
</pre> | </pre> | ||
=Geoserver= | |||
==Make Workspace== | |||
Geoserver > Data > Workspaces | |||
Create new workspace | |||
(I was having problems with this so I just reused another workspace) | |||
==Make Data Store== | |||
add new store, point to the directory where the shapefiles were copied (on the tomcat server). | |||
This should then prompt you to publish a layer associated with that data store. | |||
==Making a Layer== | |||
To turn the Shapefile into a layer, you must specify projection information. Unfortunately, Geoserver is not very good at this. Fortunately, you can use http://prj2epsg.org/ for a much more robust search of EPSG codes. I found the one I was looking for, that matched the data set about Feudal Japan: | |||
[[Image:FeudalJapanEpsg.png|500px]] | |||
Once I picked 4008 as my EPSG code, I was able to make the layer without any problems. | |||
Revision as of 01:43, 6 February 2015
This page covers the use of Geoserver to import GIS information about historical feudal Japan, in particular 1664 boundaries among daimyos. This data is available on Harvard's website: http://www.fas.harvard.edu/~chgis/japan/archive/
Prep for Geoserver
Copy Data
First, copy the data to the Tomcat server where Geoserver is running:
sudo cp -r jp_toku_dmyo_pgn /var/lib/tomcat7/webapps/geoserver/data/data/feudaljapan1 sudo chown -R tomcat7:tomcat7 /var/lib/tomcat7/webapp/geoserver/data/data/feudaljapan1
Geoserver
Make Workspace
Geoserver > Data > Workspaces
Create new workspace
(I was having problems with this so I just reused another workspace)
Make Data Store
add new store, point to the directory where the shapefiles were copied (on the tomcat server).
This should then prompt you to publish a layer associated with that data store.
Making a Layer
To turn the Shapefile into a layer, you must specify projection information. Unfortunately, Geoserver is not very good at this. Fortunately, you can use http://prj2epsg.org/ for a much more robust search of EPSG codes. I found the one I was looking for, that matched the data set about Feudal Japan:
Once I picked 4008 as my EPSG code, I was able to make the layer without any problems.