<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Thanks for your help Richard, I think I am closer, but I haven't got it yet to the point I can write it up!<div><br class="webkit-block-placeholder"></div><div>After struggling to work out the validation thing, I can run the script, but as soon as I use mode=itemquery I return a list of locations, and a querymap, beautifully shrunk down to show only the polygon I am interested in.</div><div><br class="webkit-block-placeholder"></div><div>However, I was hoping to be able to use this function in the main window - as an example say I was looking for roadside stops by name, it could then "zoom" me to the one I wanted, and I could continue panning or zooming.</div><div><br class="webkit-block-placeholder"></div><div><div><a href="http://remote.local/cgi-bin/mapserv?layer=coastline&amp;layer=roads&amp;layer=location">http://remote.local/cgi-bin/mapserv?layer=coastline&amp;layer=roads&amp;layer=location</a></div><div>&amp;layer=stops&amp;mode=itemquery&amp;qlayer=stops&amp;qstring=gid=342</div><div>&amp;map=%2FLibrary%2FWebServer%2FDocuments%2Froads%2Froads.map&amp;mapext=shapes&amp;iw=650&amp;ih=550</div><div><br class="webkit-block-placeholder"></div><div>but if I use mode=browse, I just get my normal interface, with a quarter of Australia to zoom in from!</div><div><br class="webkit-block-placeholder"></div><div>I'm guessing the better option may just be to make the select list with the extents of each object, queried from the database, so when the form is submitted that is the mapext value.</div><div><br class="webkit-block-placeholder"></div><div>cheers</div><div><br class="webkit-block-placeholder"></div><div>Ben</div><div><br class="webkit-block-placeholder"></div><div><br></div><div><div><div>On 21/12/2007, at 10:38 AM, Richard Greenwood wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">Using mode=itemnquery is a pretty standard way to do it. Several other</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">parameters are required. e.g.:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">qitem=gid&amp;qlayer=poly_layer&amp;mapext=shapes&amp;qstring=poly_gid</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Another way, with PostGIS, you can also query the extent of one or</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">more polygons and then pass that extent to mapserv with mode=map.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">--<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Richard Greenwood</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">www.greenwoodmap.com</div> </blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">-- </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Ben Madin</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">REMOTE INFORMATION</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">t : +61 8 9192 5455</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">f : +61 8 9192 5535</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">m : 0448 887 220</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Broome   WA   6725</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><a href="mailto:ben@remoteinformation.com.au">ben@remoteinformation.com.au</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="white-space: pre; ">                                                        </span></span>Out here, it pays to know...</div><br class="Apple-interchange-newline"></span> </div><br></div></div></body></html>