mapas drupal

Upload: jamilsergiolenzsalomon

Post on 02-Jun-2018

234 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/10/2019 Mapas Drupal

    1/23

    Cartaro Quickstart

    Cartaro is a geo-enabled Content Management System (CMS) to manage and publish geospatial

    and non-geospatial content.

    This Quickstart will guide you through the following tasks:

    1. Create a new geospatial content type

    2. Configure Cartaro to display the new content type

    3. Add new geospatial content

    All tasks will be performed using the example of a touristic web portal with the goal to map

    lakes.

    Contents

    Cartaro Quickstart

    o Starting Cartaro

    o Front Page

    o Creating a new Content type

    o Configuring GeoServer

    Creating a new layer in GeoServer

    o Configuring OpenLayers to activate your GeoServer layer in a map

    o Adding geospatial content

    o Things to Try

    o What Next ?

    Starting Cartaro

    1. Start the OSGeoLive DVD

    2. Choose Geospatial Browser Clients Start Cartaroto start Cartaro

    3. The Cartaro web pagehttp://localhost/cartarowill automatically open

    Front Page

    When the Cartaro page is opened, you will see the screen below. The front page contains a

    global map with capital cities as an example.

    http://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id1http://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id1http://live.osgeo.org/en/quickstart/cartaro_quickstart.html#cartaro-quickstarthttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#cartaro-quickstarthttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#starting-cartarohttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#starting-cartarohttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#front-pagehttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#front-pagehttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#creating-a-new-content-typehttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#creating-a-new-content-typehttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#configuring-geoserverhttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#configuring-geoserverhttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#creating-a-new-layer-in-geoserverhttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#creating-a-new-layer-in-geoserverhttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#configuring-openlayers-to-activate-your-geoserver-layer-in-a-maphttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#configuring-openlayers-to-activate-your-geoserver-layer-in-a-maphttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#adding-geospatial-contenthttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#adding-geospatial-contenthttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#things-to-tryhttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#things-to-tryhttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#what-nexthttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#what-nexthttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id2http://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id2http://localhost/cartarohttp://localhost/cartarohttp://localhost/cartarohttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id3http://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id3http://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id3http://localhost/cartarohttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id2http://live.osgeo.org/en/quickstart/cartaro_quickstart.html#what-nexthttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#things-to-tryhttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#adding-geospatial-contenthttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#configuring-openlayers-to-activate-your-geoserver-layer-in-a-maphttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#creating-a-new-layer-in-geoserverhttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#configuring-geoserverhttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#creating-a-new-content-typehttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#front-pagehttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#starting-cartarohttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#cartaro-quickstarthttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id1
  • 8/10/2019 Mapas Drupal

    2/23

    Please Log inon the upper right corner to access the administrative interface with admin

    as username andgeoserveras password. You will now see the administration menu baron top.

    http://live.osgeo.org/_images/cartaro_frontpage.png
  • 8/10/2019 Mapas Drupal

    3/23

    Tip

    You can return to the front page anytime by click on the home icon in the upper left corner.

    Creating a new Content type

    Content types and fields define the structure of a specific content (e.g. the content type Capitalcontains the fields name and location to generate content elements for the respective capitals

    displayed on the map). To create a new content type, follow the steps below.

    Choose Structure Content typeson the menu bar and click on Add content type

    http://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id4http://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id4http://live.osgeo.org/_images/cartaro_userpage.pnghttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id4
  • 8/10/2019 Mapas Drupal

    4/23

  • 8/10/2019 Mapas Drupal

    5/23

    http://live.osgeo.org/_images/cartaro1.png
  • 8/10/2019 Mapas Drupal

    6/23

    Finish by click on Save and add fields

    Add a new field for your content type by entering a descriptive name. We want to create

    a geospatial field with the name Geometry. Select Geospatial dataas field type and

    OpenLayers Mapas widget.

    Finish by click on Save

    Choose your field settings in the new window: Select the geometry type that describes thekind of geospatial information you want to store. ChoosePolygonto follow our example.

    http://live.osgeo.org/_images/cartaro2.png
  • 8/10/2019 Mapas Drupal

    7/23

    Tip

    Read the text below the Geometry typedrop-down box to find the geometry type that fits yourneeds.

    Finish by click on Save field settings

    http://live.osgeo.org/_images/cartaro3.png
  • 8/10/2019 Mapas Drupal

    8/23

    http://live.osgeo.org/_images/cartaro4.png
  • 8/10/2019 Mapas Drupal

    9/23

  • 8/10/2019 Mapas Drupal

    10/23

    GeoServeris used to provide layers viaWeb Feature Service (WFS)andWeb Map Service

    (WMS)with the geospatial field from your newly created content type.

    Choose Structure GeoServerfrom the menu bar to visit the GeoServer configuration

    page

    Creating a new layer in GeoServer

    Use GeoServer layers to publish your geospatial data.

    Choose Structure GeoServerfrom the menu bar to visit the GeoServer configuration

    page again SelectLayersand click Addto add a new layer

    http://live.osgeo.org/en/overview/geoserver_overview.htmlhttp://live.osgeo.org/en/overview/geoserver_overview.htmlhttp://live.osgeo.org/en/standards/wfs_overview.htmlhttp://live.osgeo.org/en/standards/wfs_overview.htmlhttp://live.osgeo.org/en/standards/wfs_overview.htmlhttp://live.osgeo.org/en/standards/wms_overview.htmlhttp://live.osgeo.org/en/standards/wms_overview.htmlhttp://live.osgeo.org/en/standards/wms_overview.htmlhttp://live.osgeo.org/en/standards/wms_overview.htmlhttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id6http://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id6http://live.osgeo.org/_images/cartaro_geoserver_entry.pnghttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id6http://live.osgeo.org/en/standards/wms_overview.htmlhttp://live.osgeo.org/en/standards/wms_overview.htmlhttp://live.osgeo.org/en/standards/wfs_overview.htmlhttp://live.osgeo.org/en/overview/geoserver_overview.html
  • 8/10/2019 Mapas Drupal

    11/23

    1. Type a suitable layer title (e.g. lakes).2.

    Select the layer type. We choosePostGIS Fieldfor advanced geospatial operations and

    geodata storage.

    3. As source select your created content type which will be associated with your new layer.

    4. Make the checkmarkProvide an OpenLayers WFS layerwithin the OpenLayers section.5. Finish configuration by click on Save

    http://live.osgeo.org/_images/cartaro_geoserver_addnewlayer.png
  • 8/10/2019 Mapas Drupal

    12/23

    http://live.osgeo.org/_images/cartaro7.png
  • 8/10/2019 Mapas Drupal

    13/23

  • 8/10/2019 Mapas Drupal

    14/23

    frontmaps configuration page appears as shown on the screenshot below.

    http://live.osgeo.org/_images/cartaro_openl_maps_frontmapedit.png
  • 8/10/2019 Mapas Drupal

    15/23

    SelectLayers & Stylesin the left sidebar to add our newly created layer to the frontmap.

    Look for your created GeoServer layer (lakes in our example)

    Make checkmarks forEnabled,ActivatedandIn Switcherto activate your new layer

    lakesin your map

    http://live.osgeo.org/_images/cartaro_openlayers_frontmapediting.png
  • 8/10/2019 Mapas Drupal

    16/23

    Finish configuration by clicking on Saveat the bottom

    Adding geospatial content

    After creating your content type and configuring GeoServer and OpenLayers you can now add asmany content elements of this type as you want.

    Choose Contentfrom the menu bar to see all existing content elements within yourCartaro installation

    http://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id8http://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id8http://live.osgeo.org/_images/cartaro_openl_layersstylessettings.pnghttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id8
  • 8/10/2019 Mapas Drupal

    17/23

    http://live.osgeo.org/_images/cartaro_contentlist.png
  • 8/10/2019 Mapas Drupal

    18/23

    Select Add contentto add more content and choose your new content type in the

    appearing window (not shown). In the configuration page of your new content element

    (called node in Drupal language) make the following settings:

    1. Type a name

    2.

    You can draw the geometry for your content element. Choose the draw symbol on theupper right corner of the map. Note that tool tips are shown when you hover the toolbar

    icons. Click on the map to create a new geometry. Finish the drawing with double click.

    3. Saveyour geometry.

    Note

    Only one geometry per content element can be drawn in our example configuration. Create

    additional content elements to add more polygons.

  • 8/10/2019 Mapas Drupal

    19/23

    http://live.osgeo.org/_images/cartaro8.png
  • 8/10/2019 Mapas Drupal

    20/23

    You should now see your new content element

  • 8/10/2019 Mapas Drupal

    21/23

    http://live.osgeo.org/_images/cartaro_addedcontent_lakefr.png
  • 8/10/2019 Mapas Drupal

    22/23

    To view your new content element on the front map, click on the house icon in the upper

    left corner

    Congratulations, you have just finished the quickstart tutorial. Your first content element is nowready. To add more content elements simply peform the steps of this section again.

    Things to Try

    Use the Layer Assistantto include external layers Structure Open Layers Layers

    Add using assistant

    Change the default map behaviors and build your own map

    http://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id9http://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id9http://live.osgeo.org/_images/cartaro_addedcontent_frontmap.pnghttp://live.osgeo.org/en/quickstart/cartaro_quickstart.html#id9
  • 8/10/2019 Mapas Drupal

    23/23

    Try different geometry types and build more complex content types