Oskari API Documentation

Select bundle

admindown-arrow
cataloguedown-arrow
  • metadata
    Generic functionality to display metadata from a CSW-service
  • metadatasearch
    Provides metadata catalogue search user-interface for an application.
frameworkdown-arrow
  • announcements
    Bundle for displaying announcements made with admin-announcements.
  • Core services
    Provided by the framework
  • layeranalytics
    Map layer problem tracker
  • layerlist
    A layer listing functionality for the geoportal.
  • mydata
    Provides generic container for listing user data and offers other functionalities a way to present user-specific information.
  • Map Publisher 2
    Allows creation of embedded maps
  • RPC
  • Search
    Provides basic search functionality without any UI
  • Selected-featuredata
    Allows infobox opening in new flyout
  • statehandler
    History functionality and state saving.
  • usagetracker
    Pings the server when any of the configured events occur.
mappingdown-arrow
statisticsdown-arrow
  • statsgrid2016
    Statistics data display. This will replace the statsgrid bundle specification when the implementation has the comparable functionalities as the current one. The bundle depends on mapstats-bundle that provides support for statslayer layertype.
uidown-arrow

geometrycutter

Description

The bundle provides tools for geometry editing. Currently supported functionality includes spliting Polygon or LineString with user drawn LineString and clipping any geometry with user drawn Polygon.

The target geometry to be cut is assumed to be rendered by the requesting functionality. Geometrycutter only renders the user drawn cutting feature and the cutting results for the duration of the cutting operation. That is, after StopGeometryCuttingRequest, map is cleared from any temporary features rendered by geometrycutter.

Usage

  1. Send StartGeometryCuttingRequest with target GeoJSON and mode
  2. Listen to GeometryCuttingEvent for updates (if needed)
  3. Send StopGeometryCuttingRequest when you wish to stop functionality

Bundle configuration

No configuration is required.

Requests the bundle sends out

Request Where/why it's used
DrawTools.StartDrawingRequestStarts cutting geometry drawing
DrawTools.StopDrawingRequestStops cutting geometry drawing
MapModulePlugin.AddFeaturesToMapRequestShows geometry cutting results on map

Events the bundle listens to

EventHow does the bundle react
`DrawingEvent`Uses drawn geometry as cutting feature
`FeatureEvent`Listens to clicks. Highlights cutting results displayed on map

Dependencies

Dependency Linked from Purpose
JSTS Version 1.4.0 assumed to be linked Used for geometrical operations