Introduction to the OpenGeo Suite

Uploading data

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

  1. You’ll need to be logged in to GeoExplorer to do this. If not already, please launch GeoExplorer and log in now.

  2. From the Layer Toolbar, click the Add Layer button.

  3. We’ve seen this dialog before, but this time there’s an Upload Data button in the bottom left corner.

    ../_images/gx_dialog_addwithupload.png
  4. Click Upload Data.

  5. Fill in the fields in the Upload Data dialog, as shown.

    ../_images/gx_dialog_upload.png
  6. When you’re ready, click Upload.

  7. 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)
  8. When your layer has uploaded successfully, it will automatically appear in the list of Available Layers ready to be added to your map.

    ../_images/gx_dialog_uploaded.png
  9. Add the layer to your map, and click Done to close the Available Layers dialog.

    ../_images/gx_dialog_uploadedadded.png

    Rivers layer in GeoExplorer

Bonus

  • 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


Table Of Contents

Continue Reading

Previous: Printing static maps

Next: Part 5: GeoWebCache

This Page

About Boundless

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.

License

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.

Creative Commons License