[mapguide-internals] Fusion refers to an external server -
spatialreference.org which is offline
Dave Wilson
dave.wilson at autodesk.com
Fri Jan 7 10:51:20 EST 2011
It looks like their website name has changed. There is a hyphen in the name currently for the working website. A Google search only shows listing for the non-hyphenated name.
http://spatial-reference.org
Maybe they are on a backup site or they are in transition. There is no notice to indicate why the name has changed.
I too questioned the use of such an embedded reference a while back, but I don't think we came to any conclusion about continuing to include it or not. If your site is purely internal do you want to reference an external site?
And now the scenario where the site is referenced and "it's down".
Dave
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Michael Adair
Sent: Friday, January 07, 2011 7:36 AM
To: mapguide-internals at lists.osgeo.org
Subject: Re: [mapguide-internals] Fusion refers to an external server - spatialreference.org which is offline
Zac,
That is the Proj4js library trying to find the projection definitions
for EPSG:28355 and it only goes to spatialreference.org as the last
resort, and that is really only for cases where you don't know what
projections you app will be using. When you do know what projections
you will be dealing with, you can put the definiton in your JavaScript
somewhere, eg. (substitute you own EPSG code and data):
<script type="text/javascript" src="EPSG42304.js"></script>
where that file contains the Proj.4 init string:
Proj4js.defs["EPSG:42304"]="+title=Atlas of Canada, LCC +proj=lcc
+lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80
+datum=NAD83 +units=m +no_defs";
If that Proj4js.defs value is not found, it then looks in a directory
for the file automatically ('/lib' I think?) and if not found there it
looks on spatialreference.org.
Fusion trunk includes the latest Proj4js which can also parse the
projection initialization from the WKT returned by MapGuide so you don't
need to include the init string. That part can use more testing to make
sure all the WK cases get tested.
Mike
On 07/01/2011 12:08 AM, Zac Spitzer wrote:
> Just been playing with 2.2 RC2,
>
> I noticed that fusion is trying to access
>
> http://spatialreference.org/ref/epsg/28355/proj4js/
>
> a website which is offline at the moment,
>
> should we really be dependant on third party websites?
>
> can we use a local call to CS-MAP instead?
>
> z
>
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
More information about the mapguide-internals
mailing list