[Mapserver-users] RE: MapScript

Attri, Abhishek aattri at cba.ua.edu
Thu Jul 31 16:58:28 EDT 2003


Thanks Eric! I will try out all the options. 
Abhishek

-----Original Message-----
From: Eric Bridger [mailto:eric at gomoos.org] 
Sent: Thursday, July 31, 2003 11:01 AM
To: Attri, Abhishek
Subject: Re: MapScript

Yes it is possible.  But I don't know PHP mapscript very well. But it is
very similiar to Perl.  I would check the PHP documentation for
shapeFileOpen().  You can get the shapefile name from the
layerObj->{data} member so:
$shapfile = shapeFileOpen($layerObj->{data});
$minx = $shapefile->{bounds}->minx;
$miny = $shapefile->{bounds}->miny;
etc.


On Thu, 2003-07-31 at 19:47, Attri, Abhishek wrote:
> I am using the PHP MapScript with MapServer. Is there a way to get the
> extent of the .shp files through PHP MapScript?
> With thanks
> Abhishek
> 
> -----Original Message-----
> From: Eric Bridger [mailto:eric at gomoos.org] 
> Sent: Thursday, July 31, 2003 9:58 AM
> To: Attri, Abhishek
> Subject: RE: [Mapserver-users] Image not visible
> 
> shpinfo.pl comes with the mapserver distribution for perl mapscript.
you
> will need the perl mapscript.pm installed as well as Xbase.pm. I've
> attached it.
> 
> 
> 
> On Thu, 2003-07-31 at 18:32, Attri, Abhishek wrote:
> > Yes, the problem was with the extent. Thanks a lot. Please let me
know
> > where can I find the shpinfo.pl script?
> > With thanks
> > Abhishek
> > 
> > -----Original Message-----
> > From: Eric Bridger [mailto:eric at gomoos.org] 
> > Sent: Thursday, July 31, 2003 7:51 AM
> > To: Attri, Abhishek
> > Subject: Re: [Mapserver-users] Image not visible
> > 
> > Most likely you need to set a new EXTENT in your map file which
> matches
> > the extent of you shapefile.  Run the shpinfo.pl -file=myfile.shp to
> see
> > what extents it reports and try using those in your map file.
> > 
> > 
> > On Thu, 2003-07-31 at 15:02, Attri, Abhishek wrote:
> > > Hi!
> > >             I started using PHP MapScript and was able to
> successfully
> > > run the demo examples in "PHP MapScript 3.5 by Example HOWTO". But
> > when
> > > I substituted the shape files with some different shape files and
> > tried
> > > to display them, I see nothing on the web page. I checked my  /tmp
> > > directory and the source of the Web page also. It is showing the
> .png
> > > image being created and stored , but nothing is visible on screen.
> Can
> > > somebody help me with that?
> > > With thanks
> > > Abhishek
> > >          
> > 
> > 
> > 
> > 
> 
> 
> 






More information about the mapserver-users mailing list