Skip to content

Build Tool: Case

Jun Wang edited this page Sep 28, 2020 · 8 revisions

A case

A case is a collection of user-specific sources, sinks, cost surfaces, and candidate networks. 

Data structure:

Minimum design to work with the map tool.

CaseID
Title
Description
Datasets
    [DataID, Name, Description, Type[sink|source|costsurface]]  
Maptool
    Sources
        [DataID]
    Sinks
        [DataID]
    CostSurfaces
        [DataID]
    Data
        [DataID, Location|URL, Style, Popup, BBOX]
    BBOX
        [LON1,LAT1,LON2,LAT2]

A simple testing case

Test data source: MaconSimCCSGateway.gdb  

Cost surface is not used at this time.

{
    "CaseID": "Test001",
    "Title": "SimCCS_Macon",
    "Description": "A testing case for Illinois Basin",
    "Datasets": [{
            "DataID": "source001",
            "Name": "SimCCS_MaconSources",
            "Description": "SimCCS_MaconSources",
            "Type": "source"
        },
        {
            "DataID": "sink001",
            "Name": "SCO2T_Arkosic_Macon_10K",
            "Description": "SCO2T_Arkosic_Macon_10K",
            "Type": "sink"
        }
    ],
    "Maptool": {
        "Sources": ["source001"],
        "Sinks": ["sink001"],
        "CostSurfaces":[],
        "Data": [{
                "DataID": "source001",
                "URL": "",
                "Style": "",
                "Popup": ["Name","CapCO2","TotalUnitCost"],
                "BBOX": ""
            },
            {
                "DataID": "sink001",
                "URL": "",
                "Style": "TotalUnitCost",
                "Popup": ["Name","StorageCap","TotalUnitCost"],
                "BBOX": ""
            }
        ],
        "BBOX": [-89.91, 38.10, -87.70, 40.90]
    }
}

Launch the map tool with a case

URL: site/casetool?caseid=CaseID

Data shall be accessible through DataID

Clone this wiki locally