Skip to main content

SetMapExtent - receive "required Extent argument was not supplied" error

Comments

3 comments

  • Permanently deleted user

    Hi Carmen,

    Are you getting Geometry when you generate the FeatureSet of results?  A FeatureSet doesn't require geometry, but it won't have an extent if there isn't any Geometry in it.

    You should not have to initialize the variable - the GetFeatureSetExtent activity will do that for you.

    0
  • Nico Burgerhart

    For the QueryTask activity, is the argument Return Geometry set to true? (by default it is false)

    "If true, each feature in the FeatureSet includes the geometry. Since the geometry makes up a significant portion of the response, only use when you plan to use the geometry of the feature, for example to include them on a map. By default, this is false."

     

    0
  • Carmen Durham

    Thank you Malcolm and Nick for reminding me about the Query Task returngeometry.  I had run into the same thing when working with Flex APi (not related to Essentials) a while back so it all made sense.

    Solution: I set the returngeometry parameter to True for the QueryTasks and then had to indicate the Out spatial reference (our service was different from the map) and it worked fine. 

    Interesting trying to apply what I have done with the Flex API to the world of GeoCortex Workflow and Essentials/Silverlight Viewer world.  I am not sure if it makes it easier or harder!

    Carmen

     

    0

Please sign in to leave a comment.