Quantcast

intersect with selection management plugin

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

intersect with selection management plugin

jose mvm
This post has NOT been accepted by the mailing list yet.
hi,

i'm trying to use "intersect with current selection" (through the graphical queries plugin or query editor plugin) but i can´t get any results.

i have no php errors, only php notices:

first selection:

[15-Jul-2014 10:38:06 UTC] PHP Notice:  Undefined offset: 0 in /var/www/pmapper-4.3.2/incphp/xajax/x_select.php on line 96
[15-Jul-2014 10:38:15 UTC] PHP Notice:  Undefined index: JSON_Results in /var/www/pmapper-4.3.2/plugins/graphicalqueries/x_graphicalqueries.php on line 19
[15-Jul-2014 10:38:15 UTC] PHP Notice:  Undefined variable: poly in /var/www/pmapper-4.3.2/plugins/graphicalqueries/x_graphicalqueries.php on line 28
[15-Jul-2014 10:38:16 UTC] PHP Notice:  Undefined offset: 0 in /var/www/pmapper-4.3.2/incphp/xajax/x_select.php on line 96

intersect with current selection:

[15-Jul-2014 10:40:25 UTC] PHP Notice:  Undefined variable: poly in /var/www/pmapper-4.3.2/plugins/graphicalqueries/x_graphicalqueries.php on line 28
[15-Jul-2014 10:40:25 UTC] PHP Notice:  Undefined offset: 1 in /var/www/pmapper-4.3.2/plugins/common/selectTools.inc.php on line 421
[15-Jul-2014 10:40:25 UTC] PHP Notice:  Trying to get property of non-object in /var/www/pmapper-4.3.2/plugins/common/selectTools.inc.php on line 421
[15-Jul-2014 10:40:26 UTC] PHP Notice:  Undefined offset: 0 in /var/www/pmapper-4.3.2/incphp/xajax/x_select.php on line 96

================

and another question:

it´s possible to load the selection management plugin with search tool plugin (like with the graphical queries plugin and query editor plugin)?

================

thanks

best regards,
José
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: intersect with selection management plugin

jose mvm
I also get these errors and notices when i search with query editor plugin:

[15-Jul-2014 19:45:10 UTC] ERROR - Easy_MDB2 - getFieldType(ecopontos_gesamb, %) - :
MDB2 Error: not found
[15-Jul-2014 19:45:10 UTC] ERROR - Easy_MDB2 - getFieldType(ecopontos_gesamb, %) - :
MDB2 Error: not found
[15-Jul-2014 19:45:11 UTC] PHP Notice:  Undefined index: fldName in /var/www/pmapper-4.3.2/incphp/query/query.php on line 721
[15-Jul-2014 19:45:12 UTC] PHP Notice:  Undefined variable: mode in /var/www/pmapper-4.3.2/plugins/queryeditor/x_queryeditor.php on line 304

but query shows the expected results.

thanks
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [pmapper-users] intersect with selection management plugin

Thomas
Hi,

Can you write here your layer definition please (ie: the mapfile part).

Le 15/07/2014 21:47, jose mvm a écrit :

> I also get these errors and notices when i search with query editor plugin:
>
> [15-Jul-2014 19:45:10 UTC] ERROR - Easy_MDB2 -
> getFieldType(ecopontos_gesamb, %) - :
> MDB2 Error: not found
> [15-Jul-2014 19:45:10 UTC] ERROR - Easy_MDB2 -
> getFieldType(ecopontos_gesamb, %) - :
> MDB2 Error: not found
> [15-Jul-2014 19:45:11 UTC] PHP Notice:  Undefined index: fldName in
> /var/www/pmapper-4.3.2/incphp/query/query.php on line 721
> [15-Jul-2014 19:45:12 UTC] PHP Notice:  Undefined variable: mode in
> /var/www/pmapper-4.3.2/plugins/queryeditor/x_queryeditor.php on line 304
>
> but query shows the expected results.
>
> thanks
>
>
>
> --
> View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/intersect-with-selection-management-plugin-tp4025534p4025535.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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>
>

--


Thomas RAFFIN
Chef de Projet Internet
[hidden email] <mailto:[hidden email]> 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

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pmapper-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [pmapper-users] intersect with selection management plugin

jose mvm
Hi Thomas!

Here is an example:

