Commit 80fcf3c0 authored by Michael Adair's avatar Michael Adair
Browse files

add currnet rest lookup of epsg codes

parent fafc07c4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -536,6 +536,12 @@ Proj4js.Proj = Proj4js.Class({
            //http://interop.ign.fr/registers/ign/RIG.xml#
            srsCode = 'IGNF:'+url[1];
          }
      } else if (url[0].indexOf('/def/crs/')!=-1) { 
         // http://www.opengis.net/def/crs/EPSG/0/code 
         url= srsCode.split('/'); 
         srsCode = url.pop();//code 
         url.pop();//version FIXME 
         srsCode = url.pop()+':'+srsCode;//authority 
      }
      this.srsCode = srsCode.toUpperCase();
      if (this.srsCode.indexOf("EPSG") == 0) {