Dissolve by ZoneCategory
" POSITION="-810.384 -13.7482" TOP_LEFT="-810.384 -13.7482" BOTTOM_RIGHT="-811.384 -12.7482" BOUNDING_RECT="-810.384 -13.7482 -1 -1" ORDER="5e+14" FOLLOW_ANCHOR="true" INFO_NODE="false" COLOUR="1,1,0.784314,0.192157" SIZE_POLICY="8" COMMENT_TYPE="REGULAR" ANCHORED_NODE="46">Set the input feature type
" POSITION="-2353.05 264.009" TOP_LEFT="-2353.05 264.009" BOTTOM_RIGHT="-2354.05 265.009" BOUNDING_RECT="-2353.05 264.009 -1 -1" ORDER="5e+14" FOLLOW_ANCHOR="true" INFO_NODE="false" COLOUR="1,1,0.784314,0.192157" SIZE_POLICY="8" COMMENT_TYPE="REGULAR" ANCHORED_NODE="11">Extract first feature
" POSITION="-1660.86 264.009" TOP_LEFT="-1660.86 264.009" BOTTOM_RIGHT="-1661.86 265.009" BOUNDING_RECT="-1660.86 264.009 -1 -1" ORDER="5e+14" FOLLOW_ANCHOR="true" INFO_NODE="false" COLOUR="1,1,0.784314,0.192157" SIZE_POLICY="8" COMMENT_TYPE="REGULAR" ANCHORED_NODE="6">Create temp location
" POSITION="-1065.23 264.009" TOP_LEFT="-1065.23 264.009" BOTTOM_RIGHT="-1066.23 265.009" BOUNDING_RECT="-1065.23 264.009 -1 -1" ORDER="5e+14" FOLLOW_ANCHOR="true" INFO_NODE="false" COLOUR="1,1,0.784314,0.192157" SIZE_POLICY="8" COMMENT_TYPE="REGULAR" ANCHORED_NODE="3">Store temp location in variable
" POSITION="-575.472 264.009" TOP_LEFT="-575.472 264.009" BOTTOM_RIGHT="-576.472 265.009" BOUNDING_RECT="-575.472 264.009 -1 -1" ORDER="5e+14" FOLLOW_ANCHOR="true" INFO_NODE="false" COLOUR="1,1,0.784314,0.192157" SIZE_POLICY="8" COMMENT_TYPE="REGULAR" ANCHORED_NODE="7">Read temp location from variable
" POSITION="-594.222 -244.122" TOP_LEFT="-594.222 -244.122" BOTTOM_RIGHT="-595.222 -243.122" BOUNDING_RECT="-594.222 -244.122 -1 -1" ORDER="5e+14" FOLLOW_ANCHOR="true" INFO_NODE="false" COLOUR="1,1,0.784314,0.192157" SIZE_POLICY="8" COMMENT_TYPE="REGULAR" ANCHORED_NODE="8">Create schema from first feature
" POSITION="115.72 297.257" TOP_LEFT="115.72 297.257" BOTTOM_RIGHT="114.72 298.257" BOUNDING_RECT="115.72 297.257 -1 -1" ORDER="5e+14" FOLLOW_ANCHOR="true" INFO_NODE="false" COLOUR="1,1,0.784314,0.192157" SIZE_POLICY="8" COMMENT_TYPE="REGULAR" ANCHORED_NODE="10">Write to temp gdb
" POSITION="184.471 -464.258" TOP_LEFT="184.471 -464.258" BOTTOM_RIGHT="183.471 -463.258" BOUNDING_RECT="184.471 -464.258 -1 -1" ORDER="5e+14" FOLLOW_ANCHOR="true" INFO_NODE="false" COLOUR="1,1,0.784314,0.192157" SIZE_POLICY="8" COMMENT_TYPE="REGULAR" ANCHORED_NODE="2">Fix path slashes
" POSITION="927.134 297.257" TOP_LEFT="927.134 297.257" BOTTOM_RIGHT="926.134 298.257" BOUNDING_RECT="927.134 297.257 -1 -1" ORDER="5e+14" FOLLOW_ANCHOR="true" INFO_NODE="false" COLOUR="1,1,0.784314,0.192157" SIZE_POLICY="8" COMMENT_TYPE="REGULAR" ANCHORED_NODE="9">Get group by attributes
" POSITION="911.038 -244.122" TOP_LEFT="911.038 -244.122" BOTTOM_RIGHT="910.038 -243.122" BOUNDING_RECT="911.038 -244.122 -1 -1" ORDER="5e+14" FOLLOW_ANCHOR="true" INFO_NODE="false" COLOUR="1,1,0.784314,0.192157" SIZE_POLICY="8" COMMENT_TYPE="REGULAR" ANCHORED_NODE="27">Run Arcpy Dissolve on feature class
" POSITION="1419.98 297.257" TOP_LEFT="1419.98 297.257" BOTTOM_RIGHT="1418.98 298.257" BOUNDING_RECT="1419.98 297.257 -1 -1" ORDER="5e+14" FOLLOW_ANCHOR="true" INFO_NODE="false" COLOUR="1,1,0.784314,0.192157" SIZE_POLICY="8" COMMENT_TYPE="REGULAR" ANCHORED_NODE="4">Read back output feature class
" POSITION="2180.8 297.257" TOP_LEFT="2180.8 297.257" BOTTOM_RIGHT="2179.8 298.257" BOUNDING_RECT="2180.8 297.257 -1 -1" ORDER="5e+14" FOLLOW_ANCHOR="true" INFO_NODE="false" COLOUR="1,1,0.784314,0.192157" SIZE_POLICY="8" COMMENT_TYPE="REGULAR" ANCHORED_NODE="5">import fme
import fmeobjects
import arcpy
def processFeature(feature):
# Get dissolve FC and settings from feature attributes
dataset = feature.getAttribute('_dataset')
dissolveFields = feature.getAttribute('_Group_Attrs')
arcpy.env.workspace = dataset
# Set local variables
inFeatures = "pre_dissolve"
outFeatureClass = dataset + "/dissolved"
# Execute Dissolve using group by attributes as Dissolve Fields
arcpy.Dissolve_management(inFeatures, outFeatureClass, dissolveFields, "", "MULTI_PART", "DISSOLVE_LINES")
" POSITION="911.038 -408.75" TOP_LEFT="911.038 -408.75" BOTTOM_RIGHT="910.038 -407.75" BOUNDING_RECT="911.038 -408.75 -1 -1" ORDER="5e+14" FOLLOW_ANCHOR="true" INFO_NODE="false" COLOUR="1,1,0.784314,0.192157" SIZE_POLICY="8" COMMENT_TYPE="REGULAR" ANCHORED_NODE="4">Remove temporary attributes
" POSITION="2840.65 297.257" TOP_LEFT="2840.65 297.257" BOTTOM_RIGHT="2839.65 298.257" BOUNDING_RECT="2840.65 297.257 -1 -1" ORDER="5e+14" FOLLOW_ANCHOR="true" INFO_NODE="false" COLOUR="1,1,0.784314,0.192157" SIZE_POLICY="8" COMMENT_TYPE="REGULAR" ANCHORED_NODE="42">
For example: if a feature has the following attributes:
Attribute(boolean) : `mybool' has value `Yes'
Attribute(32 bit integer): `myint' has value `12'
Attribute(64 bit real) : `myreal' has value `12.965'
the following list attributes will be added:
Attribute(string) : `attribute{0}.fme_data_type' has value `fme_boolean'
Attribute(encoded: utf-8): `attribute{0}.name' has value `mybool'
Attribute(string) : `attribute{1}.fme_data_type' has value `fme_int32'
Attribute(encoded: utf-8): `attribute{1}.name' has value `myint'
Attribute(string) : `attribute{2}.fme_data_type' has value `fme_real64'
Attribute(encoded: utf-8): `attribute{2}.name' has value `myreal'
The transformer also gives users the option to exclude certain attributes based on name or prefix, and automatically excludes all "fme_" attributes.
" fme_process_count="NO_PARALLELISM" fme_process_group_by="" usage="Input Ports
Features containing attributes for which a schema definition is required.
Output Ports
All features are output. Attributes which have been selected to be excluded are removed from the feature. The list containing the schema of the feature is added to each feature.
Parameters
Attributes to Exclude
A selected set of attributes that will be excluded from the generated schema list and removed from the feature.
Prefixes to Exclude
A comma-delimited list of prefixes for attributes that are to be excluded from the generated schema list and removed from the feature. Regular expressions are not supported. For example: "date" will exclude any attributes that start with the letters "date" e.g. date_created, dateupdated
Sort Attributes
(Ascending, Descending, None) Set this parameter to alphabetically sort output attributes.
Usage Notes
The feature based schema can be passed to any writer that it set to Dynamic Mode and used with the "Schema from First Feature" setting.
Please see https://knowledge.safe.com/articles/1051/dynamic-workflow-tutorial-destination-schema-is-de-2.html for more information on feature-based schema using list attributes.
" last_save_date="2017-02-16T16:20:40" fme_process_groups_ordered="No" doc_top_left="-108.875 -291" zoom_scale="100" markdown_description="" suppress_upgrade="false" history="2013-08-23,IrisRetrieve Parameters
" POSITION="493 -159" TOP_LEFT="493 -159" BOTTOM_RIGHT="493 -159" BOUNDING_RECT="493 -159 0 0" ORDER="5e+14" FOLLOW_ANCHOR="true" INFO_NODE="false" COLOUR="1,1,0.784314,0.192157" SIZE_POLICY="8" COMMENT_TYPE="REGULAR" ANCHORED_NODE="2">See Comment in Code
" POSITION="1107.62 -144" TOP_LEFT="1107.62 -144" BOTTOM_RIGHT="1107.62 -144" BOUNDING_RECT="1107.62 -144 0 0" ORDER="5e+14" FOLLOW_ANCHOR="true" INFO_NODE="false" COLOUR="1,1,0.784314,0.192157" SIZE_POLICY="8" COMMENT_TYPE="REGULAR" ANCHORED_NODE="3">fme_boolean