Last active
December 5, 2023 14:19
-
-
Save lesolorzanov/6e312512c3c3b7b97075065f0f8f0434 to your computer and use it in GitHub Desktop.
Save qupath geojson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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