Skip to content

Commit

Permalink
feat: passage de epsg.io à spatialreference.org #603
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrousseau1 authored and ocruze committed Feb 20, 2025
1 parent aa97f27 commit 6098e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/entrepot/api/epsg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const getProjFromEpsg = (srid: string) => {
message: `${srid} n'est pas une projection EPSG valide`,
});

return jsonFetch<{ [key: string]: string }>(`https://epsg.io/${match[1]}.json`, undefined, undefined, false, false);
return jsonFetch<{ [key: string]: string }>(`https://spatialreference.org/ref/epsg/${match[1]}/projjson.json`, undefined, undefined, false, false);
};

const epsg = {
Expand Down

0 comments on commit 6098e56

Please sign in to comment.