I have been working with both GeoServer and ArcGIS. Transfering GIS data from one to other sometimes could be trouble. After discovering GeoServer Rest API I started developing GeoServer ArcAdmin toolbox for integrating ArcGIS and GeoServer. Data sharing and web services could be performed quite easily by using it. Also the source code is available to the general public for use. You can find more information https://cbsuygulama.wordpress.com/geoserver-arcadmin/. In this post I mentioned about installation and usage of GeoServer ArcAdmin.
In ArcGIS, installation of a toolbox is performed in same steps. And there will be no differences for installation of GeoServer ArcAdmin and next versions.
Firstly download the toolbox from https://cbsuygulama.wordpress.com/geoserver-arcadmin-en/ Unzip the archive and put the all files to C:\GeoServer ArcAdmin directory. The directory must look like the image below. Otherwise you ‘ll get error messages.
In ArcGIS (ArcMap, ArcScene, ArcGlobe) open ArcToolbox window.
Right-click on blank area and choose Add Toolbox option.
A file-choose dialog window will appear. Find the TBX entensioned toolbox and click Open.
After these steps GeoServer ArcAdmin toolbox will be added in the ArcToolbox.
You must pay attention that GeoServer ArcAdmin is not installed permanently. This means you have to repeat these steps every re-open. If you want to make it permanent toolbox, click blank area on ArcToolbox window and choose Save Settings > To Default option.
1-Generate a New Workspace
Choose New Workspace tool from the GeoServer ArcAdmin toolbox. The window looks like the image below.
There are four input parameter in the tool. First parameter is for the URL of Geoserver Rest API, second parameter is for new workspace name, and the others are username and password for GeoServer login. Change them for your configuration and clikc OK. After the process you can check new workspace by visiting http://localhost:8080/geoserver/rest/workspaces.
2-Delete an Existing Workspace
You can use Delete Workspace tool for this job. Window of the tool is shown image below.
Fill the parameters for your configuration and click OK. Note that Workspace Name parameter represents the workspace that you will delete.
3-Upload Vector Data
For serving your GIS data with GeoServer, firtsly you have to convert them the file formats which supported by GeoServer. And than you have to upload these files to the server via FTP or Remote Desktop connections. After all you login and make some configuration for serving the data. You can do all these in a single step by using Upload Vector Data tool. By using this tool you can upload all vector data (SHP, FGDB, PGDB etc.) which supported by ArcGIS. This tool image is given below.
Fist parameter is for the layer that you send. GeoServer associates every GIS data with a workspace. The parameter named “Workspace Name” is for this purpose.
Also you can use Upload Compressed File tool for sending you data to GeoServer. This tool was developed for uploading ZIPped Shapefile. You must pay attention that the Shapefile must be top of the ZIP file, not in a directory. The window of the tool is shown below.
4-Upload Raster Data
With Upload Raster Data tool you can send raster data to GeoServer. All raster file formats that supported by ArcGIS can be used. You must pay attention; version of the GeoServer Rest API have to support TIFF file format. Otherwise you will get error messages. The image of the tool is given below.
5-Delete an Existing Datastore
In GeoServer, vector layers are stored under a Datastore. And Datastores are associated with Workspaces. If you want to delete a vector layer in GeoServer, you should delete its Datastore. You can do this job by using Delete Datastore tool.
6-Delete an Existing Coveragestore
Raster layers are stored under Coveragestores as same as Datastore example. These are also associated with Workspaces. If you want to delete a raster layer you should delete its coveragestore. You can use Delete Coveragestore tool for this operation. The window of the tool is given below.