VIDA-NYU / tile2net

Automated mapping of pedestrian networks from aerial imagery tiles
BSD 3-Clause "New" or "Revised" License
146 stars 22 forks source link

reset back to origin and allow generate to specify source #20

Closed dhodcz2 closed 1 year ago

dhodcz2 commented 1 year ago

allow source to be specified in tile2net generate suggest different source if no tiles found (necessary because new brunswick has a greater IOU with New York than New Jersey) if there is a JSONDecodeError, it prints the text:

           try:
                project = json.loads(text)
            except json.JSONDecodeError as e:
                logger.error(f'Could not parse JSON from stdin: {e}')
                logger.error(f'JSON: {text}')
                raise

added source.keyword to minimize ambiguity; source.keyword must be found in the address when reverse geolocating from a bbox