[pmapper-users] Search / zoomto error
Dears, when i try to zoomto an item of search result, nothing happen and in my php_error.log say : [06-Dec-2007 13:17:11] PHP Fatal error: Object expected as argument. in C:\ms4w\apps\pmapper-3.2-beta2\incphp\map.php on line 735. this is my layer LAYER NAME vias_dao STATUS ON TYPE line CONNECTIONTYPE postgis CONNECTION user=postgres password=ruyi4232 dbname=postgis host=localhost port=5432 DATA the_geom from vias_dao TEMPLATE silueta.html # LABELITEM NAME # LABELCACHE ON MINSCALE 10 MAXSCALE 14 PROJECTION proj=latlong ellps=WGS84 datum=WGS84 END METADATA DESCRIPTION Vias RESULT_FIELDS nombre RESULT_HEADERS NOMBRE END # Metadata CLASS Name 'vias_dao' COLOR 0 0 0 OUTLINECOLOR 0 0 0 LABEL SIZE TINY #tinysmallmediumlargegiant POSITION auto ANGLE AUTO BUFFER 1 #40 how close label are to each other MINDISTANCE 50 MINFEATURESIZE 30 TYPE truetype FONT arial SIZE 6 COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 END END # Class END # Layer If you please help me best regards Cristian -- View this message in context: http://www.nabble.com/Search---zoomto-error-tf4958216.html#a14199697 Sent from the pmapper users mailing list archive at Nabble.com. - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Search / zoomto error
and what is written in the file \incphp\map.php in the lines before line 735...? Cristian_rougier wrote: Dears, when i try to zoomto an item of search result, nothing happen and in my php_error.log say : [06-Dec-2007 13:17:11] PHP Fatal error: Object expected as argument. in C:\ms4w\apps\pmapper-3.2-beta2\incphp\map.php on line 735. this is my layer LAYER NAME vias_dao STATUS ON TYPE line CONNECTIONTYPE postgis CONNECTION user=postgres password=ruyi4232 dbname=postgis host=localhost port=5432 DATA the_geom from vias_dao TEMPLATE silueta.html # LABELITEM NAME # LABELCACHE ON MINSCALE 10 MAXSCALE 14 PROJECTION proj=latlong ellps=WGS84 datum=WGS84 END METADATA DESCRIPTION Vias RESULT_FIELDS nombre RESULT_HEADERS NOMBRE END # Metadata CLASS Name 'vias_dao' COLOR 0 0 0 OUTLINECOLOR 0 0 0 LABEL SIZE TINY #tinysmallmediumlargegiant POSITION auto ANGLE AUTO BUFFER 1 #40 how close label are to each other MINDISTANCE 50 MINFEATURESIZE 30 TYPE truetype FONT arial SIZE 6 COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 END END # Class END # Layer If you please help me best regards Cristian - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Search / zoomto error
Armin, yow are you... This are the lines, I see your warning but I'm create the tables WITH OIDS The search work ok, the trouble are the zoomto. // Change projection to map projection if necessary if ($changeLayProj) { // If error appears here for Postgis layers, then DATA is not defined properly as: // the_geom from (select the_geom, oid, xyz from layer) AS new USING UNIQUE oid USING SRID=4258 $resShape-project($qLayerProjObj, $mapProjObj); } $newResLayer-addFeature($resShape); } Look my table CREATE TABLE vias_dao ( gid serial NOT NULL, fnode_ int4, tnode_ int4, lpoly_ int4, rpoly_ int4, length numeric, vialidad_ int4, vialidad_i int4, fid_ int4, id numeric, nombre varchar(60), categoria int8, tipo int8, sentido int4, velocidad_ int8, the_geom geometry, CONSTRAINT vias_dao_pkey PRIMARY KEY (gid), CONSTRAINT enforce_dims_the_geom CHECK (ndims(the_geom) = 2), CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'MULTILINESTRING'::text OR the_geom IS NULL), CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = -1) ) WITH OIDS; ALTER TABLE vias_dao OWNER TO postgres; And my search.xml searchlist version=1.0 dataroot$/dataroot searchitem name=vias_dao description=Calles layer type=postgis name=vias_dao field type=s name=nombre description=Calle wildcard=0 / /layer /searchitem /searchlist -Original Message- From: Armin Burger [mailto:[EMAIL PROTECTED] Sent: jueves, 06 de diciembre de 2007 13:58 To: Cristian_rougier Cc: pmapper-users@lists.sourceforge.net Subject: Re: [pmapper-users] Search / zoomto error and what is written in the file \incphp\map.php in the lines before line 735...? Cristian_rougier wrote: Dears, when i try to zoomto an item of search result, nothing happen and in my php_error.log say : [06-Dec-2007 13:17:11] PHP Fatal error: Object expected as argument. in C:\ms4w\apps\pmapper-3.2-beta2\incphp\map.php on line 735. this is my layer LAYER NAME vias_dao STATUS ON TYPE line CONNECTIONTYPE postgis CONNECTION user=postgres password=ruyi4232 dbname=postgis host=localhost port=5432 DATA the_geom from vias_dao TEMPLATE silueta.html # LABELITEM NAME # LABELCACHE ON MINSCALE 10 MAXSCALE 14 PROJECTION proj=latlong ellps=WGS84 datum=WGS84 END METADATA DESCRIPTION Vias RESULT_FIELDS nombre RESULT_HEADERS NOMBRE END # Metadata CLASS Name 'vias_dao' COLOR 0 0 0 OUTLINECOLOR 0 0 0 LABEL SIZE TINY #tinysmallmediumlargegiant POSITION auto ANGLE AUTO BUFFER 1 #40 how close label are to each other MINDISTANCE 50 MINFEATURESIZE 30 TYPE truetype FONT arial SIZE 6 COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 END END # Class END # Layer If you please help me best regards Cristian - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users