Introduction to the OpenGeo Suite
There’s one other useful feature hidden away behind GeoExplorer’s Login button: The ability to upload data directly to GeoServer.
GeoExplorer allows you to upload one or more Shapefiles or GeoTIFFs, provided they are packaged into an archive (ZIP, GZ, TAR, etc.) Single GeoTIFF files can actually be uploaded without an archive, however single SHPs cannot, as all of the associated files in a SHP (DBF, SHX, etc.) need to be packaged up together.
Conveniently, the file <workshop>\data\rivers.zip contains just a shapefile that can be uploaded in GeoExplorer
You’ll need to be logged in to GeoExplorer to do this. If not already, please launch GeoExplorer and log in now.
From the Layer Toolbar, click the Add Layer button.
We’ve seen this dialog before, but this time there’s an Upload Data button in the bottom left corner.
Click Upload Data.
Fill in the fields in the Upload Data dialog, as shown.
When you’re ready, click Upload.
The upload progress monitor spins while your layer is
- Uploaded to GeoServer
- Unzipped, if archived
- Located to the appropriate data-store
- Registered as a layer (in a store, with a workspace)
When your layer has uploaded successfully, it will automatically appear in the list of Available Layers ready to be added to your map.
Add the layer to your map, and click Done to close the Available Layers dialog.
- Give your rivers a new, more appropriate style.
- Review the results of your upload in GeoServer (Workspace, Store, Layer, Style, SLD)
- If you uploaded this layer to a PostGIS store, confirm the results of the upload in the database
- Add a new WMS resource to GeoExplorer
Boundless provides commercial open source software for internet mapping and geospatial application development. We are dedicated to the growth and support of open source software.
This work is licensed under a Creative Non Commercial-Commons Attribution-Share Alike 3.0 United States License. Feel free to use this material, but we ask that you please retain the Boundless branding, logos and style.