WikiWatershed / mmw-geoprocessing

A Spark Job Server job for Model My Watershed geoprocessing.
Apache License 2.0
6 stars 6 forks source link

Collections API: Implement RasterLinesJoin #53

Closed rajadain closed 6 years ago

rajadain commented 6 years ago

Old implementation: https://github.com/WikiWatershed/mmw-geoprocessing/blob/develop/summary/src/main/scala/MapshedJob.scala#L77-L130

Sample request and response: nlcd-streams.zip

Depends on #51

kellyi commented 6 years ago

Have this set up to perform an operation on the input & return the map of values, but the values I've got are currently off by a bit from the expected result:

HTTP/1.1 200 OK                                          
Content-Length: 254                                      
Content-Type: application/json                           
Date: Mon, 28 Aug 2017 17:09:55 GMT                      
Server: akka-http/10.0.9                                 

{                                                        
    "result": {                                          
        "List(11)": 2983,                                
        "List(21)": 40599,                               
        "List(22)": 52563,                               
        "List(23)": 47320,                               
        "List(24)": 30416,                               
        "List(31)": 118,                                 
        "List(41)": 15735,                               
        "List(42)": 65,                                  
        "List(43)": 1001,                                
        "List(52)": 1820,                                
        "List(71)": 697,                                 
        "List(81)": 1433,                                
        "List(82)": 3087,                                
        "List(90)": 30546,                               
        "List(95)": 4236                                 
    }                                                    
}     

Investigating...

kellyi commented 6 years ago

(Here's the expected response values from the zip file above, btw:)

{
  "result": {
    "List(11)": 2282,
    "List(21)": 34415,
    "List(22)": 45118,
    "List(23)": 39960,
    "List(24)": 25494,
    "List(31)": 101,
    "List(41)": 13336,
    "List(42)": 58,
    "List(43)": 841,
    "List(52)": 1562,
    "List(71)": 597,
    "List(81)": 1282,
    "List(82)": 2708,
    "List(90)": 24158,
    "List(95)": 3332
  }
}
rajadain commented 6 years ago

nlcd-streams-crum-creek-huc12.zip

kellyi commented 6 years ago

Got another version of this working and/but its counts are slightly off in a different direction.