def _loadfilepath ( self , filepath , * * kwargs ) : with open ( filepath , "r" ) as f : data = json . load ( f , * * kwargs ) return data
python read a geojson file
This loads a geojson file into a geojson python dictionary using the json module . Note : to load with a different text encoding use the encoding argument .
def _loadfilepath(self, filepath, **kwargs):
        """This loads a geojson file into a geojson python
        dictionary using the json module.
        
        Note: to load with a different text encoding use the encoding argument.
        """
        with open(filepath, "r") as f:
            data = json.load(f, **kwargs)
        return data