variable substitution within a projection object
Bruce Saunders
brucesaunders at MAXIMUS.COM
Wed Jan 26 12:53:59 PST 2005
Thanks Brent, that did the trick, I missed that in my previous searches.
(posting this for completion's sake for future searchers).
-Bruce
Brent Fraser wrote:
>Bruce,
>
> Search the email archive for "map_projection". Instead of using MapServer
>to do the variable substitution, use the ability to specify the map file
>projection object via CGI:
>
>...&mode=map&map_projection=proj=utm,ellps=GRS80,lon_0=-102.5&layer=...
>
>You could do the construction of the "map_projection" CGI variable on the
>client side using java script.
>
>Brent Fraser
>
>----- Original Message -----
>From: "Bruce Saunders" <brucesaunders at MAXIMUS.COM>
>To: <MAPSERVER-USERS at LISTS.UMN.EDU>
>Sent: Wednesday, January 26, 2005 8:45 AM
>Subject: [UMN_MAPSERVER-USERS] variable substitution within a projection
>object
>
>
>
>
>>I'd like to be able to pass in a variable to be in substituted in the
>>projection object but it doesn't seem to work as expected.
>>
>>I'd like to do something like this:
>>
>> PROJECTION
>> "proj=utm"
>> "ellps=GRS80"
>> "lon_0=%lon_0%"
>> END
>>
>>It seems like the variable isn't getting evaluated in this context.
>>I've verified that the value is getting passed correctly since it's
>>getting correctly replaced in the template. I've tried replacing the
>>entire value with something like:
>>
>> PROJECTION
>> "proj=utm"
>> "ellps=GRS80"
>> "%lon_0%"
>> END
>>
>>But that doesn't seem to work either. Are variables not supported for
>>projection objects? I'd appreciate any thought or suggestions people
>>may have.
>>
>>-Bruce
>>
>>
>
>
>
More information about the MapServer-users
mailing list