LAYER
        NAME "GESAMB_EcoPontos"
        STATUS DEFAULT
        TYPE POINT
        CONNECTIONTYPE POSTGIS
        CONNECTION "host=xxx.xxx.xxx.xxx port=5432 dbname=pmapper user=xxx password=xxx"
        DATA "the_geom FROM ecopontos_gesamb USING UNIQUE gid"
        CLASSITEM "tipo"
        TEMPLATE "void"
        METADATA
                DESCRIPTION "GESAMB - Ecopontos"
                RESULT_FIELDS "numero, papel, embalagens, vidro, pilhao, oleao, tipo, propriet, observ, freguesia, first_lug1, designacao"
                RESULT_HEADERS "Numero, Papel, Embalagens, Vidro, Pilhao, Oleao, Tipo, Proprietario, Observacoes, Freguesia, Localidade, Local"
                "LAYER_ENCODING" "UTF-8"
        END
        CLASS
                NAME 'Ecoponto'
                EXPRESSION 'Superfície'
                STYLE
                        COLOR 62 118 181
                        OUTLINECOLOR 0 0 0
                        SYMBOL 'square'
                        SIZE 10
                END
        END
        CLASS
                NAME 'Vidrao'
                EXPRESSION "Vidrão"
                STYLE
                        COLOR 87 200 92
                        OUTLINECOLOR 0 0 0
                        SYMBOL 'circle'
                        SIZE 10
                END    
        END
END
===========================================
The

"ERROR - Easy_MDB2 - getFieldType(ecopontos_gesamb, %) - : MDB2 Error: not found"

occurs with all layers whenever I use queryeditor plugin, although the table shows the desired results.

Thank you very much for your help.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [pmapper-users] intersect with selection management plugin

Thomas
Well, the "getFieldType(ecopontos_gesamb, %)" in error log tell us that
the plugin is trying to read the data type for a table named
"(ecopontos_gesamb" and an attribute named "%"...

Can you send me:
- a screenhsot of the query editor dialog just after selecting this
field en its type (that is not automatically return due to this error)
- the query parameters (GET en POST) (with Firebug in Firefox, or
development tool in chrome)

Le 16/07/2014 12:26, jose mvm a écrit :

> Hi Thomas!
>
> Here is an example:
>
> LAYER
> NAME "GESAMB_EcoPontos"
> STATUS DEFAULT
> TYPE POINT
> CONNECTIONTYPE POSTGIS
> CONNECTION "host=xxx.xxx.xxx.xxx port=5432 dbname=pmapper user=xxx
> password=xxx"
> DATA "the_geom FROM ecopontos_gesamb USING UNIQUE gid"
> CLASSITEM "tipo"
> TEMPLATE "void"
> METADATA
> DESCRIPTION "GESAMB - Ecopontos"
> RESULT_FIELDS "numero, papel, embalagens, vidro, pilhao, oleao, tipo,
> propriet, observ, freguesia, first_lug1, designacao"
> RESULT_HEADERS "Numero, Papel, Embalagens, Vidro, Pilhao, Oleao, Tipo,
> Proprietario, Observacoes, Freguesia, Localidade, Local"
> "LAYER_ENCODING" "UTF-8"
> END
> CLASS
> NAME 'Ecoponto'
> EXPRESSION 'Superfície'
> STYLE
> COLOR 62 118 181
> OUTLINECOLOR 0 0 0
> SYMBOL 'square'
> SIZE 10
> END
> END
> CLASS
> NAME 'Vidrao'
> EXPRESSION "Vidrão"
> STYLE
> COLOR 87 200 92
> OUTLINECOLOR 0 0 0
> SYMBOL 'circle'
> SIZE 10
> END    
> END
> END
> ===========================================
> The
>
> "ERROR - Easy_MDB2 - getFieldType(ecopontos_gesamb, %) - : MDB2 Error: not
> found"
>
> occurs with all layers whenever I use queryeditor plugin, although the table
> shows the desired results.
>
> Thank you very much for your help.
>
>
>
> --
> View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/intersect-with-selection-management-plugin-tp4025534p4025537.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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/pmapper-users

--


Thomas RAFFIN
Chef de Projet Internet
[hidden email] <mailto:[hidden email]> 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

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pmapper-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [pmapper-users] intersect with selection management plugin

jose mvm


the query editor pugin automatically detect the field type.
the error ocurs when i presse "add".

post

get

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [pmapper-users] intersect with selection management plugin

Thomas
As seen together, it was due to local errors in your js file.

Le 16/07/2014 13:08, jose mvm a écrit :

