Aller au contenu principal

Get geometry extent, set map extent

Commentaires

2 commentaires

  • Stefan Schweigert

    Good day Greg,

     

    When using the Set Map Extent or Get Map Extent activities, assuming that you are using the Features input with '=$query1.features' as an input for the Set activity, make sure that you've set the Query Layer activity to Return Geometry as '=true'. Both activities should function the same if a geometry is available.

     

    Would you be able to upload your workflow so that I can take a look at what might be happening?

     

    Thanks, Stefan

    0
  • Permanently deleted user

    Hi Greg,

     

    One possibility I can think of is that the geometry from the query might have a different spatial reference than the viewer, so the viewer isn't able to use it to set an extent. If that's the case, there are two options:

     

    1. Use the Out Spatial Reference property for the Query Layer activity to specify the WKID of your viewer (based on your lowest basemap). You would use this option if you don't need to use the original geometry for anything else in the workflow
    2. Use the Project activity on the extent from Get Geometry Extent to specify the WKID of your viewer (based on your lowest basemap). Then use that result in Set Map Extent (eg =$projectGeometry1.geometry)
    0

Vous devez vous connecter pour laisser un commentaire.