Skip to content

[Back to Parameters]

Geometry Names

Allows the parameter to use input geometries as choices.

Specification

key type required default value description
sourcePorts array\ no [] A string list of ports where geometries can be referred to.
excludeIncoming bool no false When true, excludes geometries already present on input ports from the choices.
includeUnexposedGeoms bool no false When true, includes geometry names from upstream cached schema that are not yet exposed on input ports.

When geometry input is present, the backend value FME_ALL_GEOMETRIES represents all input geometries. For geometries without a name, the value FME_UNNAMED_GEOMETRY is used.

Example

With no input port restriction

{
    "name" : "GEOM_NAME_SELECTION",
    "prompt" : "Geometry Selection:",
    "valueType" : "string",
    "choiceSettings" : {
        "choiceSet" : "geometryNames"
    },
    "type" : "dropdown"
}

With input port restriction

{
    "name" : "GEOM_NAME_AREA",
    "prompt" : "Geometry Selection:",
    "valueType" : "string",
    "choiceSettings" : {
        "choiceSet" : "geometryNames",
        "sourcePorts" : [ "AREA" ]
    },
    "expressionSettings" : {
        "sourcePorts" : [ "AREA" ]
    },
    "type" : "dropdown"
}

With data-aware unexposed geometry selection (shows unexposed geometries from upstream caches)

{
    "name" : "GEOMETRY_TO_EXPOSE",
    "prompt" : "Geometry to Expose:",
    "valueType" : "string",
    "choiceSettings" : {
        "choiceSet" : "geometryNames",
        "excludeIncoming" : true,
        "includeUnexposedGeoms" : true
    },
    "type" : "dropdown"
}