@@ -532,10 +532,9 @@ def geojson_statistics(
532532 env = Depends (self .environment_dependency ),
533533 ):
534534 """Get Statistics from a geojson feature or featureCollection."""
535- with operation_tracer ("load_features" ):
536- fc = geojson
537- if isinstance (fc , Feature ):
538- fc = FeatureCollection (type = "FeatureCollection" , features = [geojson ])
535+ fc = geojson
536+ if isinstance (fc , Feature ):
537+ fc = FeatureCollection (type = "FeatureCollection" , features = [geojson ])
539538
540539 with operation_tracer ("open_dataset" ):
541540 with rasterio .Env (** env ):
@@ -1671,10 +1670,9 @@ def geojson_statistics(
16711670 env = Depends (self .environment_dependency ),
16721671 ):
16731672 """Get Statistics from a geojson feature or featureCollection."""
1674- with operation_tracer ("load_features" ):
1675- fc = geojson
1676- if isinstance (fc , Feature ):
1677- fc = FeatureCollection (type = "FeatureCollection" , features = [geojson ])
1673+ fc = geojson
1674+ if isinstance (fc , Feature ):
1675+ fc = FeatureCollection (type = "FeatureCollection" , features = [geojson ])
16781676
16791677 with operation_tracer ("open_dataset" ):
16801678 with rasterio .Env (** env ):
@@ -1892,10 +1890,9 @@ def geojson_statistics(
18921890 env = Depends (self .environment_dependency ),
18931891 ):
18941892 """Get Statistics from a geojson feature or featureCollection."""
1895- with operation_tracer ("load_features" ):
1896- fc = geojson
1897- if isinstance (fc , Feature ):
1898- fc = FeatureCollection (type = "FeatureCollection" , features = [geojson ])
1893+ fc = geojson
1894+ if isinstance (fc , Feature ):
1895+ fc = FeatureCollection (type = "FeatureCollection" , features = [geojson ])
18991896
19001897 with operation_tracer ("open_dataset" ):
19011898 with rasterio .Env (** env ):
0 commit comments