[Mapserver-users] Loading data from another server

Ed McNierney ed at topozone.com
Wed Aug 27 13:32:14 PDT 2003


Jeff -

By far the easiest route would be to run SAMBA on the Linux server and allow the Windows machine to get access to the files via SMB, rather than trying to go through HTTP.

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242 

-----Original Message-----
From: Jeff L. [mailto:nf10 at hotmail.com]
Sent: Wednesday, August 27, 2003 4:00 PM
To: David.Fawcett at state.mn.us; lfilak at medinaco.org;
mapserver-users at lists.gis.umn.edu
Subject: RE: [Mapserver-users] Loading data from another server


Ok:

What i'm attempting to do is the following in details:

I have some proprietary data as shape files and i want to allow a client to 
be able to browse my data using his maperver application.

The user (client) is running MapServer3.6 on a Windows machine with Apache 
web server.
My data are located in my web server hosted on a linux machine (apache web 
server).
ex. www.MydataServer.com

Basicaly, i want to keep the data in my web server and allow an external 
mapserver application to browse the shape data and use them in his 
mapserver.

What would i need to do to reach this goal ?

Thanks,

Jeff




>From: "Fawcett, David" <David.Fawcett at state.mn.us>
>To: lfilak at medinaco.org,    David.Fawcett at state.mn.us,    
>mapserver-users at lists.gis.umn.edu,    "'Jeff L.'" <nf10 at hotmail.com>
>Subject: RE: [Mapserver-users] Loading data from another server
>Date: Wed, 27 Aug 2003 14:46:35 -0500
>
>I believe that it is more a limitation of the protocols and programs than a 
>lack of examples.
>
>Take a step back for a second.  Perhaps your solution is not the best way 
>of attacking the problem.  There are hundreds of MapServer installations 
>(test and production) and people have come up with ways to get around many 
>challenges.
>
>What do you want your MapServer application to do?
>
>What is your purpose for splitting the data from the server installation?  
>(or what problem are you trying to solve by doing this?)
>
>What hardware and software platforms are you running on?
>
>Your answers up to this point have been pretty vague, the more specific you 
>are, the better people will be able to help you.
>
> > ----------
> > From: 	Jeff L.[SMTP:nf10 at hotmail.com]
> > Sent: 	Wednesday, August 27, 2003 2:29 PM
> > To: 	lfilak at medinaco.org; David.Fawcett at state.mn.us; 
>mapserver-users at lists.gis.umn.edu
> > Subject: 	RE: [Mapserver-users] Loading data from another server
> >
> >
> > It sounds not that easy in this case, as it seems that there is no 
>example
> > how to upload shape data
> > from a web server using an url (or another mean).
> >
> >
> > >From: "Lowell Filak"<lfilak at medinaco.org>
> > >To: "Jeff L." <nf10 at hotmail.com>, lfilak at medinaco.org,
> > >David.Fawcett at state.mn.us, mapserver-users at lists.gis.umn.edu
> > >Subject: RE: [Mapserver-users] Loading data from another server
> > >Date: Wed, 27 Aug 2003 15:11:55 -0400
> > >
> > >If I understand correctly you could then do something like:
> > >"wget -O data.shp http://www.myDataServer.com/data"
> > >and set SHAPEPATH to data.shp .
> > >It's not quite that easy because because for the shape example you 
>would
> > >need to request shx & dbf also or if they are all shipped together in
> > >the stream they would need broken apart.
> > >In MapScript you could theoretically store the resulting data past in
> > >via the URL in a variable and use that for the $layer->{data} without
> > >requiring an intermediate file.
> > >Lowell
> > >
> > >The following message was sent by "Jeff L." <nf10 at hotmail.com> on Wed,
> > >27 Aug 2003 19:00:44 +0000.
> > >
> > > >
> > > >
> > > > Sorry about that: i meant by storage back end a web server directory
> > >where
> > > > the data are stored.
> > > > Yes the data need to be pulled by an url. Example:
> > > > www.myDataServer.com/data
> > > >
> > > > Jeff
> > > >
> > > > >From: "Lowell Filak"<lfilak at medinaco.org>
> > > > >To: "Jeff L." <nf10 at hotmail.com>, David.Fawcett at state.mn.us,
> > > > >lfilak at medinaco.org, mapserver-users at lists.gis.umn.edu
> > > > >Subject: RE: [Mapserver-users] Loading data from another server
> > > > >Date: Wed, 27 Aug 2003 14:57:56 -0400
> > > > >
> > > > >What type of storage back end is it?
> > > > >I'm confused as you mentioned earlier that the data could be pulled
> > > > >through a URL.
> > > > >Lowell
> > > > >
> > > > >The following message was sent by "Jeff L." <nf10 at hotmail.com> on 
>Wed,
> > > > >27 Aug 2003 18:50:59 +0000.
> > > > >
> > > > > > Hi David,
> > > > > >
> > > > > > For a start i'm trying to run the demo, but once i have the demo
> > > > >running, i
> > > > > > would try something more elaborated.
> > > > > >
> > > > > > The option 2 sounds good by having the WMS. But it's seems that 
>the
> > > > >server
> > > > > > hosting the data have to run also MapServ. My remote server has 
>no
> > > > >business
> > > > > > intelligence, only a storage back end for the data.
> > > > > >
> > > > > > Any example would be more than welcome.
> > > > > >
> > > > > > Jeff
> > > > > >
> > > > > >
> > > > > > >From: "Fawcett, David" <David.Fawcett at state.mn.us>
> > > > > > >To: lfilak at medinaco.org,    mapserver-users at lists.gis.umn.edu,
> > > > >"'Jeff
> > > > > > >L.'" <nf10 at hotmail.com>
> > > > > > >Subject: RE: [Mapserver-users] Loading data from another server
> > > > > > >Date: Wed, 27 Aug 2003 13:41:06 -0500
> > > > > > >
> > > > > > >As Lowell said below, you have two options:
> > > > > > >
> > > > > > >1.  To access the data directly, you have to configure your
> > >server(s)
> > > > >so
> > > > > > >that you can 'see' it as a directory in a path on your 
>machine.>
> > > > >SHAPEPATH
> > > > > > >has to be a valid path (not URL).
> > > > > > >
> > > > > > >I think that the key here is that based on the hardware and
> > >software
> > > > > > >platform and security scheme you are utilizing, you need to 
>figure
> > > > >out how
> > > > > > >to map/mount/access a remote drive.  This is more a question 
>for
> > >your
> > > > >admin
> > > > > > >than this list.
> > > > > > >
> > > > > > >2.  You can set up a WMS server using MapServer, which I 
>haven't
> > > > >done, but
> > > > > > >I understand isn't that hard.  Depending on the data that you
> > >need, you
> > > > > > >could also potentially hit an existing WMS server that contains 
>the
> > > > >data.
> > > > > > >
> > > > > > >Heck, if this is just for a demo, you could possibly put the 
>data
> > >on
> > > > >a CD
> > > > > > >and point your SHAPEPATH to a folder on the CD.
> > > > > > >
> > > > > > >I think that the key here is that based on the hardware and
> > >software
> > > > > > >platform you are utilizing, you need to figure out how to
> > > > >map/mount/access
> > > > > > >
> > > > > > > > ----------
> > > > > > > > From: 	Jeff L.[SMTP:nf10 at hotmail.com]
> > > > > > > > Sent: 	Wednesday, August 27, 2003 1:03 PM
> > > > > > > > To: 	lfilak at medinaco.org; mapserver-users at lists.gis.umn.edu
> > > > > > > > Subject: 	Re: [Mapserver-users] Loading data from another 
>server
> > > > > > > >
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > I went through the documentation "WMS client and WMS 
>server",
> > > > >however
> > > > > > >it's
> > > > > > > > seems that server location of the data have to have 
>mapserver
> > > > >installed.
> > > > > > >I
> > > > > > > > might be wrong. And also there is no suggestion about
> > >replacing the
> > > > > > > > "SHAPEPATH".
> > > > > > > >
> > > > > > > > My need is to run the demonstration project, but by 
>decoupling
> > >the
> > > > >data
> > > > > > >from
> > > > > > > > the application.
> > > > > > > > I can run the demo fine if every is installed in the same
> > >server.
> > > > >Now i
> > > > > > > > moved the shape data to another web server and want to be 
>able
> > >to
> > > > >run
> > > > > > >the
> > > > > > > > demonstration.
> > > > > > > >
> > > > > > > > My understanding is that i would be able to that by making
> > > > >modifications
> > > > > > >to
> > > > > > > > the .map file only. I guess i was wrong.
> > > > > > > >
> > > > > > > > If there is any example, how to run the demo (or another
> > >project)
> > > > >using
> > > > > > > > remote data, that would be great.
> > > > > > > >
> > > > > > > > Jeff Lacoste
> > > > > > > >
> > > > > > > >
> > > > > > > > >From: "Lowell Filak"<lfilak at medinaco.org>
> > > > > > > > >To: "Jeff L." <nf10 at hotmail.com>, lfilak at medinaco.org,
> > > > > > > > >mapserver-users at lists.gis.umn.edu
> > > > > > > > >Subject: Re: [Mapserver-users] Loading data from another 
>server
> > > > > > > > >Date: Wed, 27 Aug 2003 12:47:27 -0400
> > > > > > > > >
> > > > > > > > >http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?WMSMapServer
> > > > > > > > >http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?WFSMapServer
> > > > > > > > >HTH
> > > > > > > > >Lowell
> > > > > > > > >
> > > > > > > > >The following message was sent by "Jeff L." 
><nf10 at hotmail.com>
> > >on
> > > > >Wed,
> > > > > > > > >27 Aug 2003 16:11:35 +0000.
> > > > > > > > >
> > > > > > > > > > Thanks Lowel for your answer. Could you please point me 
>to
> > >how
> > > > >to do
> > > > > > > > >that ?
> > > > > > > > > > a document or an url about accessing remote data would 
>be
> > >great.
> > > > > > > > > >
> > > > > > > > > > Jeff Lacoste
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > >From: "Lowell Filak"<lfilak at medinaco.org>
> > > > > > > > > > >To: "Jeff L." <nf10 at hotmail.com>,
> > > > >mapserver-users at lists.gis.umn.edu
> > > > > > > > > > >Subject: Re: [Mapserver-users] Loading data from 
>another
> > >server
> > > > > > > > > > >Date: Wed, 27 Aug 2003 12:05:50 -0400
> > > > > > > > > > >
> > > > > > > > > > >That format for accessing data requires that the data 
>looks
> > > > >like a
> > > > > > > > >local
> > > > > > > > > > >file whether it is network mounted or etc.>
> > > > > > > > > > >There is also an option of reading data in a WMS or WFS
> > >fashion
> > > > > > >from a
> > > > > > > > > > >remote source.
> > > > > > > > > > >HTH
> > > > > > > > > > >Lowell
> > > > > > > > > > >
> > > > > > > > > > >The following message was sent by "Jeff L."
> > > > ><nf10 at hotmail.com> on
> > > > > > >Wed,
> > > > > > > > > > >27 Aug 2003 15:12:32 +0000.
> > > > > > > > > > >
> > > > > > > > > > > > Hi,
> > > > > > > > > > > >
> > > > > > > > > > > > I was wondering if the location of data used in
> > >MapServer
> > > > >can be
> > > > > > >a
> > > > > > > > > > >different
> > > > > > > > > > > > location from the one where MapServer is running.
> > > > > > > > > > > >
> > > > > > > > > > > > I would like to run the MapServer in a server 
>pointing
> > >to
> > > > >data
> > > > > > >in
> > > > > > > > > > >another
> > > > > > > > > > > > server. I tried to change this tag in the .map file:
> > > > > > > > > > > >
> > > > > > > > > > > > SHAPEPATH "http://www.MyServer.com/data/"
> > > > > > > > > > > >
> > > > > > > > > > > > There was an error:
> > > > > > > > > > > > msOpenSHPFile(): Unable to access file. 
>(MyLayerData)
> > > > > > > > > > > >
> > > > > > > > > > > > My data do exist in the 
>"http://www.MyServer.com/data/"
> > > > > > >location.
> > > > > > > > > > > >>
> > > > > > > > > > > > I'm using MapServer 3.6.
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks,
> > > > > > > > > > > >
> > > > > > > > > > > > Jeff Lacoste
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > 
> >_________________________________________________________________
> > > > > > > > > > > > The new MSN 8: smart spam protection and 2 months 
>FREE*
> > > > > > > > > > > > http://join.msn.com/?page=features/junkmail
> > > > > > > > > > > >
> > > > > > > > > > > > _______________________________________________
> > > > > > > > > > > > Mapserver-users mailing list
> > > > > > > > > > > > Mapserver-users at lists.gis.umn.edu
> > > > > > > > > > > >
> > >http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > >_________________________________________________________________
> > > > > > > > > > The new MSN 8: smart spam protection and 2 months FREE*
> > > > > > > > > > http://join.msn.com/?page=features/junkmail
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > >_________________________________________________________________
> > > > > > > > MSN 8 with e-mail virus protection service: 2 months FREE*
> > > > > > > > http://join.msn.com/?page=features/virus
> > > > > > > >
> > > > > > > > _______________________________________________
> > > > > > > > Mapserver-users mailing list
> > > > > > > > Mapserver-users at lists.gis.umn.edu
> > > > > > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > > > > > > >
> > > > > >
> > > > > > 
>_________________________________________________________________
> > > > > > Protect your PC - get McAfee.com VirusScan Online
> > > > > > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> > > > >
> > > >
> > > > _________________________________________________________________
> > > > STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> > > > http://join.msn.com/?page=features/junkmail
> > >
> >
> > _________________________________________________________________
> > The new MSN 8: smart spam protection and 2 months FREE*
> > http://join.msn.com/?page=features/junkmail
> >

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.  
http://join.msn.com/?page=features/junkmail

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list