Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

domain_of_validity() results in error #15

Closed
dopplershift opened this issue Jan 8, 2020 · 2 comments
Closed

domain_of_validity() results in error #15

dopplershift opened this issue Jan 8, 2020 · 2 comments

Comments

@dopplershift
Copy link

The call to domain_of_validity() is now resulting in an error:

import pyepsg
proj = pyepsg.get(3857)
proj.domain_of_validity()

yields

Traceback (most recent call last):

  File "/Users/rmay/miniconda3/envs/py38/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3319, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)

  File "<ipython-input-7-89bf4603e739>", line 3, in <module>
    proj.domain_of_validity()

  File "/Users/rmay/miniconda3/envs/py38/lib/python3.8/site-packages/pyepsg.py", line 205, in domain_of_validity
    gml = ET.fromstring(xml)

  File "/Users/rmay/miniconda3/envs/py38/lib/python3.8/xml/etree/ElementTree.py", line 1320, in XML
    parser.feed(text)

  File "<string>", line unknown
ParseError: mismatched tag: line 33, column 4

The error results in this case from trying to access the url: http://epsg.io/urn:ogc:def:area:EPSG::3544.gml?download
which you can see results in a 500 error page. My best guess is maybe previously the domain was returned as e.g. 3544 and not "urn:ogc:def:area:EPSG::3544"? Just a guess. Regardless, the function is unusable and causes CartoPy to error out whenever trying to use the EPSG functionality.

@weatherfrog
Copy link

The service https://epsg.io seems to be broken. For example, the link displayed here:
https://epsg.io/?q=2056
results in 500:
https://epsg.io/2056

@mjarrett
Copy link

This is now fixed, see: maptiler/epsg.io#156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants