Re: [pmapper-users] selectionManagement plugin

2014-08-07 Thread jose mvm
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-node+s993774n4025593...@n3.nabble.com:

 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_codenode=4025583code=am9zZS5tYWNhdUBnbWFpbC5jb218NDAyNTU4M3wxNDQ1MDQ5ODU1
 .
 NAML
 http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=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.
--
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=153845071iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] selectionManagement plugin

2014-07-28 Thread Thomas RAFFIN
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
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

-- 


Thomas RAFFIN
Chef de Projet Internet
traf...@sirap.fr mailto:traf...@sirap.fr  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

--
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=153845071iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] selectionManagement plugin

2014-07-28 Thread jose mvm
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=153845071iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] selectionManagement plugin

2014-07-28 Thread Thomas RAFFIN
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=153845071iu=/4140/ostg.clktrk
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users



-- 


Thomas RAFFIN
Chef de Projet Internet
traf...@sirap.fr mailto:traf...@sirap.fr  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

--
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=153845071iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] selectionManagement plugin

2014-07-28 Thread jose mvm
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.

--
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=153845071iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] selectionManagement plugin

2014-07-26 Thread Armin Burger
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
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
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
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] selectionManagement plugin

2014-07-26 Thread jose mvm
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
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] selectionManagement plugin

2014-07-26 Thread Armin Burger
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
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
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
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] selectionManagement plugin

2014-07-26 Thread jose mvm
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
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] selectionManagement plugin

2011-04-08 Thread Thomas RAFFIN
Hi,

What is your mapserver version please?

Thomas

Le 07/04/2011 17:49, Andreas Douvalis a écrit :
 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 
 AA77LINE 1: ...2247703437 3986818.5546875))',2100) and (gid IN 
 (2AA77,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 
 (2AA77,4AA119,5AA244,7AA252,8AA253,9AA254)) 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:

 LAYERNAME GMGROUP DSTATUS on  CONNECTIONTYPE postgis
 CONNECTION user=test dbname=gisdb host=localhost password=**DATA 
 the_geom FROM gm USING UNIQUE gid USING SRID=2100TYPE LINEUNITS 
 METERSMAXSCALEDENOM  1   PROCESSING CLOSE_CONNECTION=DEFER  
   SIZEUNITS METERSFILTER tasi='150 kV'PROJECTION 
 init=epsg:2100ENDMETADATA  wms_name GM  wms_title  
 GM   LAYER_ENCODING ISO-8859-7  wms_srsEPSG:2100
 wms_encoding ISO-8859-7   wms_group_title D  wms_opaque 0 
  gml_include_items all  RESULT_HYPERLINK gidEND   
 TEMPLATE ttt.htmlCLASSNAME GM  EXPRESSION 
 ([tasi]=150 kV)  STYLESYMBOL 2COLOR 0 166 57
 OUTLINECOLOR 0 0 0
SIZE 2MINSIZE 2MAXSIZE 2ANTIALIAS FALSE  END   
  END   END
 --
 Xperia(TM) PLAY
 It's a major breakthrough. An authentic gaming
 smartphone on the nation's most reliable network.
 And it wants your games.
 http://p.sf.net/sfu/verizon-sfdev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] selectionManagement plugin

2011-04-08 Thread Thomas RAFFIN
As you are using ms 5.6, I think I know why it doesn't works.

Try this (I will not commit it because MS 6 will soon be released, and 
the API will change again):
1 - incphp/query/squery :

  - line 102, add a parameter to printResultRow call to indicate if 
you are using DB layer:
$this-qStr .= $this-printResultRow($qShape);
will become
$this-qStr .= $this-printResultRow($qShape, true);

  - line 112, add this parameter to the called function :
function printResultRow($qShape)
will become
function printResultRow($qShape, $isBbLayer = false)

  - line 117 add this parameter to called printShapeField function:
