Commit bb00591d authored by Rick Gruber-Riemer's avatar Rick Gruber-Riemer

Rename osm2city to buildings and osm2pylon to pylons

parent 3c189eee
......@@ -131,7 +131,7 @@ if __name__ == '__main__':
download_file = _open_file(_get_file_name("download_", args.tile_name), root_dir_name)
files = []
utils = ['tools', 'osm2city', 'osm2pylon', 'platforms', 'roads', 'piers', ]
utils = ['tools', 'buildings', 'pylons', 'platforms', 'roads', 'piers', ]
for util in utils:
files.append((util + '.py',
_open_file(_get_file_name(util + "_", args.tile_name), root_dir_name),
......
# -*- coding: utf-8 -*-
"""
osm2city.py aims at generating 3D city models for FG, using OSM data.
buildings.py aims at generating 3D city models for FG, using OSM data.
Currently, it generates 3D textured buildings.
However, it has a somewhat more advanced texture manager, and comes with a
number of facade/roof textures.
......@@ -461,7 +461,7 @@ def write_xml(path: str, file_name: str, buildings: List[building_lib.Building],
if __name__ == "__main__":
random.seed(42)
# -- Parse arguments. Command line overrides config file.
parser = argparse.ArgumentParser(description="osm2city reads OSM data and creates buildings for use with FlightGear")
parser = argparse.ArgumentParser(description="buildings.py reads OSM data and creates buildings for use with FlightGear")
parser.add_argument("-f", "--file", dest="filename",
help="read parameters from FILE (e.g. params.ini)", metavar="FILE", required=True)
parser.add_argument("-e", dest="e", action="store_true",
......
......@@ -326,7 +326,7 @@ def main():
# logging.basicConfig(level=logging.DEBUG)
import argparse
parser = argparse.ArgumentParser(description="Pier.py reads OSM data and creates Pier models for use with FlightGear")
parser = argparse.ArgumentParser(description="piers.py reads OSM data and creates Pier models for use with FlightGear")
parser.add_argument("-f", "--file", dest="filename",
help="read parameters from FILE (e.g. params.ini)", metavar="FILE", required=True)
# parser.add_argument("-e", dest="e", action="store_true", help="skip elevation interpolation")
......
......@@ -218,7 +218,7 @@ class Platforms(ObjectList):
def main():
import argparse
parser = argparse.ArgumentParser(description="platform.py reads OSM data and creates platform models for use with FlightGear")
parser = argparse.ArgumentParser(description="platforms.py reads OSM data and creates platform models for use with FlightGear")
parser.add_argument("-f", "--file", dest="filename"
, help="read parameters from FILE (e.g. params.ini)", metavar="FILE", required=True)
parser.add_argument("-l", "--loglevel"
......
......@@ -1422,7 +1422,7 @@ def generate_landuse_from_buildings(osm_landuses, building_refs):
def main():
# Handling arguments and parameters
parser = argparse.ArgumentParser(
description="osm2pylon reads OSM data and creates pylons, powerlines and aerialways for use with FlightGear")
description="pylons.py reads OSM data and creates pylons, powerlines and aerialways for use with FlightGear")
parser.add_argument("-f", "--file", dest="filename",
help="read parameters from FILE (e.g. params.ini)", metavar="FILE", required=True)
parser.add_argument("-e", dest="e", action="store_true"
......
......@@ -784,7 +784,7 @@ def progress(i, max_i):
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO)
parser = argparse.ArgumentParser(description="tools prepares an elevation grid for Nasal script and then osm2city")
parser = argparse.ArgumentParser(description="tools.py prepares an elevation grid for Nasal script and other osm2city applications")
parser.add_argument("-f", "--file", dest="filename",
help="read parameters from FILE (e.g. params.ini)", metavar="FILE", required=True)
parser.add_argument("-o", dest="o", action="store_true"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment