Skip to content

Commit

Permalink
load osgeo, not ogr
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmail committed Sep 25, 2024
1 parent 091c90a commit 97eaf65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions lib/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
import json
import re

try:
from osgeo import ogr
except ImportError:
import ogr
from osgeo import ogr

# https://www.census.gov/geo/reference/codes/cou.html
# tiger_county_fips.json was generated from the following:
Expand Down
5 changes: 1 addition & 4 deletions lib/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
Deal with coordinate system transformations/projections
"""

try:
from osgeo import osr
except ImportError:
import osr
from osgeo import osr

osr.DontUseExceptions()

Expand Down

0 comments on commit 97eaf65

Please sign in to comment.