[Chameleon-dev] [Bug 973] New: KeyMapDHTML:
msProcessProjectionError()
bugzilla-daemon at maptools.org
bugzilla-daemon at maptools.org
Tue Feb 22 10:05:09 EST 2005
http://www.maptools.org/bugzilla/show_bug.cgi?id=973
Summary: KeyMapDHTML: msProcessProjectionError()
Product: Chameleon
Version: 2.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Widget
AssignedTo: chameleon-dev at lists.maptools.org
ReportedBy: bartvde at xs4all.nl
Bart,
seems like a bug in KeyMapDHTML ... I don't think projection support was
ever fully completed or tested. I think that you can fix this by doing
one of the following:
* change the following line in KeyMapDHTML
$this->mszSRS = isset($this->maParams['SRS']) ? $this->maParams['SRS'] :
$this->mszSRS;
to
$this->mszSRS = 'init=epsg:';
$this->mszSRS .= isset($this->maParams['SRS']) ? $this->maParams['SRS']
: $this->mszSRS;
* find each call to reprojectPoint in KeyMapDHTML and modify it to
prepend "init=epsg:" to $this->mszSRS, for example:
reprojectPoint( $nGeoMinx, $aGeoMiny, "init=epsg:".$this->mszSRS,
$this->moMapObject->oMap->getProjection() );
Please test and let me know if that fixes things
Paul
bartvde at xs4all.nl wrote:
> Hi list,
>
> I am using Chameleon 2.0 in an MS4W environment.
>
> I am experiencing the following problem when using the keymapDHTML widget:
>
> msProcessProjection(): projection not named in
> C:\ms4w\apps\chameleon\htdocs\widgets\geomath.php
>
> I have debugged this down to the arguments being:
>
> $oPoint->project( ms_newProjectionObj( $szFrom ),
> ms_newProjectionObj( $szTo )
> );
>
> $szFrom = +init=epsg:4326
> $szTo = 28992
>
> The last one fails with the above error (if I put +init=epsg: in front of
> it everything works fine).
>
> Do I need to use proj init strings now in the SRS attribute of the
> KeyMapDHTML? Or is something wrong with the code?
>
> My definition of KeyMapDHTML:
>
> <cwc2 type="KeyMapDHTML" image="/chameleon/geoservices/nederland.png"
> SRS="28992" WIDTH="135" HEIGHT="157" MINX="20000" MAXX="285000"
> MINY="305000" MAXY="620000"/>
>
> Is this a known issue?
>
> Best regards,
> Bart
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>
------- 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