Exemple #1
0
def arguments():
    parser = argparse.ArgumentParser(description='Shapely -> GeoJson')
    parser.add_argument(
        'clip',
        type=str,
        help="clip <file_path>, clip output to a SHP/KML/GeoJSON")
    return parser.parse_args()
    def __init__(self,
                 assigner,
                 source_id_attr,
                 filter=None,
                 translator=None,
                 dest_id_attr='id'):
        self.root = os.path.dirname(sys.argv[0])
        if not self.root:
            self.root = '.'
        self.assigner = assigner
        self.source_id_attr = source_id_attr
        self.filter = filter
        self.translator = translator
        self.dest_id_attr = dest_id_attr

        parser = argparse.ArgumentParser()
        parser.add_argument('--crush', action='store_true', required=False)
        parser.add_argument('--exact', action='store_true', required=False)
        args = parser.parse_args()
        self.pretty_print = not args.crush
        self.print_exact = args.exact
Exemple #3
0
def arguments():
    parser = argparse.ArgumentParser(description='LAS/LAZ -> GTiff Converter')
    parser.add_argument('input_filename')
    parser.add_argument('output_filename')
    parser.add_argument('--resolution', type=int, default=1,
                        help = "Set the resolution of the output GTiff")
    parser.add_argument('--clip', type=str,
                        help = "--clip <file_path>, clip output to a SHP/KML/GeoJSON")
    parser.add_argument('--dtm', type=int, default=0,
                        help="--dtm <1> to output a DTM")
    parser.add_argument('--dsm', type=int, default=0,
                        help="--dsm <1> to output a DSM")
    parser.add_argument('--count', type=int, default=0,
                        help="--count <1> to output a tiff containing point count for dsm/dtm, requires a dtm/dsm output")
    parser.add_argument('--contour', type=int, default=0,
                        help="--contour <1> to output a contour line shapefile, requires DTM output")
    parser.add_argument('--color', type=int, default=0,
                        help="--color <1> to output a colored hillshade from DTM/DSM, requires either a DTM/DSM Output")
    parser.add_argument('--in_epsg', type =str, default="2157",
                        help = "--InEPSG <EPSG Code>, if left blank input EPSG is assumed to be 2157")
    parser.add_argument('--out_epsg', type =str, default="2157",
                        help = "--OutEPSG <EPSG Code>, if left blank output EPSG is defaults to 2157")
    parser.add_argument('--classify', type =bool, default=False,
                        help = "set as True for unclassified point clouds, default False")
    parser.add_argument('--clean', type =bool, default=False,
                        help = "Set as True to remove noise, default False")

    return parser.parse_args()
Exemple #4
0
def arguments():
    parser = argparse.ArgumentParser(description='LAS/LAZ -> GTiff Converter')
    parser.add_argument('input_filename')
    parser.add_argument('output_filename')
    parser.add_argument('--resolution', type=int, default=1,
                        help = "Set the resolution of the output GTiff")
    parser.add_argument('--clip', type=str,
                        help = "--clip <file_path>, clip output to a SHP/KML/GeoJSON")
    parser.add_argument('--dtm', type=int, default=0,
                        help="--dtm <1> to output a DTM, defaults to outputting a DEM. Clipping File is recommended for this option")
    parser.add_argument('--in_epsg', type =str, default="2157",
                        help = "--InEPSG <EPSG Code>, if left blank input EPSG is assumed to be 2157")
    parser.add_argument('--out_epsg', type =str, default="2157",
                        help = "--OutEPSG <EPSG Code>, if left blank output EPSG is defaults to 2157")

    return parser.parse_args()