[Mapserver-users] Re: perl / mapscript

Paul Dymecki millardymecki at sympatico.ca
Mon Mar 17 07:12:47 PST 2003


Hi,
    I think the prob i'm haveing now(in php) is that i'm trying to simulate
a point click, ie no map is even drawn i'm just querying based on lat/lon
that is provided.  Does anyone have any idea if this is doable?
thx,
Paul
----- Original Message -----
From: "Lowell Filak" <lfilak at medinaco.org>
To: "Paul Dymecki" <millardymecki at sympatico.ca>; "pkishor_98"
<pkishor at geoanalytics.com>; "MapServer List (E-mail)"
<mapserver-users at lists.gis.umn.edu>
Sent: Monday, March 17, 2003 9:30 AM
Subject: Re: [Mapserver-users] Re: perl / mapscript


> Sorry for coming into this late.
> Obviously, whichever solution works better for you & the
application/people supplying the data is the one to use.
> The PerlMapscript example containing the queryByPoint is:
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex7
> You will/would need to modify it to parse out the long/lat that is passed
to it and you can remove all the code that is used to translate the pixel
coordinates to real-world coordinates.
> HTH
> Lowell F.
>
> The following message was sent by "Paul Dymecki"
<millardymecki at sympatico.ca> on Sun, 16 Mar 2003 23:55:38 -0500.
>
> > Well the scenario is this:  There are points(lat/lon) entered by
individuals
> > as to siteings of a particular plant species.  A quality assurance
> > program(perl script) is periodically run to determine if there are any
> > points located outside of their known regions(vegetation polygons).
Write
> > now i'm takeing the simplistic approach and creating a command line php
> > script that takes in a  lat/lon spits out a polygon name.  I'm just
haveing
> > issues with command line / mapscript.
> > Paul
> > ----- Original Message -----
> > From: "pkishor_98" <pkishor at geoanalytics.com>
> > To: <mapserver-users at lists.gis.umn.edu>
> > Sent: Sunday, March 16, 2003 11:18 PM
> > Subject: [Mapserver-users] Re: perl / mapscript
> >
> >
> > > --- In mapserver-users at yahoogroups.com, "Paul Dymecki"
> > > <millardymecki at s...> wrote:
> > > > Well actually i may be makeing this more complicated then it needs.
I've
> > > > built a phpmapscript application containing vegetaion
> > > zones(polygons) around
> > > > the country.  There is a larger perl application(not under my care)
that
> > > > will pass me a lat/lon.
> > >
> > > this larger perl app... is this a mapserver app? if yes, then it is
> > > running on unix, because perl/mapscript is possible only on unix
> > > (afaik). If not, then how do you query it? Is it a pure perl app
> > > accessing a database? In which case you could simply access the
> > > database directly from PHP.
> > >
> > > See, the problem is not that you can run perl/mapscript and
> > > php/mapscript simultaneously. The problem is whether you can run them
> > > in the same script. On the server, the script has to be interpreted by
> > > either the PHP interpreter, or by the Perl interpreter... can't do
> > > both. One or the other. What you can do is have the Perl script
> > > construct a PHP script that you then run from the web. In which case
> > > you would build a script with the lat/lon values filled in. But, yes,
> > > this could be complicated.
> > >
> > > Care to give more details?
> > >
> > >
> > >
> > > >I then have to query and return which vegetation
> > > > zone this point resides in.  So the script would be a backend one
> > > with no
> > > > user/map interaction at all.  Would  that be possible.
> > > > Paul
> > > > ----- Original Message -----
> > > > From: "pkishor_98" <pkishor at g...>
> > > > To: <mapserver-users at l...>
> > > > Sent: Sunday, March 16, 2003 9:43 PM
> > > > Subject: [Mapserver-users] Re: perl / mapscript
> > > >
> > > >
> > > > > --- In mapserver-users at yahoogroups.com, "Paul Dymecki"
> > > > > <millardymecki at s...> wrote:
> > > > > > HI Steve,
> > > > > >     Do you know if Perl/mapscript is available on windowsXP?
> > > > >
> > > > > afaik, perl/mapscript only compiles on unix (I believe these a
> > > > > swig-related problems). To date I have not met anyone who has it
> > > > > running on Windows.
> > > > >
> > > > >
> > > > > That said, I read your original question. What Steve says is
true...
> > > > > you can run both perl and php mapscripts, but the question asks
> > > > > itself... why? I don't know of anything you can do in one you
can't in
> > > > > the other. If it is all under your control, stick with one...
> > > > > php/mapscript is well supported under Windows. The good folks at
DM
> > > > > Solutions have made wonderful examples available, many other
people
> > > > > (myself included) have created successful apps... php/mapscript
seems
> > > > > to be a viable, perhaps the only, solution on windows.
> > > > >
> > > > > You want to share more as to why you want to mix perl and php on
> > > windows?
> > > > >
> > > > >
> > > > > The only
> > > > > > installation docs i could find were for unix.
> > > > > > thx
> > > > > > Paul
> > > > > > ----- Original Message -----
> > > > > > From: <woodbri at s...>
> > > > > > To: "MapServer List EE-mail"" <mapserver-users at l...>; "Paul
> > > > > > Dymecki" <millardymecki at s...>
> > > > > > Sent: Saturday, March 15, 2003 9:55 AM
> > > > > > Subject: Re: [Mapserver-users] perl / mapscript
> > > > > >
> > > > > >
> > > > > > > Yes you can have both running. Remember that mapscript is just
a
> > > > > > > wrapper to give you programmatic access to Mapserver.
> > > > > > >
> > > > > > > There are examples of Perl/Mapscript on wiki and I'm pretty
> > > sure one
> > > > > > > of them calls querybypoint (although I haven't verified that).
> > > > > > >
> > > > > > > -Steve W.
> > > > > > >
> > > > > > > On 15 Mar 2003 at 9:24, Paul Dymecki wrote:
> > > > > > >
> > > > > > > > Hi,
> > > > > > > >     Conveniently enough i need some help with a perl
question
> > > > > > > >     regarding php. I was wondering what the best way of
> > > calling a
> > > > > > > >     mapscript querybypoint function from perl?  My current
> > > app is in
> > > > > > > >     php but need to communicate with another perl
application.
> > > > > Is it
> > > > > > > >     possible to have both perl-mapscript and php-mapscript
> > > > > running on
> > > > > > > >     the same server?
> > > > > > > > thx for any help,
> > > > > > > > Paul
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > Mapserver-users mailing list
> > > > > > Mapserver-users at l...
> > > > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > > > >
> > > > > _______________________________________________
> > > > > Mapserver-users mailing list
> > > > > Mapserver-users at l...
> > > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > > >
> > > > _______________________________________________
> > > > Mapserver-users mailing list
> > > > Mapserver-users at l...
> > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > >
> > > _______________________________________________
> > > Mapserver-users mailing list
> > > Mapserver-users at lists.gis.umn.edu
> > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >
> > _______________________________________________
> > 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