wmbeers / cmv-app

CMV - The Configurable Map Viewer - A community supported open source mapping framework built with the Esri JavaScript API and the Dojo Toolkit
https://demo.cmv.io/
MIT License
1 stars 2 forks source link

Extract from RCI basemap should not return zero-length lines #72

Closed wmbeers closed 3 years ago

wmbeers commented 3 years ago

How often can you reproduce it? Sometimes.

Description:

Depending on the roadway ID and mileposts selected, an extract (in AOI or project editor) from the RCI basemap can produce zero-length lines (stored in the db as ST_GEOMETRY(12, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, 0, 0, 3087, NULL) ),

https://repo.fla-etat.org/bugzilla/show_bug.cgi?id=5933

Steps to reproduce:

  1. Create a new AOI
  2. Use the Extract function, enter roadway 57070000, BMP 0, EMP 4.592
  3. Click Extract

Expected results: One feature, labeled "57070000 from 0.000 to 4.592", with a valid line, 4.592 miles long

Actual results: In addition to the correct one expected, we also get a second labeled "57070000 from 4.592 to 4.592", with 0 length.

wmbeers commented 3 years ago

Note a bit of confusion in creating the branches. My first branch, under which I committed the one change that needed to be made, was inadvertently made off of a different branch than estMap. I've since created a new branch from estMap and cherry-picked the commit from the original branch, without the others related to a different bug.

Original branch, made from the branch for #71: https://github.com/wmbeers/cmv-app/commits/Extract-fix-issue-72 Correct branch, made from current head of our estMap branch: https://github.com/wmbeers/cmv-app/commits/Extract-issue-72

The latter is the one I'll use for the pull request.