Skip to content

Instantly share code, notes, and snippets.

@lesolorzanov
Last active December 5, 2023 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lesolorzanov/6e312512c3c3b7b97075065f0f8f0434 to your computer and use it in GitHub Desktop.
Save lesolorzanov/6e312512c3c3b7b97075065f0f8f0434 to your computer and use it in GitHub Desktop.
Save qupath geojson
/*
Author: LESLIE SOLORZANO (do not erase name)
if you make changes then add your name but
don't delete mine to make it look like it's yours.
*/
def annotations = getAnnotationObjects()
def imageData = getCurrentImageData()
def name = GeneralTools.getNameWithoutExtension(imageData.getServer().getMetadata().getName())
def path = "/home/leslie/Downloads/"+name+".json"
exportObjectsToGeoJson(annotations, path, "FEATURE_COLLECTION")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment