Skip to content

testing via ui

svcfmtm edited this page Aug 6, 2024 · 1 revision

Testing FMTM Splitter Visually

Sometimes a GeoJSON printed to the terminal just doesn't cut it...

If you wish to view the split data output in a more visual way:

Option 1: GeoJSON.io

  1. Generate a geojson bbox via geojson.io

  2. Copy the content into output/input.geojson in this repo.

  3. Run the splitting algorithm:

    docker compose run --rm splitter fmtm-splitter \
        --boundary output/input.geojson \
        --outfile output/output.geojson \
        --number 50

    Note: a data extract will be generated for you.

  4. Copy the data from output/output.geojson to geojson.io to visualise.

Note: to include a custom data extract, pass the --extract flag point to a geojson file.

Option 2: FMTM

  1. Setup FMTM:

    git clone https://github.com/hotosm/fmtm.git
    cd fmtm
    cp .env.example .env
    
    # Open docker-compose.yml and uncomment
    - ../osm-rawdata/osm_rawdata:/home/appuser/.local/lib/python3.10/site-packages/osm_rawdata
    
    # Run FMTM
    docker compose up -d
  2. Go to the FMTM dashboard

  3. Create a new project.

  4. Upload your project AOI.

  5. Upload or generate a data extract.

  6. On the task splitting page, select Task Splitting Algorithm.

  7. Then click Click to generate tasks to see the algorithm output.

Clone this wiki locally