Operator OSMXMLGeometrySource

Primitive operator image not displayed. Problem loading file: ../../image/tk$com.teracloud.streams.geospatial/op$com.teracloud.streams.geospatial$OSMXMLGeometrySource.svg

OSMXMLGeometrySource reads in an OSM XML map file (.osm file) and generates geometry tuples for consumption by the PointMapMatcher and GeometryMapMatcher operators.

Example


use com.teracloud.streams.geospatial::OSMXMLGeometrySource;
public composite Main {
  graph
    (stream<UpdateType updateType, UpdateFlags updateFlags, int64 objectId, float64 latitude,
     float64 longitude, int64 startNodeId, int64 endNodeId, boolean isOneWay> GeometryStream;
     stream<int64 generatedId, int64 originalId> WayIDs) = OSMXMLGeometrySource() {
       param
         mapfile: "Seattle.osm";
    }
}

Summary

Ports
This operator has 0 input ports and 2 output ports.
Windowing
This operator does not accept any windowing configurations.
Parameters
This operator supports 1 parameter.

Required: mapfile

Metrics
This operator does not report any metrics.

Properties

Implementation
Java

Output Ports

Assignments
Java operators do not support output assignments.
Ports (0)

Geometry tuple output

Properties

Ports (1)

Way Id mappings (int64 generatedId, int64 originalId) meant for consumption by OSMCorrelator.

Properties

Parameters

This operator supports 1 parameter.

Required: mapfile

mapfile

OpenStreetMaps XML map file (.osm file) to process.

Properties

Libraries

Operator class library
Library Path: ../../impl/lib/com.teracloud.streams.geospatial.jar