Describe the bug
I tried to load a geojson with the crs property name of urn:ogc:def:crs:OGC:1.3:CRS84 and it did not work.
To Reproduce
Steps to reproduce the behavior:
- create a geojson with the CRS property
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }
- load geojson as a json
- use Geometry.from_geojson to try to create a new Geometry object from the geojson
Expected behavior
The new object should be created successfully.
Environment
Python 3.11.5
Stack trace or screenshots

If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
I believe the issue is related to this line where the CRS is parsed with a regex pattern:
|
crs_template = re.compile(r"urn:ogc:def:crs:.+::(?P<code>.+)", re.IGNORECASE) |
crs_template = re.compile(r"urn:ogc:def:crs:.+::(?P<code>.+)", re.IGNORECASE)
The end of the pattern has two colons at +:: where there should only be one.
Describe the bug
I tried to load a geojson with the crs property name of urn:ogc:def:crs:OGC:1.3:CRS84 and it did not work.
To Reproduce
Steps to reproduce the behavior:
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }Expected behavior
The new object should be created successfully.
Environment
Python 3.11.5
Stack trace or screenshots

If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
I believe the issue is related to this line where the CRS is parsed with a regex pattern:
sentinelhub-py/sentinelhub/constants.py
Line 133 in c7f5912
crs_template = re.compile(r"urn:ogc:def:crs:.+::(?P<code>.+)", re.IGNORECASE)The end of the pattern has two colons at +:: where there should only be one.