Hello Bryn,<br>First time I tried so but wasn't working .<br>Then tried to find out the how does it skips that layer.<br>When debugged the code I get the value "6" as I said earlier where <br>my postgis layer was getting skipped. So, I used that value then instead of the
<br>"MS_POSTGIS".<br> You need to find that value I suggest.<br><br>Have A Fun<br><br><br><div><span class="gmail_quote">On 2/2/07, <b class="gmail_sendername"><a href="mailto:bryn@brynr.ath.cx">bryn@brynr.ath.cx
</a></b> <<a href="mailto:bryn@brynr.ath.cx">bryn@brynr.ath.cx</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>Thanks Gupteshwar for the quick reply.<br>I found the line [143] in kaSearch.php which said<br>if($oLayer->connectiontype == MS_POSTGIS)<br><br>I tried changing this to<br>if($oLayer->connectiontype == MS_ORACLESPATIAL)
<br><br>but to no effect. I assume this is the line you were referring to?<br><br>Cheers,<br>Bryn<br><br><br>---------------------------- Original Message ----------------------------<br>Subject: Re: [ka-Map-users] Searching on Oracle Spatial and hilite query
<br>features<br>From: "Gupteshwar Joshi" <<a href="mailto:gupteshwar.joshi@gmail.com">gupteshwar.joshi@gmail.com</a>><br>Date: Fri, February 2, 2007 3:18 pm<br>To: <a href="mailto:ka-map-users@lists.maptools.org">
ka-map-users@lists.maptools.org</a><br>--------------------------------------------------------------------------<br><br>Hello Bryn,<br>I was also facing the same problem , but my side data is PostGIS .<br>So , when I tried to find the the problem ,I got that layer connectiontype
<br>does<br>matter in this thing.<br>So, when I tried with the extra code as<br>if ($oLayer->connectiontype==6) (i.e. for postgis )<br>created some array of postgis layer and included that in the<br>search code, now I could search in both shape file and postgis data.
<br> If you could find that connection type for your data then it might work for<br><br>your side also.<br><br>Regards<br><br>On 2/2/07, <a href="mailto:bryn@brynr.ath.cx">bryn@brynr.ath.cx</a> <<a href="mailto:bryn@brynr.ath.cx">
bryn@brynr.ath.cx</a>> wrote:<br>><br>> Hi All,<br>><br>> I have a question with regards to the ka-map search system.<br>> I have been able to successfully use it to search on a layer where the<br>> data source is a shapefile, however it doesn't seem to work on layers
<br>> where the data source is an oracle database. I have no problems in<br>> actually showing the data with labels, I am just unable to search it!<br>><br>> The relevant section of my map file is shown below in case it is something
<br>> I'm not doing correctly here:<br>><br>> LAYER<br>> GROUP "Provcoupe"<br>> NAME oracle_test<br>> TYPE POLYGON<br>> CONNECTIONTYPE oraclespatial<br>> CONNECTION "*****/*****@*****"
<br>> DATA "SHAPE FROM PC_A USING UNIQUE FEATUREID"<br>> DUMP TRUE<br>> STATUS ON<br>> TRANSPARENCY ALPHA<br>> LABELITEM "Provcoupe"<br>> PROJECTION
<br>> "init=epsg:28355"<br>> END<br>> CLASS<br>> Name "Provcoupe"<br>> MAXSCALE 50001<br>> STYLE<br>> OUTLINECOLOR 0 0 0
<br>> COLOR 0 128 128<br>> ANTIALIAS TRUE<br>> END<br>> LABEL<br>> ANTIALIAS TRUE<br>> COLOR 255 255 255
<br>> SHADOWCOLOR 0 0 0<br>> SHADOWSIZE 1 1<br>> FONT "verdana"<br>> TYPE TRUETYPE<br>> POSITION AUTO
<br>> PARTIALS FALSE<br>> SIZE 10<br>> BUFFER 1<br>> END<br>> END<br>> TEMPLATE "query_template.html"
<br>> METADATA<br>> opacity "65"<br>> queryable "true"<br>> searchfield "Provcoupe"<br>> fields "Provcoupe:Provcoupe"
<br>> END<br>> END<br>><br>> Ultimately what I would like to be able to do is search for a feature,<br>> then by hitting the 'zoom to' button automatically highlight the selected<br>> feature.
<br>> However, my attempts to highlight features only work with the query tool<br>> and then all I can get to (intermittently) work is having *only* the<br>> queried feature render on the QueryLayer (which is what I want), but the
<br>> background colour is not transparent (ie I can't see the underlying<br>> layers).<br>><br>> Any pointers or tips would be much appreciated.<br>><br>> Regards,<br>> Bryn Roberts<br>><br>> _______________________________________________
<br>> ka-Map-users mailing list<br>> <a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a><br>> <a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users
</a><br>><br><br><br><br>--<br> (((())))<br> (@ @)<br> (_)<br>+----oOO------------Ooo----------+<br>| Gupteshwar D Joshi |<br>| |
<br>+------------------------------------+<br> |___|___|<br> | | | |<br> ooO Ooo<br>_______________________________________________<br>ka-Map-users mailing list<br><a href="mailto:ka-Map-users@lists.maptools.org">
ka-Map-users@lists.maptools.org</a><br><a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br><br><br>_______________________________________________
<br>ka-Map-users mailing list<br><a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a><br><a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users
</a><br><br><br><br></blockquote></div><br><br clear="all"><br>-- <br> (((())))<br> (@ @)<br> (_)<br>+----oOO------------Ooo----------+<br>| Gupteshwar D Joshi |<br>
| |<br>+------------------------------------+ <br> |___|___| <br> | | | |<br> ooO Ooo