Skip to content

Unable to upload geojson annotations through the Girder UI #410

@jacksonjacobs1

Description

@jacksonjacobs1

Description

I am currently testing methods for uploading geojson annotations to a self-hosted DSA instance, and was unable to upload my annotations using the Girder UI.

Full disclosure I am operating under the assumption that this statement from the large_image documentation is accurate:

In addition to the native format for annotations, annotations in geojson can be passed to the Annotation.createAnnotation method, uploaded via the standard UI on the Girder item page or via the POST file endpoint.

https://girder.github.io/large_image/annotations.html#alternate-formats

Is this something someone can help with? I don't see any guidance or tutorials in the girder/DSA/large_image documentation, and until I am able to upload geojson annotations via the Girder UI, I am not confident that the other upload approaches mentioned in the large_image docs will work for me either.

Steps to reproduce

  1. I used a minimal geojson file which I drew in and exported from qupath:

Image

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "id": "a9eec0da-3a6e-4388-8f7d-9ca2240eb183",
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              1494,
              2232
            ],
            [
              125650,
              2232
            ],
            [
              125650,
              90592
            ],
            [
              1494,
              90592
            ],
            [
              1494,
              2232
            ]
          ]
        ]
      },
      "properties": {
        "objectType": "annotation"
      }
    }
  ]
}
  1. Upload this geojson file using the Girder UI

Image

  1. I see a notification that the annotations were successfully uploaded. Upon refreshing the page I see the .geojson file displayed under "files and links"

Image

However, the annotations are not displayed on the image when I open HistomicsUI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions