Beispiel #1
0
def launch_new_instance():
    """
    Launch an instance of Binifier.

    This is the entry function of the command-line tool `binify`.
    """
    binifier = Binifier()
    binifier.main()
Beispiel #2
0
    def setUp(self):
        self.args = [
            'tests/test-shapefiles/simple-points.shp',
            'tests/test-shapefiles/simple-points-grid.shp',
            '--overwrite',
            '--suppress-output',
        ]
        self.b = Binifier(self.args)
        self.b.main()

        self.driver = ogr.GetDriverByName('ESRI Shapefile')
        self.out_shapefile = self.driver.Open(
            'tests/test-shapefiles/simple-points-grid.shp', GA_ReadOnly)
        self.out_layer = self.out_shapefile.GetLayer()