[Chameleon-dev] [Bug 1815] New: The QuickZoom widget does not allow
AUTO projections in the SRS
bugzilla-daemon at bugzilla.maptools.org
bugzilla-daemon at bugzilla.maptools.org
Wed Oct 24 21:34:57 EDT 2007
http://bugzilla.maptools.org/show_bug.cgi?id=1815
Summary: The QuickZoom widget does not allow AUTO projections in
the SRS
Product: Chameleon
Version: 2.4
Platform: PC
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: Widget
AssignedTo: chameleon-dev at lists.maptools.org
ReportedBy: jgrimes at gi.alaska.edu
I needed to use the AUTO 42003 orthographic projection but the QuickZoom widget
does not pass the projection to Mapserver. I added the following code to the
widget to get it to work starting at line 228 of the code (right before the else):
elseif( strtoupper($aSRS[0]) == "AUTO" )
{
$oRect = ms_newrectobj ();
$aPixPos = explode(";", $aExtentSRS[0]);
$aPixMin = explode(",", $aPixPos[0]);
$aPixMax = explode(",", $aPixPos[1]);
$oRect->setextent($aPixMin[0],$aPixMin[1],
$aPixMax[0],$aPixMax[1]);
$this->moMapObject->oMap->setextent($oRect->minx,
$oRect->miny, $oRect->maxx, $oRect->maxy);
$this->ReprojectAuto($aExtentSRS[1]);
}
There is a comment in the code about processing AUTO projections, but because of
how the if statement is constructed, they will never be processed.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Please do NOT reply to this email, use the link above instead to
login to bugzilla and submit your comment. Any email reply to this
address will be lost.
More information about the Chameleon-dev
mailing list