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

GUI: EPSG code source: replace epsg.io with spatialreference.org #4535

Merged
merged 4 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions gui/wxpython/location_wizard/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -1604,9 +1604,12 @@ def __init__(self, wizard, parent):
self, data=None, columns=[_("Code"), _("Description"), _("Parameters")]
)

# epsg.io hyperlink
# A hyperlink to a CRS database (PROJ related)
self.tlink = HyperlinkCtrl(
self, id=wx.ID_ANY, label="epsg.io", url="https://epsg.io/"
self,
id=wx.ID_ANY,
label="spatialreference.org",
url="https://spatialreference.org/",
)
self.tlink.SetNormalColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_GRAYTEXT))
self.tlink.SetVisitedColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_GRAYTEXT))
Expand Down Expand Up @@ -1688,14 +1691,14 @@ def EnableNext(self, enable=True):
def OnTextChange(self, event):
value = self.searchb.GetValue()
if value == "":
self.tlink.SetURL("https://epsg.io/")
self.tlink.SetURL("https://spatialreference.org/")
self.epsgcode = None
self.epsgdesc = self.epsgparams = ""
self.searchb.ChangeValue("")
self.OnBrowseCodes(None)
self.EnableNext(False)
else:
self.tlink.SetURL(str("https://epsg.io/?q={0}".format(value)))
self.tlink.SetURL(f"https://spatialreference.org/ref/?&search={value}")
data = self.epsglist.Search(index=[0, 1, 2], pattern=value, firstOnly=False)
if data:
index = 0
Expand Down
6 changes: 4 additions & 2 deletions lib/init/helptext.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h2>GRASS started in the default project, now what?</h2>
<h3>Creating a New project with the Project Wizard</h3>
<p>
If you know the CRS of your data or study area,
you can fill <a href="https://epsg.io">EPSG code</a>
you can fill <a href="https://spatialreference.org/">EPSG code</a>
or description and Project Wizard finds appropriate CRS from a predefined list
of projections.

Expand Down Expand Up @@ -97,4 +97,6 @@ <h2>See also</h2>
</em>

<p>
<a href="https://epsg.io/">List of EPSG codes</a> (Database of worldwide coordinate systems)
<a href="https://spatialreference.org/">List of EPSG codes</a> (Database of worldwide coordinate systems),
<a href="https://crs-explorer.proj.org/">CRS Explorer - PROJ codes</a>, and
<a href="https://epsg.org/">EPSG Geodetic Parameter Dataset</a>
Loading