> <http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/file/n4025539/qe.jpg>
>
> the query editor pugin automatically detect the field type.
> the error ocurs when i presse "add".
>
> <http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/file/n4025539/post.jpg>
>
> <http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/file/n4025539/get.jpg>
>
>
>
>
>
> --
> View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/intersect-with-selection-management-plugin-tp4025534p4025539.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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>
>

--


Thomas RAFFIN
Chef de Projet Internet
[hidden email] <mailto:[hidden email]> 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

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pmapper-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [pmapper-users] intersect with selection management plugin

jose mvm
after correcting the local error as you said, now my js file is equal to the last revision (1337) avaiable in the trunk repository but the problem with INTERSECT with Selection Management Plugin remains.

and I posted another question too:

if it is possible to load the Selection Management Plugin with Search Tool Plugin (as with the Graphical Queries Plugin and Query Editor Plugin)?

I hope you can help me!

Thank you very much Thomas
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [pmapper-users] intersect with selection management plugin

Thomas
In reply to this post by jose mvm
I send your mail to the mailing-list after a small "cleaning"...

Concerning "intersect with current selection" it is working well on my
local pmapper copy? I'm trying to commit all local modification in
pmapper4 trunk version.

For search operators, I'm looking what is missing in pmapper4 trunk
version to allow it...

bye

Thomas

Le 16/07/2014 18:13, jose macau a écrit :

