[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
[Mapserver-users] Find and ZoomTo shape file record
- Subject: [Mapserver-users] Find and ZoomTo shape file record
- From: ms57@streamyx.com (Steve McCrone)
- Date: Wed, 01 Oct 2003 15:00:51 +0800
This is a multi-part message in MIME format.
--Boundary_(ID_Np4G7A8NpGVZU5fFEswMBw)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT
On my previous application the user was able to find a record in the shape
file and the map would zoom into that record and colour it red. I did this
by having a java script function -
function findBuilding(inBuilding){
var aForm = document.forms[0]
aForm.building.value = inBuilding;
aForm.mode.value = "itemquery";
aForm.qlayer.value = "building_query";
aForm.mapext.value = "shapes";
aForm.buffer.value = "0.005";
aForm.submit()
}
and in my map file -
LAYER # this layer just displays one building when it has been queried
NAME "building_query"
DATA Build
TYPE POLYGON
STATUS OFF
FILTERITEM Bldg_name
FILTER "%building%"
CLASS
TEMPLATE "demo.html" # Use to display map
#COLOR 255 0 0
#OUTLINECOLOR 255 0 0
END # CLASS
END # LAYER
And it works fine.
========================================
Now, I am working with the sample - DHTML rubber-band zoom sample from
http://maps.dnr.state.mn.us/mapserver_demos/workshop
An I am trying to achive the same functionality. Note: I cannot "fix" the
extents of the map area I want to zoom because the spatial coordinates of
the shape fuile records are constantly changing. Thanks
--Boundary_(ID_Np4G7A8NpGVZU5fFEswMBw)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: 7BIT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>On my previous
application the user was able to find a record in the shape<BR>file and the map
would zoom into that record and colour it red. I did this<BR>by having a java
script function -<BR><BR>function findBuilding(inBuilding){<BR> var aForm
= document.forms[0]<BR> aForm.building.value =
inBuilding;<BR><BR> aForm.mode.value = "itemquery";<BR>
aForm.qlayer.value = "building_query";<BR> aForm.mapext.value =
"shapes";<BR> aForm.buffer.value = "0.005";<BR>
aForm.submit()<BR>}<BR><BR>and in my map file -<BR><BR>LAYER # this
layer just displays one building when it has been queried<BR> NAME
"building_query"<BR> DATA Build<BR> TYPE POLYGON<BR>
STATUS OFF<BR> FILTERITEM Bldg_name<BR> FILTER
"%building%"<BR> CLASS<BR> TEMPLATE
"demo.html" # Use to display
map<BR> #COLOR 255 0 0<BR> #OUTLINECOLOR 255
0 0<BR> END # CLASS<BR>END # LAYER<BR><BR>And it works
fine.<BR>========================================<BR>Now, I am working with the
sample - DHTML rubber-band zoom sample from<BR></FONT><A
href="http://maps.dnr.state.mn.us/mapserver_demos/workshop"><FONT
face="Times New Roman"
size=3>http://maps.dnr.state.mn.us/mapserver_demos/workshop</FONT></A><BR><BR><FONT
face="Times New Roman" size=3>An I am trying to achive the same functionality.
Note: I cannot "fix" the<BR>extents of the map area I want to zoom because the
spatial coordinates of<BR>the shape fuile records are constantly changing.
Thanks</FONT><BR></FONT></DIV></BODY></HTML>
--Boundary_(ID_Np4G7A8NpGVZU5fFEswMBw)--
From Thomas E Burk <teb@mallit.fr.umn.edu> Wed Oct 1 16:06:23 2003
From: Thomas E Burk <teb@mallit.fr.umn.edu> (Thomas E Burk)
Date: Wed, 1 Oct 2003 10:06:23 -0500 (CDT)
Subject: [Mapserver-users] OGC implementing and conforming products for mapserv
Message-ID: <200310011506.h91F6N6M008985@mallit.fr.umn.edu>
It's one of those things that just gets overlooked. Thanks for the reminder.
We'll get 4.0 added to the "implements" list. Previously the decision was to not
spend the time, etc. to prove conformance. We can revisit that again.
Tom
=======================
Dr. Thomas E. Burk
University of Minnesota
1530 Cleveland Avenue North
St. Paul, MN 55108
612-624-6741
612-625-5212 (FAX)
tburk@umn.edu
>From: Frank Warmerdam <warmerdam@pobox.com>
>User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5a) Gecko/20030718
>X-Accept-Language: en-us, en
>MIME-Version: 1.0
>To: John.Hockaday@ga.gov.au
>Cc: mapserver-users@lists.gis.umn.edu
>Subject: Re: [Mapserver-users] OGC implementing and conforming products for
mapserv
>Content-Transfer-Encoding: 7bit
>X-BeenThere: mapserver-users@lists.gis.umn.edu
>X-Mailman-Version: 2.0.13
>List-Unsubscribe: <http://lists.gis.umn.edu/mailman/listinfo/mapserver-users>,
<mailto:mapserver-users-request@lists.gis.umn.edu?subject=unsubscribe>
>List-Id: Mapserver Users Mailing List (Appropriate for general users)
<mapserver-users.lists.gis.umn.edu>
>List-Post: <mailto:mapserver-users@lists.gis.umn.edu>
>List-Help: <mailto:mapserver-users-request@lists.gis.umn.edu?subject=help>
>List-Subscribe: <http://lists.gis.umn.edu/mailman/listinfo/mapserver-users>,
<mailto:mapserver-users-request@lists.gis.umn.edu?subject=subscribe>
>List-Archive: <http://lists.gis.umn.edu/pipermail/mapserver-users/>
>Date: Tue, 30 Sep 2003 23:10:31 -0400
>
>John.Hockaday@ga.gov.au wrote:
>> Hi,
>>
>> I was having a look at the OGC list of "Products
>> Conforming to or Implementing OGC Specs or
>> Interfaces" at URL:
>>
>> http://www.opengis.org/testing/product/
>>
>> I noticed that Mapserv 3.5 is the only mapserv
>> product mentioned on this site. If one checks
>> the "Conforming Only" checkbox, mapserv doesn't
>> show up in the list. This doesn't build up one's
>> confidence in the mapserv product as being OGC
>> compliant.
>>
>> Wouldn't it be a good idea if each time a mapserv
>> product/version was released, it was somehow
>> submitted to this OGC list to advertise if it was
>> compliant or not?
>
>John,
>
>I agree that more recent versions should be included as well as mention of
>WFS and "web map context" support. However, to be conforming I *believe* we
>have to put the server through a not-too-cheap conformance testing process.
>I am not sure anyone is prepared to pay for that though one of the government
>clients who feel strongly about OGC conformance might step up to pay for
>conformance testing.
>
>I thought Steve or UMN was now responsible for registering MapServer with the
>OGC products list?
>
>Best regards,
>
>--
>---------------------------------------+--------------------------------------
>I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
>light and sound - activate the windows | http://pobox.com/~warmerdam
>and watch the world go round - Rush | Geospatial Programmer for Rent
>
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users@lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>