Opened 12 years ago

Closed 11 years ago

#535 closed enhancement (fixed)

Avoid custom projection lookups by supporting the ability to specify proj4js definitions inside the Application Definition

Reported by: jng Owned by: jng
Priority: P2 Milestone: Future
Component: Widgets Version: 2.0
Severity: Major Keywords:
Cc: Browser: All
External ID: Operating System: All
state: New

Description

Currently, for any coordinate systems/epsg codes not known by the Proj4js library, it tries to look for a javascript file (/mapguide/fusion/lib/Proj4js/defs/EPSGXXXX.js) that probably does not exist. The javascript file if it exists, is nothing more than just a call to set the proj4 string in the Proj4js.defs global object

To avoid such lookups, we should have a new background widget (CustomProjections.js?) that takes in a set of Name/Value extension parameters which contains our custom proj4js projections. The widget's sole purpose is to populate the Proj4js.defs global object with our custom proj4js strings contained in the Application Definition document itself.

This way, we don't have to make such requests (or worse, trying to get the definition from spatialreference.org. Does it still do this?) as we are carry the custom proj4 strings inline in the Application Definition document.

Change History (3)

comment:1 by jng, 12 years ago

Summary: Support custom projections by specifying proj4js definitions inside the Application DefinitionAvoid custom projection lookups by supporting the ability to specify proj4js definitions inside the Application Definition

comment:2 by wuma, 12 years ago

This issue is not for EPSG only. For Projection CS, similar issue also exists. See: comment8 of ticket 434: http://trac.osgeo.org/fusion/ticket/434

comment:3 by jng, 11 years ago

Resolution: fixed
Status: newclosed

Including csmap2proj4.js in the build profile effectively fixes this as we now have all proj4 definitions that are convertible from their CS-Map equivalents.

Note: See TracTickets for help on using tickets.