> my initial post ("This post has NOT been accepted by the mailing list
> yet."), i don't know know why, i don't now if you can see it...
>
> title: intersect with selection management plugin
>
> post:
>
> hi,
>
> i'm trying to use "intersect with current selection" (through the
> graphical queries plugin or query editor plugin) but i can´t get any
> results.
>
> i have no php errors, only php notices:
>
> first selection:
>
> [15-Jul-2014 10:38:06 UTC] PHP Notice:  Undefined offset: 0 in
> /var/www/pmapper-4.3.2/incphp/xajax/x_select.php on line 96
> [15-Jul-2014 10:38:15 UTC] PHP Notice:  Undefined index: JSON_Results
> in
> /var/www/pmapper-4.3.2/plugins/graphicalqueries/x_graphicalqueries.php
> on line 19
> [15-Jul-2014 10:38:15 UTC] PHP Notice:  Undefined variable: poly in
> /var/www/pmapper-4.3.2/plugins/graphicalqueries/x_graphicalqueries.php
> on line 28
> [15-Jul-2014 10:38:16 UTC] PHP Notice:  Undefined offset: 0 in
> /var/www/pmapper-4.3.2/incphp/xajax/x_select.php on line 96
>
> intersect with current selection:
>
> [15-Jul-2014 10:40:25 UTC] PHP Notice:  Undefined variable: poly in
> /var/www/pmapper-4.3.2/plugins/graphicalqueries/x_graphicalqueries.php
> on line 28
> [15-Jul-2014 10:40:25 UTC] PHP Notice:  Undefined offset: 1 in
> /var/www/pmapper-4.3.2/plugins/common/selectTools.inc.php on line 421
> [15-Jul-2014 10:40:25 UTC] PHP Notice:  Trying to get property of
> non-object in
> /var/www/pmapper-4.3.2/plugins/common/selectTools.inc.php on line 421
> [15-Jul-2014 10:40:26 UTC] PHP Notice:  Undefined offset: 0 in
> /var/www/pmapper-4.3.2/incphp/xajax/x_select.php on line 96
>
> ================
>
> and another question:
>
> it´s possible to load the selection management plugin with search tool
> plugin (like with the graphical queries plugin and query editor plugin)?
>
> ================
>
> thanks
>
> best regards,
> José
>
>
> 2014-07-16 16:26 GMT+01:00 jose macau <[hidden email]
> <mailto:[hidden email]>>:
>
>     Ok, magnificent!!!
>     Thank you very much Thomas.
>
>     But the my initial question was intersect with selection
>     management plugin.
>     I get the "replace selection", the "add to current selection",
>     the"exclude from the current selection" but not the "intersect
>     with current selection" operation.
>
>
>     2014-07-16 16:08 GMT+01:00 Thomas RAFFIN <[hidden email]
>     <mailto:[hidden email]>>:
>
>         Found!
>
>         In plugins/queryeditor/queryeditor.js, function
>         "setLayerName", near line 134, you should have (like here:
>         http://svn.pmapper.net/trac/browser/trunk/pmapper/plugins/queryeditor/queryeditor.js):
>
>         var options = '<option value="#"></option>\n';
>
>         with a "#" sign. In your code it is a "%".
>
>

       
       

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pmapper-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [pmapper-users] intersect with selection management plugin

Thomas
Hi,

Now search operators are available for pre-definied search.

Le 17/07/2014 13:30, Thomas RAFFIN a écrit :

> I send your mail to the mailing-list after a small "cleaning"...
>
> Concerning "intersect with current selection" it is working well on my
> local pmapper copy? I'm trying to commit all local modification in
> pmapper4 trunk version.
>
> For search operators, I'm looking what is missing in pmapper4 trunk
> version to allow it...
>
> bye
>
> Thomas
>
> Le 16/07/2014 18:13, jose macau a écrit :
>> my initial post ("This post has NOT been accepted by the mailing list
>> yet."), i don't know know why, i don't now if you can see it...
>>
>> title: intersect with selection management plugin
>>
>> post:
>>
>> hi,
>>
>> i'm trying to use "intersect with current selection" (through the
>> graphical queries plugin or query editor plugin) but i can´t get any
>> results.
>>
>> i have no php errors, only php notices:
>>
>> first selection:
>>
>> [15-Jul-2014 10:38:06 UTC] PHP Notice:  Undefined offset: 0 in
>> /var/www/pmapper-4.3.2/incphp/xajax/x_select.php on line 96
>> [15-Jul-2014 10:38:15 UTC] PHP Notice:  Undefined index: JSON_Results
>> in
>> /var/www/pmapper-4.3.2/plugins/graphicalqueries/x_graphicalqueries.php
>> on line 19
>> [15-Jul-2014 10:38:15 UTC] PHP Notice:  Undefined variable: poly in
>> /var/www/pmapper-4.3.2/plugins/graphicalqueries/x_graphicalqueries.php
>> on line 28
>> [15-Jul-2014 10:38:16 UTC] PHP Notice:  Undefined offset: 0 in
>> /var/www/pmapper-4.3.2/incphp/xajax/x_select.php on line 96
>>
>> intersect with current selection:
>>
>> [15-Jul-2014 10:40:25 UTC] PHP Notice:  Undefined variable: poly in
>> /var/www/pmapper-4.3.2/plugins/graphicalqueries/x_graphicalqueries.php
>> on line 28
>> [15-Jul-2014 10:40:25 UTC] PHP Notice:  Undefined offset: 1 in
>> /var/www/pmapper-4.3.2/plugins/common/selectTools.inc.php on line 421
>> [15-Jul-2014 10:40:25 UTC] PHP Notice:  Trying to get property of
>> non-object in
>> /var/www/pmapper-4.3.2/plugins/common/selectTools.inc.php on line 421
>> [15-Jul-2014 10:40:26 UTC] PHP Notice:  Undefined offset: 0 in
>> /var/www/pmapper-4.3.2/incphp/xajax/x_select.php on line 96
>>
>> ================
>>
>> and another question:
>>
>> it´s possible to load the selection management plugin with search tool
>> plugin (like with the graphical queries plugin and query editor plugin)?
>>
>> ================
>>
>> thanks
>>
>> best regards,
>> José
>>
>>
>> 2014-07-16 16:26 GMT+01:00 jose macau <[hidden email]
>> <mailto:[hidden email]>>:
>>
>>      Ok, magnificent!!!
>>      Thank you very much Thomas.
>>
>>      But the my initial question was intersect with selection
>>      management plugin.
>>      I get the "replace selection", the "add to current selection",
>>      the"exclude from the current selection" but not the "intersect
>>      with current selection" operation.
>>
>>
>>      2014-07-16 16:08 GMT+01:00 Thomas RAFFIN <[hidden email]
>>      <mailto:[hidden email]>>:
>>
>>          Found!
>>
>>          In plugins/queryeditor/queryeditor.js, function
>>          "setLayerName", near line 134, you should have (like here:
>>          http://svn.pmapper.net/trac/browser/trunk/pmapper/plugins/queryeditor/queryeditor.js):
>>
>>          var options = '<option value="#"></option>\n';
>>
>>          with a "#" sign. In your code it is a "%".
>>
>>
>
>
>
> ------------------------------------------------------------------------------
> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/pmapper-users

--


Thomas RAFFIN
Chef de Projet Internet
[hidden email] <mailto:[hidden email]> 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

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pmapper-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [pmapper-users] intersect with selection management plugin

jose mvm
Hi Thomas,

Thank you very much for your great work!!!
I'll try it as soon as possible.

Well, with all this effort, pmapper will not die early :-)
Loading...