[Mapserver-users] ASP and MapServer

Mario noti at ciaoweb.it
Tue Jun 17 09:05:10 EDT 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0080_01C334E1.D8B62ED0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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
> >
>
>
>
------=_NextPart_000_0080_01C334E1.D8B62ED0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>Hi Steve,<BR>dbase tables don't have indexed fields and when I =
query the=20
database,<BR>I extract some records in a new recordset. If, as record =
number,=20
you<BR>consider the absolute position in the original table I cannot =
have=20
that<BR>number.<BR>Maybe it's possible to scroll all the database with a =
Find=20
command but<BR>probably it would be very slow for large tables....<BR>I =
'm new=20
in mapserver, can I find somewhere sample code that opens =
shapefile<BR>and reads=20
extents for a feature?<BR><BR>Thank=20
you<BR><BR>Mario<BR><BR><BR><BR><BR><BR>----- Original Message =
-----<BR>From:=20
&lt;<A=20
href=3D"mailto:woodbri at swoodbridge.com">woodbri at swoodbridge.com</A>&gt;<B=
R>To:=20
&lt;<A=20
href=3D"mailto:mapserver-users at lists.gis.umn.edu">mapserver-users at lists.g=
is.umn.edu</A>&gt;;=20
"Mario" &lt;<A =
href=3D"mailto:noti at ciaoweb.it">noti at ciaoweb.it</A>&gt;<BR>Sent:=20
Tuesday, June 17, 2003 2:02 PM<BR>Subject: Re: [Mapserver-users] ASP and =

MapServer<BR><BR><BR>&gt; Hi Mario,<BR>&gt;<BR>&gt; If you can read the =
dbf and=20
have the record number, then you need to<BR>&gt; open the shapefile and =
read the=20
extents for that record number, then<BR>&gt; you can call=20
$map-&gt;setextent(xmin, ymin, xmax,ymax) and you should be<BR>&gt; all=20
set.<BR>&gt;<BR>&gt; -Steve W.<BR>&gt;<BR>&gt; On 17 Jun 2003 at 13:16, =
Mario=20
wrote:<BR>&gt;<BR>&gt; &gt; Hi,<BR>&gt; &gt; I developed an ASP =
application that=20
allow users to query dbase files<BR>&gt; &gt; in Shapefiles datasets. =
I'd like=20
to pass records found to MapServer in<BR>&gt; &gt; order to zoom to =
their=20
extents. How can I pass these records to<BR>&gt; &gt; MapServer?<BR>&gt; =

&gt;<BR>&gt; &gt; Any help appreciated<BR>&gt; &gt;<BR>&gt; &gt; =
Thanks<BR>&gt;=20
&gt; Mario<BR>&gt; &gt;<BR>&gt;<BR>&gt;<BR>&gt;</DIV></BODY></HTML>

------=_NextPart_000_0080_01C334E1.D8B62ED0--




More information about the mapserver-users mailing list