| 105 | | if sref.GetAuthorityName('GEOGCS').upper() == 'EPSG': |
|---|
| 106 | | try: |
|---|
| 107 | | # Prefer the EPSG over PROJ.4 if available |
|---|
| 108 | | epsg = int(sref.GetAuthorityCode('GEOGCS')) |
|---|
| 109 | | srs = SpatialReference(epsg=epsg) |
|---|
| 110 | | except (TypeError, ValueError): |
|---|
| 111 | | pass |
|---|
| | 105 | #as per #116 the following code does not work correctly |
|---|
| | 106 | #if sref.GetAuthorityName('GEOGCS').upper() == 'EPSG': |
|---|
| | 107 | # try: |
|---|
| | 108 | # # Prefer the EPSG over PROJ.4 if available |
|---|
| | 109 | # epsg = int(sref.GetAuthorityCode('GEOGCS')) |
|---|
| | 110 | # srs = SpatialReference(epsg=epsg) |
|---|
| | 111 | # except (TypeError, ValueError): |
|---|
| | 112 | # pass |
|---|