Armin,
Thanks for your aswer.
About the errors,
1) first when the map loads (or on every reload) I get a JS error:
Line 92 (xmlhttp.js)
Error: ':' was expected.
Line 92 contains: eval('response = ' + req.responseText);
which is related with this logs in the Apache access.log:
127.0.0.1 - - [14/Feb/2007:16:21:13 -0300] "GET
/pmapper3/incphp/xajax/x_load.php?PHPSESSID=a6a3a4b1fa9311483516e71ae18f4903&zoom_type=zoompoint
HTTP/1.1" 200 449
127.0.0.1 - - [14/Feb/2007:16:21:19 -0300] "GET
/pmapper3/tmp/a6a3a4b1fa9311483516e71ae18f49031171480879044433100.png
HTTP/1.1" 200 75972
127.0.0.1 - - [14/Feb/2007:16:21:19 -0300] "GET
/pmapper3/incphp/xajax/x_toc_update.php?PHPSESSID=a6a3a4b1fa9311483516e71ae18f4903
HTTP/1.1" 200 286
2) search,
when I perform some kind of search (e.g.: Search for point labeled "04" in
layer "poi110"), in the Apache access.log I can see this entry:
127.0.0.1 - - [14/Feb/2007:16:27:29 -0300] "GET
/pmapper3/blank.html?findlist=%23&%23textid=04&qlayer=poi110&PHPSESSID=a6a3a4b1fa9311483516e71ae18f4903
HTTP/1.1" 200 131
127.0.0.1 - - [14/Feb/2007:16:27:29 -0300] "GET
/pmapper3/templates/default.css HTTP/1.1" 304 -
And the query result is an empty window with the following HTML code:
<HTML>
<HEAD>
<link rel="stylesheet" href="templates/default.css"><style
type="text/css"></style>
</HEAD>
<BODY>
</BODY>
</HTML>
So, there is no JSON object...
3) identify,
when I click over one point, in most cases, I get the following error:
Line 42 (pmjson.js)
Error: '0.lenght' is null or not an object.
Line 42 contains: if (jsonstr[0].length == 0) {
Can this be ralated with TOLERANCE settings in map file?
In other cases, when I get a result, always is the same result without
concerning the point that I am consulting. Always I get the same point.
3) select,
when I select some points always get wrong reults. e.g.:
In layer "poi110" I have 3 points, "110 30", "110 56" and "110 59".
No matter what point I select, always the result table is (only varies the
number of points):
Etiqueta Latitud Longitud Fecha/Hora
110 56 -34.605500 -58.44735 2007-01-13 10:07:15.000
110 30 -34.652437 -58.427938 2007-02-14 17:03:22.000
110 59 -34.585587 -58.416488 2007-02-14 17:03:35.000
If I select one point, I (always) get as result
110 56 -34.605500 -58.44735 2007-01-13 10:07:15.000
If I select 2 points, always get, no matter which 2 points are:
110 56 -34.605500 -58.44735 2007-01-13 10:07:15.000
110 30 -34.652437 -58.427938 2007-02-14 17:03:22.000
etc. etc. always in the same order (I don“t know if is the order in which
they are retrieved from the DB...)
4) auto-identify,
the same that above. No matter which point I query, always the tooltip
result is the corrsponding to the first in the table. e.g.: for the 3 points
I get:
110 56
-34.605500
-58.44735
2007-01-13 10:07:15.000
And, the errors in the Apache error.log are of the kind:
[Wed Feb 14 17:29:21 2007] [error] [client 127.0.0.1] msDrawMap() total
time: 0.969s\r, referer:
http://localhost:8080/pmapper3/map.phtml?dg=Areas,Lineas,Secc_276_E-L,Ramal_276_E-L,poi034,poi065,poi110,poi276&me=-58.5274979386,-34.6666361547,-58.322878009,-34.5547853797&language=es
I hope to have been more clear.
Any suggestions?
Thank you in advance.
Gaston.
----- Original Message -----
From: "Armin Burger" <[EMAIL PROTECTED]>
To: "Gaston Izaguirre" <[EMAIL PROTECTED]>
Cc: "pmapper-users PMAPPER" <[email protected]>
Sent: Wednesday, February 14, 2007 3:35 PM
Subject: Re: [pmapper-users] problems with queries/searches in OGR layer
> 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