public class VisualizeVideoRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.visualizeVideo(VisualizeVideoRequest)
.
bgColor
, width
,
height
), the collection of GPUdb table names on which this function is to be applied, for which shapes (point, polygon,
tracks) the images are to be created and a user specified session key. This session key is later used to fetch the generated
images stored by GPUdb. The operation is synchronous meaning that GPUdb will not return the request until the images for all the
frames of the video are fully available.
sessionKey
of the visualize video
request and the FRAME parameter indicates which 0-based frame of the video should be returned. All other WMS parameters are
ignored for this mode.
Modifier and Type | Class and Description |
---|---|
static class |
VisualizeVideoRequest.Projection
Spatial Reference System (i.e.
|
static class |
VisualizeVideoRequest.StyleOptions
Styling options for the image.
|
Constructor and Description |
---|
VisualizeVideoRequest()
Constructs a VisualizeVideoRequest object with default parameters.
|
VisualizeVideoRequest(List<String> tableNames,
List<String> worldTableNames,
List<List<String>> trackIds,
String xColumnName,
String yColumnName,
double minX,
double maxX,
double minY,
double maxY,
int width,
int height,
String projection,
long bgColor,
List<List<Double>> timeIntervals,
String videoStyle,
String sessionKey,
Map<String,List<String>> styleOptions,
Map<String,String> options)
Constructs a VisualizeVideoRequest object with the specified parameters.
|
public VisualizeVideoRequest()
public VisualizeVideoRequest(List<String> tableNames, List<String> worldTableNames, List<List<String>> trackIds, String xColumnName, String yColumnName, double minX, double maxX, double minY, double maxY, int width, int height, String projection, long bgColor, List<List<Double>> timeIntervals, String videoStyle, String sessionKey, Map<String,List<String>> styleOptions, Map<String,String> options)
tableNames
- Names of the tables containing the data for various layers of the resulting video.worldTableNames
- Optional name of the tables containing the data for the entire track when the tableNames
contains only part of the track data, but the entire track has to be rendered. The number of tables
should match the number of tables in the tableNames
trackIds
- Tracks from the tableNames
to be rendered.xColumnName
- Name of the column containing the x coordinates.yColumnName
- Name of the column containing the y coordinates.minX
- Lower bound for the x values.maxX
- Upper bound for the x values.minY
- Lower bound for the y values.maxY
- Upper bound for the y values.width
- Width of the generated image.height
- Height of the generated image.projection
- Spatial Reference System (i.e. EPSG Code). Values: EPSG:4326, PLATE_CARREE, 900913, EPSG:900913, 102100,
EPSG:102100, 3857, EPSG:3857, WEB_MERCATOR.bgColor
- Background color of the generated image.timeIntervals
- videoStyle
- sessionKey
- User Provided session key that is later used to retrieve the generated video from the WMS.styleOptions
- Styling options for the image.
options
- Optional parameters.public static org.apache.avro.Schema getClassSchema()
public List<String> getTableNames()
public VisualizeVideoRequest setTableNames(List<String> tableNames)
tableNames
- Names of the tables containing the data for various layers of the resulting video.this
to mimic the builder pattern.public List<String> getWorldTableNames()
tableNames
contains only part
of the track data, but the entire track has to be rendered. The number of tables should match the number of tables in
the tableNames
public VisualizeVideoRequest setWorldTableNames(List<String> worldTableNames)
worldTableNames
- Optional name of the tables containing the data for the entire track when the tableNames
contains only part of the track data, but the entire track has to be rendered. The number of tables
should match the number of tables in the tableNames
this
to mimic the builder pattern.public List<List<String>> getTrackIds()
tableNames
to be rendered.public VisualizeVideoRequest setTrackIds(List<List<String>> trackIds)
trackIds
- Tracks from the tableNames
to be rendered.this
to mimic the builder pattern.public String getXColumnName()
public VisualizeVideoRequest setXColumnName(String xColumnName)
xColumnName
- Name of the column containing the x coordinates.this
to mimic the builder pattern.public String getYColumnName()
public VisualizeVideoRequest setYColumnName(String yColumnName)
yColumnName
- Name of the column containing the y coordinates.this
to mimic the builder pattern.public double getMinX()
public VisualizeVideoRequest setMinX(double minX)
minX
- Lower bound for the x values.this
to mimic the builder pattern.public double getMaxX()
public VisualizeVideoRequest setMaxX(double maxX)
maxX
- Upper bound for the x values.this
to mimic the builder pattern.public double getMinY()
public VisualizeVideoRequest setMinY(double minY)
minY
- Lower bound for the y values.this
to mimic the builder pattern.public double getMaxY()
public VisualizeVideoRequest setMaxY(double maxY)
maxY
- Upper bound for the y values.this
to mimic the builder pattern.public int getWidth()
public VisualizeVideoRequest setWidth(int width)
width
- Width of the generated image.this
to mimic the builder pattern.public int getHeight()
public VisualizeVideoRequest setHeight(int height)
height
- Height of the generated image.this
to mimic the builder pattern.public String getProjection()
public VisualizeVideoRequest setProjection(String projection)
projection
- Spatial Reference System (i.e. EPSG Code). Values: EPSG:4326, PLATE_CARREE, 900913, EPSG:900913, 102100,
EPSG:102100, 3857, EPSG:3857, WEB_MERCATOR.this
to mimic the builder pattern.public long getBgColor()
public VisualizeVideoRequest setBgColor(long bgColor)
bgColor
- Background color of the generated image.this
to mimic the builder pattern.public VisualizeVideoRequest setTimeIntervals(List<List<Double>> timeIntervals)
timeIntervals
- this
to mimic the builder pattern.public String getVideoStyle()
public VisualizeVideoRequest setVideoStyle(String videoStyle)
videoStyle
- this
to mimic the builder pattern.public String getSessionKey()
public VisualizeVideoRequest setSessionKey(String sessionKey)
sessionKey
- User Provided session key that is later used to retrieve the generated video from the WMS.this
to mimic the builder pattern.public Map<String,List<String>> getStyleOptions()
public VisualizeVideoRequest setStyleOptions(Map<String,List<String>> styleOptions)
styleOptions
- Styling options for the image.
this
to mimic the builder pattern.public VisualizeVideoRequest setOptions(Map<String,String> options)
options
- Optional parameters.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2016. All rights reserved.