Thread: [pmapper-users] selectionManagement plugin
Brought to you by:
arminburger
From: Andreas D. <and...@ya...> - 2011-04-07 15:49:10
|
Hi I found in trunk one new plugin : selectionManagement !!! First of all very useful tool. I test it. I have pmapper 4.1.1 and I download only the new plug in ( selectionManagement) and selectTools.inc.php. I works perfect with shp but I have problems with Postgis layer. the php error: [07-Apr-2011 15:27:33] PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'pmapper_reslayer'. in C:\ms4w\apps\pmapper\pmapper-4.1.1b\incphp\map\map.php on line 326[07-Apr-2011 15:27:33] PHP Warning: [MapServer Error]: msPostGISLayerWhichShapes(): Error (ERROR: syntax error at or near "AAAAAA77"LINE 1: ...2247703437 3986818.5546875))',2100) and (gid IN (2AAAAAA77,4... ^) executing query: select encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'hex') as geom,"gid" from deh.grammes_metaforas where the_geom && GeomFromText('POLYGON((34260.2247703437 3986818.5546875,34260.2247703437 4520754.1015625,800692.43147965 4520754.1015625,800692.43147965 3986818.5546875,34260.2247703437 3986818.5546875))',2100) and (gid IN (2AAAAAA77,4AAAAAA119,5AAAAAA244,7AAAAAA252,8AAAAAA253,9AAAAAA254)) in C:\ms4w\apps\pmapper\pmapper-4.1.1b\incphp\map\map.php on line 326 Is there anyone can imagine what is wrong ? Postgis layer: LAYER NAME "GM" GROUP "D" STATUS on CONNECTIONTYPE postgis CONNECTION "user=test dbname=gisdb host=localhost password=******" DATA "the_geom FROM gm USING UNIQUE gid USING SRID=2100" TYPE LINE UNITS METERS MAXSCALEDENOM 100000000 PROCESSING "CLOSE_CONNECTION=DEFER" SIZEUNITS METERS FILTER "tasi='150 kV'" PROJECTION "init=epsg:2100" END METADATA "wms_name" "GM" "wms_title" "GM" "LAYER_ENCODING" "ISO-8859-7" "wms_srs" "EPSG:2100" "wms_encoding" "ISO-8859-7" "wms_group_title" "D" "wms_opaque" "0" "gml_include_items" "all" "RESULT_HYPERLINK" "gid" END TEMPLATE "ttt.html" CLASS NAME "GM" EXPRESSION ("[tasi]"="150 kV") STYLE SYMBOL 2 COLOR 0 166 57 OUTLINECOLOR 0 0 0 SIZE 2 MINSIZE 2 MAXSIZE 2 ANTIALIAS FALSE END END END |
From: Andreas D. <and...@ya...> - 2011-04-08 10:36:31
|
Thank you for your response. MapServer CGI 5.6.6 - MS4W - version 3.0.1 |
From: Andreas D. <and...@ya...> - 2011-04-08 10:42:58
|
I forgot to inform you that I have Postgresql 8.4 with PostGis 1.5.2. |
From: jose m. <jos...@gm...> - 2014-07-26 13:39:25
|
Hi, I would like to know if someone (except Thomas and Armin) have tried to save selections with refactored selectionManagement plugin. I'm sorry but I did that several times, with a clean pmapper install and using demo data, without success. <http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/file/n4025583/saveSelection.jpg> The php notices through the process (only to contextualize): [26-Jul-2014 12:55:19 UTC] PHP Notice: Undefined index: JSON_Results in /var/www/pmapper/incphp/xajax/x_info.php on line 40 [26-Jul-2014 12:55:24 UTC] PHP Notice: Undefined variable: content in /var/www/pmapper/plugins/selectionManagement/x_saveSelection.php on line 119 [26-Jul-2014 12:55:54 UTC] PHP Notice: Use of undefined constant msCurrentSelection - assumed 'msCurrentSelection' in /var/www/pmapper/plugins/clientdynamiclayers/x_clientDynamicLayers.php on line 46 [26-Jul-2014 12:55:54 UTC] PHP Notice: Use of undefined constant msSelection - assumed 'msSelection' in /var/www/pmapper/plugins/clientdynamiclayers/clientDynamicLayers.php on line 697 And at the end, the PHP FATAL ERROR (when i press OK to save selection): [26-Jul-2014 12:55:54 UTC] PHP Fatal error: Call to undefined function getLayersByGroupOrLayerName() in /var/www/pmapper/plugins/clientdynamiclayers/clientDynamicLayers.php on line 461 I think this refactored plugin (and the new plugins) are very important and usefull and I would like to work with it and see the results (as all pmapper users) in my pmapper project. So, I hope someone can help me. Thank you very much Thomas Raffin and Armin Burger, and all pmapper users. Best Regards, José -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/selectionManagement-plugin-tp4025583.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. |
From: Armin B. <arm...@gm...> - 2014-07-26 14:31:09
|
I don't know those plugins, but from the fatal error you get it is clear that the file with the function getLayersByGroupOrLayerName() is not loaded. Try for testing to add to the file clientdynamiclayers/clientDynamicLayers.php at the beginning a line like require_once '../common/groupsAndLayers.php'; And as already mentioned, please change your settings for error reporting in your php.ini file as described in the wiki. It is not for nothing that this setting is labeled with "IMPORTANT".... Keeping notices will not help you or anybody else at all for debugging, it just makes it annoying to find the only logged error in between lots of useless "Notice" logs. /armin On 07/26/2014 03:39 PM, jose mvm wrote: > Hi, > > I would like to know if someone (except Thomas and Armin) have tried to save > selections with refactored selectionManagement plugin. > > I'm sorry but I did that several times, with a clean pmapper install and > using demo data, without success. > > <http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/file/n4025583/saveSelection.jpg> > > The php notices through the process (only to contextualize): > > [26-Jul-2014 12:55:19 UTC] PHP Notice: Undefined index: JSON_Results in > /var/www/pmapper/incphp/xajax/x_info.php on line 40 > [26-Jul-2014 12:55:24 UTC] PHP Notice: Undefined variable: content in > /var/www/pmapper/plugins/selectionManagement/x_saveSelection.php on line 119 > [26-Jul-2014 12:55:54 UTC] PHP Notice: Use of undefined constant > msCurrentSelection - assumed 'msCurrentSelection' in > /var/www/pmapper/plugins/clientdynamiclayers/x_clientDynamicLayers.php on > line 46 > [26-Jul-2014 12:55:54 UTC] PHP Notice: Use of undefined constant > msSelection - assumed 'msSelection' in > /var/www/pmapper/plugins/clientdynamiclayers/clientDynamicLayers.php on line > 697 > > And at the end, the PHP FATAL ERROR (when i press OK to save selection): > > [26-Jul-2014 12:55:54 UTC] PHP Fatal error: Call to undefined function > getLayersByGroupOrLayerName() in > /var/www/pmapper/plugins/clientdynamiclayers/clientDynamicLayers.php on line > 461 > > I think this refactored plugin (and the new plugins) are very important and > usefull and I would like to work with it and see the results (as all pmapper > users) in my pmapper project. > > So, I hope someone can help me. > Thank you very much Thomas Raffin and Armin Burger, and all pmapper users. > > Best Regards, > José > > > > > > -- > View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/selectionManagement-plugin-tp4025583.html > Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > pmapper-users mailing list > pma...@li... > https://lists.sourceforge.net/lists/listinfo/pmapper-users > |
From: jose m. <jos...@gm...> - 2014-07-26 15:40:26
|
Hi Armin, I added this line to the file clientDynamicLayers.php: require_once '../common/groupsAndLayers.php'; I changed the php errors reporting to disable (0) and to E_WARNING too but nothing happens... -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/selectionManagement-plugin-tp4025583p4025585.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. |
From: jose m. <jos...@gm...> - 2014-07-26 16:11:21
|
And if I reset the php errors level, another error appears: [26-Jul-2014 16:03:26 UTC] PHP Fatal error: Class 'PluginsMapUtils' not found in /var/www/pmapper/plugins/clientdynamiclayers/clientDynamicLayers.php on line 477 -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/selectionManagement-plugin-tp4025583p4025586.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. |
From: Armin B. <arm...@gm...> - 2014-07-26 16:29:06
|
this is the reference used in other plugins that seem to use some functions from "common/*" require_once(dirname(__FILE__) . '/../common/groupsAndLayers.php'); require_once(dirname(__FILE__) . '/../common/pluginsMapUtils.inc.php'); On 07/26/2014 06:11 PM, jose mvm wrote: > And if I reset the php errors level, another error appears: > > [26-Jul-2014 16:03:26 UTC] PHP Fatal error: Class 'PluginsMapUtils' not > found in > /var/www/pmapper/plugins/clientdynamiclayers/clientDynamicLayers.php on line > 477 > > > > -- > View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/selectionManagement-plugin-tp4025583p4025586.html > Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > pmapper-users mailing list > pma...@li... > https://lists.sourceforge.net/lists/listinfo/pmapper-users > |
From: jose m. <jos...@gm...> - 2014-07-26 16:40:45
|
Hi Armin :-) Thank you very much for your very very precious help!!! Best Regards José -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/selectionManagement-plugin-tp4025583p4025588.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. |
From: jose m. <jos...@gm...> - 2014-07-28 08:56:12
|
Good morning Thomas, in my opinion, this plugin is really a very great progress for the pmapper project. it would be important to be able to do the same for drawings... ;-) Thank you very much for your excellent work!!! -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/selectionManagement-plugin-tp4025583p4025591.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. |
From: Thomas R. <tr...@si...> - 2014-07-28 08:41:28
|
Hi, You're right. Some other plugins activated could hide those missing includes. But with only SelectionManagement plugin activated I've got the error too. the only solution is to use GraphicalQueries and other wonderfull plugins for instance ;-) No, I've just committed the correction. Thanks Jose for the bug report and Armin for the correction. Thomas Le 26/07/2014 18:40, jose mvm a écrit : > Hi Armin :-) > > Thank you very much for your very very precious help!!! > > Best Regards > José > > > > -- > View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/selectionManagement-plugin-tp4025583p4025588.html > Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > pmapper-users mailing list > pma...@li... > https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Thomas RAFFIN Chef de Projet Internet tr...@si... <mailto:tr...@si...> Sirap <http://sirap.fr> Tel : 04 75 72 84 10 Fax : 04 75 70 07 98 Rue Paul Louis Héroult - BP 253 26106 Romans cedex |
From: Thomas R. <tr...@si...> - 2014-07-28 10:13:05
|
Thanks! What did you mean with drawing: it doesn't works for you? Le 28/07/2014 10:56, jose mvm a écrit : > Good morning Thomas, > > in my opinion, this plugin is really a very great progress for the pmapper > project. > it would be important to be able to do the same for drawings... ;-) > > Thank you very much for your excellent work!!! > > > > -- > View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/selectionManagement-plugin-tp4025583p4025591.html > Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Infragistics Professional > Build stunning WinForms apps today! > Reboot your WinForms applications with our WinForms controls. > Build a bridge from your legacy apps to the future. > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk > _______________________________________________ > pmapper-users mailing list > pma...@li... > https://lists.sourceforge.net/lists/listinfo/pmapper-users > > -- Thomas RAFFIN Chef de Projet Internet tr...@si... <mailto:tr...@si...> Sirap <http://sirap.fr> Tel : 04 75 72 84 10 Fax : 04 75 70 07 98 Rue Paul Louis Héroult - BP 253 26106 Romans cedex |
From: jose m. <jos...@gm...> - 2014-07-28 10:49:57
|
Hi Thomas, I mean, for example, change the color of the drawings like i can change the color of the saved selections. -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/selectionManagement-plugin-tp4025583p4025593.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. |
From: jose m. <jos...@gm...> - 2014-08-07 10:07:29
|
Hi Thomas! Back to my question, You can implement the ability to change the colors of the drawings like the colors of the saved selections? I detected a problem with regard to the drawing objects, when i try to print a map with drawings, the value of transparency of the drawings does not match (assuming the value of transparency by default) and all other layer transparencies also takes its default value. Thank You Best Regards 2014-07-28 11:49 GMT+01:00 jose mvm [via pmapper-users -- p.mapper users mailing list] <ml-...@n3...>: > Hi Thomas, > > I mean, for example, change the color of the drawings like i can change > the color of the saved selections. > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/selectionManagement-plugin-tp4025583p4025593.html > To unsubscribe from selectionManagement plugin, click here > <http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4025583&code=am9zZS5tYWNhdUBnbWFpbC5jb218NDAyNTU4M3wxNDQ1MDQ5ODU1> > . > NAML > <http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/selectionManagement-plugin-tp4025583p4025596.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. |