Re: [pmapper-users] PHP Fatal error: Object expected as argument. in
Dear Armin, thank you very much for your answer, effectively to change these lines of code the problem is solved. At the moment I have not encountered that may have generated some other problem, any news I'll write an email. Greetings Richard Montevideo, Uruguay >Richard > >If I remember well I had this type of error in application once when >using cookies for the PHP sessions. I used a quick fix that worked for >me and did not cause any problems. I thought I added this to the code >but it seems not. > >In the file /incphp/map/map.php substitute the line 813 > $newResLayer->addFeature($resShape); > >with > > if ($resShape) { > $newResLayer->addFeature($resShape); > } > >I think then you should not get any more this error. Just check if all >the highlighting of features still works as expected. If no problems >occur I will add this to the main code > >armin > >On 01/02/2010 15:04, richardcam...@adinet.com.uy wrote: >> Dear, sorry for my English. >> I'm using Pmapper 4 final, php 5.2.11, php_mapscript 5.2.3, postgres >> 8.2.0 with extension PostGIS. >> I have configured the application with many, many layers and it works >> great. >> I have configured several searches (all Postgres), are very successful >> by 85%. >> I have a problem with 2 of the searches, which give me an error in php >> I could not solve, I repeat, the problem is only with 2 searches, the >> rest work great. >> The layer corresponding to the search I see it correctly in the map >> window. >> >> Attachments: >> >> Apache error.log >> PHP Fatal error: Object expected as argument. in / inetpub / wwwroot / >> mapas / incphp / map / map.php on line 813 >> > >-- >The Planet: dedicated and managed hosting, cloud storage, colocation >Stay online with enterprise data centers and the best network in the business >Choose flexible plans and management services without long-term contracts >Personal 24x7 support from experience hosting pros just a phone call away. >http://p.sf.net/sfu/theplanet-com >___ >pmapper-users mailing list >pmapper-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/pmapper-users > -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] PHP Fatal error: Object expected as argument. in
Dear, sorry for my English. I'm using Pmapper 4 final, php 5.2.11, php_mapscript 5.2.3, postgres 8.2.0 with extension PostGIS. I have configured the application with many, many layers and it works great. I have configured several searches (all Postgres), are very successful by 85%. I have a problem with 2 of the searches, which give me an error in php I could not solve, I repeat, the problem is only with 2 searches, the rest work great. The layer corresponding to the search I see it correctly in the map window. Attachments: Apache error.log PHP Fatal error: Object expected as argument. in / inetpub / wwwroot / mapas / incphp / map / map.php on line 813 Archivo.map LAYER NAME "Ascendente" STATUS on CONNECTIONTYPE postgis DATA "the_geom from (SELECT DISTINCT ON (desc_linea) gid, the_geom, desc_variante, desc_linea, cod_sublinea, desc_sublinea FROM v_uptu_variante) AS vista USING UNIQUE gid USING SRID=32721" TYPE line CLASSITEM "desc_variante" TOLERANCE 7 TEMPLATE "/inetpub/wwwroot/sit/aplicaciones/montevimap/formularios/gis_uptu_variante. html" METADATA "DESCRIPTION" "Lineas de Trasnporte Ascendente" "RESULT_FIELDS" "desc_variante, desc_linea, cod_sublinea, desc_sublinea " "RESULT_HEADERS" "Ascendente/Descendente, Linea, Codigo sublinea, Recorrido" END CLASS EXPRESSION "A" NAME "Ascendente" SYMBOL "circulo" SIZE 5 COLOR 0 0 255 END CONNECTION "user=montevimap password=xx dbname=nucleo host=xx.xx. xx.xx port=5432" END File search.xml pgsql://montevimap:xxx...@xx. xx.xx.xx/nucleo SELECT DISTINCT ON (desc_linea)desc_linea FROM v_uptu_variante WHERE desc_linea ~* '^[search]' Thank you very much for the help. Richard Montevideo, Uruguay -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Search does not work.
Dear Armin, thank you very much for your response I could fix it, I really lacked the METADATA section Greetings Richard Montevideo, Uruguay >Mensaje original >De: armin.bur...@gmail.com >Fecha: 21/01/2010 12:12 >Para: "richardcam...@adinet.com.uy" >CC: >Asunto: Re: [pmapper-users] Search does not work. > >just noticed that you're mainly missing the template tag for the >layer, so *no* query will work. see > >http://svn.pmapper. net/trac/wiki/DocManual#LayerGroupDescriptionsandFieldsforQueries > > >On Thu, Jan 21, 2010 at 12:16 PM, richardcam...@adinet.com.uy > wrote: >> Estimado Nahum, la versión de pmapper es la 4 stable, adjunto parte >> archivos de configuración: >> Archivo .map >> LAYER >> CONNECTIONTYPE postgis >> DATA "the_geom from v_callepuerta USING UNIQUE gid >> USING SRID=32721" >> TYPE point >> CONNECTION "user=montevimap password=xxx >> dbname=nucleo host=desgis.imm.gub.uy port=5432" >> NAME "busqueda" >> STATUS OFF >> DUMP TRUE >> END >> >> Archivo search.xml >> >> >> >> > minlength="1" dependfld="cmcncd"> >> pgsql: //montevimap:x...@desgis.imm.gub. >> uy/nucleo >> SELECT nom_calle FROM v_callepuerta WHERE nom_calle >> ='[search]' >> >> >> >> > sort="asc" minlength="1" dependfld="cmcncd"> >> pgsql: >> //montevimap:x...@desgis.imm.gub.uy/nucleo >> SELECT num_puerta FROM >> v_callepuerta WHERE num_puerta ='[search]' >> >> >> >> >> >> Definición tabla postgrs. >> Columna | Tipo | Modificadores >> +---+--- >> gid | bigint | >> cod_nombre_via | integer | >> nom_calle | character varying | >> num_puerta | integer | >> letra | character(5) | >> paridad | character(1) | >> the_geom | geometry >> >> Muchas gracias por cualquier ayuda, otras busquedas si me funcionan >> pero no logro que esta funciones. >> >> Richard >> Montevideo, Uruguay >> >> English >> Dear Nahum, pmapper version is 4 stable, attached some configuration >> files: >> Archive. Map >> LAYER >> CONNECTIONTYPE postgis >> DATA "the_geom from v_callepuerta USING UNIQUE gid >> USING SRID = 32721" >> TYPE point >> CONNECTION "user = montevimap password = xxx dbname = >> nucleo desgis.imm.gub.uy host = port = 5432" >> NAME "Search" >> STATUS OFF >> DUMP TRUE >> END >> >> File search.xml >> >> >> >> >> pgsql: / / montevimap:x...@desgis.imm.gub.uy >> /nucleo >> nom_calle SELECT FROM v_callepuerta WHERE nom_calle = '[search]' >> >> >> >> >> > sort="asc" minlength="1" dependfld="cmcncd"> >> pgsql: / / >> montevimap:x...@desgis.imm.gub.uy /nucleo >> num_puerta SELECT FROM >> v_callepuerta WHERE num_puerta = '[search]' >> >> >> >> >> >> Definition postgres table. >> Column | Type | Modifiers >> --- --- >> gid | bigint | >> cod_nombre_via | integer | >> nom_calle | character varying | >> num_puerta | integer | >> letter | character (5) | >> parity | character (1) | >> the_geom | geometry >> >> Thank you very much for any help, if I run other searches but can not >> get these functions. >> >> Richard >> Montevideo, Uruguay >> >> Spanish >> ¿Cómo tienes definido tu .map y el archivo de configuración de >> búsquedas? >> ¿Qué versión de pmapper tienes?. >> >> English >> How is defined your .map file and search.xml file? &
Re: [pmapper-users] Search does not work.
Estimado Nahum, la versión de pmapper es la 4 stable, adjunto parte archivos de configuración: Archivo .map LAYER CONNECTIONTYPE postgis DATA "the_geom from v_callepuerta USING UNIQUE gid USING SRID=32721" TYPE point CONNECTION "user=montevimap password=xxx dbname=nucleo host=desgis.imm.gub.uy port=5432" NAME "busqueda" STATUS OFF DUMP TRUE END Archivo search.xml pgsql://montevimap:x...@desgis.imm.gub. uy/nucleo SELECT nom_calle FROM v_callepuerta WHERE nom_calle ='[search]' pgsql: //montevimap:x...@desgis.imm.gub.uy/nucleo SELECT num_puerta FROM v_callepuerta WHERE num_puerta ='[search]' Definición tabla postgrs. Columna | Tipo| Modificadores +---+--- gid| bigint| cod_nombre_via | integer | nom_calle | character varying | num_puerta | integer | letra | character(5) | paridad| character(1) | the_geom | geometry Muchas gracias por cualquier ayuda, otras busquedas si me funcionan pero no logro que esta funciones. Richard Montevideo, Uruguay English Dear Nahum, pmapper version is 4 stable, attached some configuration files: Archive. Map LAYER CONNECTIONTYPE postgis DATA "the_geom from v_callepuerta USING UNIQUE gid USING SRID = 32721" TYPE point CONNECTION "user = montevimap password = xxx dbname = nucleo desgis.imm.gub.uy host = port = 5432" NAME "Search" STATUS OFF DUMP TRUE END File search.xml pgsql: / / montevimap:x...@desgis.imm.gub.uy /nucleo nom_calle SELECT FROM v_callepuerta WHERE nom_calle = '[search]' pgsql: / / montevimap:x...@desgis.imm.gub.uy /nucleo num_puerta SELECT FROM v_callepuerta WHERE num_puerta = '[search]' Definition postgres table. Column | Type | Modifiers --- --- gid | bigint | cod_nombre_via | integer | nom_calle | character varying | num_puerta | integer | letter | character (5) | parity | character (1) | the_geom | geometry Thank you very much for any help, if I run other searches but can not get these functions. Richard Montevideo, Uruguay Spanish ¿Cómo tienes definido tu .map y el archivo de configuración de búsquedas? ¿Qué versión de pmapper tienes?. English How is defined your .map file and search.xml file? Wich pmapper version you have? Saludos. Nahum 2010/1/20 richardcam...@adinet.com.uy - Ocultar texto citado - > llo everyone, sorry for my English. > I have configured and installed the viewer pmapper, the only problem I > have is with the search, the same achievements on Postgres with > PostGIS, work correctly on some tables, but in others does not search > me. > I use both geometry tables or views both with the corresponding column > the_geom and gid. > The log tells me that there is an error with the gid, but it exists > and it's OK, I can properly display the layer in the map view. > Deputy log with errors. > > [20-Jan-2010 17:27:17] PHP Warning: pg_query () [ function.pg-query ]: Query failed: ERROR: syntax error > at or near "FROM" at character 257 in / inetpub / wwwroot / maps / > incphp / query / squery.php on line 704 > [20-Jan-2010 17:27:17] P. MAPPER: PG for error Query: SELECT gid, > xmin (box3d (the_geom)), > ymin (box3d (the_geom)), > xmax (box3d (the_geom)), > ymax (box3d (the_geom)), > >FROM x_sig_busqueda > WHERE nom_calle ILIKE '% COLONIA%' > LIMIT 301 > [20-Jan-2010 17:27:17] PHP Warning: pg_numrows (): supplied argument > is not a valid PostgreSQL result resource in / inetpub / wwwroot / map > s / incphp / query / squery.php on line 708 > > > Thank you very much for any help. > Greetings > Richard > > > -- > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, c
[pmapper-users] Search does not work.
llo everyone, sorry for my English. I have configured and installed the viewer pmapper, the only problem I have is with the search, the same achievements on Postgres with PostGIS, work correctly on some tables, but in others does not search me. I use both geometry tables or views both with the corresponding column the_geom and gid. The log tells me that there is an error with the gid, but it exists and it's OK, I can properly display the layer in the map view. Deputy log with errors. [20-Jan-2010 17:27:17] PHP Warning: pg_query () [ function.pg-query ]: Query failed: ERROR: syntax error at or near "FROM" at character 257 in / inetpub / wwwroot / maps / incphp / query / squery.php on line 704 [20-Jan-2010 17:27:17] P. MAPPER: PG for error Query: SELECT gid, xmin (box3d (the_geom)), ymin (box3d (the_geom)), xmax (box3d (the_geom)), ymax (box3d (the_geom)), FROM x_sig_busqueda WHERE nom_calle ILIKE '% COLONIA%' LIMIT 301 [20-Jan-2010 17:27:17] PHP Warning: pg_numrows (): supplied argument is not a valid PostgreSQL result resource in / inetpub / wwwroot / map s / incphp / query / squery.php on line 708 Thank you very much for any help. Greetings Richard -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] Transparency and Coordinates not found in pmapper 4
Hola a todos, tengo el siguiente problema y aún no lo he podido solucionar: Instale la vesión 4 de pmapper y no he logrado que funcionen las utilidades de transparencia y Coordenadas, en la versión 3.2 si funciona correctamente. Alguien ha podido solucionar este problema, se agradece cualquier ayuda que me puedan brindar.. Muchas Gracias. Richard. IMM, Montevideo - Uruguay -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users