[mapguide-users] Google Offset in MGOS 3.1.1
Andrew DeMerchant
andrew.demerchant at gemtec.ca
Wed Feb 20 05:11:43 PST 2019
Good detective work so far - I'd suggest trying to create that EPSG54032.js file manually, in the spot that it's looking for it. This would maybe let you get to the bottom of whether or not it's even possible to hotfix this.
I can only find one epsg js file on my installation. Here's the contents, in case you don't have any (EPSG42304.js):
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";
This looks like a slightly modified version of what you get from the epsg.io proj4js link...my best guess would be that your file would need to look like this:
Proj4js.defs["ESRI:54032"]="+title=World_Azimuthal_Equidistant +proj=aeqd +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs";
Now, note that that's "ESRI:54032", not "EPSG:54032"...that would lend a bit of credence to your theory about ESRI and Google. I have no idea if Mapguide can do ESRI projections, but if that didn't work, I'd consider replacing the "ESRI:54032" with "EPSG:54032". In the WKT, it uses EPSG, so it's not unprecedented.
Definitely let us know what you find out!
Andrew
[GEMTEC]<https://www.gemtec.ca/>
Andrew DeMerchant
Fredericton, NB
tel: 506.453.1025 x163 / toll-free: 1.877.243.6832
mobile: 506.470.2007 / fax: 506.453.9470
________________________________
From: mapguide-users <mapguide-users-bounces at lists.osgeo.org> on behalf of Charl Jameson Beukes <cbeukes at nous.co.za>
Sent: Wednesday, February 20, 2019 8:22:03 AM
To: 'MapGuide Users Mail List'
Subject: Re: [mapguide-users] Google Offset in MGOS 3.1.1
Tried to fiddle with the mapguide fusionSF.js file trying to get the WKT for the World Azimuthal Equidistant projection to work but to no avail.
I set the Projection of my map manually to the WKT value from here: https://epsg.io/54032
Then found that it would try to load a JavaScript projection file from my servers Mapguide location i.e. /mapguide/fusion/templates/mapguide/aqua/defs/EPSG54032.js.
This file obviously didn't exist.
Then when looking through the fusionSF.js file I found a function that allows for web service reference to a projection (Proj4js.loadFromService).
I was trying to reference the following : "http://spatialreference.org/ref/esri/54032/proj4js/".
However, it would always change the "srsAuth" value from esri to epsg and force the URL to be "http://spatialreference.org/ref/epsg/54032/proj4js/" no matter what I tried.
I might just be going about this all wrong thinking this can be "hotfixed" MGOS side or this could help someone with a lot more skill than me in the right direction.
I can't help believe that this is all due to ESRI partnering with Google to support and deliver map solutions.
-----Original Message-----
From: mapguide-users <mapguide-users-bounces at lists.osgeo.org> On Behalf Of Alec Bell
Sent: 20 February 2019 02:55 AM
To: mapguide-users at lists.osgeo.org
Subject: Re: [mapguide-users] Google Offset in MGOS 3.1.1
Going by this link Google Maps changed to azimuthal projection not sure if that means the api has changed as well.
There's nothing in the release notes for Google Maps API indicating this change.
https://gis.stackexchange.com/questions/302795/what-is-the-new-projection-for-google-maps-called
--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20190220/28acf109/attachment.html>
More information about the mapguide-users
mailing list