Operator OSMXMLGeometrySource
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
- Assignments
- Java operators do not support output assignments.
- Ports (0)
-
Geometry tuple output
- Properties
-
- Optional: false
- WindowPunctuationOutputMode: Generating
- Ports (1)
-
Way Id mappings (int64 generatedId, int64 originalId) meant for consumption by OSMCorrelator.
- Properties
-
- Optional: false
- WindowPunctuationOutputMode: Generating
Required: mapfile
- mapfile
-
OpenStreetMaps XML map file (.osm file) to process.
- Properties
-
- Type: rstring
- Cardinality: 1
- Optional: false
- Operator class library