Is there any PHP or JS error for the search?

I don't know if the OGR VRT layers are working with attribute search 
because there is a separation between several layer types in p.mapper. 
The identify should work because it just applies the same quryByPoint 
function to every layer (except XY layers because they are a definition 
inside p.mapper). You could check the result window if the source of it 
has a Javascript JSON object defined or not.

I currently do not have time to set up an OGR layer to test it by myself.

armin

Gaston Izaguirre wrote:
> Hi all,
> 
> I'm running p-mapper 3.0 under MS4W 1.5.4 (MS 4.8.3, PHP 4.4.3)
> In my map file I defined some point layers (actually 5) via OGR connection, 
> one example of such a layer is:
> 
>   LAYER
>     NAME "poi_coords"
>     STATUS ON
>     DATA "poi110"
>     TYPE POINT
>     CONNECTIONTYPE OGR
>     CONNECTION "data110.ovf"
>     LABELITEM "textid"
>     LABELCACHE ON
>     POSTLABELCACHE TRUE
>     TOLERANCE 3
>     TOLERANCEUNITS PIXELS
>     DEBUG ON
>     DEBUG ON
>     TEMPLATE void
>     METADATA
>       "DESCRIPTION"      "Puntos 110"
>       "RESULT_FIELDS" 
> "textid,id,vehi_id,latitud,longitud,velocidad,sentido,fecha"
>       "RESULT_HEADERS" 
> "Etiqueta,ID,Unidad,Latitud,Longitud,Velocidad,Rumbo,Fecha/Hora"
>     #  "RESULT_HYPERLINK"   "Poul_latitud,Poul_longitud"
>     END
>     CLASS
>       NAME "Vehiculos"
>       DEBUG ON
>       LABEL
>         TYPE TRUETYPE
>         FONT "fritqat"
>         SIZE 10
>         COLOR 236 0 140
>         OUTLINECOLOR 0 0 0
>       END
>       STYLE
>         SYMBOL "bondi_magenta"
>         COLOR 255 0 0
>         OUTLINECOLOR 0 0 255
>         BACKGROUNDCOLOR -1 -1 -1
>         SIZE 32
>       END
>     END
>   END
> 
> So, the layers contains XY coords plus other auxiliary data, like the textid 
> field used to label the points. The OVF file defines the connection to a 
> view of some tables of the DB in a SQL server 2000:
> 
> <OGRVRTDataSource>
>     <OGRVRTLayer name="poi110">
>         <SrcDataSource>ODBC:usuario/[EMAIL 
> PROTECTED],my_custom_view</SrcDataSource>
>         <SrcLayer>my_custom_view</SrcLayer>
>         <GeometryType>wkbPoint</GeometryType>
>         <LayerSRS>WGS84</LayerSRS>
>         <GeometryField encoding="PointFromColumns" x="longitud" 
> y="latitud"/>
>     </OGRVRTLayer>
> </OGRVRTDataSource>
> 
> 
> All this works well and all the points for the five layers are exhibited 
> correctly displayed.
> 
> But I have problems when I want to search/query on these layers.
> 
> For example, with the Attribute Search tool I get *no results*, only an 
> empty (blue) window.
> 
> I have defined the arrays for Attribute Search in 'js_config.php', the 
> corresponding one to the above layer is:
> 
> searchList['poi_coords'] = new Array('<?php echo _p("Nro vehiculo")?>', 
> '#textid', '<?php echo _p("Interno (Etiqueta)") ?>','');
> 
> I want yo search on the ORG layer by the text field 'textid', but without 
> success.
> 
> Am I missing something?
> Wrong configuration?
> 
> 
> Also, I get bad results with other query functions, e.g. IDENTIFY, SELECT 
> and AUTO_IDENTIFY.
> With the identify feature I get some info is displayed in the infozone area, 
> but not always with the correct result data, e.g.: all the result fields 
> corresponds to another point.
> With the auto identify I always get the same results as with the identify 
> tool for the selected layer.
> And with the select feature, also I get bad results. e.g.: I have 4 points 
> labeled "04", "19", "46" and "60", I draw a box around "46" and "19", but in 
> the result table I get info for "19" and "60"...
> 
> Any idea in how I can solve this very will be appreciated.
> 
> If I missed to send more info (conf, errors, etc) please tell me.
> Sorry for mi long post.
> 
> Thank you in advance,
> 
> Gaston.
> 
> 
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> pmapper-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to