Zum Hauptinhalt gehen

WKID of map differ in Geocortex rest and work flow map info

Kommentare

1 Kommentar

  • Permanently deleted user
    Hi Helen,

     

    Your best option here would be to have the ArcGIS Server map re-published such that it provides the WKID as 3111.  However, if the WKIDs 3111 and 102171 are equivalent we can cheat a bit in the workflow without using the project task.

     

    One of the output parameters of the Get Map Info activity is the current spatial reference of the map, represented as a SpatialReference object.  You can use this object with an Assign activity to override the spatial reference of the FeatureSet you're using in your workflow.

     

    Note: you may have to assign the Spatial Reference on the FeatureSet itself AND all of the Graphics (Features) within the FeatureSet, so that it serializes properly when workflow sends it to your viewer.  Once you do, you should be able to see things as expected.

     

    The viewer APIs are very picky about spatial references and will not behave as expected when geometries are sent in a different one, as you've observed.  They must exactly match - either by ID or every character in WKT text, if using WKT.

     

    Regards,

     

    -Malcolm
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.