[Mapserver-users] ASP and MapServer

woodbri at swoodbridge.com woodbri at swoodbridge.com
Wed Jun 18 00:15:26 EDT 2003


Ok, you got me :( I'm not sure how to solve this problem in the ASP 
world. 

A tool I have used in Perl is Geo::ShapeFile, if I remember correctly 
it might be easy to do a straight port of it to ASP code. You can get 
it at 
http://search.cpan.org/src/JASONK/Geo-ShapeFile-2.10/
This should have the code in it to read both shp and dbf files.

-Steve W.

On 17 Jun 2003 at 14:56, Mario wrote:

> Hi Steve,
> dbase tables don't have indexed fields and when I query the database,
> I extract some records in a new recordset. If, as record number, you
> consider the absolute position in the original table I cannot have
> that number. Maybe it's possible to scroll all the database with a
> Find command but probably it would be very slow for large tables.... I
> 'm new in mapserver, can I find somewhere sample code that opens
> shapefile and reads extents for a feature?
> 
> Thank you
> 
> Mario
> 
> 
> 
> 
> 
> ----- Original Message -----
> From: <woodbri at swoodbridge.com>
> To: <mapserver-users at lists.gis.umn.edu>; "Mario" <noti at ciaoweb.it>
> Sent: Tuesday, June 17, 2003 2:02 PM Subject: Re: [Mapserver-users]
> ASP and MapServer
> 
> 
> > Hi Mario,
> >
> > If you can read the dbf and have the record number, then you need to
> > open the shapefile and read the extents for that record number, then
> > you can call $map->setextent(xmin, ymin, xmax,ymax) and you should
> > be all set.
> >
> > -Steve W.
> >
> > On 17 Jun 2003 at 13:16, Mario wrote:
> >
> > > Hi,
> > > I developed an ASP application that allow users to query dbase
> > > files in Shapefiles datasets. I'd like to pass records found to
> > > MapServer in order to zoom to their extents. How can I pass these
> > > records to MapServer?
> > >
> > > Any help appreciated
> > >
> > > Thanks
> > > Mario
> > >
> >
> >
> >
> 
> 





More information about the mapserver-users mailing list