Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order of municipalities from trace #10

Open
gassc opened this issue Sep 18, 2018 · 1 comment
Open

Order of municipalities from trace #10

gassc opened this issue Sep 18, 2018 · 1 comment
Assignees

Comments

@gassc
Copy link
Member

gassc commented Sep 18, 2018

The sort order of them munis in the results pop-up reflects the basic limitation of the underlying geometric network trace function used in ArcGIS Server: it returns traced records in "database order", not in trace order. There are a couple possible solutions to this:

Option 1: On the client-side, dissolve the trace results using TurfJS in a single line (as best as possible). Traverse vertices of that line top-to-bottom to get intersecting municipalities. (We have some of this code implemented currently).

Option 2: Do the same as Option 1, but on the server side withing the geoprocessing tool. Less work for the client.

Option 3: When publishing the version of the sewer network used for tracing, add a "stream order"-like attribute that can used either in the server-side geoprocessing tool to re-order trace results, or in the client-side trace post-processing steps to get the pipe's position in the network.

@gassc gassc self-assigned this Sep 18, 2018
@gassc gassc removed the enhancement label Sep 18, 2018
@gassc
Copy link
Member Author

gassc commented Sep 18, 2018

(this is not a bug or an above-and-beyond enhancement; just unfinished piece that we'll get to at some point)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant