Re: [mapserver-users] Remote MapFile

2016-03-22 Thread Mark Korver
This method is specific to Amazon EC2, but there is a gist located here
https://gist.github.com/mwkorver/1ef45abac3871360f2b1
that is an example of how to deploy a cluster of Mapservers using a remote
map file AND data. Both map file and source geotiffs are accessed via HTTP
because they both sit on S3.
The user-data script will install a few things including Yas3fs to run a
Dockerized Mapserver image behind Nginx. Yas3fs is what mounts the S3
buckets in RO mode on the filesystem.
The Dockerfile located here - https://github.com/mwkorver/mapserver
is the source for the image referenced in the user-data script. Even if you
don't care for Docker it useful as an install script for Mapserver on
Ubuntu if you are looking to use Nginx.
One problem I still have not fixed is that on reboot, Mapserver does not
restart. Everything else comes back up. If someone could let me know how to
fix that I would appreciate it.
-Mark



On Mon, Mar 21, 2016 at 1:53 PM, Basques, Bob (CI-StPaul) <
bob.basq...@ci.stpaul.mn.us> wrote:

> You could possibly make a SLD work with a WMS request, depending on what
> you need the mapfile to do.
>
> bobb
>
>
>
> On Mar 21, 2016, at 5:50 AM, Marco Afonso  wrote:
>
> Hi all,
>
> It is possible to get a remote mapfile instead from a local path in the
> cgi-variable?
>
> For example, instead of:
> http://localhost:8081/cgi-bin/mapserv.exe?map=/local/path/mymap.map
>
> Something like:
>
> http://localhost:8081/cgi-bin/mapserv.exe?map=http://remotemachine/mymap.map
>
> Thank you!
>
> --
> Best Regards,
> Marco Afonso
> http://goo.gl/ZDtQjm
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Remote MapFile

2016-03-21 Thread Basques, Bob (CI-StPaul)
You could possibly make a SLD work with a WMS request, depending on what you 
need the mapfile to do.

bobb



On Mar 21, 2016, at 5:50 AM, Marco Afonso 
> wrote:

Hi all,

It is possible to get a remote mapfile instead from a local path in the 
cgi-variable?

For example, instead of:
http://localhost:8081/cgi-bin/mapserv.exe?map=/local/path/mymap.map

Something like:
http://localhost:8081/cgi-bin/mapserv.exe?map=http://remotemachine/mymap.map

Thank you!

--
Best Regards,
Marco Afonso
http://goo.gl/ZDtQjm
[https://dl.dropboxusercontent.com/u/17607469/qr.png]
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Remote MapFile

2016-03-21 Thread Jeff McKenna

Hi Marco,

As Thomas mentioned, you'll have to use a different way.  If you're 
using MS4W you can use PHP MapScript to pass your mapfile to your PHP 
script, and then use CURL commands (already included as a PHP extension 
in MS4W) to download the remote mapfile locally to your server.


Something like: 
http://localhost/myapp/index.php?map=http://remotemachine/mymap.map


There are good examples of how to use CURL for this at: 
http://php.net/manual/en/ref.curl.php


-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 2016-03-21 7:50 AM, Marco Afonso wrote:

Hi all,

It is possible to get a remote mapfile instead from a local path in the
cgi-variable?

For example, instead of:
http://localhost:8081/cgi-bin/mapserv.exe?map=/local/path/mymap.map

Something like:
http://localhost:8081/cgi-bin/mapserv.exe?map=http://remotemachine/mymap.map

Thank you!

--
Best Regards,
Marco Afonso
http://goo.gl/ZDtQjm




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Remote MapFile

2016-03-21 Thread thomas bonfort
Marco,
That is not possible.

--
thomas

On 21 March 2016 at 11:50, Marco Afonso  wrote:

> Hi all,
>
> It is possible to get a remote mapfile instead from a local path in the
> cgi-variable?
>
> For example, instead of:
> http://localhost:8081/cgi-bin/mapserv.exe?map=/local/path/mymap.map
>
> Something like:
>
> http://localhost:8081/cgi-bin/mapserv.exe?map=http://remotemachine/mymap.map
>
> Thank you!
>
> --
> Best Regards,
> Marco Afonso
> http://goo.gl/ZDtQjm
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Remote MapFile

2016-03-21 Thread Marco Afonso
Hi all,

It is possible to get a remote mapfile instead from a local path in the
cgi-variable?

For example, instead of:
http://localhost:8081/cgi-bin/mapserv.exe?map=/local/path/mymap.map

Something like:
http://localhost:8081/cgi-bin/mapserv.exe?map=http://remotemachine/mymap.map

Thank you!

-- 
Best Regards,
Marco Afonso
http://goo.gl/ZDtQjm
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users