$this-qStr .= ($this-qLayerType != 3 ? $this-printShapeField($qShape) 
: \r\);
will become
$this-qStr .= ($this-qLayerType != 3 ? $this-printShapeField($qShape, 
$isBbLayer) : \r\);

 - line 128, add this parameter to the printShapeField fucntion
function printShapeField($qShape)
will become
function printShapeField($qShape, $isBbLayer = false) // or without 
default value, because it is only called once in the code

 - line 133, use this parameter:
if ($qTileShpIdx != -1) {
will become
if (!$isBbLayer  $qTileShpIdx != -1) {

2 - in incphp/common.php, replace
if ($_SESSION['MS_VERSION'] = 5.6) {
with
if ($_SESSION['MS_VERSION'] = 5.6  $shapeTileIndex != -1) {

Hopes this helps.

If SHP exports doesn't works I've got an other change to do in 
plugin/export.shp.php

Thomas

Le 08/04/2011 12:42, Andreas Douvalis a écrit :
 I forgot to inform you that I have Postgresql 8.4 with PostGis 1.5.2.

 --
 Xperia(TM) PLAY
 It's a major breakthrough. An authentic gaming
 smartphone on the nation's most reliable network.
 And it wants your games.
 http://p.sf.net/sfu/verizon-sfdev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users




--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] selectionManagement plugin

2011-04-08 Thread Chris Jackson
Hi all,

Have been following this discussion, and I thought I would try the plugin in
question (had noticed it but not had time to tinker).  Does a good job and
is similar to something I used in another webgis app.  A suggestion (if this
plugin is ongoing) would be it would be great to have a 'history' of
selection tasks that you can then re-run at a click (I guess you just
remember selection criteria/layer for the re-runs).

Cheers
Chris

On 8 April 2011 13:44, Thomas RAFFIN traf...@sirap.fr wrote:

 As you are using ms 5.6, I think I know why it doesn't works.

 Try this (I will not commit it because MS 6 will soon be released, and
 the API will change again):
 1 - incphp/query/squery :

  - line 102, add a parameter to printResultRow call to indicate if
 you are using DB layer:
 $this-qStr .= $this-printResultRow($qShape);
 will become
 $this-qStr .= $this-printResultRow($qShape, true);

  - line 112, add this parameter to the called function :
 function printResultRow($qShape)
 will become
 function printResultRow($qShape, $isBbLayer = false)

  - line 117 add this parameter to called printShapeField function:
 $this-qStr .= ($this-qLayerType != 3 ? $this-printShapeField($qShape)
 : \r\);
 will become
 $this-qStr .= ($this-qLayerType != 3 ? $this-printShapeField($qShape,
 $isBbLayer) : \r\);

 - line 128, add this parameter to the printShapeField fucntion
 function printShapeField($qShape)
 will become
 function printShapeField($qShape, $isBbLayer = false) // or without
 default value, because it is only called once in the code

 - line 133, use this parameter:
 if ($qTileShpIdx != -1) {
 will become
 if (!$isBbLayer  $qTileShpIdx != -1) {

 2 - in incphp/common.php, replace
 if ($_SESSION['MS_VERSION'] = 5.6) {
 with
 if ($_SESSION['MS_VERSION'] = 5.6  $shapeTileIndex != -1) {

 Hopes this helps.

 If SHP exports doesn't works I've got an other change to do in
 plugin/export.shp.php

 Thomas

 Le 08/04/2011 12:42, Andreas Douvalis a écrit :
  I forgot to inform you that I have Postgresql 8.4 with PostGis 1.5.2.
 
 
 --
  Xperia(TM) PLAY
  It's a major breakthrough. An authentic gaming
  smartphone on the nation's most reliable network.
  And it wants your games.
  http://p.sf.net/sfu/verizon-sfdev
  ___
  pmapper-users mailing list
  pmapper-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/pmapper-users
 
 
 


 --
 Xperia(TM) PLAY
 It's a major breakthrough. An authentic gaming
 smartphone on the nation's most reliable network.
 And it wants your games.
 http://p.sf.net/sfu/verizon-sfdev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users