Zum Hauptinhalt gehen

zoom to URL

Kommentare

8 Kommentare

  • John Nerge

    This is a very straightforward workflow. The steps are

    1. GetMapServiceInfo to get the map service URL and layer ID you're going to use
    2. QueryTask to query the layer form step 1 using the where clause to create your selection
    3. GetFeatureSetExtent to get your selected geometry from the feature set you made in step 2
    4. RunExternalCommand to run the "ZoomToExtent" command using the geometry variable from the step 3 as your command parameter

    Sometimes I also include a BufferTask activity between after step 3 and use its output for step 4 so that when the viewer zooms I can still see some of the surrounding area.

    The real trick to this is knowing how to form your URL to run the workflow when the viewer launches. That looks like this:

    <your full viewer URL>&runWorkflow=<your workflow ID>

    0
  • Permanently deleted user

    The zoom feature works sometimes, but i am getting the following error. "This operation failed because of a projection error ." 

    Also does anyone know how I can select or outline a parcel.  The workflow zooms in but doesn't select the parcel.

    Thanks,

    Victor P

     

     

     

    0
  • John Nerge

    Not sure about the error, but it sounds like a coordinate system issue. What system are you using in your viewer?

    To select features, you can use the SelectFeatures activity (you can add a pushpin on the map for the results too). You have multiple options for outlining the parcel. A couple of them are the HighlightEsriFeatureSet and AddMarkupGeometry commands, which you can use with the RunExternalCommand activity. Check out the viewer admin guide to see what command parameters they each take.

    0
  • Permanently deleted user

    Mr. Nerge,

    Thank you for your prompt response. We are not using the world mercator  coordinate system, instead we are using the State Plane Coordinate sytem. We can't seem to find any way to deal with the issue without having to redo all our maps. I am also wondering if the coordinate system error could also be the cause of our workflows inability to select paracels. The following is a screen shot of my workflow. Once again thank you for your help.

     

    /customer/servlet/servlet.FileDownload?file=00P6000000em1VdEAI

     

    0
  • John Nerge

    Are you sure that the Query Task is selecting the feature you want it to? Can you try adding a Select Features activity to see?

    0
  • Permanently deleted user

    Yes it seem to be selecting the right feature, because the program does zoom to the right parcel, but I can't seem to get it to select / highlight the parcel. I have attached the workflow simulator activity.

    /customer/servlet/servlet.FileDownload?file=00P6000000elzgOEAQ

     

    0
  • John Nerge

    Looking at your previous post it looks like you're running the AddPushpin command, but if you're using SelectFeatures you can just set the Show Pushpin setting to True (look in the right side pane in Workflow Designer when you select the SelectFeatures activity). If you want to highlight the selection, you can use the HighlightEsriFeatureSet and use your feature set as the parameter.

    Is there anything else your workflow isn't doing that you want it to? I feel like things have gotten a little muddled.

    0
  • Permanently deleted user

    This is for Richard Diaz - thanks, this is a great workflow and extremely helpful. 

    I had a question about the 'fidf' (FeatureIDField) argument.  The other arguments make sense to me and I know where they are found within GE or rest services page.  However I can't figure out what components make up the fidf argument in your example.  You have 'IREMSADMIN.Easement.EINFOID' in your specific example (integer version).  Can you break that down a bit and review what that represents?  Looks almost like it represents: Schema.FeatureClass.UniqueID field?

    Thanks -

    Allen Scully

    City of Tucson, AZ GIS Programmer

    0

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