The OgrSource is a source operator that reads vector data using OGR. The counterpart for raster data is the GdalSource.
OgrSource
GdalSource
data
DataId
{ "type": "internal", "datasetId": "e977b123-ca47-4c5b-aace-481119826aaf"}
attributeProjection
Array<String>
["name", "population"]
attributeFilters
Array<AttributeFilter>
[{"attribute": "population", "ranges": [[1000, 10000]]}]
The following describes the types used in the parameters.
The AttributeFilter defines one or more ranges on the values of an attribute. The ranges include the lower and upper bounds of the range.
AttributeFilter
attribute
String
ranges
Array<Array<String \| Number>>
keepNulls
bool
false
None
If the given dataset does not exist or is not readable, an error is thrown.
{ "type": "OgrSource", "params": { "data": { "type": "internal", "datasetId": "e977b123-ca47-4c5b-aace-481119826aaf" }, "attributeProjection": ["name", "population"], "attributeFilters": [ { "attribute": "population", "ranges": [[1000, 10000]], "keepNulls": false } ] } }