[mapserver-users] Retrieve in template the coord pixel of click

Andrea Peri aperi2007 at gmail.com
Wed Oct 24 07:11:59 PDT 2012


Hi,
thx for response.

I try your change.

It work perfectly,
now the
[i]=[I]
and [j]=[J]

also the mapserver response correctly with both

..&I=10&J=20
or
&i=10&j=20

Is this little change commitable on the master ?


2012/10/24 Lime, Steve D (DNR) <Steve.Lime at state.mn.us>

>  You're right, duh, I should have checked first. Echoing the parameter as
> you noted is your best bet. Regarding ticket #4511, if you're adventuresome
> you could try replacing calls to msReplaceSubstring() with msCaseReplaceSubstring()
> in the for-loop around L4003 in maptemplate.c and report back.
>
> Steve
>
>  ------------------------------
> *From:* Andrea Peri [aperi2007 at gmail.com]
> *Sent:* Wednesday, October 24, 2012 8:24 AM
> *To:* Lime, Steve D (DNR)
> *Cc:* mapserver-users at lists.osgeo.org
> *Subject:* Re: [mapserver-users] Retrieve in template the coord pixel of
> click
>
>  Thx for response.
>
> Unfortunately it don't work.
> [imgxy] don't seem be a variable for templates.
>
>
> 2012/10/24 Lime, Steve D (DNR) <Steve.Lime at state.mn.us>
>
>>  imgxy?
>>
>>  ------------------------------
>> *From:* mapserver-users-bounces at lists.osgeo.org [
>> mapserver-users-bounces at lists.osgeo.org] on behalf of Andrea Peri [
>> aperi2007 at gmail.com]
>> *Sent:* Wednesday, October 24, 2012 3:10 AM
>> *To:* mapserver-users at lists.osgeo.org
>> *Subject:* [mapserver-users] Retrieve in template the coord pixel of
>> click
>>
>>   Hi,
>>
>> I'm building a template to response to a GetFeatureInfo request.
>>
>> There a variable for the value of I and J parameters (the pixel coord of
>> click) .
>> I see the [mapx],[mapy] variables, but they return the projected coords
>> not the pixel coord.
>>
>> Thx,
>>
>> --
>> -----------------
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -----------------
>>
>>
>
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------
>
>


-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121024/65b55bca/attachment.html>


More information about the mapserver-users mailing list