RAFFIN, thanks by your answer. I didn't know about PluginsDynamicData on pmapper. But, based on I could see, these are more specific about drawing shapes on the map.
I think that most effective to me is using PHP. But I don't know every required skills. You tell me about $_SESSION['groups'], I didn't know it. In my testing, right now, I've added my layer name on $_SESSION['groups'], but I got the same trouble: A blank screen, without any information.. I expected either error message on error.log or a screen error.. but all is blank. Do you know all required steps to make this works ?. (or do you know a specific manual about it ?). In my project, basically, my situation is: I have a research database , that contains numbers about avaliations made in a lot of cities here in Brazil. Every city has a lot of numbers associated to indicators from research. Until that, I don't use spatial information, just numbers. Posteriorly, I made a join with results and cities, my cities database have geografical columns with every respective area. I need show the city's area with corresponding color to result number. Specially, i need use a dynamical layer because users will need filter these results. Filtering by Year (every year has a new research), indicator, regions... and more. To use lot of filters, I believe I need a dynamical layer. Thanks. <traf...@sirap.fr> Subject: Re: [pmapper-users] Dynamical PostGis Layer. 2010/11/19, pmapper-users-requ...@lists.sourceforge.net <pmapper-users-requ...@lists.sourceforge.net>: > Send pmapper-users mailing list submissions to > pmapper-users@lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/pmapper-users > or, via email, send a message with subject or body 'help' to > pmapper-users-requ...@lists.sourceforge.net > > You can reach the person managing the list at > pmapper-users-ow...@lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of pmapper-users digest..." > > > Today's Topics: > > 1. Re: errors with extra layouts examples (Giovanni Manghi) > 2. Re: Dynamical PostGis Layer. (Thomas RAFFIN) > 3. JOINING SQL Server (Gustavo Insaurralde) > 4. Re: JOINING SQL Server (Armin Burger) > 5. Re: errors with extra layouts examples (Armin Burger) > 6. Re: errors with extra layouts examples (Giovanni Manghi) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 18 Nov 2010 22:32:07 +0000 > From: Giovanni Manghi <giovanni.man...@gmail.com> > Subject: Re: [pmapper-users] errors with extra layouts examples > To: pmapper-users@lists.sourceforge.net > Message-ID: <1290119527.9723.2.ca...@sibirica> > Content-Type: text/plain; charset="UTF-8" > > Seems something I cannot catch (besides the paths) in the mapfile > shipped in the plainlayoutX folders. If I use the pmapper_demo.map > shipped in "default" it all works fine. > > cheers > > -- Giovanni -- > > > On Thu, 2010-11-18 at 20:33 +0000, Giovanni Manghi wrote: >> Hi all, >> >> I just made a couple of normal pmapper 4 installations, one on Ubuntu >> (using the repos) and the other on windows (using ms4w packages). >> >> On both installation I'm having problems using the extra layout examples >> that I donwloaded here >> >> http://svn.pmapper.net/repos/pmapper/trunk/layout-samples/ >> >> or from sourceforge. >> >> The problem comes when using an alternative config file >> >> http://127.0.0.1/pmapper/map_plainlayout4.phtml?config=plainlayout4 >> >> on windows: >> >> Warning: [MapServer Error]: msProcessProjection(): No such file or >> directory in C:\ms4w\apps\pmapper\pmapper-4.0.0\incphp\globals.php on >> line 60 >> >> Warning: Failed to open map file >> C:/ms4w/apps/pmapper/pmapper-4.0.0/config/plainlayout4/pmapper_demo.map >> in C:\ms4w\apps\pmapper\pmapper-4.0.0\incphp\globals.php on line 60 >> >> Fatal error: Call to a member function getAllGroupNames() on a >> non-object in C:\ms4w\apps\pmapper\pmapper-4.0.0\incphp\init\initmap.php >> on line 284 >> >> on linux: >> >> Warning: [MapServer Error]: msProcessProjection(): no system list, >> errno: 2 in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: Failed to >> open map file /var/www/pmapper-4.0/config/plainlayout4/pmapper_demo.map >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Notice: Trying to >> get property of non-object >> in /var/www/pmapper-4.0/incphp/init/initmap.php on line 278 Fatal error: >> Call to a member function getAllGroupNames() on a non-object >> in /var/www/pmapper-4.0/incphp/init/initmap.php on line 284 >> >> >> then I have to remove all cookies from the broswer otherwise it will >> throw always the same error even browsing >> >> >> http://localhost/pmapper-4.0/map.phtml >> >> >> I feel I have already encountered this problem, but now I can't recall >> how I solved it, any help? >> >> >> cheers >> >> -- Giovanni -- > > > > > > ------------------------------ > > Message: 2 > Date: Fri, 19 Nov 2010 08:00:47 +0100 > From: Thomas RAFFIN <traf...@sirap.fr> > Subject: Re: [pmapper-users] Dynamical PostGis Layer. > To: pmapper-users@lists.sourceforge.net > Message-ID: <4ce6209f.3090...@sirap.fr> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi, > > The 2 plugins here http://svn.pmapper.net/trac/wiki/PluginsDynamicData > add dynamical layers on pmapper 4. They use json layer description. > > Else you can do it using PHP like you described it in your message, but > it requires more development skills. Do you add your layer name in > $_SESSION['groups'] ? > > > Le 18/11/2010 16:08, Rafael Rend a ?crit : >> Hello, >> >> Someone has an example code to add dynamical layer on pmapper-4.0 ?. >> >> I whould like to know, if exists an appropriate solution to do it. >> >> -> I have tried: >> (file: map.phtml ) >> >> $layer = ms_newLayerObj($map); >> >> ( another lines to config layer, classes and styles ).. >> >> //continuation >> require_once("$PM_INCPHP/init/initmap.php"); >> (..... rest of map.phtml file ) >> >> ... But, when I try use it, the map screen show me totally blank. >> No information appear to me, and no erros in error.log file. >> >> >> ->Also, I've tried to use DynLayer [ file: >> incphp/map/dynlayer.php ]. But I don't know if this class allready >> have worked before. On documentation We just see: " Not yet >> documented... " ( >> http://svn.pmapper.net/trac/wiki/PluginsLayersManagement ) >> >> >> I have searched about DynLayer, but not found an working >> example. Only this message: >> http://old.nabble.com/How-to-use-DynLayer--td28670771.html, about >> another user trying, without success, use it. >> >> Someone has had success adding dynamical layer on pmapper-4 ?. >> >> Thanks. >> >> ------------------------------------------------------------------------------ >> Beautiful is writing same markup. Internet Explorer 9 supports >> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. >> Spend less time writing and rewriting code and more time creating great >> experiences on the web. Be a part of the beta today >> http://p.sf.net/sfu/msIE9-sfdev2dev >> _______________________________________________ >> pmapper-users mailing list >> pmapper-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/pmapper-users >> >> >> >> >> > > > > ------------------------------ > > Message: 3 > Date: Fri, 19 Nov 2010 11:29:19 -0300 > From: Gustavo Insaurralde <insaurralde...@gmail.com> > Subject: [pmapper-users] JOINING SQL Server > To: pmapper-users@lists.sourceforge.net > Message-ID: > <aanlkti=e6rqyn402pyhqmoph2xavrjcqkn1hqn5np...@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi there! > > I?ve made some cadastrial maps, with .shp files and i got it running > perfectly. > > Now Im trying to join with a SQL Server db, and i got stucked for a week or > so. > > * I got PEAR running (tested) > * Got a system dns odbc "SQLMPL" > > metadata of this layer: > > METADATA > "DESCRIPTION" "Inmuebles" > "RESULT_FIELDS" "ADREMA, MANZANA, SUPERFICIE,CUIM, ID" > "RESULT_HEADERS" "Adrema, Manzana, Superficie, CUIM, ID" > "LAYER_ENCODING" "UTF-8" > > "ows_title" "Parcelas" > > "RESULT_JOIN" "odbc://'user':'pass'/localh...@*sqlmpl*||* > dbo_contribuyent...@*id*@0...@cuim||*IDCONTRIBU*||0" > END > > *Details*: > user= my user name > pass=password > SQLMPL = dns system odbc (SQL Server Driver) > dbo_CONTRIBUYENTES = SQL table to join with this shape > IDCONTRIBU = shp field to join with ID field from SQL db > ID = field from dbo_CONTRIBUYENTES table from SQL db > CUIM = field i want to show from SQL Server table > > > I got no errors, that?s why im stucked :( > > It doesn't retrieve anything... i only got the spinning loader.. and it > keeps spinning sadly :P > > > Any help please? > > --- > Gustavo > > > ------------------------------ > > Message: 4 > Date: Fri, 19 Nov 2010 18:13:00 +0100 > From: Armin Burger <armin.bur...@gmail.com> > Subject: Re: [pmapper-users] JOINING SQL Server > To: pmapper-users@lists.sourceforge.net > Message-ID: <4ce6b01c.4050...@gmail.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 19/11/2010 15:29, Gustavo Insaurralde wrote: >> Hi there! >> >> I got no errors, that?s why im stucked :( >> >> It doesn't retrieve anything... i only got the spinning loader.. and it >> keeps spinning sadly :P >> > > this actually means that you do have an error, otherwise the "spinning > loading" would not appear forever. The error should be a JavaScript > error but most likely originating from a PHP error. You need to follow > the debugging instructions from the Wiki-FAQ. > > > > > ------------------------------ > > Message: 5 > Date: Fri, 19 Nov 2010 18:27:16 +0100 > From: Armin Burger <armin.bur...@gmx.net> > Subject: Re: [pmapper-users] errors with extra layouts examples > To: pmapper-users@lists.sourceforge.net > Message-ID: <4ce6b374.9010...@gmx.net> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > there are various tools to compare 2 text files and see the differences... > > otherwise you will find all reasons for these error messages if you > google for them, they happen to appear more often with Mapserver, some > are even in the Mapserver error-FAQ's > > see http://lmgtfy.com/?q=msProcessProjection()%3A+No+such+file&l=1 > > I committed the outstanding changes now, so now all map files should be > identical in the SVN. > > armin > > > On 18/11/2010 23:32, Giovanni Manghi wrote: >> Seems something I cannot catch (besides the paths) in the mapfile >> shipped in the plainlayoutX folders. If I use the pmapper_demo.map >> shipped in "default" it all works fine. >> >> cheers >> >> -- Giovanni -- >> >> >> On Thu, 2010-11-18 at 20:33 +0000, Giovanni Manghi wrote: >>> Hi all, >>> >>> I just made a couple of normal pmapper 4 installations, one on Ubuntu >>> (using the repos) and the other on windows (using ms4w packages). >>> >>> On both installation I'm having problems using the extra layout examples >>> that I donwloaded here >>> >>> http://svn.pmapper.net/repos/pmapper/trunk/layout-samples/ >>> >>> or from sourceforge. >>> >>> The problem comes when using an alternative config file >>> >>> http://127.0.0.1/pmapper/map_plainlayout4.phtml?config=plainlayout4 >>> >>> on windows: >>> >>> Warning: [MapServer Error]: msProcessProjection(): No such file or >>> directory in C:\ms4w\apps\pmapper\pmapper-4.0.0\incphp\globals.php on >>> line 60 >>> >>> Warning: Failed to open map file >>> C:/ms4w/apps/pmapper/pmapper-4.0.0/config/plainlayout4/pmapper_demo.map >>> in C:\ms4w\apps\pmapper\pmapper-4.0.0\incphp\globals.php on line 60 >>> >>> Fatal error: Call to a member function getAllGroupNames() on a >>> non-object in C:\ms4w\apps\pmapper\pmapper-4.0.0\incphp\init\initmap.php >>> on line 284 >>> >>> on linux: >>> >>> Warning: [MapServer Error]: msProcessProjection(): no system list, >>> errno: 2 in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >>> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >>> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >>> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >>> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >>> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >>> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >>> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >>> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >>> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >>> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >>> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >>> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >>> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >>> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >>> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >>> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >>> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >>> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: Failed to >>> open map file /var/www/pmapper-4.0/config/plainlayout4/pmapper_demo.map >>> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Notice: Trying to >>> get property of non-object >>> in /var/www/pmapper-4.0/incphp/init/initmap.php on line 278 Fatal error: >>> Call to a member function getAllGroupNames() on a non-object >>> in /var/www/pmapper-4.0/incphp/init/initmap.php on line 284 >>> >>> >>> then I have to remove all cookies from the broswer otherwise it will >>> throw always the same error even browsing >>> >>> >>> http://localhost/pmapper-4.0/map.phtml >>> >>> >>> I feel I have already encountered this problem, but now I can't recall >>> how I solved it, any help? >>> >>> >>> cheers >>> >>> -- Giovanni -- >> >> >> >> ------------------------------------------------------------------------------ >> Beautiful is writing same markup. Internet Explorer 9 supports >> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. >> Spend less time writing and rewriting code and more time creating great >> experiences on the web. Be a part of the beta today >> http://p.sf.net/sfu/msIE9-sfdev2dev >> _______________________________________________ >> pmapper-users mailing list >> pmapper-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/pmapper-users >> > > > > ------------------------------ > > Message: 6 > Date: Fri, 19 Nov 2010 17:48:34 +0000 > From: Giovanni Manghi <giovanni.man...@gmail.com> > Subject: Re: [pmapper-users] errors with extra layouts examples > To: armin.bur...@gmx.net > Cc: pmapper-users@lists.sourceforge.net > Message-ID: <1290188914.17543.3.ca...@sibirica> > Content-Type: text/plain; charset="UTF-8" > > Hi, > > thanks Armin, especially for the lmgtfy link, even if I quite know how > to use google and know well that I can find there all the answers I > need. > > It happens that sometimes you can't just "see" the answers, that in any > case today in the morning was in front of me... > > cheers > > -- Giovanni -- > > PS > I know also how to make a diff between two files, I didn't realized > immediately that was a case problem. > > > > > On Fri, 2010-11-19 at 18:27 +0100, Armin Burger wrote: >> there are various tools to compare 2 text files and see the differences... >> >> otherwise you will find all reasons for these error messages if you >> google for them, they happen to appear more often with Mapserver, some >> are even in the Mapserver error-FAQ's >> >> see http://lmgtfy.com/?q=msProcessProjection()%3A+No+such+file&l=1 >> >> I committed the outstanding changes now, so now all map files should be >> identical in the SVN. >> >> armin >> >> >> On 18/11/2010 23:32, Giovanni Manghi wrote: >> > Seems something I cannot catch (besides the paths) in the mapfile >> > shipped in the plainlayoutX folders. If I use the pmapper_demo.map >> > shipped in "default" it all works fine. >> > >> > cheers >> > >> > -- Giovanni -- >> > >> > >> > On Thu, 2010-11-18 at 20:33 +0000, Giovanni Manghi wrote: >> >> Hi all, >> >> >> >> I just made a couple of normal pmapper 4 installations, one on Ubuntu >> >> (using the repos) and the other on windows (using ms4w packages). >> >> >> >> On both installation I'm having problems using the extra layout >> >> examples >> >> that I donwloaded here >> >> >> >> http://svn.pmapper.net/repos/pmapper/trunk/layout-samples/ >> >> >> >> or from sourceforge. >> >> >> >> The problem comes when using an alternative config file >> >> >> >> http://127.0.0.1/pmapper/map_plainlayout4.phtml?config=plainlayout4 >> >> >> >> on windows: >> >> >> >> Warning: [MapServer Error]: msProcessProjection(): No such file or >> >> directory in C:\ms4w\apps\pmapper\pmapper-4.0.0\incphp\globals.php on >> >> line 60 >> >> >> >> Warning: Failed to open map file >> >> C:/ms4w/apps/pmapper/pmapper-4.0.0/config/plainlayout4/pmapper_demo.map >> >> in C:\ms4w\apps\pmapper\pmapper-4.0.0\incphp\globals.php on line 60 >> >> >> >> Fatal error: Call to a member function getAllGroupNames() on a >> >> non-object in >> >> C:\ms4w\apps\pmapper\pmapper-4.0.0\incphp\init\initmap.php >> >> on line 284 >> >> >> >> on linux: >> >> >> >> Warning: [MapServer Error]: msProcessProjection(): no system list, >> >> errno: 2 in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: >> >> [MapServer Error]: msProcessProjection(): no system list, errno: 2 >> >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: Failed >> >> to >> >> open map file /var/www/pmapper-4.0/config/plainlayout4/pmapper_demo.map >> >> in /var/www/pmapper-4.0/incphp/globals.php on line 60 Notice: Trying to >> >> get property of non-object >> >> in /var/www/pmapper-4.0/incphp/init/initmap.php on line 278 Fatal >> >> error: >> >> Call to a member function getAllGroupNames() on a non-object >> >> in /var/www/pmapper-4.0/incphp/init/initmap.php on line 284 >> >> >> >> >> >> then I have to remove all cookies from the broswer otherwise it will >> >> throw always the same error even browsing >> >> >> >> >> >> http://localhost/pmapper-4.0/map.phtml >> >> >> >> >> >> I feel I have already encountered this problem, but now I can't recall >> >> how I solved it, any help? >> >> >> >> >> >> cheers >> >> >> >> -- Giovanni -- >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > Beautiful is writing same markup. Internet Explorer 9 supports >> > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. >> > Spend less time writing and rewriting code and more time creating great >> > experiences on the web. Be a part of the beta today >> > http://p.sf.net/sfu/msIE9-sfdev2dev >> > _______________________________________________ >> > pmapper-users mailing list >> > pmapper-users@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/pmapper-users >> > >> >> ------------------------------------------------------------------------------ >> Beautiful is writing same markup. Internet Explorer 9 supports >> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >> Spend less time writing and rewriting code and more time creating great >> experiences on the web. Be a part of the beta today >> http://p.sf.net/sfu/msIE9-sfdev2dev >> _______________________________________________ >> pmapper-users mailing list >> pmapper-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/pmapper-users > > > > > > ------------------------------ > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > > ------------------------------ > > _______________________________________________ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users > > > End of pmapper-users Digest, Vol 50, Issue 5 > ******************************************** > -- SDS Rafael Álvares Rend REND TI - Consultoria em Tecnologia da Informação www.rendti.com.br Tel. (71) 4113-0962 Cel. (71) 9236-9775 Cel. (71) 8875-0601 ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users