How return a different result for different IPs

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How return a different result for different IPs

Andrea Peri
Hi,

I need to implement a wms mapserver service where from a layer.
when done a GetFeatureInfo the system return a different geometry for differents IP address.
More explicitly. It should return the exact geometry for some explicited IP address and return instead the Boundign Box for every other IP address.

Actually the only one solution I know is implement a front-end filter that redirect to one wms service where the dataset is with bbox geometry only for some IP and redirect to another wms system where there s a dataset with exact geometries for specific IP addresses.

But of course I like if there is a choice of solution inside the mapserver world.

Any help is welcome.Thx,
Andrea

--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------

_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: How return a different result for different IPs

Kralidis, Tom (EC)
Hi Andrea:

You could serve your WMS via MapScript which could intercept the
request and adjust the mapfile object in memory before executing the response.

We've done this with Python MapScript in implementing the WMS Best Practice
for Time/Elevation, but there's no reason why the same approach couldn't work
with processing IPs.

Hope this helps.

..Tom


From: mapserver-users [mailto:[hidden email]] On Behalf Of Andrea Peri
Sent: 06 March 2018 10:12
To: [hidden email]
Subject: [mapserver-users] How return a different result for different IPs

Hi,
I need to implement a wms mapserver service where from a layer.
when done a GetFeatureInfo the system return a different geometry for differents IP address.
More explicitly. It should return the exact geometry for some explicited IP address and return instead the Boundign Box for every other IP address.

Actually the only one solution I know is implement a front-end filter that redirect to one wms service where the dataset is with bbox geometry only for some IP and redirect to another wms system where there s a dataset with exact geometries for specific IP addresses.

But of course I like if there is a choice of solution inside the mapserver world.

Any help is welcome.Thx,
Andrea
--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: How return a different result for different IPs

Andrea Peri
HiTom,

Thx for hint it seem really an interesting solution.

I dont know was possible to adjust the mapfle objet before executing it.

right it ?

Thx,
A.


2018-03-06 16:18 GMT+01:00 Kralidis, Tom (EC) <[hidden email]>:
Hi Andrea:

You could serve your WMS via MapScript which could intercept the
request and adjust the mapfile object in memory before executing the response.

We've done this with Python MapScript in implementing the WMS Best Practice
for Time/Elevation, but there's no reason why the same approach couldn't work
with processing IPs.

Hope this helps.

..Tom


From: mapserver-users [mailto:[hidden email]] On Behalf Of Andrea Peri
Sent: 06 March 2018 10:12
To: [hidden email]
Subject: [mapserver-users] How return a different result for different IPs

Hi,
I need to implement a wms mapserver service where from a layer.
when done a GetFeatureInfo the system return a different geometry for differents IP address.
More explicitly. It should return the exact geometry for some explicited IP address and return instead the Boundign Box for every other IP address.

Actually the only one solution I know is implement a front-end filter that redirect to one wms service where the dataset is with bbox geometry only for some IP and redirect to another wms system where there s a dataset with exact geometries for specific IP addresses.

But of course I like if there is a choice of solution inside the mapserver world.

Any help is welcome.Thx,
Andrea
--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------



--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------

_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: How return a different result for different IPs

Kralidis, Tom (EC)
Hi Andrea: correct.  You can find examples in Python, Perl, PHP, etc.
depending on your environment/requirements.

Cheers

..Tom

From: Andrea Peri [mailto:[hidden email]]
Sent: 06 March 2018 11:41
To: Kralidis, Tom (EC)
Cc: [hidden email]
Subject: Re: [mapserver-users] How return a different result for different IPs

HiTom,
Thx for hint it seem really an interesting solution.
I dont know was possible to adjust the mapfle objet before executing it.
I search and find this doc

http://www.mapserver.org/ogc/mapscript.html
right it ?

Thx,
A.

2018-03-06 16:18 GMT+01:00 Kralidis, Tom (EC) <[hidden email]>:
Hi Andrea:

You could serve your WMS via MapScript which could intercept the
request and adjust the mapfile object in memory before executing the response.

We've done this with Python MapScript in implementing the WMS Best Practice
for Time/Elevation, but there's no reason why the same approach couldn't work
with processing IPs.

Hope this helps.

..Tom


From: mapserver-users [mailto:[hidden email]] On Behalf Of Andrea Peri
Sent: 06 March 2018 10:12
To: [hidden email]
Subject: [mapserver-users] How return a different result for different IPs

Hi,
I need to implement a wms mapserver service where from a layer.
when done a GetFeatureInfo the system return a different geometry for differents IP address.
More explicitly. It should return the exact geometry for some explicited IP address and return instead the Boundign Box for every other IP address.

Actually the only one solution I know is implement a front-end filter that redirect to one wms service where the dataset is with bbox geometry only for some IP and redirect to another wms system where there s a dataset with exact geometries for specific IP addresses.

But of course I like if there is a choice of solution inside the mapserver world.

Any help is welcome.Thx,
Andrea
--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------



--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users