Hoppa till huvudinnehållet

Buffered Workflow

Kommentarer

4 kommentarer

  • Permanently deleted user

    You should be able to clear your previous markup with the 'Run External Command' tool. The command is "ClearMarkup" and it requires no parameter.

    0
  • Permanently deleted user

    First of all, you should ClearMarkup *before* you AddMarkup or else you will never see any markup at all.

    Secondly, I am a little unsure of how your workflow gets to the step where the markup is added and removed. When I run it in the simulator (click the arrow by the gears at the top of Workflow Designer) there is an error in the BufferGeometry step. Degrees are not a linear unit of measurement and cannot be used as the input to the Distance parameter. So I don't think you are actually getting past this step.

    There are a number of approaches you could take to solve this, in increasing order of complexity:

    1. Simply ask for the buffer distance in a valid unit of measurement such as meters.

    2. Come up with a 'magic number' for converting degrees to meters that will be mostly correct for the area you are working in, then multiply your degrees by this number.

    3. If you have a point geometry you can do the whole buffer process manually to produce a super accurate result. Basically you'll need convert your point to geographic coordinates if it is not already, keeping in mind that the ESRI API only easily supports conversion between Web Mercator and WGS84. Then using some math you can make a circle of points surrounding the center point, each X degrees away. Finally you can make a polygon from these points, converting back to projected coordinates if necessary. The details of this are really more complex than I can go into here, but it should be possible. Hopefully one of the other options will be good enough for your needs.

    0
  • Permanently deleted user

    Dear Jonathan,

    My map is in Geographic projection, so there is no problem at BufferGeometry step. When I put "ClearMarkup" before "AddMarkup", there is no selected area on my viewer based on my query, but the query result listed well in left-hand panel. My goal is to clear the previous selected area from buffered geometry query. Maybe you can help me to solve this problem, Jo. Thank you.

    0
  • Permanently deleted user

    If I understand you correctly you wish to clear the graphics that show the selected elements from the query. This is not markup and will not be cleared by the ClearMarkup command. Only markup that you add with AddMarkup or that you draw on the map yourself will be cleared by this command. To clear the results of a selection you must clear the selection itself, either by setting 'Clear Collection First' on SelectFeatures to true or by running the external command "ClearSelection".

     

    0

Du måste logga in om du vill lämna en kommentar.