Re: [pmapper-users] Changing Tool Tip from mouse hover to click
Hi Emmanuel, Look at the following keywords: auto_identify and iquery Regards, Chris On Tue, Jan 21, 2014 at 2:39 PM, Emmanuel Adegboye eaadegb...@googlemail.com wrote: Hello all. How do I prevent pmapper (4.3.1) from displaying tooltips on mouse hover until I click on the feature? Regards, Emmanuel Adegboye -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] pmapper little bugs
On Fri, Jul 26, 2013 at 10:43 AM, Armin Burger armin.bur...@gmx.net wrote: 3) As Pedro said some days earlier, an '@' in an attribute value is replaced by an 'Email' in the result of a query. It happens on my project with two shapefile layers. I already tried to understand why this happens but I could not find any obvious reason when checking the source code. I need to debug it step by step with a layer and change some field values to have an '@' in it to see at which step this is changed to 'Email'. Hi all, I had a new case where email addresses have to be retrieved from a shapefile attribute, so after some searching I have found the following solution: replacing the '@' by its numerical code '#64;' Works fine, an '@' is now displayed into the table query results. My mapfile is encoded in UTF8 and the shapefile in ISO-8859-1. Hope that helps, cheers Chris -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] search with numeric field of postgis table and wildcard 1 not functions
Hallo Matthias, Have a look at the pm_debug.log You should find there what request is sent to PGSQL. Regards, Chris On Thu, Nov 28, 2013 at 11:59 AM, i...@architekten.coop wrote: dear pmapper users i have a table with field raumnr (numeric 3,2 unique) and field gid (integer as primary key). in the mapfile i have all the field names. my searchfile: searchitem name=1 description=1 Untergeschoss layer type=postgis name=e44_ug field type=n name=raumnr description=raumnr wildcard=1 / /layer /searchitem if i use for the search the sign * to show all datas, this search does not function ! if i take a string field, the search functions with wildcard 1 and *, the result table shows all fields: searchitem name=1 description=1 Untergeschoss layer type=postgis name=e44_ug field type=s name=bezeichn description=bezeichn wildcard=1 / /layer /searchitem i cannot understand this behavior thank you for any help matthias moser -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] How to Hyperlink a pdf document on a search results
Hi The value of the 'Name' record should be 'test1.pdf' only (=fldValue). Then: openHyperlink: function(layer, fldName, fldValue) { switch(layer) { case 'Jobfunds': window.open('http:/' + '/localhost/pmapper/pmapper5/' + fldValue); break; } }, On Thu, Nov 14, 2013 at 6:49 PM, Solly Vuso sollyv...@gmail.com wrote: Thank you very much its working the small problem i have , these pdf are inside localhost\pmapper\pmapper5\test1.pdf but when I click on the link in the results window it doesnt fetch the pdf but it tells me the file is not found I have created a field name and named it Name and inside records http:localhost/pmapper/pmapper5/test1.pdf Here is the java code in custom $.extend(PM.Custom, { // Sample Hyperlink function for result window openHyperlink: function(layer, fldName, fldValue) { switch(layer) { case 'Jobfunds': //if (fldName == 'Project_na') { var linkUrl = 'http:localhost/pmapper/pmapper5/' + fldValue; window.open(linkUrl, 'wikiquery'); //this.openHyperlinkDialog(linkUrl); //} break; Thank you On Sun, Nov 10, 2013 at 7:00 PM, gioza al...@aliasinfo.it wrote: hi, probably the simplest solution is: 1) in your POINT shapefile add a field and populate it with pdf file's name (point1 --- pdf name) 2) modify your mapfile in the part concerning the point layer in this way: ... METADATA PM_RESULT_HYPERLINK '{ FIELD NAME, THE ONE OF YOUR PDFs NAME: {alias: Link to PDF} }' ... 3) modify your custom.js in this way: // Sample Hyperlink function for result window openHyperlink: function(layer, fldName, fldValue) { switch(layer) { case 'POINT LAYER NAME AS DECLARE IN MAPFILE': //if (fldName == 'NAME OF PDF FIELD') { var linkUrl = 'http://www.yoursite.com/PATH WHERE YOUR PDFs ARE LOCATED/' + fldValue; window.open(linkUrl, 'wikiquery'); //this.openHyperlinkDialog(linkUrl); //} break; -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Re-pmapper-users-How-to-Hyperlink-a-pdf-document-on-a-search-results-tp4025401p4025402.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Best Regards Solly Vuso Cell:073 3068 170 Fax:086 555 1270 I may not know what tomorrow holds for me but I do know who holds ma tomorrow. -- DreamFactory - Open Source REST JSON Services for HTML5 Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- DreamFactory - Open Source REST JSON Services for HTML5 Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Aggregation of layers without show in legend or in the layer switcher.Asunto
Hi Johann, You will have to set two layers into the mapfile, a POINT and a POLYGON one. Both linked to the same GROUP, which is defined int the XML config file. The point layer will be displayed until a certain scale (MINSCALEDENOM), 10'000 for instance. Then the polygon layer will replace the points if you zoom in. LAYER NAME myPointLayer GROUP myPointAndPolygonGroup TYPE POINT MINSCALEDENOM 1 LAYER NAME myPolygonLayer GROUP myPointAndPolygonGroup TYPE POLYGON MAXSCALEDENOM Hope that helps Cheers, Chris On Thu, Oct 31, 2013 at 4:43 PM, Johan Guerra johanmiguel2...@gmail.comwrote: Hi all pmapper users, Pmapper I would do in the following, that a certain scale polygon layer is seen as a point layer, and when the user arrives at a detailed scale looks like polygon layer. One way would be to declare a layer but not see or in the legend or in the layer switcher, but this is not how. Excuse my bad writing in English. Greetings from Venezuela. -- Johan. -- Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] How I manage to set google satellite a default layer
Good job! Thx for letting us know how you did! On Thu, Oct 24, 2013 at 1:29 PM, Solly sollyv...@gmail.com wrote: 1.I downloaded pmapper-dev.zip http://www.pmapper.net/download.shtml 2. I also downloaded pmapper5-beta1 and copy 3 php scripts under C:\ms4w\apps\pmapper\pmapper5\lib\js and paste them under the same diretory but in pmapper-dev.zip 3. DefGroup Add groupgsat/group and removed grouposmmapnik/group And I smiled when I saw it working -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/How-I-manage-to-set-google-satellite-a-default-layer-tp4025380.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Layer Scale in pmapper
No clue what value to set, but the parameter to use is MAXSCALEDENOM On Thu, Oct 24, 2013 at 2:09 PM, Solly sollyv...@gmail.com wrote: I have points that I don't want them to show when the map load but when you zoom to the district I want them to start showing But I dont know where I can see the current load scale and the district scale This is how i have defined it in a mapfile MINSCALEDENOM 10 But I am not winning Please assist -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Layer-Scale-in-pmapper-tp4025381.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] labels
Great, well done! I didn't know that PROCESSING parameter: The LABEL_NO_CLIP processing option can be used to skip clipping of shapes when determining associated label anchor points. This avoids changes in label position as extents change between map draws. It also avoids duplicate labels where features appear in multiple adjacent tiles when creating tiled maps. About the Google Sat as default, I haven't tried seriously pmapper5 yet, only played a bit with it to see the possibilities it offers. Isn't the solution Gioza has sent you working? On Wed, Oct 23, 2013 at 9:01 AM, Solly Vuso sollyv...@gmail.com wrote: Thank you Chris I added this and its fine now TRANSPARENCY 100 TEMPLATE void PROCESSING LABEL_NO_CLIP=on Tell me do you know how to make google satellite a default layer? On Wed, Oct 23, 2013 at 8:58 AM, Chris forum bak.fo...@gmail.com wrote: Hi I guess you are having this issue with pmapper5, so it looks like the problem comes from the tiling: http://lists.maptools.org/pipermail/ka-map-users/2006-May/001571.html As said in the link above, you could try to pre-generate bigger tiles. But in your case, polygons districts must be quite big so tiles would be even bigger and that is not the purpose of tiling. That is why I wouldn't mess with tiles size but have instead a seperate shapefile for labels only. Cheers, Chris On Tue, Oct 22, 2013 at 1:04 PM, Solly Vuso sollyv...@gmail.com wrote: I dont know what I do wrong but I have multiple labels in one Polygon, If the polygon name is Buffalo City it repeately place many Buffalo City inside that polygon. Here is a mapfile # # Start of Layer District.shp # LAYER NAME District TYPE polygon DATA 'vector/Districts' LABELITEM DC_NAME TRANSPARENCY 100 TEMPLATE void PROJECTION init=epsg:4148 END METADATA PM_DESCRIPTION District PM_RESULT_FIELDS DC_NAME,DC_MDB_C PM_RESULT_HEADERS Name,DC_MDB_C END # Metadata CLASS Name 'EC District' COLOR -1 -1 -1 OUTLINECOLOR 255 0 255 #TEMPLATE void LABEL POSITION auto COLOR 200 200 200 #MINDISTANCE 1 TYPE truetype ENCODING ISO-8859-1 FONT FreeSerifBold # PARTIALS FALSE SIZE 9 #MAXSIZE 12 #SIZE medium END #Label END # Class END # Layer -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Best Regards Solly Vuso Cell:073 3068 170 Fax:086 555 1270 I may not know what tomorrow holds for me but I do know who holds ma tomorrow. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] labels
That will probably not change anything, but the mapserver documentation says: PROCESSING LABEL_NO_CLIP=True True, not On On Wed, Oct 23, 2013 at 2:58 PM, gioza al...@aliasinfo.it wrote: I have the same problem to solve: the labels clipped by tiles. I tried the *PROCESSING LABEL_NO_CLIP=On* but no changes occured. As far as Google maps as Default is concerned, if you post your config.xml file I could help you. -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Re-pmapper-users-labels-tp4025367p4025375.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Multiple pmapper in one server
Hi Todd, Here is how it works: - One main .phtml file that is used by all your pmapper projects (stored into the pmapper root directory) This is where you specify what config ($config) to look at - One .xml configuration file per project (into pmapper/config/ directory) In this file you specify what is the config directory and what mapfile to read - One (or more) configuration directory (into pmapper/config/ directory) as specified in the .xml files Have a look at the given map_uilayout.phtml as an example. Cheers, Chris On Wed, Oct 9, 2013 at 5:32 AM, Sentot Kurniawan masen...@gmail.com wrote: Hi serge, Would you show me step by step how to achive multiple pmapper in one server. Regards, Todd -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Plugins effects
Thx for the explanations, it's clearer now! On Thu, Sep 26, 2013 at 6:17 PM, Armin Burger armin.bur...@gmail.comwrote: On 09/26/2013 04:57 PM, Chris forum wrote: Hi all, I just looked over the plugins available and have no clue what the following are doing: - dynlayercat - dynlayersample - dynlayertxt those are all for adding a layer dynamically to the map (and legend etc.) *cat is for adding a layer from a CSW catalogue with all parameters read from the XML response, a bit more exotic for most users, and was contributed on behalf of the EU environment agency. *txt is from map file syntax, this had some limitations in 6.0 for class symbols and now seems to work correctly. Both are not fully tested and might not work in all circumstances. There are in the release probably only because I forgot to remove them You can find some more descriptions sometimes in the commented out part of the PHP files. armin -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] Plugins effects
Hi all, I just looked over the plugins available and have no clue what the following are doing: - clientdynamiclayers - dynlayercat - dynlayersample - dynlayertxt - selectionManagement I know I should try them, but these ones doesn't come with a readme file. Could anyone describe briefly what they are used for? Thx! Chris -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] pmapper5 MS4W
Hi guys, Solly, do you mean version 6.0.3? About your error, as found here: http://mapserver.org/errors.html msProcessProjection(): No such file or directory Error displayed when trying to refer to an epsg file. The message tells you that MapServer cannot find the epsg file. On Windows, the default location of the epsg file is *c:\proj\nad*. MS4W users will find the epsg file in *\ms4w\proj\nad*. On Wed, Sep 25, 2013 at 3:34 PM, Solly Vuso sollyv...@gmail.com wrote: Version 3.0.6 On Wed, Sep 25, 2013 at 3:33 PM, Thomas RAFFIN traf...@sirap.fr wrote: What is your MapServer version? Le 25/09/2013 14:47, Solly a écrit : Thank you Thomas I got this common error Warning: ms_newMapObj(): [MapServer Error]: msProcessProjection(): No such file or directory in C:\ms4w\apps\pmapper\pmapper5\lib\globals.php on line 66 Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file C:/ms4w/apps/pmapper/pmapper5/config/default/pmapper_demo.map' in C:\ms4w\apps\pmapper\pmapper5\lib\globals.php:66 Stack trace: #0 C:\ms4w\apps\pmapper\pmapper5\lib\globals.php(66): ms_newMapObj('C:/ms4w/apps/pm...') #1 C:\ms4w\apps\pmapper\pmapper5\index.phtml(17): require_once('C:\ms4w\apps\pm...') #2 {main} thrown in C:\ms4w\apps\pmapper\pmapper5\lib\globals.php on line 66 -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/pmapper5-MS4W-tp4025312p4025314.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/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 -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Best Regards Solly Vuso Cell:073 3068 170 Fax:086 555 1270 I may not know what tomorrow holds for me but I do know who holds ma tomorrow. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] pmapper little bugs
No more hyperlink text bug in r1321. And as expected, the fix Armin did for the pan with the zoom out tool selected is working fine. Well done guys! : ) On Mon, Sep 23, 2013 at 3:14 PM, Thomas RAFFIN traf...@sirap.fr wrote: Hi, The bug was introduced in 1306 while trying to correct an other one. Now it should be OK in 1321. Thomas Le 23/09/2013 10:05, Chris forum a écrit : Hi all, It looks like http://svn.pmapper.net is down since last week. Apache reboot needed ; ) Thomas Did you happen to check the hyperlink text bug? Regards, Chris On Wed, Sep 18, 2013 at 5:46 PM, Thomas RAFFIN traf...@sirap.fr mailto:traf...@sirap.fr wrote: Hi I know this bug and I think I've just forgotten to commit it in pmapper... I will check it tomorrow Bye Thomas Le 18/09/2013 17:17, Chris forum a écrit : Hi Armin, I needed some time to rework my project, I am now ready to insert it (almost) easily into any new revision. That's what I am going to do now with rev 1320 to validate your last fix. Aside from that, I have noticed a new bug that has appeared with rev 1314: the resulting value of a graphical query, displayed into the result table, should be transformed into a link when RESULT_HYPERLINK is specified in the mapfile. Prior to rev1314, the text of the link was the resulting value. Now, the text consists of the name of the attribute. In other words, Firebug now shows a href= javascript:PM.Custom.openHyperlink('layer_name','attribute_name','attribute_value') '*attribute_name*'/a instead of a href=javascript:PM.Custom.openHyperlink ('layer_name','attribute_name','attribute_value')**'*attribute_value*'/a From what I see, the problem comes from the modifications made into the initgroups.php file, _getHyperFieldList function. Can not find what is wong in it though... Chris On Sun, Aug 25, 2013 at 11:33 AM, Armin Burger armin.bur...@gmx.net mailto:armin.bur...@gmx.net wrote: On 07/22/2013 10:34 AM, Chris forum wrote: 5) The mouse right click to pan the map is great. But if the Zoom out tool is selected (minus magnifier) when doing so, the map is also zoomed out. Is that on purpose? this should now be fixed, see http://svn.pmapper.net/trac/changeset/1320 armin -- Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net mailto:pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net mailto: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 mailto: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 -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
Re: [pmapper-users] Image Pop-up
Hello Emmanuel, The Auto Identify tool displays layers infos into popups. Maybe you could adapt it to your needs, something like a DIV fetching the right image from an URL, the latter being an attribute of the layer. Have a look at the showIQueryResults function, into the /javascript/src/pm.query.js file. Copy it into the custom.js file of your config directory, starting with $.extend(PM.Query, { showIQueryResults: function(queryResult) { Then you can try modifying it accordingly. Cheers, Chris On Mon, Sep 23, 2013 at 11:34 AM, Emmanuel Adegboye eaadegb...@googlemail.com wrote: Hi. I'm currently using p.mapper 4.3.1. for ms4w and I want to be able to implement pop-ups showing image of some of the features I have on my map. Is this possible in p.mappper? I have read some of the message archives but could not find a solution. I am new to p.mapper and any help would be greatly appreciated. Regards, Emmanuel Adegboye -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Pmaaper with google maps or osm
Hi Only pmapper 5 lets you use google or osm. Check the nice Mouanis Lahlou's map here: http://www.fertimap.ma/map.phtml Pmapper 5 is available from the Sourceforge Repository, link here: http://www.pmapper.net/download.shtml Chris On Mon, Sep 23, 2013 at 3:05 PM, Solly Vuso sollyv...@gmail.com wrote: Hi I would like to check does pmmaper have or allow the use of google maps on the background? am using version 4.3.1 if anyone have pmapper5 ms4w or know where can I get that please send me the link -- Best Regards Solly Vuso -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Plugins modifications
Hi Armin, I have just installed pmapper from trunk r1318 to test your modifications on my project. I didn't try to add any plugin custom JS file yet. I don't know if it is the process to look for custom JS files or the new JS compression tool, but with that pmapper release my project takes more time to be loaded. Actually more than twice the time so I think it is worth pointing that to you. According to Firebug network tab: release 1314: 1.7 sec (Thomas' last changes) GET js_session.php?: 86ms GET js_config.php?: 31ms release 1318: 3.9 sec GET js_session.php?: 2.46s GET js_config.php?: 2.47s Is it the price to pay for having a check at custom JS files? If so, wasn't it possible to simply add references to such files in the main phtml file? Regards, Chris On Sat, Aug 10, 2013 at 12:23 PM, Armin Burger armin.bur...@gmail.comwrote: The JS custom files loading should now be solved with separate loading of those files from the config directories. See changeset 1316 http://svn.pmapper.net/trac/changeset/1316 To use it you need to replace the files under incphp with the new versions and add a line echo $jsCustomReference; in your map_xyz.phtml file as shown in the changeset link. I also used now a more professional JS compression method via the JSMinPlus tool. If someone experiences now problems with plugins and their compressed JS code please let me know. armin On 07/26/2013 11:50 AM, Chris forum wrote: Hi all, Now that Thomas has updated several plugins, I realise I shouldn't have customized them in their own directories. I am now trying to put my changes back into custom.css and custom.js, in order to not loose them at the next general update. I am first trying to do that with the Coordinates plugin where I have done some modifications into coordinates.js. So now there is a modded *$.extend(PM.Plugin, { Coordinates: {* into my custom.js file, but it is not used/read by pmapper. In order to have it taken into account, I have to delete that part in coordinates.js Am I doing this correctly? Is there a way to have custom.js 'taking the lead' over the plugins files? What if a PHP file of a plugin needs to be modified? Cheers, Chris -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] pmapper little bugs
Works fine! Well done! : ) On Sat, Aug 10, 2013 at 1:11 PM, Armin Burger armin.bur...@gmx.net wrote: On 07/22/2013 10:34 AM, Chris forum wrote: 4) The generated URL window stays open even when an action is done (pan, zoom, new layer displayed, ...). An thus the proposed link is no more representing the displayed map. solved. The window is now closed on map refresh. See changeset http://svn.pmapper.net/trac/changeset/1318 armin -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] change the size of the search for dialog box and ie problems
Hi Lynna, Thanks to Firebug in Firefox or Developer tools in IE, you will be able to define the class or ID of the elements you would like to modify. Then set the parameters accordingly in the custom.css file of your config directory. I didn't play a lot with pmapper5,but that should be the same as in the v4. Cheers, Chris On Sat, Aug 10, 2013 at 3:45 AM, naef...@aol.com wrote: I am using p.mapper 5 and I was wondering how to change the size of the search for dialog box and the dropdown box. I would like to set the size of this dropbox and the secondary box because they are not wide enough. Also in Internet explorer the boxes start out wider and then the width becomes smaller. How do I manually set the size for these boxes so they do not change. Thanks Lynnae Sutton -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] themesAndViews plugin
Hi all, pmapper 4.3 (Plainlayout4 / swap legend tab) mapserver 6.2 php 5.3.3-7 Debian server Trying this plugin into the pmapper default demo. config_default.xml has been modified following the instructions of the readme file. (copy/paste without modification) No additional options are being used (no buttons, no styles, ..). When the plugin is actived, 2 select boxes are added on top of the map. Works fine with themes, layers are selected accordingly to what is specified in the themesAndViews.xml file. When I try a view, the map refreshes itself with the right layer (countries), but the extent is not taken into account. Here is what I've set: themeorview typeView/type nameview_test/name descriptionSwitzerland/description layers layer namecountries/name opacitymap/opacity /layer /layers extent minx400/minx miny250/miny maxx435/maxx maxy275/maxy /extent /themeorview I don't see any error being reported. Firebug shows the following POSTs: *POST http://pmapper430/plugins/themesandviews/x_tavApply.php?type=viewselected=view_test * *- parameters: selected=view_test and type=view * *- response: {transparencies:{countries:70},extent:400 250 435 275,reload:1}* It looks like the extent is read but not passed on as a parameter. *POST http://pmapper430/incphp/xajax/x_load.php?zoom_type=zoompoint* As you can see, the 'zoompoint' type is chosen. So I tried to modify the 'if (extent)' test in tav.js (line 373) to 'if (!(typeof extent == undefined))'. Then I got the following *POST http:// /pmapper430/incphp/xajax/x_load.php?zoom_type=zoomextentextent=nullmode=map * 'zoomextent' is now selected, but when looking at its response: *Fatal error: Uncaught exception 'MapScriptException' with message 'mapObj::setExtent() expects parameter 1 to be double mapObj-setExtent('null', NULL, NULL, NULL)* There is indeed no extent in the parameters of this POST. Where should I look to set the extent as a parameter? Regards, Chris -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Plugins modifications
Ok I see. Thanx for the tips, I am going to try adding a custom_plugin.js file. I will also check if the plugins I modified are available as a class. On Fri, Jul 26, 2013 at 7:04 PM, Armin Burger armin.bur...@gmail.comwrote: The problem is that the custom.js file from your config directory is loaded before the plugin JS files, so they will not have any effect The cleanest way would be to separate the custom JS files from the default JS files. Currently there is a a single check and all are referenced at the same time. Since Thomas is probably using this functionality more often I leave it to him to decide if the main code should be changed accordingly. A fast workaround would be to use something like a custom_plugin.js and reference this in the classical way (script type=text/javascript ) in the map_whatever.phtml file's head section just before the large link... / block. There is no golden way of modifying the plugin PHP code. If the plugin is written as a class you can create a new plugin that inherits from the default plugin class. Otherwise you will need to check modifications in the default plugin with you version, using whatever diff-like tool. armin On 07/26/2013 11:50 AM, Chris forum wrote: Hi all, Now that Thomas has updated several plugins, I realise I shouldn't have customized them in their own directories. I am now trying to put my changes back into custom.css and custom.js, in order to not loose them at the next general update. I am first trying to do that with the Coordinates plugin where I have done some modifications into coordinates.js. So now there is a modded *$.extend(PM.Plugin, { Coordinates: {* into my custom.js file, but it is not used/read by pmapper. In order to have it taken into account, I have to delete that part in coordinates.js Am I doing this correctly? Is there a way to have custom.js 'taking the lead' over the plugins files? What if a PHP file of a plugin needs to be modified? Cheers, Chris -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Plugins modifications
Hi Thomas, Just checked, even with debugLevel5/debugLevel the custom.js is still read before the plugins JS file What compression function are you using and where? On Mon, Jul 29, 2013 at 10:48 AM, Thomas RAFFIN traf...@sirap.fr wrote: Hi, Try to inactivate the compression (debug level = 5 I think) and tell us if the custom.js is before or after the plugins files please? AFAIK I don't use the same compression functions than in standard pmapper. So all js files are compressed in the same order than if they were included without compression. So the custom.js (and all other config/xxx/yyy.js files) is included AFTER all the plugins js files. Thomas Le 29/07/2013 09:53, Chris forum a écrit : Ok I see. Thanx for the tips, I am going to try adding a custom_plugin.js file. I will also check if the plugins I modified are available as a class. On Fri, Jul 26, 2013 at 7:04 PM, Armin Burger armin.bur...@gmail.com wrote: The problem is that the custom.js file from your config directory is loaded before the plugin JS files, so they will not have any effect The cleanest way would be to separate the custom JS files from the default JS files. Currently there is a a single check and all are referenced at the same time. Since Thomas is probably using this functionality more often I leave it to him to decide if the main code should be changed accordingly. A fast workaround would be to use something like a custom_plugin.js and reference this in the classical way (script type=text/javascript ) in the map_whatever.phtml file's head section just before the large link... / block. There is no golden way of modifying the plugin PHP code. If the plugin is written as a class you can create a new plugin that inherits from the default plugin class. Otherwise you will need to check modifications in the default plugin with you version, using whatever diff-like tool. armin On 07/26/2013 11:50 AM, Chris forum wrote: Hi all, Now that Thomas has updated several plugins, I realise I shouldn't have customized them in their own directories. I am now trying to put my changes back into custom.css and custom.js, in order to not loose them at the next general update. I am first trying to do that with the Coordinates plugin where I have done some modifications into coordinates.js. So now there is a modded *$.extend(PM.Plugin, { Coordinates: {* into my custom.js file, but it is not used/read by pmapper. In order to have it taken into account, I have to delete that part in coordinates.js Am I doing this correctly? Is there a way to have custom.js 'taking the lead' over the plugins files? What if a PHP file of a plugin needs to be modified? Cheers, Chris -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/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 -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application
Re: [pmapper-users] Plugins modifications
Thx a lot for the detailed info! I think I will keep it simple though and try what Armin has suggested with another custom.js dedicated for the plugins. On Mon, Jul 29, 2013 at 12:19 PM, Thomas RAFFIN traf...@sirap.fr wrote: Indeed I've modified the core code to compress files in the same order than if they were included without compression (in my version js files are not included in js_session.php). It is complicated to compare with the clean pmapper code, because 1) my version is using differently the configuration directory - common directory : /pmapper/config/common/js_config.php *.js *.css - optionally defined in the final configuration in pm_config_location_commonXXX/pm_config_location_common : /pmapper/config/XXX/js_config.php *.js *.css - optionally defined in the final configuration in pm_config_locationYYY/pm_config_location : /pmapper/config/YYY/js_config.php *.js *.css 2) I have modified the behaviour of pm_config_commonYYY/pm_config_common to include an intermediate configuration 3) the compressed js are not included at the same place in the 2 versions 4) I've added parameters in the config.xml to indicates what have to be compressed: js_base, js_plugins, js_config, js_config_reference, css_plugins_files, css_config_files To illustrate points 1 and 2, for instance I'm using configurations like that : - config_XX-01.xml (with pm_config_common = XX-common and pm_config_location = XX-01) = merged with config_XX-common.xml (with pm_config_location_common = XX-common) = merged with config_common.xml = merged with common/._startup_/.defaults.xml So the XML is the compilation of defaults + common + XX-common + XX-01 and the directories : common + XX-common + XX-01 - config_XX-02.xml : same as CC-01, but with pm_config_location = XX-02 and different parameters in the XML ... - config_YY-01.xml : So the XML is addition of defaults + common + YY-common + YY-01 and the directories : common + YY-common + YY-01 NB: config_XX-01 and config_YY-01 could use the same pm_config_location (01): - config_XX-01 = common + XX-common + 01 - config_YY-01 = common + YY-common + 01 or don't define pm_config_location at all (just change the logo, title, mapfile, ... define in the xml): - config_XX-01, 02, 03, ... = common + XX-common - config_YY-01, 02, 03, ... = common + YY-common I didn't add it in pmapper, because it will change the way to define the configs files. Thomas Le 29/07/2013 11:37, Chris forum a écrit : Hi Thomas, Just checked, even with debugLevel5/debugLevel the custom.js is still read before the plugins JS file What compression function are you using and where? On Mon, Jul 29, 2013 at 10:48 AM, Thomas RAFFIN traf...@sirap.fr mailto:traf...@sirap.fr wrote: Hi, Try to inactivate the compression (debug level = 5 I think) and tell us if the custom.js is before or after the plugins files please? AFAIK I don't use the same compression functions than in standard pmapper. So all js files are compressed in the same order than if they were included without compression. So the custom.js (and all other config/xxx/yyy.js files) is included AFTER all the plugins js files. Thomas Le 29/07/2013 09:53, Chris forum a écrit : Ok I see. Thanx for the tips, I am going to try adding a custom_plugin.js file. I will also check if the plugins I modified are available as a class. On Fri, Jul 26, 2013 at 7:04 PM, Armin Burger armin.bur...@gmail.com mailto:armin.bur...@gmail.comwrote: The problem is that the custom.js file from your config directory is loaded before the plugin JS files, so they will not have any effect The cleanest way would be to separate the custom JS files from the default JS files. Currently there is a a single check and all are referenced at the same time. Since Thomas is probably using this functionality more often I leave it to him to decide if the main code should be changed accordingly. A fast workaround would be to use something like a custom_plugin.js and reference this in the classical way (script type=text/javascript ) in the map_whatever.phtml file's head section just before the large link... / block. There is no golden way of modifying the plugin PHP code. If the plugin is written as a class you can create a new plugin that inherits from the default plugin class. Otherwise you will need to check modifications in the default plugin with you version, using whatever diff-like tool. armin On 07/26/2013 11:50 AM, Chris forum wrote: Hi all, Now that Thomas has updated several plugins, I realise I shouldn't have
Re: [pmapper-users] pmapper little bugs
*Drawing annotations* Thanx, should have found it by myself..* custom.js* Ok, must have added that comma once by mistake... sorry. *pm.query.js* Ok also, was trusting my text editor who was waiting for an ending parenthesis for \( On Thu, Jul 25, 2013 at 5:32 PM, Thomas RAFFIN traf...@sirap.fr wrote: Le 25/07/2013 15:27, Chris forum a écrit : As I don't feel confident enough to commit, here under a few minor things I have found out: *legend.php* $html .= /li; should be move before the } instead of after it (line 73) $html .= $this-writeClasses($grpName, $classList); $html .= /li; } ok, you're right *custom.js* a comma needs to be removed after the } at the end of showGroupInfo: function(groupId) I don't see it. There is a missing ; *pm.query.js* (I didn't tried to correct it yet) Some parenthesis are missing in the parseLocale: function(v) I don't see it. *uielement.php* The scale text is not verticaly centered into the box. Margin-top needs to be set at 3px instead of 0 in the public static function scaleForm(): div class=\celldiv\ style=\margin-top: 3px;\ . _p(Scale) . 1: /div I think I've commited it in the CSS. Try to clear your cache in your browser, maybe it is already solved? -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] Plugins modifications
Hi all, Now that Thomas has updated several plugins, I realise I shouldn't have customized them in their own directories. I am now trying to put my changes back into custom.css and custom.js, in order to not loose them at the next general update. I am first trying to do that with the Coordinates plugin where I have done some modifications into coordinates.js. So now there is a modded *$.extend(PM.Plugin, { Coordinates: {* into my custom.js file, but it is not used/read by pmapper. In order to have it taken into account, I have to delete that part in coordinates.js Am I doing this correctly? Is there a way to have custom.js 'taking the lead' over the plugins files? What if a PHP file of a plugin needs to be modified? Cheers, Chris -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] pmapper little bugs
Great Armin, thanx for having a look at these remaining points! Neither do I use the zoom-out tool, but I have users who can't help select it. Bad habit from cartoweb I guess... On Fri, Jul 26, 2013 at 10:43 AM, Armin Burger armin.bur...@gmx.net wrote: Chris, I just reply to the issues not already discussed and/or resolved: On 07/22/2013 10:34 AM, Chris forum wrote: 3) As Pedro said some days earlier, an '@' in an attribute value is replaced by an 'Email' in the result of a query. It happens on my project with two shapefile layers. I already tried to understand why this happens but I could not find any obvious reason when checking the source code. I need to debug it step by step with a layer and change some field values to have an '@' in it to see at which step this is changed to 'Email'. 4) The generated URL window stays open even when an action is done (pan, zoom, new layer displayed, ...). An thus the proposed link is no more representing the displayed map. OK, should not be too difficult to close and reopen the dialog on a map change, I'll look at it. 5) The mouse right click to pan the map is great. But if the Zoom out tool is selected (minus magnifier) when doing so, the map is also zoomed out. Is that on purpose? You're right, I never noticed this, probably because I never use the zoom-out tool and use the mouse wheel instead It does not only appear when having the zoom-out tool currently activated but also when just activating it once and then e.g. activate the identify tool. There seems to be a mode setting that is not reset. I need to check this in detail. Greetings Armin -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] pmapper little bugs
As I don't feel confident enough to commit, here under a few minor things I have found out: *legend.php* $html .= /li; should be move before the } instead of after it (line 73) $html .= $this-writeClasses($grpName, $classList); $html .= /li; } *custom.js* a comma needs to be removed after the } at the end of showGroupInfo: function(groupId) *pm.query.js* (I didn't tried to correct it yet) Some parenthesis are missing in the parseLocale: function(v) *uielement.php* The scale text is not verticaly centered into the box. Margin-top needs to be set at 3px instead of 0 in the public static function scaleForm(): div class=\celldiv\ style=\margin-top: 3px;\ . _p(Scale) . 1: /div On Thu, Jul 25, 2013 at 2:57 PM, Armin Burger armin.bur...@gmail.comwrote: I could also create a bugfix/update release 4.3.2 if the changes are proved to work correctly. armin On 07/25/2013 02:32 PM, Thomas RAFFIN wrote: Hi, Chris, I've just committed the correction concerning scaledenom and queries, and also few plugins updates (drawing, measure2, selection management, graphical queries, queryeditor, export (PDF, SHP, OGR, DXF), ...). Feel free to try the trunk version for pmapper... Be careful with the new version of plugins: you need a full pmapper/plugins directory up-to-date. Thomas Le 24/07/2013 14:54, Thomas RAFFIN a écrit : I think it is due setExtent and setSize order calls... Le 24/07/2013 14:51, Chris forum a écrit : Point 2) is a weird one! I just found out the problem only appears when the browser window is reduced. Queries work fine on both IE and Firefox on a full screen window. But when the window is shrinked to a certain size, the following PHP error shows up: PHP Warning: mapObj::queryByPoint(): [MapServer Error]: msQueryByPoint(): No matching record(s) found. Same behaviour on different machines and different pmapper solutions. No clue what is happening... On Mon, Jul 22, 2013 at 3:36 PM, Chris forum bak.fo...@gmail.com wrote: 1) Cool, I will try that! 2) I checked with the following test layer: LAYER NAME batiments_test TYPE POLYGON DATA gc_data/BATI_POL METADATA DESCRIPTION Bâtiments TEST RESULT_FIELDS NO_ECA, TYPE, ID_GO END TEMPLATE void #MAXSCALEDENOM 4990 OPACITY 50 CLASS NAME bati_test STYLE OUTLINECOLOR 40 40 40 COLOR 172 172 172 MAXWIDTH 3 END END END But as soon as I uncomment the MAXSCADENOM line, I can not get an info any more until I scale down to 3100. I also tried with another layer which initially didn't use a MAXSCALDENOM tag. Same behaviour when I add one. I finally added the Identify tool, but same story... On Mon, Jul 22, 2013 at 2:35 PM, Thomas RAFFIN traf...@sirap.fr wrote: Le 22/07/2013 14:28, Chris forum a écrit : Hey Thomas, Thx for your reply! 1) Here is what I've found in my php.ini ; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collection process. ; http://php.net/session.gc-maxlifetime session.gc_maxlifetime = 1440 Will raise this value to see how it works, but I am confident you pointed out the right setting. You can try to use the timingmap plugin to refresh the map every X minutes ( 1440 seconds ) to keep the sessions alive while the browser is open (call an home made PHP page through AJAX to do something like that). 2) I should have mentionned the problem occurs with polygon layers, i. e. buildings. I don't think it has something to do with the TOLERANCE. At a scale of 3100 even a very small polygon (3-4px long) responds to the query, while at 4500 a big polygon (100px long) can not be selected. Oh, I realise now I am actually not using the Identfy tool, but graphicalqueries_point tool instead. The problem happens also with the graphicalqueries_polygon tool. Are you able to try on a new layer copy from the one that is grouped? On Mon, Jul 22, 2013 at 11:38 AM, Thomas RAFFIN traf...@sirap.fr mailto:traf...@sirap.fr wrote: Le 22/07/2013 10:34, Chris forum a écrit : Hi all, I am very glad to annonce that pmapper 4.3.1 has officially replaced the old Cartoweb solution here in my local city administation! \o/ It so much pleasant to work with pmapper, thanx a lot to Armin, Thomas and all who built this tool and helped me got it working! However, here under some little things that could still be improved, if you have any idea how to solve them... Hi, Nice to have good feedback ;-) pmapper 4.3 (Plainlayout4 / swap legend tab
Re: [pmapper-users] pmapper little bugs
Just tried the trunk out, there is no point 2) anymore! Graphical queries plugin works fine even with a non full screen browser window! : ) Good job Thomas! I noticed Measure2 and Drawing plugins now use a red cross instead of a thrash bin. But Drawing plugin still writes annotations in grey only. I didn't use other plugins you have modified so I can not check them. Timingmap plugin still doesn't like a resetsession=ALL, but I guess we need Walter Lorenzetti here to help us. On Thu, Jul 25, 2013 at 3:27 PM, Chris forum bak.fo...@gmail.com wrote: As I don't feel confident enough to commit, here under a few minor things I have found out: *legend.php* $html .= /li; should be move before the } instead of after it (line 73) $html .= $this-writeClasses($grpName, $classList); $html .= /li; } *custom.js* a comma needs to be removed after the } at the end of showGroupInfo: function(groupId) *pm.query.js* (I didn't tried to correct it yet) Some parenthesis are missing in the parseLocale: function(v) *uielement.php* The scale text is not verticaly centered into the box. Margin-top needs to be set at 3px instead of 0 in the public static function scaleForm(): div class=\celldiv\ style=\margin-top: 3px;\ . _p(Scale) . 1: /div On Thu, Jul 25, 2013 at 2:57 PM, Armin Burger armin.bur...@gmail.comwrote: I could also create a bugfix/update release 4.3.2 if the changes are proved to work correctly. armin On 07/25/2013 02:32 PM, Thomas RAFFIN wrote: Hi, Chris, I've just committed the correction concerning scaledenom and queries, and also few plugins updates (drawing, measure2, selection management, graphical queries, queryeditor, export (PDF, SHP, OGR, DXF), ...). Feel free to try the trunk version for pmapper... Be careful with the new version of plugins: you need a full pmapper/plugins directory up-to-date. Thomas Le 24/07/2013 14:54, Thomas RAFFIN a écrit : I think it is due setExtent and setSize order calls... Le 24/07/2013 14:51, Chris forum a écrit : Point 2) is a weird one! I just found out the problem only appears when the browser window is reduced. Queries work fine on both IE and Firefox on a full screen window. But when the window is shrinked to a certain size, the following PHP error shows up: PHP Warning: mapObj::queryByPoint(): [MapServer Error]: msQueryByPoint(): No matching record(s) found. Same behaviour on different machines and different pmapper solutions. No clue what is happening... On Mon, Jul 22, 2013 at 3:36 PM, Chris forum bak.fo...@gmail.com wrote: 1) Cool, I will try that! 2) I checked with the following test layer: LAYER NAME batiments_test TYPE POLYGON DATA gc_data/BATI_POL METADATA DESCRIPTION Bâtiments TEST RESULT_FIELDS NO_ECA, TYPE, ID_GO END TEMPLATE void #MAXSCALEDENOM 4990 OPACITY 50 CLASS NAME bati_test STYLE OUTLINECOLOR 40 40 40 COLOR 172 172 172 MAXWIDTH 3 END END END But as soon as I uncomment the MAXSCADENOM line, I can not get an info any more until I scale down to 3100. I also tried with another layer which initially didn't use a MAXSCALDENOM tag. Same behaviour when I add one. I finally added the Identify tool, but same story... On Mon, Jul 22, 2013 at 2:35 PM, Thomas RAFFIN traf...@sirap.fr wrote: Le 22/07/2013 14:28, Chris forum a écrit : Hey Thomas, Thx for your reply! 1) Here is what I've found in my php.ini ; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collection process. ; http://php.net/session.gc-maxlifetime session.gc_maxlifetime = 1440 Will raise this value to see how it works, but I am confident you pointed out the right setting. You can try to use the timingmap plugin to refresh the map every X minutes ( 1440 seconds ) to keep the sessions alive while the browser is open (call an home made PHP page through AJAX to do something like that). 2) I should have mentionned the problem occurs with polygon layers, i. e. buildings. I don't think it has something to do with the TOLERANCE. At a scale of 3100 even a very small polygon (3-4px long) responds to the query, while at 4500 a big polygon (100px long) can not be selected. Oh, I realise now I am actually not using the Identfy tool, but graphicalqueries_point tool instead. The problem happens also with the graphicalqueries_polygon tool. Are you able to try on a new layer copy from the one that is grouped? On Mon, Jul 22, 2013 at 11:38 AM, Thomas RAFFIN traf...@sirap.fr mailto:traf...@sirap.fr wrote: Le 22/07/2013 10:34, Chris forum a écrit : Hi all, I am very glad to annonce
Re: [pmapper-users] pmapper little bugs
Point 2) is a weird one! I just found out the problem only appears when the browser window is reduced. Queries work fine on both IE and Firefox on a full screen window. But when the window is shrinked to a certain size, the following PHP error shows up: PHP Warning: mapObj::queryByPoint(): [MapServer Error]: msQueryByPoint(): No matching record(s) found. Same behaviour on different machines and different pmapper solutions. No clue what is happening... On Mon, Jul 22, 2013 at 3:36 PM, Chris forum bak.fo...@gmail.com wrote: 1) Cool, I will try that! 2) I checked with the following test layer: LAYER NAME batiments_test TYPE POLYGON DATA gc_data/BATI_POL METADATA DESCRIPTION Bâtiments TEST RESULT_FIELDS NO_ECA, TYPE, ID_GO END TEMPLATE void #MAXSCALEDENOM 4990 OPACITY 50 CLASS NAME bati_test STYLE OUTLINECOLOR 40 40 40 COLOR 172 172 172 MAXWIDTH 3 END END END But as soon as I uncomment the MAXSCADENOM line, I can not get an info any more until I scale down to 3100. I also tried with another layer which initially didn't use a MAXSCALDENOM tag. Same behaviour when I add one. I finally added the Identify tool, but same story... On Mon, Jul 22, 2013 at 2:35 PM, Thomas RAFFIN traf...@sirap.fr wrote: Le 22/07/2013 14:28, Chris forum a écrit : Hey Thomas, Thx for your reply! 1) Here is what I've found in my php.ini ; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collection process. ; http://php.net/session.gc-maxlifetime session.gc_maxlifetime = 1440 Will raise this value to see how it works, but I am confident you pointed out the right setting. You can try to use the timingmap plugin to refresh the map every X minutes ( 1440 seconds ) to keep the sessions alive while the browser is open (call an home made PHP page through AJAX to do something like that). 2) I should have mentionned the problem occurs with polygon layers, i. e. buildings. I don't think it has something to do with the TOLERANCE. At a scale of 3100 even a very small polygon (3-4px long) responds to the query, while at 4500 a big polygon (100px long) can not be selected. Oh, I realise now I am actually not using the Identfy tool, but graphicalqueries_point tool instead. The problem happens also with the graphicalqueries_polygon tool. Are you able to try on a new layer copy from the one that is grouped? On Mon, Jul 22, 2013 at 11:38 AM, Thomas RAFFIN traf...@sirap.fr mailto:traf...@sirap.fr wrote: Le 22/07/2013 10:34, Chris forum a écrit : Hi all, I am very glad to annonce that pmapper 4.3.1 has officially replaced the old Cartoweb solution here in my local city administation! \o/ It so much pleasant to work with pmapper, thanx a lot to Armin, Thomas and all who built this tool and helped me got it working! However, here under some little things that could still be improved, if you have any idea how to solve them... Hi, Nice to have good feedback ;-) pmapper 4.3 (Plainlayout4 / swap legend tab) mapserver 6.2 php 5.3.3-7 Debian server 1) When not used during some time (x minutes?) and then an action is done, pmapper stops responding and get stuck at the Loading image in front of the map. Is there a session duration or something? Yes, it should be the PHP Session duration. As I remember, wioth Debian, you have to modify gc_maxlifetime in your PHP.ini because a cron task will delete too old session files. 2) At a scale of 4500, even though all layers from a group are visible on the main map (MAXSCALEDENOM 4990), the query (identify) tool doesn't retrieve any information. I have to zoom closer, at a scale of 3100, to get some results with the query tool. If you are talking about point layers, maybe you have a mouse capture problem. Try to increase the MAP\LAYER\TOLERANCE (and choose a good TOLERANCEUNITS) 3) As Pedro said some days earlier, an '@' in an attribute value is replaced by an 'Email' in the result of a query. It happens on my project with two shapefile layers. 4) The generated URL window stays open even when an action is done (pan, zoom, new layer displayed, ...). An thus the proposed link is no more representing the displayed map. 5) The mouse right click to pan the map is great. But if the Zoom out tool is selected (minus magnifier) when doing so, the map is also zoomed out. Is that on purpose? 6) Plugin LocateXY only
[pmapper-users] pmapper little bugs
Hi all, I am very glad to annonce that pmapper 4.3.1 has officially replaced the old Cartoweb solution here in my local city administation! \o/ It so much pleasant to work with pmapper, thanx a lot to Armin, Thomas and all who built this tool and helped me got it working! However, here under some little things that could still be improved, if you have any idea how to solve them... pmapper 4.3 (Plainlayout4 / swap legend tab) mapserver 6.2 php 5.3.3-7 Debian server 1) When not used during some time (x minutes?) and then an action is done, pmapper stops responding and get stuck at the Loading image in front of the map. Is there a session duration or something? 2) At a scale of 4500, even though all layers from a group are visible on the main map (MAXSCALEDENOM 4990), the query (identify) tool doesn't retrieve any information. I have to zoom closer, at a scale of 3100, to get some results with the query tool. 3) As Pedro said some days earlier, an '@' in an attribute value is replaced by an 'Email' in the result of a query. It happens on my project with two shapefile layers. 4) The generated URL window stays open even when an action is done (pan, zoom, new layer displayed, ...). An thus the proposed link is no more representing the displayed map. 5) The mouse right click to pan the map is great. But if the Zoom out tool is selected (minus magnifier) when doing so, the map is also zoomed out. Is that on purpose? 6) Plugin LocateXY only accepts a 'circle' symbol. When I try to display a cross symbol, a square or any other symbols (defined in the template.map), I get a triangle (?!) symbol on the map. 7) Plugin Drawing Text, no matter what color is chosen, is diplayed in grey on the map Cheers Chris -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] pmapper little bugs
1) Cool, I will try that! 2) I checked with the following test layer: LAYER NAME batiments_test TYPE POLYGON DATA gc_data/BATI_POL METADATA DESCRIPTION Bâtiments TEST RESULT_FIELDS NO_ECA, TYPE, ID_GO END TEMPLATE void #MAXSCALEDENOM 4990 OPACITY 50 CLASS NAME bati_test STYLE OUTLINECOLOR 40 40 40 COLOR 172 172 172 MAXWIDTH 3 END END END But as soon as I uncomment the MAXSCADENOM line, I can not get an info any more until I scale down to 3100. I also tried with another layer which initially didn't use a MAXSCALDENOM tag. Same behaviour when I add one. I finally added the Identify tool, but same story... On Mon, Jul 22, 2013 at 2:35 PM, Thomas RAFFIN traf...@sirap.fr wrote: Le 22/07/2013 14:28, Chris forum a écrit : Hey Thomas, Thx for your reply! 1) Here is what I've found in my php.ini ; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collection process. ; http://php.net/session.gc-maxlifetime session.gc_maxlifetime = 1440 Will raise this value to see how it works, but I am confident you pointed out the right setting. You can try to use the timingmap plugin to refresh the map every X minutes ( 1440 seconds ) to keep the sessions alive while the browser is open (call an home made PHP page through AJAX to do something like that). 2) I should have mentionned the problem occurs with polygon layers, i. e. buildings. I don't think it has something to do with the TOLERANCE. At a scale of 3100 even a very small polygon (3-4px long) responds to the query, while at 4500 a big polygon (100px long) can not be selected. Oh, I realise now I am actually not using the Identfy tool, but graphicalqueries_point tool instead. The problem happens also with the graphicalqueries_polygon tool. Are you able to try on a new layer copy from the one that is grouped? On Mon, Jul 22, 2013 at 11:38 AM, Thomas RAFFIN traf...@sirap.fr mailto:traf...@sirap.fr wrote: Le 22/07/2013 10:34, Chris forum a écrit : Hi all, I am very glad to annonce that pmapper 4.3.1 has officially replaced the old Cartoweb solution here in my local city administation! \o/ It so much pleasant to work with pmapper, thanx a lot to Armin, Thomas and all who built this tool and helped me got it working! However, here under some little things that could still be improved, if you have any idea how to solve them... Hi, Nice to have good feedback ;-) pmapper 4.3 (Plainlayout4 / swap legend tab) mapserver 6.2 php 5.3.3-7 Debian server 1) When not used during some time (x minutes?) and then an action is done, pmapper stops responding and get stuck at the Loading image in front of the map. Is there a session duration or something? Yes, it should be the PHP Session duration. As I remember, wioth Debian, you have to modify gc_maxlifetime in your PHP.ini because a cron task will delete too old session files. 2) At a scale of 4500, even though all layers from a group are visible on the main map (MAXSCALEDENOM 4990), the query (identify) tool doesn't retrieve any information. I have to zoom closer, at a scale of 3100, to get some results with the query tool. If you are talking about point layers, maybe you have a mouse capture problem. Try to increase the MAP\LAYER\TOLERANCE (and choose a good TOLERANCEUNITS) 3) As Pedro said some days earlier, an '@' in an attribute value is replaced by an 'Email' in the result of a query. It happens on my project with two shapefile layers. 4) The generated URL window stays open even when an action is done (pan, zoom, new layer displayed, ...). An thus the proposed link is no more representing the displayed map. 5) The mouse right click to pan the map is great. But if the Zoom out tool is selected (minus magnifier) when doing so, the map is also zoomed out. Is that on purpose? 6) Plugin LocateXY only accepts a 'circle' symbol. When I try to display a cross symbol, a square or any other symbols (defined in the template.map), I get a triangle (?!) symbol on the map. 7) Plugin Drawing Text, no matter what color is chosen, is diplayed in grey on the map Cheers Chris -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from
Re: [pmapper-users] webpage
Hi Yes, can not reach it for a week or so. Already mentionned it, but Armin must be busy elsewhere. On Fri, May 17, 2013 at 12:39 AM, Bogumił Szady sz...@kul.lublin.pl wrote: Hello, Is there any problem with pmapper.net webpage? Bogumil -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] GraphicalQueries plugin
Great, thx for the fast answer and for the example link! On my project, when I select the tool, the help is displayed and the drop down menu with the layers also. But the window with the check boxes (query on all layers / buffer) is missing. Now that I see how it is supposed to work, I will try to find what's wrong here. From what I see there is no error in Firebug. I will let you know If I get it to work! On Tue, May 14, 2013 at 3:41 PM, Thomas RAFFIN traf...@sirap.fr wrote: Hi Chris, The points you are talking about are already implemented in the plugin. You should have 5 tools (point, line, ...) and few options for them (chose a layer or select all layers, buffer with distance to specify, ...), like in this example: http://simap3.sirap.fr/ambert/ (just click on the imagemap on the right to open pmapper) I think there is a problem with CSS that doesn't make the options available. I will try to debug it ASAP. But are you able to debug with Firebug for instance? Thomas Le 14/05/2013 15:24, Chris forum a écrit : Hi Armin, Thomas, all Armin It looks like Apache need a restart, I can not reach pmapper.net http://pmapper.net since yesterday. ;-) Thomas I have just added the GraphicalQueries polygon tool into my project. So far it works well, very similar to the Select tool but using a polygon instead of a rectangle. However, I must be missing something... 1) The result window is displaying a Buffer button, how is it supposed to work? Pushing it has not effect here. 2) Like the Identify tool, I would like to perform the query on all the visible layers. I guess this is already implemented from what I see in graphicalqueries.js (GraphicalQueries_AllLayer). If I am right, how can I do such queries instead of specifiyng a single layer from the drop down menu? 3) Actually I don't see any window with the buttons provided with the plugin, or any window proposing actions on selection (reload, intersect, ...) I am really interested in seeing all those functions! Kind regards, Chris -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] GraphicalQueries plugin
My mistake here I sorry... I had moved the mapToolArea into the uiLayoutSouth div, so the window with checkboxes was hidden down there somewhere. mapToolArea is now back into the uiLayoutCenter div and everything is back to normal! As you said, there must be something to fix with the buttons though, they are not displayed into the area 'Opération sur les sélections'. Will check that now. On Tue, May 14, 2013 at 4:12 PM, Chris forum bak.fo...@gmail.com wrote: Great, thx for the fast answer and for the example link! On my project, when I select the tool, the help is displayed and the drop down menu with the layers also. But the window with the check boxes (query on all layers / buffer) is missing. Now that I see how it is supposed to work, I will try to find what's wrong here. From what I see there is no error in Firebug. I will let you know If I get it to work! On Tue, May 14, 2013 at 3:41 PM, Thomas RAFFIN traf...@sirap.fr wrote: Hi Chris, The points you are talking about are already implemented in the plugin. You should have 5 tools (point, line, ...) and few options for them (chose a layer or select all layers, buffer with distance to specify, ...), like in this example: http://simap3.sirap.fr/ambert/ (just click on the imagemap on the right to open pmapper) I think there is a problem with CSS that doesn't make the options available. I will try to debug it ASAP. But are you able to debug with Firebug for instance? Thomas Le 14/05/2013 15:24, Chris forum a écrit : Hi Armin, Thomas, all Armin It looks like Apache need a restart, I can not reach pmapper.net http://pmapper.net since yesterday. ;-) Thomas I have just added the GraphicalQueries polygon tool into my project. So far it works well, very similar to the Select tool but using a polygon instead of a rectangle. However, I must be missing something... 1) The result window is displaying a Buffer button, how is it supposed to work? Pushing it has not effect here. 2) Like the Identify tool, I would like to perform the query on all the visible layers. I guess this is already implemented from what I see in graphicalqueries.js (GraphicalQueries_AllLayer). If I am right, how can I do such queries instead of specifiyng a single layer from the drop down menu? 3) Actually I don't see any window with the buttons provided with the plugin, or any window proposing actions on selection (reload, intersect, ...) I am really interested in seeing all those functions! Kind regards, Chris -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Northarrow for printing / downloading
Looks like we don't have the same pdfprint.php, there are some differencies here and there. Are you on pmapper 4.3 like I do? Anyway, as mentionned you should add the north arrow code at the end of the printPDF function. At least after map image has been drawn. Works fine here when put at the very end after the following line: $this-redFactor = $redFactor; Hope it is going to work! On Wed, Apr 17, 2013 at 9:59 AM, asko asko cool...@yahoo.com wrote: -- *Dari:* Chris forum bak.fo...@gmail.com *Kepada:* cool_2x cool...@yahoo.com *Cc:* pmapper-users pmapper-users@lists.sourceforge.net *Dikirim:* Rabu, 17 April 2013 13:33 *Judul:* Re: [pmapper-users] Northarrow for printing / downloading Hi Let me have a look at your printPDF function please. On Tue, Apr 16, 2013 at 6:57 AM, cool_2x cool...@yahoo.com wrote: I have use your code listing,(placed north arrow inside the map area) I put the listing code inside function function printPDF($map, $pdfMapW, $pdfMapH, $printUrlList, $prScale) { } but north arrow display behind map area. http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/file/n4025145/northarrow.png please guide again.. thankyu -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/pmapper-users-Northarrow-for-printing-downloading-tp4024984p4025145.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] search.xml with 2 fields
Hi Armin, Thomas, I had to deal with another little problem, accents in the street names from the postgis DB which is encoded in ISO-8859-1. - They are replaced by a special text character in the drop down menu. Just need to specify the right dns for both fields in the search.xml file: dsn encoding=ISO-8859-1 The content of the drop down menu is now ok, but as the main html page is UTF-8 encoded, the query is still sended back to postgis in UTF-8. - Had to add an utf8_decode in suggest.php, function dbSuggestMatch: foreach ($dependFields as $fieldName = $fieldValue) { *pm_logDebug(3, $fieldValue, fieldvalue before utf8decode);** $fieldValue = utf8_decode($fieldValue); //utf8 - iso-8859-1 **pm_logDebug(3, $fieldValue, fieldvalue after utf8decode);* $sql = str_replace(array('[dependfldval]', [dependfldval_$fieldName]), trim($fieldValue), $sql); } the logDebug shows, when searching the street name Genève: [05-Apr-2013 11:18:14] P.MAPPER debug info fieldvalue before utf8decode Genève [05-Apr-2013 11:18:14] P.MAPPER debug info fieldvalue after utf8decode Genève Works fine now, don't know if it is the proper way to do it though for an SVN commit. Talking about SVN, is it ok for you if I let you know through emails what I had to correct to have p.mapper working? Cheers, Chris On Thu, Apr 4, 2013 at 9:32 AM, Chris forum bak.fo...@gmail.com wrote: Hi Armin, Thomas I've just replaced the 3 compressed JS files, search works fine now using them! Ok, flushCache is set. Thx a lot guys, pmapper rocks! Chris On Wed, Apr 3, 2013 at 7:39 PM, Armin Burger armin.bur...@gmail.comwrote: On 04/03/2013 03:55 PM, Chris forum wrote: Should I dare asking a last question? Do I better use this, what is it actually doing? eventsonchange=$('#pmsfld_numero').val('').flushCache()/events that resets the text input field and empties the auto-complete cache of the suggest, so usually it is recommended to be set. You need to adapt the xyz part of '#pmsfld_xyz' to the suggest field name. -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] search.xml with 2 fields
Hi Armin, Thomas I've just replaced the 3 compressed JS files, search works fine now using them! Ok, flushCache is set. Thx a lot guys, pmapper rocks! Chris On Wed, Apr 3, 2013 at 7:39 PM, Armin Burger armin.bur...@gmail.com wrote: On 04/03/2013 03:55 PM, Chris forum wrote: Should I dare asking a last question? Do I better use this, what is it actually doing? eventsonchange=$('#pmsfld_numero').val('').flushCache()/events that resets the text input field and empties the auto-complete cache of the suggest, so usually it is recommended to be set. You need to adapt the xyz part of '#pmsfld_xyz' to the suggest field name. -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] search.xml with 2 fields
Hi Thomas, Thx a lot for the explanation, I have chosen to use the nosubmit=1 parameter. First field works now, the query is not launched anymore when a suggested street name is clicked: definition type=suggest connectiontype=db minlength=1 startleft=1 sort=asc *nosubmit=1* So I am a step further, there is still a problem though with the second field: it doesn't suggest anything: definition type=suggest connectiontype=db sort=asc minlength=1 dependfld=lastname Did you manage to test my data? Does it work on your system? Here, if I choose the street name Abeilles and then type 2 in the second field, nothing is proposed while the numbers 23 , 25, 27 and 29 are in the db (the one I sent you). Sorry to insist... Chris On Tue, Apr 2, 2013 at 6:05 PM, Thomas RAFFIN traf...@sirap.fr wrote: OK, it is due to bad configuration. You could do one of those: - Unactivate auto submit for suggested fields == set PM.suggestLaunchSearch = false; in js_config.php (applies to all suggested fields!) - keep PM.suggestLaunchSearch = true; and add to each definition where it is needed the nosubmit parameter to 1 like this for instance: definition type=suggest connectiontype=db minlength=1 startleft=1 sort=asc nosubmit=1 Bye Thomas Le 02/04/2013 15:43, Chris forum a écrit : Hi Thomas, Please find attached the necessary files to reproduce my environment. Thanx a lot! Chris -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] search.xml with 2 fields
Still no luck here... I copy/paste your search above, replacing the test shema with public one, but the second field is still not proposing anything. Here under the content of the pm_debug.log, with 'abe'-Abeilles and '2' values used in the fields. Looking at the last line of the log, I have tried to replace '[dependfldval]' with 'Abeilles' in search.xml, and the second field this time proposed me values to choose from! Shouldn't the last line of the log contain 'Abeilles' instead of '[dependfldval]'? It looks like the substitution is not done. [03-Apr-2013 13:44:46] P.MAPPER debug info Validation of search.xml file succeeded [03-Apr-2013 13:44:49] P.MAPPER debug info XML-//definition SimpleXMLElement Object ( [@attributes] = Array ( [type] = suggest [connectiontype] = db [minlength] = 1 [startleft] = 1 [sort] = asc [nosubmit] = 1 ) [dsn] = @ [sql] = SELECT DISTINCT lastname FROM public.goeland_addresse_lausanne WHERE lastname IS NOT NULL ORDER BY lastname [comment] = SimpleXMLElement Object ( ) ) [03-Apr-2013 13:44:49] P.MAPPER debug info XML-//definition SimpleXMLElement Object ( [@attributes] = Array ( [type] = suggest [connectiontype] = db [sort] = asc [minlength] = 0 [dependfld] = lastname ) [dsn] = @ [sql] = SELECT DISTINCT numero FROM public.goeland_addresse_lausanne WHERE numero::text ~* '^[search]' and lastname = '[dependfldval]' ORDER BY numero ) [03-Apr-2013 13:44:51] P.MAPPER debug info request Array ( [searchitem] = goeland_adresses [fldname] = lastname [q] = abe [limit] = 0 [timestamp] = 1364989492518 ) [03-Apr-2013 13:44:51] P.MAPPER debug info Parameters for attribute search file: suggest.php function: __construct Array ( [type] = db [sort] = asc [minlength] = 1 [regexleft] = [startleft] = 1 [dsn] = pgsql://user:pass@localhost:5432/goeland [encoding] = UTF-8 [sql] = SELECT DISTINCT lastname FROM public.goeland_addresse_lausanne WHERE lastname IS NOT NULL ORDER BY lastname [dependFields] = Array ( ) ) [03-Apr-2013 13:44:51] P.MAPPER debug info SELECT DISTINCT lastname FROM public.goeland_addresse_lausanne WHERE lastname IS NOT NULL ORDER BY lastname [03-Apr-2013 13:45:39] P.MAPPER debug info request Array ( [searchitem] = goeland_adresses [fldname] = numero [q] = 2 [limit] = 0 [timestamp] = 1364989540505 [dependfldval] = Abeilles ) [03-Apr-2013 13:45:39] P.MAPPER debug info Parameters for attribute search file: suggest.php function: __construct Array ( [type] = db [sort] = asc [minlength] = 0 [regexleft] = [startleft] = 0 [dsn] = pgsql://user:pass@localhost:5432/goeland [encoding] = UTF-8 [sql] = SELECT DISTINCT numero FROM public.goeland_addresse_lausanne WHERE numero::text ~* '^[search]' and lastname = '[dependfldval]' ORDER BY numero [dependFields] = Array ( ) ) [03-Apr-2013 13:45:39] P.MAPPER debug info SELECT DISTINCT numero FROM public.goeland_addresse_lausanne WHERE numero::text ~* '^2' and lastname = '[dependfldval]' ORDER BY numero On Wed, Apr 3, 2013 at 11:05 AM, Thomas RAFFIN traf...@sirap.fr wrote: Hi, With your data and this search definition it worked yesterday: searchitem name=goeland_adresses description=Adresses -Suggest Suggest PGSQL- layer type=postgis name=goeland_addresse_lausanne field type=s name=lastname description=Rue wildcard=2 definition type=suggest connectiontype=db minlength=1 startleft=1 sort=asc nosubmit=1 dsn encoding=UTF-8@/dsn sqlSELECT DISTINCT lastname FROM test.goeland_addresse_lausanne WHERE lastname IS NOT NULL ORDER BY lastname/sql !--eventsonchange=$('#pmsfld_numero').val('').flushCache()/events-- /definition /field field type=n name=numero description=No wildcard=2 definition type=suggest connectiontype=db sort=asc minlength=0 dependfld=lastname dsn encoding=UTF-8@/dsn sqlSELECT DISTINCT numero FROM test.goeland_addresse_lausanne WHERE numero::text ~* '^[search]' and lastname = '[dependfldval]' ORDER BY numero/sql /definition /field /layer /searchitem Take a look on the dsn that don't need to be re-specified. But it requires 1 character or more. The table is in the test schema here. Le 03/04/2013 10:06, Chris forum a écrit : Hi Thomas, Thx a lot for the explanation, I have chosen to use the nosubmit=1 parameter. First field works now, the query is not launched anymore when a suggested street name is clicked: definition type=suggest connectiontype=db minlength=1 startleft=1 sort=asc *nosubmit=1* So I am a step further, there is still a problem though with the second field: it doesn't suggest
Re: [pmapper-users] search.xml with 2 fields
Well done! \o/ Works perfectly now : )) Thank you so much Thomas! Should I dare asking a last question? Do I better use this, what is it actually doing? eventsonchange=$('#pmsfld_numero').val('').flushCache()/events On Wed, Apr 3, 2013 at 3:28 PM, Thomas RAFFIN traf...@sirap.fr wrote: The compress js version is certainly not up-to-date. Try to change your configuration like this: pm_javascript_locationjavascript/src/pm_javascript_location Armin, could you update the js compress files please? Le 03/04/2013 14:35, Chris forum a écrit : Still no luck here... I copy/paste your search above, replacing the test shema with public one, but the second field is still not proposing anything. Here under the content of the pm_debug.log, with 'abe'-Abeilles and '2' values used in the fields. Looking at the last line of the log, I have tried to replace '[dependfldval]' with 'Abeilles' in search.xml, and the second field this time proposed me values to choose from! Shouldn't the last line of the log contain 'Abeilles' instead of '[dependfldval]'? It looks like the substitution is not done. [03-Apr-2013 13:44:46] P.MAPPER debug info Validation of search.xml file succeeded [03-Apr-2013 13:44:49] P.MAPPER debug info XML-//definition SimpleXMLElement Object ( [@attributes] = Array ( [type] = suggest [connectiontype] = db [minlength] = 1 [startleft] = 1 [sort] = asc [nosubmit] = 1 ) [dsn] = @ [sql] = SELECT DISTINCT lastname FROM public.goeland_addresse_lausanne WHERE lastname IS NOT NULL ORDER BY lastname [comment] = SimpleXMLElement Object ( ) ) [03-Apr-2013 13:44:49] P.MAPPER debug info XML-//definition SimpleXMLElement Object ( [@attributes] = Array ( [type] = suggest [connectiontype] = db [sort] = asc [minlength] = 0 [dependfld] = lastname ) [dsn] = @ [sql] = SELECT DISTINCT numero FROM public.goeland_addresse_lausanne WHERE numero::text ~* '^[search]' and lastname = '[dependfldval]' ORDER BY numero ) [03-Apr-2013 13:44:51] P.MAPPER debug info request Array ( [searchitem] = goeland_adresses [fldname] = lastname [q] = abe [limit] = 0 [timestamp] = 1364989492518 ) [03-Apr-2013 13:44:51] P.MAPPER debug info Parameters for attribute search file: suggest.php function: __construct Array ( [type] = db [sort] = asc [minlength] = 1 [regexleft] = [startleft] = 1 [dsn] = pgsql://user:pass@localhost:5432/goeland [encoding] = UTF-8 [sql] = SELECT DISTINCT lastname FROM public.goeland_addresse_lausanne WHERE lastname IS NOT NULL ORDER BY lastname [dependFields] = Array ( ) ) [03-Apr-2013 13:44:51] P.MAPPER debug info SELECT DISTINCT lastname FROM public.goeland_addresse_lausanne WHERE lastname IS NOT NULL ORDER BY lastname [03-Apr-2013 13:45:39] P.MAPPER debug info request Array ( [searchitem] = goeland_adresses [fldname] = numero [q] = 2 [limit] = 0 [timestamp] = 1364989540505 [dependfldval] = Abeilles ) [03-Apr-2013 13:45:39] P.MAPPER debug info Parameters for attribute search file: suggest.php function: __construct Array ( [type] = db [sort] = asc [minlength] = 0 [regexleft] = [startleft] = 0 [dsn] = pgsql://user:pass@localhost:5432/goeland [encoding] = UTF-8 [sql] = SELECT DISTINCT numero FROM public.goeland_addresse_lausanne WHERE numero::text ~* '^[search]' and lastname = '[dependfldval]' ORDER BY numero [dependFields] = Array ( ) ) [03-Apr-2013 13:45:39] P.MAPPER debug info SELECT DISTINCT numero FROM public.goeland_addresse_lausanne WHERE numero::text ~* '^2' and lastname = '[dependfldval]' ORDER BY numero On Wed, Apr 3, 2013 at 11:05 AM, Thomas RAFFIN traf...@sirap.fr wrote: Hi, With your data and this search definition it worked yesterday: searchitem name=goeland_adresses description=Adresses -Suggest Suggest PGSQL- layer type=postgis name=goeland_addresse_lausanne field type=s name=lastname description=Rue wildcard=2 definition type=suggest connectiontype=db minlength=1 startleft=1 sort=asc nosubmit=1 dsn encoding=UTF-8@/dsn sqlSELECT DISTINCT lastname FROM test.goeland_addresse_lausanne WHERE lastname IS NOT NULL ORDER BY lastname/sql !--eventsonchange=$('#pmsfld_numero').val('').flushCache()/events-- /definition /field field type=n name=numero description=No wildcard=2 definition type=suggest connectiontype=db sort=asc minlength=0 dependfld=lastname dsn encoding=UTF-8@/dsn sqlSELECT DISTINCT numero FROM test.goeland_addresse_lausanne WHERE numero::text
Re: [pmapper-users] search.xml with 2 fields
Still struggling with the search function. To resume what I am experiencing with a 2 fields search, which consists in finding a street name and then a building number on this street: 1) It looks like I can not set the first field search mode to 'options', my postgis table is too big (~10'000 rows). If I do, even though the values are there (Firebug can lists the option values), they are not displayed in the drop down menu. 2) When I set the first field mode to 'suggest', it works but the query is launched as soon as I click on a proposed value. So when I click on a street name, the query is done before I can specify a building number. Is a two fields search supposed to work with both fields using 'suggest' mode? If so, do you have any idea why the search doesn't wait for the second input before launching the query? Any working exemple available? Link to the gisdb postgis table used in the dev search.xml? Thanx, Chris On Wed, Mar 27, 2013 at 3:56 PM, Chris forum bak.fo...@gmail.com wrote: Hi Thomas, Thx for your fast reply! The searchitem of my last message was related to a shapefile for a test. That's why I didn't add an SQL query in it as I didn't see any shapefile example with an sql tag. Anyway, I just tried to add: sqlSELECT DISTINCT NUMBER FROM building _shp WHERE TYPE = '[dependfldval]' AND NUMBER ~* '[search]' ORDER BY NUMBER /sql But the second field is still not filtered... : ( From what I see, you example with 2 fields is dealing with a PGSQL table. Here is what I have: searchitem name=addresses description=Addresses -Suggest Suggest PGSQL- layer type=postgis name=Address_table field type=s name=Address_field description=Street wildcard=2 definition type=suggest connectiontype=db minlength=1 startleft=1 sort=asc dsn encoding=UTF-8pgsql://user:pass@localhost /db/dsn sqlSELECT DISTINCT Address_field FROM public.Address_table WHERE Address_field IS NOT NULL ORDER BY Address_field/sql eventsonchange=$('#pmsfld_number_field').val('').flushCache()/events /definition /field field type=n name=Number_field description=Nb wildcard=2 definition type=suggest connectiontype=db sort=asc minlength=3 dependfld=Address_field dsn encoding=UTF-8pgsql://user:pass@localhost /db/dsn sqlSELECT DISTINCT Number_field FROM public.goeland_addresse_lausanne WHERE Number_field ~* '^[search]' {and Address_field = '[dependfldval]'} ORDER BY Number_field/sql /definition /field /layer /searchitem First field works, but the query is made as soon as I choose one entry in the list. No chance to select anything on the 2nd field. If I switch the first field mode to 'options', the drop down menu comes empty. Actually the values are in there, but just not displayed... very strange. In case the problem is there, here under the related layer of my mapfile: LAYER NAME Address_table TYPE POINT DATA geom from Address_table using unique idaddress using srid=21781 CONNECTIONTYPE postgis CONNECTION user=user password=pass dbname=db host=localhost port=5432 METADATA DESCRIPTION Addresses RESULT_FIELDS idaddress, Address_table, Number_field RESULT_HEADERS ID, Street, Nb ows_title addresses END TEMPLATE void CLASS STYLE SYMBOL circle COLOR 255 0 125 MINSIZE 1 SIZE 6 MAXSIZE 10 END END END Do you see anything wrong/missing? On Wed, Mar 27, 2013 at 2:55 PM, Thomas RAFFIN traf...@sirap.fr wrote: I think you have to define the SQL query for suggest option with depend field val. Here is an example for the 2d field that depend on field1 field type=s name=field2 description=Field 2 wildcard=0 size=15 definition type=suggest connectiontype=db startleft=1 sort=asc minlength=4 dependfld=field1 dsn encoding=UTF-8@/dsn sqlSELECT DISTINCT field2 FROM schema.table WHERE field1 = '[dependfldval]' AND field2 ~* '[search]' ORDER BY field2/sql events/events /definition /field NB: it is possible to use many depend fields, but if it doesn't works already, maybe I've forgotten to commit something... field type=s name=field1 description=Field 1 wildcard=0 size=15 eventsonchange=$('#pmsfld_field2').val('');$('#pmsfld_field2').flushCache();/events /field field type=s name=field2 description=Field 2 wildcard=0 size=15 definition type=suggest connectiontype=db startleft=1 sort=asc minlength=4 dependfld=field1 dsn encoding=UTF-8@/dsn sqlSELECT DISTINCT field2 FROM schema.table WHERE field1 = '[dependfldval]' AND field2
[pmapper-users] search.xml with 2 fields
Hi all, I am having a hard time getting to work a search with 2 fields, second one being dependant of the first one. I especially would like to do that with data coming from PGSQL . I know there are examples in the search.xml of the wiki, but I am not able to reproduce them with the demo data: - Cities Options Suggest MS: P.MAPPER ERROR: This version of PHP does support dBase functions - Communes Suggest PG: I can not find where to download the PGSQL database gisdb Does anyone have a link where to get gisdb database? Here under what I tried with my own shapefile data. This sort of work, but the second field is not filtered according to what has been chosen on the first field. searchitem name=Test description=Test -Options Suggest MS- layer type=shape name=building _shp field type=s name=TYPE description=Building Type wildcard=2 definition type=options connectiontype=ms sort=asc firstoption=* mslayer encoding=ISO-8859-1 keyfield=TYPE showfield=TYPE/ eventsonchange=$('#pmsfld_NUMBER').val('').flushCache()/events /definition /field field type=s name=NUMBER description=Building Number wildcard=2 definition type=suggest connectiontype=ms minlength=1 startleft=1 sort=asc dependfld=TYPE mslayer encoding=ISO-8859-1 keyfield=NUMBER showfield=NUMBER/ /definition /field /layer /searchitem Regards, Chris -- Own the Future-Intelreg; Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Searchitem Postgis problem
Hi Marcos, You can trust Sourceforge, the version you are using is the right one 4.3.0. I guess it's just an omission in defaults.xml. I just tried it on my p.mapper 4.3 project (with PostGIS2). At first I got the same error: PHP Fatal error: require_once(): Failed opening required 'MDB2.php' Then, as said in the manual http://svn.pmapper.net/trac/wiki/DocManual(additional PHP settings), I had to install the PEAR, the MDB2 package and the pgsql driver. (Had a PHP Deprecated error, which the latest MDB2 beta MDB2-2.5.0b5 solved). That was kind of straight forward to install that on Linux, hope it will be the same for Windows. Cheers, Chris On Fri, Mar 22, 2013 at 7:35 PM, Marcos Bastos marcosnbas...@yahoo.com.brwrote: Hi, Chris. I downloaded the file pmapper-4.3.0-ms4w.zip at address http://sourceforge.net/projects/pmapper/files/p.mapper 204/4.3.0% / (I wrote the wrong link in the previous email) . I made adjustments to the application to this version (4.3) but the problem persists (as attached image). I thought it strange that the Windows version, both in package pmapper- 4.3.0-ms4w.zip as in pmapper-4.3.0.zip, the file pmapper-4.3.0.zip \ pmapper-4.3.0 \ config \ common \ . _startup_ \. DEFAULTS.XML has the tags: - pmapper pmTitle p.mapper 4.2 - A MapServer PHP / MapScript Framework / pmTitle version 4.2 / version Does the windows version was not made the upgrade? Hug! Marcos *De:* Chris forum bak.fo...@gmail.com *Para:* Marcos Bastos marcosnbas...@yahoo.com.br *Enviadas:* Sexta-feira, 22 de Março de 2013 10:07 *Assunto:* Re: [pmapper-users] Searchitem Postgis problem Hi 4.2 doesn't have the Postgis2 modifications from what I know. I got 4.3 from there: http://sourceforge.net/projects/pmapper/files/p.mapper%204/4.3.0/ I am on Linux, but I see a 4.3.0-msw4.zip that should be good for you. Don't forget to add the pmapper users list in your following messages, so that everyone knows if it works better with 4.3 or not. ;-) Good luck! Chris On Fri, Mar 22, 2013 at 1:51 PM, Marcos Bastos marcosnbas...@yahoo.com.br wrote: Hi! I downloaded version 4.3 of http://br-mg6.mail.yahoo.com/neo/%204http://br-mg6.mail.yahoo.com/neo/http://br-mg6.mail.yahoo.com/neo/ % http://br-mg6.mail.yahoo.com/neo/204http://br-mg6.mail.yahoo.com/neo// But the version that is installed that package is version 4.2!! (The problem persists with this version 4.3- 4.2 ) From where you downloaded the version 4.3? Here image attached to the application running locally. thank you Marcos - Mensagem encaminhada - *De:* Marcos Bastos marcosnbas...@yahoo.com.br *Para:* Chris forum bak.fo...@gmail.com *Enviadas:* Quinta-feira, 21 de Março de 2013 13:34 *Assunto:* Re: [pmapper-users] Searchitem Postgis problem I think it is version 4.0 of pmapper. I'll try to install version 4.3. Thank you! Marcos *De:* Chris forum bak.fo...@gmail.com *Para:* Marcos Bastos marcosnbas...@yahoo.com.br *Cc:* pmapper-users@lists.sourceforge.net pmapper-users@lists.sourceforge.net *Enviadas:* Quinta-feira, 21 de Março de 2013 11:45 *Assunto:* Re: [pmapper-users] Searchitem Postgis problem Hi Marcos, In his reply to Suman (March 3), Armin says: ... *old code in query/squery.php using deprecated Postgis functions. This was working with Postgis up to version 1.5.x, but not any more with v2.x where the deprecated functions have been removed. p.mapper 4.3 should have this fixed thanks to Thomas Raffin.* Maybe that is also applying to your problem as you are also using PostGIS 2. What p.mapper version are you using? Otherwise, I would have a look at what the error shows: Failed opening required 'MDB2.php' Regards, Chris On Thu, Mar 21, 2013 at 1:58 PM, Marcos Bastos marcosnbas...@yahoo.com.brwrote: Hi! We have two applications running on pmapper using shape files and the information we are migrating to PostgreSQL / PostGIS. I'm encountering problems in searchitem list showing the following error in mesage in the list of values: b Warning / b: Suggest :: require_once (MDB2.php) [a href='suggest.require-once' suggest.require-once / a]: failed to open stream: No such file b or directory in C: \ ms4w \ apps \ pmapper \ registry \ incphp \ query \ suggest.php / b on line b 129 / b br / b Fatal error / b: Suggest :: require_once () [function.require a href='function.require' / a]: Failed opening required 'MDB2.php' (include_path = '.; \ ms4w \ Apache \ php \ PEAR ') in b C: \ ms4w \ apps \ pmapper \ registry \ incphp \ query \ suggest.php / b on line b 129 / b br / I ask help for this problem, please. Thank you. I'm accessing PostgreSQL 9.2 / PostGIS 2.0 which is installed on another machine. Under the file config_default.xml with searchitem and layer file pmapper_demo.map: . . . allGroups groupquadras/group groupperimetro_urbano/group grouppatrimonio_josiane/group grouppatrimonio
[pmapper-users] auto-identify tool
Hello all, pmapper 4.3 (Plainlayout4 / swap legend tab) mapserver 6.2 php 5.3.3-7 Debian server Is the 'Auto-Identify' tool with autoIdentifyFollowMouse at true working out of the box for you? For me, the pop up window shows up when I point the mouse to a few objects, sometimes 5-6, sometimes only 1, and then no more info window appears. With the help of Firebug, I can see that the POST requests are still done, so the problem should be only about the display of the pop up info window. The tool works fine with autoIdentifyFollowMouse at false. I have pasted the *showIQueryResults* function from pm.query.js to custom.js, in order to be able to debug it. I have found 2 commented lines in that function: //alert(iQL.height()); //iQL.css({height:0}); With the first one, I can see that the iQL.height is increasing with every new alert. Don't know if it is a normal behaviour or not... The second one let me know that with a fixed height, the problem disappear. For me, the following trick which consists in adding iQL.css({height:100}); //any value higher than height needed before iQL.html(IQueryResult).showv().show(); solves the problem. And even with this height fixed value, the container adapts its height depending on the infos to show. Regards, Chris -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] Print dialog window
Hello all, I would like the print advanced options (paper size, orientation ,title, ...) displayed by default when one hit the 'print' link. I have tried to add the following into the custom.js file of my project: $.extend(PM.Pmapper, { openPrint: function() { this.createDnRDlg(this.printDlgOptions, _p('Print Settings'), 'printdlg.phtml?'+SID); $('#pmDlgContainer div.printdlg_advanced').show(); var height = ($.browser.msie (parseInt($.browser.version) = 7.0)) ? $('#printdlg').height() : $('#printdlg').innerHeight(); $('#pmDlgContainer').height(parseInt(height) + 60); this.adaptDWin($('#pmDlgContainer')); } }); Not working so far... Do you see what I am missing? Thx! Chris -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Print dialog window
You're the man! : ) To resume: 1) In custom.css, add .printdlg div.printdlg_advanced { display: block; } 2) in custom.js, add PM.Dlg.printDlgOptions.width = 380; PM.Dlg.printDlgOptions.height= 400; Thank you very much! Chris On Thu, Mar 21, 2013 at 3:07 PM, Thomas RAFFIN traf...@sirap.fr wrote: And to solve your problem, you can specify the printdlg size (in config/common/custom.js for instance): PM.Dlg.printDlgOptions.width = 380; PM.Dlg.printDlgOptions.height= 400; Le 21/03/2013 15:02, Thomas RAFFIN a écrit : Well I think your code didn't work because it modify CSS before elements are inserted, no? Le 21/03/2013 14:55, Chris forum a écrit : Hi Thomas, Thx, your suggestion works, advanced options are now displayed. But the dialog window is not resized accordingly. Actually, after many tries, I realized that what I have added in custom.js is not read! Avanced options are displayed only because of the css display:block Is it right to start with: $.extend(*PM.Pmapper*, Do you notice something else wrong in my custom.js add? Chris On Thu, Mar 21, 2013 at 11:47 AM, Thomas RAFFIN traf...@sirap.fr mailto:traf...@sirap.fr wrote: Hi, I think you should try to add this in your config/common/custom.css : .printdlg div.printdlg_advanced { display: block; } Thomas Le 21/03/2013 10:58, Chris forum a écrit : Hello all, I would like the print advanced options (paper size, orientation ,title, ...) displayed by default when one hit the 'print' link. I have tried to add the following into the custom.js file of my project: $.extend(PM.Pmapper, { openPrint: function() { this.createDnRDlg(this.printDlgOptions, _p('Print Settings'), 'printdlg.phtml?'+SID); $('#pmDlgContainer div.printdlg_advanced').show(); var height = ($.browser.msie (parseInt($.browser.version) = 7.0)) ? $('#printdlg').height() : $('#printdlg').innerHeight(); $('#pmDlgContainer').height(parseInt(height) + 60); this.adaptDWin($('#pmDlgContainer')); } }); Not working so far... Do you see what I am missing? Thx! Chris -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net mailto: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 mailto: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 -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net mailto: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 -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Searchitem Postgis problem
Hi Marcos, In his reply to Suman (March 3), Armin says: ... *old code in query/squery.php using deprecated Postgis functions. This was working with Postgis up to version 1.5.x, but not any more with v2.x where the deprecated functions have been removed. p.mapper 4.3 should have this fixed thanks to Thomas Raffin.* Maybe that is also applying to your problem as you are also using PostGIS 2. What p.mapper version are you using? Otherwise, I would have a look at what the error shows: Failed opening required 'MDB2.php' Regards, Chris On Thu, Mar 21, 2013 at 1:58 PM, Marcos Bastos marcosnbas...@yahoo.com.brwrote: Hi! We have two applications running on pmapper using shape files and the information we are migrating to PostgreSQL / PostGIS. I'm encountering problems in searchitem list showing the following error in mesage in the list of values: b Warning / b: Suggest :: require_once (MDB2.php) [a href='suggest.require-once' suggest.require-once / a]: failed to open stream: No such file b or directory in C: \ ms4w \ apps \ pmapper \ registry \ incphp \ query \ suggest.php / b on line b 129 / b br / b Fatal error / b: Suggest :: require_once () [function.require a href='function.require' / a]: Failed opening required 'MDB2.php' (include_path = '.; \ ms4w \ Apache \ php \ PEAR ') in b C: \ ms4w \ apps \ pmapper \ registry \ incphp \ query \ suggest.php / b on line b 129 / b br / I ask help for this problem, please. Thank you. I'm accessing PostgreSQL 9.2 / PostGIS 2.0 which is installed on another machine. Under the file config_default.xml with searchitem and layer file pmapper_demo.map: . . . allGroups groupquadras/group groupperimetro_urbano/group grouppatrimonio_josiane/group grouppatrimonio/group grouplotes_anotacoes/group grouplotes/group grouplimite_municipal/group grouphidrografia_regiao/group grouphidrografia_polilinha/group grouprestricoesaeroportuarias/group /allGroups . . . searchitem name=lotes description=codigo_cartografico layer type=postgis name=lotes field type=s name=codigo_cartografico description=codigo_cartografico wildcard=2 definition type=suggest connectiontype=db minlength=8 startleft=1 sort=asc dsn encoding=UTF-8pgsql:// postgres:postgres@172.17.25.32:5432/gis_municipal/dsn sqlSELECT codigo_cartografico FROM cadastro.lotes/sql /definition /field /layer /searchitem -- LAYER NAME 'lotes' TYPE POLYGON METADATA DESCRIPTION Lotes RESULT_HEADERS Codigo Cartografico, Qt,Quadra, Lote, Logradouro, numero,frente, fundo, direita, esquerda, OBS RESULT_FIELDS codigo_cartografico, quarteirao_prop,quadra_prop, lote_prop, nome_logradouro, numero_logradouro, detalhe_frente, detalhe_fundo, detalhe_direita,detalhe_esquerda, observacao END CONNECTIONTYPE postgis CONNECTION dbname=gis_municipal host=172.17.36.67 port=5432 user=postgres password=postgres DATA the_geom from (SELECT a.*, b.* FROM cadastro.lotes a, cfta_ficha_prop b WHERE (select distinct a.codigo_cartografico) = b.cod_cartografico) as subquery USING UNIQUE gid USING srid=31983 #DATA the_geom FROM cadastro.lotes USING UNIQUE gid USING srid=31983 STATUS OFF TRANSPARENCY 80 CLASS NAME 'lotes' TEMPLATE void STYLE WIDTH 1 OUTLINECOLOR 0 0 0 COLOR 88 128 122 END END END Below is the configuration of the installation in Win 7 Pro: MapServer for Windows (MS4W) The following are included in the base package: - Apache version 2.2.10 - PHP version 5.2.6 - MapServer 5.2.1 CGI and MapScript (CSharp, Java, PHP, Python) - support GD 2.0.35, FreeType 2.1.10, GDAL/OGR 1.6.0RC2, PROJ, WMS/WFS, Flash, PDF, ECW3.1, PostGIS, GEOS, libcurl 7.15.1, FastCGI, AGG 2.4 - mapserver utilities - gdal/ogr utilities - proj.4 utilities - shp2tile utility - shapelib utilities - shpdiff utility - avce00 utilities - PHP_OGR Extension 1.1.1 - OWTChart 1.2.0 - DEMtools utilities MapServer Version Information - :: MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE MapServer Build Environment --- Compiled using Howard Butler's `MapServer buildkit`_ .. _`MapServer buildkit`: http://www.gatewaygeomatics.com/dl/buildkit/ Library Versions Used to build this version of MapServer:
Re: [pmapper-users] Northarrow for printing / downloading
Hi guys, Do the following in order to have a north arrow on your PDF print: 1) /common/print.xml Add the following line into the pdf tag north_arrow./images/logos/northarrow.png/north_arrow 2) /incphp/print/pdfprint.php Add the following lines into the printPDF function, likely at the end //North Arrow on map $northArrow = $this-pdfSettings['north_arrow']; $imsize = getimagesize($northArrow); list($pixw, $pixh) = $imsize; $nortArrowWidth = $pixw * $redFactor2; $nortArrowHeight = $pixh * $redFactor2; $this-Image($northArrow, $this-xmaxM-$nortArrowWidth-10, $this-topLineY+10, 0, $nortArrowHeight); If you want a bigger arrow, replace $redFactor2 with $redFactor. Cheers, Chris On Tue, Jan 22, 2013 at 5:20 PM, Serge Claudio Rafanoharana rafanohar...@gmail.com wrote: Dear Chris, Thanks, I'll give it a try. Cheers, Serge On Tue, Jan 22, 2013 at 9:33 PM, Chris forum bak.fo...@gmail.com wrote: Hi Serge, Thomas, As I don't really like having a north arrow on my map, I have added the north arrow for the printing only. So far it only works for the HTML printing, I am working on the PDF print now and will let you know when (if) I get it to work. In /config/common/print.xml, inside the print_map_image DIV, add: div id=print_north_arrowimg src=images/logos/northarrow.png alt=north_arrow style=position:absolute; right:10px; top:10px//div Chris On Tue, Jan 22, 2013 at 3:21 PM, Serge Claudio Rafanoharana rafanohar...@gmail.com wrote: Dear Thomas, Changing the STATUS to ON and adding the layer in config resolved the problem. Meaning that I have to check/uncheck to enable/disable it. I don't know what's wrong with the STATUS DEFAULT. Both gif and png work fine. Other symbols (circle...) work fine as well. I think I will make this layer always ON (checked) and users would not be able to check or uncheck it. I think it is possible but I need to figure it out (I forget). Thank you, Cheers, Serge On Tue, Jan 22, 2013 at 8:54 PM, Thomas RAFFIN traf...@sirap.fr wrote: Yes, try with SYMBOL 'circle' Le 22/01/2013 14:43, Serge Claudio Rafanoharana a écrit : Dear Thomas, What do you mean with other symbol? Do you mean change the STYLE SYMBOL 'northarrow' to something like STYLE SYMBOL 'circle' ? I tried with gif but it is the same, nothing. Yes, it is the last layer declared in the map file. I have no problem with other layers. PS: no php error. Cheers, Serge On Tue, Jan 22, 2013 at 7:54 PM, Thomas RAFFIN traf...@sirap.fr mailto:traf...@sirap.fr wrote: Else the other objects will be drawn -- Serge -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Serge -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Serge -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Northarrow for printing / downloading
Just noticed the arrow was inside the legend area when the latter is at the right position: //North Arrow on map $northArrow = $this-pdfSettings['north_arrow']; $imsize = getimagesize($northArrow); list($pixw, $pixh) = $imsize; $northArrowWidth = $pixw * $redFactor2; $northArrowHeight = $pixh * $redFactor2; //move arrow to the left if the legend is at the right position $legendPos = $this-pdfSettings['legendposition']; if ($legendPos == R) { $this-Image($northArrow, $this-xLegStart-$northArrowWidth-10, $this-topLineY+10, 0, $northArrowHeight); } else { $this-Image($northArrow, $this-xmaxM-$northArrowWidth-10, $this-topLineY+10, 0, $northArrowHeight); } **beware of the missing 'h' in my last message: $nortArrowWidth and $nortArrowHeight On Thu, Mar 14, 2013 at 3:55 PM, Chris forum bak.fo...@gmail.com wrote: Hi guys, Do the following in order to have a north arrow on your PDF print: 1) /common/print.xml Add the following line into the pdf tag north_arrow./images/logos/northarrow.png/north_arrow 2) /incphp/print/pdfprint.php Add the following lines into the printPDF function, likely at the end //North Arrow on map $northArrow = $this-pdfSettings['north_arrow']; $imsize = getimagesize($northArrow); list($pixw, $pixh) = $imsize; $nortArrowWidth = $pixw * $redFactor2; $nortArrowHeight = $pixh * $redFactor2; $this-Image($northArrow, $this-xmaxM-$nortArrowWidth-10, $this-topLineY+10, 0, $nortArrowHeight); If you want a bigger arrow, replace $redFactor2 with $redFactor. Cheers, Chris On Tue, Jan 22, 2013 at 5:20 PM, Serge Claudio Rafanoharana rafanohar...@gmail.com wrote: Dear Chris, Thanks, I'll give it a try. Cheers, Serge On Tue, Jan 22, 2013 at 9:33 PM, Chris forum bak.fo...@gmail.com wrote: Hi Serge, Thomas, As I don't really like having a north arrow on my map, I have added the north arrow for the printing only. So far it only works for the HTML printing, I am working on the PDF print now and will let you know when (if) I get it to work. In /config/common/print.xml, inside the print_map_image DIV, add: div id=print_north_arrowimg src=images/logos/northarrow.png alt=north_arrow style=position:absolute; right:10px; top:10px//div Chris On Tue, Jan 22, 2013 at 3:21 PM, Serge Claudio Rafanoharana rafanohar...@gmail.com wrote: Dear Thomas, Changing the STATUS to ON and adding the layer in config resolved the problem. Meaning that I have to check/uncheck to enable/disable it. I don't know what's wrong with the STATUS DEFAULT. Both gif and png work fine. Other symbols (circle...) work fine as well. I think I will make this layer always ON (checked) and users would not be able to check or uncheck it. I think it is possible but I need to figure it out (I forget). Thank you, Cheers, Serge On Tue, Jan 22, 2013 at 8:54 PM, Thomas RAFFIN traf...@sirap.fr wrote: Yes, try with SYMBOL 'circle' Le 22/01/2013 14:43, Serge Claudio Rafanoharana a écrit : Dear Thomas, What do you mean with other symbol? Do you mean change the STYLE SYMBOL 'northarrow' to something like STYLE SYMBOL 'circle' ? I tried with gif but it is the same, nothing. Yes, it is the last layer declared in the map file. I have no problem with other layers. PS: no php error. Cheers, Serge On Tue, Jan 22, 2013 at 7:54 PM, Thomas RAFFIN traf...@sirap.fr mailto:traf...@sirap.fr wrote: Else the other objects will be drawn -- Serge -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Serge -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Serge -- Everyone hates slow websites. So do we. Make your web apps
Re: [pmapper-users] General questions
Hi Armin, Thx a lot for your precious help once again! I will follow you suggestions, feedback asap. Some precisions: 2) Here is my class of a polygon layer: CLASS STYLE COLOR [COLOR_RGB] END END Each polygon has its color defined in the 'color_rgb' attribute of the shapefile. My goal would be to have a legend for every colored polygon. I guess it is not feasable as the legend will need a different NAME for each color, which is impossible that way. 6) I have a 'Warning' layer that I want to be displayed if 'MyLayer1' or if 'MyLayer2' are selected. Actually it would be an opposite behaviour of the mutualDisableList option, and would avoid duplicating the 'Warning' layer. In the 'Warning layer, I tried to specify 2 groups: GROUP MyGroup1 GROUP MyGroup2 But only the second one is taken into account. If you have any idea... Cheers, Chris On Thu, Feb 28, 2013 at 11:32 PM, Armin Burger armin.bur...@gmail.comwrote: On 02/28/2013 03:59 PM, Chris forum wrote: Hi all, pmapper 4.3 (Plainlayout4 / swap legend tab) mapserver 6.2 php 5.3.3-7 Debian server Bunch of general questions about p.mapper 4.3: 1) Is there a way to sort the legend entries automatically according to the class names? you need to modify some PHP code for this in legend.php. You will have to sort the $classList array/dictionary by the name or description before writeClasses is called. I guess some debug output is required to understand the array structure. 2) When using COLOR [attribute], is it possible to populate the legend with the different attribute values? I don't understand the question 3) What are the resetsession parameters available? I know 'ALL' and 'GROUPS' so far. all session parameters can be reset, check the PHP session variables, there is a tool at http://svn.pmapper.net/trac/browser/trunk/utils/readsession.php that produces a better readable output 4) After a research or when using the Select tool, an object is highlighted on the map. How can we unselect it? the map reload button does this. It can be any tool that calls the function PM.Map.clearInfo() 5) Where is specified the tool to be selected by default at startup? PM.Map.domouseclick('zoomin'); PM.setTbTDButton('zoomin'); must be called with the desired tool after startup (maybe the first of them is not needed though) 6) Can a layer belongs to more than 1 group? just try and see if it does what you expect... 7) Is there a way to show the attribute value in the hyperlink of a result table. For instance: RESULT_HYPERLINK *AttributeValue*||link to attribute *AttributeValue* you could try to modify the Javascript template for the query, but that's a bit difficult to understand I fear if you don't know JS code well... 8) How can I set the zoom at startup to be fixed at 100'000, independantly of the map window size? So that when using the mouse scroll to zoom in, zoom levels are plain numbers (fractions of 100'000) and not something like 51'900, 25'950,… you need to call the function PM.Map.zoom2scale(scale) after startup. Could be put in a plugin as well. Regards, Chris -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] svn.pmapper.net not working
Looks like an /etc/init.d/apache2 start is needed again! ; ) On Thu, Feb 14, 2013 at 8:36 AM, Chris forum bak.fo...@gmail.com wrote: Great! Thx Armin On Wed, Feb 13, 2013 at 8:36 PM, Armin Burger armin.bur...@gmail.comwrote: On 02/13/2013 11:44 AM, Chris forum wrote: Hi all, Is it me or http://svn.pmapper.net/ is down? oops, apache did not start after a system reboot, now it works. thanks armin -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] General questions
Hi all, pmapper 4.3 (Plainlayout4 / swap legend tab) mapserver 6.2 php 5.3.3-7 Debian server Bunch of general questions about p.mapper 4.3: 1) Is there a way to sort the legend entries automatically according to the class names? 2) When using COLOR [attribute], is it possible to populate the legend with the different attribute values? 3) What are the resetsession parameters available? I know 'ALL' and 'GROUPS' so far. 4) After a research or when using the Select tool, an object is highlighted on the map. How can we unselect it? 5) Where is specified the tool to be selected by default at startup? 6) Can a layer belongs to more than 1 group? 7) Is there a way to show the attribute value in the hyperlink of a result table. For instance: RESULT_HYPERLINK *AttributeValue*||link to attribute *AttributeValue* 8) How can I set the zoom at startup to be fixed at 100'000, independantly of the map window size? So that when using the mouse scroll to zoom in, zoom levels are plain numbers (fractions of 100'000) and not something like 51'900, 25'950,… Regards, Chris -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Legend - Segmentation fault
Thanx a lot for the explanation. legendDynamicUpdate0/legendDynamicUpdate which is anyway the default, so you probably have set this to 1. I guess it works only with Mapserver 6.+. Good guess! Indeed, if it set it back to 0 the segfault doesn't show up anymore! : ) I had noticed some layers not being mentioned in the dynamic legend anyway, so I think I better not use it. Of course, now that makes a really big legend to scroll down. I will see how I can tune it best. Thanx again! Chris On Wed, Feb 20, 2013 at 11:38 PM, Armin Burger armin.bur...@gmail.comwrote: segfaults of Apache caused by PHP Mapscript are a bit outside the scope of p.mapper... Since the refactoring of all the PHP Mapscript code in MS 6, the amount of irregularly appearing and difficult to trace segfaults has increased dramatically. That was for me the reason to e.g. rewrite some WMS handling in PHP Mapscript again in Python Mapscript, which however doesn't help you in this case... To avoid legend updates based on visible features of the map you can deactivate it by setting legendDynamicUpdate0/legendDynamicUpdate which is anyway the default, so you probably have set this to 1. I guess it works only with Mapserver 6.+. For larger amounts of active layers with higher numbers of features displayed it should get quite slow since it needs to run all loops through layer features in PHP. Having this inside a C function called via Mapscript should be really fast (the map rendering is using the same type of checks, and it is fast), but this has never made its way to Mapserver code. Armin On 02/20/2013 11:27 AM, Chris forum wrote: Hi all, pmapper 4.3 mapserver 6.2 php 5.3.3-7 Debian server I just noticed the following Apache notice in the error log: [notice] child pid 489 exit signal Segmentation fault (11) It happens when I pan the map while the legend tab (swap as in Plainlayout4) is displayed. With each pan several notice appear with an incremental pid. I thought there was one faulty layer, but I can not point one out after several tests. Could it be that there are too many layers displayed and the legend mechanism can not cope with it? Regards, Chris -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] Legend - Segmentation fault
Hi all, pmapper 4.3 mapserver 6.2 php 5.3.3-7 Debian server I just noticed the following Apache notice in the error log: [notice] child pid 489 exit signal Segmentation fault (11) It happens when I pan the map while the legend tab (swap as in Plainlayout4) is displayed. With each pan several notice appear with an incremental pid. I thought there was one faulty layer, but I can not point one out after several tests. Could it be that there are too many layers displayed and the legend mechanism can not cope with it? Regards, Chris -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Hello!
Hi, Yllka Interesting topic! If possible, don't forget to show us your final results! Thomas Thanx, very interesting tip! Should try it asap! (On your example, beware on the UNIQUE typo ; ) With a Shapefile, using an index file (QIX) speeds up data visualisation for sure. Tiling to speed up access to WMS layers, with TileCache or the Mapserver Mapcache. Put the generated/temp files from Mapserver on a RAM disk (IMAGEPATH parameter of the mapfile). Chris On Mon, Feb 18, 2013 at 9:43 AM, Thomas RAFFIN traf...@sirap.fr wrote: Hi, I've made a hack in pmapper few years ago. This one allows you to specify 2 data sources for each layer: LAYER . DATA the_geom FROM your_heavy_view USING UNQIUE gid METADATA PM_RESULT_DATASUBSTITION the_geom FROM your_geo_table USING UNQIUE gid ... END ... END For instance your_heavy_view is a view that join a geographical table (your_geo_table) with many other tables. The attributes the_geom and gid have to be the same names and values in both table and view. The DATA value is the habitual one whereas PM_RESULT_DATASUBSTITION is used to draw / select / query graphically / etc... to speed up pmapper. Be careful : all attributes used for label, classitem, binding, etc.. have to be in the main table. It has only been tested with postgreSQL/postigs but could works with other data types. Thomas Le 16/02/2013 18:35, yllka baci a écrit : Hello Pmapper users I'm going to write a paper on techniques that speed up data visualisation on Web GIS applications. Can any one of you tell me the techniques that he (she) knows? ps: pmapper.net will be the main reference of this paper :) thank you very much for the support. -- -- The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials, tech docs, whitepapers, evaluation guides, and opinion stories. Check out the most recent posts - join the conversation now. http://goparallel.sourceforge.net/ ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials, tech docs, whitepapers, evaluation guides, and opinion stories. Check out the most recent posts - join the conversation now. http://goparallel.sourceforge.net/ ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Hello!
Put the generated/temp files from Mapserver on a RAM disk (IMAGEPATH parameter of the mapfile). Have you got doc for this point please? Here under how it is set up on my Debian server, for a 8GB directory on RAM: mkdir /data/disk_on_ram/ mount -o size=8G -t tmpfs tmpfs /data/disk_on_ram/ mkdir /data/disk_on_ram/pmapper_temp chown www-data:users /data/disk_on_ram/pmapper_temp/ Then to let Apache use it: In /etc/apache2/httpd.conf Include /etc/apache2/pmapper_tmpdir.conf In /etc/apache2/pmapper_tmpdir.conf #Alias /tmp/ /data/dataweb/tmp/ Directory /data/dataweb/tmp/ AllowOverride All Options All Order allow,deny Allow from all /Directory In /data/dataweb/tmp/ ln -s /data/disk_on_ram/pmapper_temp/ Finally in the mapfile: IMAGEPATH /data/disk_on_ram/pmapper_temp/ IMAGEURL /tmp/pmapper_temp/ For Raster data, you can use tiles (use gdaltindex) and then create the QIX file. Also with raster data, gdaladdo is very usefull as it adds pyramidal / less detailed views of the image (downsampling), in the image itself. Mapserver knows how to use them depending on the scale of the map. On Mon, Feb 18, 2013 at 10:26 AM, Thomas RAFFIN traf...@sirap.fr wrote: Le 18/02/2013 10:15, Chris forum a écrit : Hi, Yllka Interesting topic! If possible, don't forget to show us your final results! Thomas Thanx, very interesting tip! Should try it asap! (On your example, beware on the UNIQUE typo ; ) Oops! With a Shapefile, using an index file (QIX) speeds up data visualisation for sure. In this case, don't specify file extension in the DATA. Tiling to speed up access to WMS layers, with TileCache or the Mapserver Mapcache. Put the generated/temp files from Mapserver on a RAM disk (IMAGEPATH parameter of the mapfile). Have you got doc for this point please? For Raster data, you can use tiles (use gdaltindex) and then create the QIX file. Generally, be careful with mapserver on the fly re-projection. It is to avoid if you want to speed up MapServer response. Chris On Mon, Feb 18, 2013 at 9:43 AM, Thomas RAFFIN traf...@sirap.fr wrote: Hi, I've made a hack in pmapper few years ago. This one allows you to specify 2 data sources for each layer: LAYER . DATA the_geom FROM your_heavy_view USING UNQIUE gid METADATA PM_RESULT_DATASUBSTITION the_geom FROM your_geo_table USING UNQIUE gid ... END ... END For instance your_heavy_view is a view that join a geographical table (your_geo_table) with many other tables. The attributes the_geom and gid have to be the same names and values in both table and view. The DATA value is the habitual one whereas PM_RESULT_DATASUBSTITION is used to draw / select / query graphically / etc... to speed up pmapper. Be careful : all attributes used for label, classitem, binding, etc.. have to be in the main table. It has only been tested with postgreSQL/postigs but could works with other data types. Thomas Le 16/02/2013 18:35, yllka baci a écrit : Hello Pmapper users I'm going to write a paper on techniques that speed up data visualisation on Web GIS applications. Can any one of you tell me the techniques that he (she) knows? ps: pmapper.net will be the main reference of this paper :) thank you very much for the support. -- -- The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials, tech docs, whitepapers, evaluation guides, and opinion stories. Check out the most recent posts - join the conversation now. http://goparallel.sourceforge.net/ ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials, tech docs, whitepapers, evaluation guides, and opinion stories. Check out the most recent posts - join the conversation now. http://goparallel.sourceforge.net/ ___ 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
Re: [pmapper-users] problem pmapper 5 beta2
Hi Pablo, As said in the DocQuickInstall page: This directory [img/legends] must be writeable for the user that runs the web server (used for automatic update of legend icons), otherwise the application will not run. To do that in Linux, you have to set the directory 's owner to the user www-data. So that the web server has the right to modify things into this directory. I never tried to do that on Windows, but the doc says:On Windows and IIS set the directory security properties to 'Modify' for user IUSR_hostname Try to check the following logs, that will help find where the problem is: - Apache error - PHP error - Mapserver error - PM debug See you, Chris On Thu, Feb 14, 2013 at 8:42 PM, Pablo Gomez geopable...@yahoo.es wrote: Hi, I installed pmapper5 again, following your instructions but do not understand one of the steps I only had to set (recursively) the owner of img / legend to www-data. Can you explain someone this way? I added the coordinate system 900913. And I changed the path CONFIG PROJ_LIB / ms4w/proj/nad / to suit my system (MS4W package for windows) No errors in the log file. But I can not display the map. I get attached image. Can it be by the passage I only had to set (recursively) the owner of img / legend to www-data? any ideas!! Thanks for the help Pablo -- *De:* Chris forum bak.fo...@gmail.com *Para:* Pablo Gomez geopable...@yahoo.es *CC:* pmapper-users@lists.sourceforge.net pmapper-users@lists.sourceforge.net *Enviado:* Jueves 14 de febrero de 2013 8:48 *Asunto:* Re: [pmapper-users] problem pmapper 5 beta2 Hi Pablo, Follow this: http://svn.pmapper.net/trac/wiki/DocQuickinstall PHP.INI part That's what I set in my /etc/php5/apache2/php.ini (I am on Linux): error_log = /var/log/php/php_errors.log I suggest you first try to make running the demo map/ demo data, then you can start playing with you own data. See you, Chris On Wed, Feb 13, 2013 at 6:57 PM, Pablo Gomez geopable...@yahoo.es wrote: I uploaded a raster layer (. Tif) and load correctly. But still the shapefile is not visible. I just loaded raster, I have not changed anything from the previous configuration. Help please!! thanks De: Pablo Gomez geopable...@yahoo.es Para: pmapper-users@lists.sourceforge.net pmapper-users@lists.sourceforge.net Enviado: Miércoles 13 de febrero de 2013 18:32 Asunto: Re: [pmapper-users] problem pmapper 5 beta2 Thanks for the reply Suman, I've done these tests but did not solve the problem. Still see a pink box in place of my shapefile. Now I get this error [Wed February 13 18:17:36 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name. [Wed February 13 18:17:36 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name. [Wed February 13 18:17:37 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml [Wed February 13 18:17:37 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml [Wed February 13 18:17:37 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml [Wed February 13 18:17:38 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml [Wed February 13 18:17:41 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml [Wed February 13 18:17:42 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml [Wed February 13 18:17:43 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml [Wed February 13 18:17:44 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml [Wed February 13 18:17:44 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml I made more changes in my config files. Attached these files. Any more suggestions, please! thank you very much De: Suman ant_...@yahoo.com Para: pmapper-users@lists.sourceforge.net Enviado: Miércoles 13 de febrero de 2013 14:41 Asunto
Re: [pmapper-users] mapToolArea position and JS files compress tool
Hi Thomas, I am almost sure to have tried this before, probably a darn cache somewhere prevented it to work It's ok now! \o/ Thx a lot! A+ Chris On Fri, Feb 15, 2013 at 11:11 AM, Thomas RAFFIN traf...@sirap.fr wrote: Hi Chris, You should try to extend PM.Init and not PM.Custom? Thomas Le 14/02/2013 14:45, Chris forum a écrit : Hi all, I would like themapToolArea div to be displayed in the uiLayoutSouth div (class=ui-layout-south), especially for the 'measure2' and 'drawing (circle)' plugins. Now it shows up in the ui-layout-center div. I hope it won't have any bad side effects. In javascript/src/pm.init.js there is: domElements: function() { $('div').id('mapToolArea').appendTo('.ui-layout-center'); }, So I guess it is where to change the code. But the pm.init.js file is merged with other JS into the single pm_cjs.js file, as stated in the user manual, using the utils/compress_js. I am not able to find this utility. Is it still available somewhere? The manual also recommends to add any modifications into a separate JS file, like /config/.../custom.js. So I tried the following: $.extend(PM.Custom, { //pm.init.js modification domElements: function() { $('div').id('mapToolArea').appendTo('.ui-layout-south'); } }); But without success... themapToolArea div stays in the ui-layout-center. Any tips would be much appreciated! : ) regards, Chris -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ 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 -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] como encender capa de openstreetmap en pmapper 5 like turning on pmapper openstreetmap layer 5
Hi Jose, Applying the logic of pmapper 4.x, you are supposed to add the group name in the tag defGroups of the xml config file: categories category name=cat_admin imgFormat=png32 olTheme=admin buffer=0 themeType=PMTile groupcountries/group /category category name=cat_osm description=OSM group olTheme=osmmapnik *name=osmmapnik *description=OpenStreetMap themeType=OSM /group /category /categories defGroups groupcountries/group *grouposmmapnik/group* /defGroups But... it doesn't seem to work in pmapper 5 for the OSM layer. It looks like Mouanis has found how to do it on his pmapper 5 map, he reads us in copy. Cheers, Chris On Thu, Feb 14, 2013 at 12:11 PM, Jose Mercedes Venegas Acevedo jvenegasp...@gmail.com wrote: hola a todos disculpen la escritura solo hablo español mi pregunta es como encender capa de openstreetmap en pmapper 5 cuando carga el mapa esta capa esta apagada me gustaria que esta capa este encendida cuando carga el mapa hi all sorry I only speak Spanish writing my question is like turning on pmapper openstreetmap layer 5 when loading the map this layer is off I like that this layer is turned on when you load the map -- José Mercedes Venegas Acevedo cel: Mov. 949808846 mails: jvenegasp...@php.net jvenegasp...@gmail.com PHP Spanish Docs translator member. http://www.php.net/manual/es/index.php -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] mapToolArea position and JS files compress tool
Hi all, I would like themapToolArea div to be displayed in the uiLayoutSouth div (class=ui-layout-south), especially for the 'measure2' and 'drawing (circle)' plugins. Now it shows up in the ui-layout-center div. I hope it won't have any bad side effects. In javascript/src/pm.init.js there is: domElements: function() { $('div').id('mapToolArea').appendTo('.ui-layout-center'); }, So I guess it is where to change the code. But the pm.init.js file is merged with other JS into the single pm_cjs.js file, as stated in the user manual, using the utils/compress_js. I am not able to find this utility. Is it still available somewhere? The manual also recommends to add any modifications into a separate JS file, like /config/.../custom.js. So I tried the following: $.extend(PM.Custom, { //pm.init.js modification domElements: function() { $('div').id('mapToolArea').appendTo('.ui-layout-south'); } }); But without success... themapToolArea div stays in the ui-layout-center. Any tips would be much appreciated! : ) regards, Chris -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Error Pmapper 5
Here is what I have in my epsg file for projection 4326http://spatialreference.org/ref/epsg/4326/proj4/ : 4326 +proj=longlat *+ellps=WGS84* +datum=WGS84 +no_defs For the legend, can't tell why is it pointing to the wrong directory. You could do a grep of $legPath to see where/how it is configured. It should work with www-data:rafael but I am used to set www-data:users or www-data:www-data To be safe, do it for both images and img directories. Still don't know why you have 'PHP Notice: Undefined variable: plugin_cssFileList' but it's only a notice, a low level error that should not be a problem for the page to load. Hopefully the mapfile error will disappear along with the projection error. Good luck, Chris On Tue, Feb 12, 2013 at 5:57 PM, Rafael Dantas raffaeldan...@gmail.comwrote: Hi Chris, tanks for the reply! Read my answers below: 2013/2/12 Chris forum bak.fo...@gmail.com Hi Rafael, Some infos below. Cheers, Chris On Tue, Feb 12, 2013 at 3:26 AM, Rafael Dantas raffaeldan...@gmail.comwrote: sorry, I'm using Ubuntu 12.10... grateful 2013/2/12 Rafael Dantas raffaeldan...@gmail.com Hello all, sorry my english. I'm trying to install pmapper5 unsuccessfully. He just does not load anything and gives the following error message in the browser: Erro HTTP {500 (Internal Server Error) Also got the following error messages from Apache: [Tue Feb 12 00:13:00 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico Try to add a favicon into /var/www/ : any16x16px .ico file I did this: sudo cp -a /var/www/pmapper-5.0-beta2/img/favicon.ico /var/www/ resolved [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Notice: Undefined variable: plugin_cssFileList in /var/www/pmapper-5.0-beta2/config/__startup_config.php on line 467, referer: http://localhost/pmapper-5.0-beta2/ ??? [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Warning: ms_newMapObj(): [MapServer Error]: msProcessProjection(): proj error quot;no system list, errno: 2\nquot; for quot;init=epsg:4326quot;\n in /var/www/pmapper-5.0-beta2/lib/globals.php on line 66, referer: http://localhost/pmapper-5.0-beta2/ Check in /usr/local/share/proj/ or /usr/share/proj/ if the projection 4326 is defined into the file 'epsg' Checked. In the espg file, line line 487/498 is the information: # WGS 84 4326 +proj=longlat +datum=WGS84 +no_defs [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Warning: ms_newMapObj(): [MapServer Error]: msSaveImage(): Failed to create output file (/var/www/pmapper/images/legend/countries_i0.png).\n in /var/www/pmapper-5.0-beta2/lib/globals.php on line 66, referer: http://localhost/pmapper-5.0-beta2/ Do a 'chown -r www-data:users' to the directoy legend, Apache needs the right to write there. However it looks strange to me, as in my pmapper-5.0-beta2 installation, the parent directory of the legend one is called 'img' and not 'images' like your log is saying. 'images ' was used in pmapper 4.x though. There is something rotten in the kingdom of Denmark: rafael@rafael-note:/var/www/pmapper-5.0-beta2$ ls -la total 76 drwxrwxr-x 9 rafael rafael 4096 Fev 11 23:57 . drwxr-xr-x 12 root root 4096 Fev 12 14:38 .. drwxrwxr-x 6 rafael rafael 4096 Fev 12 01:46 config drwxrwxr-x 6 rafael rafael 4096 Fev 11 23:29 css -rwxrwxr-x 1 rafael rafael 2364 Fev 11 23:29 downloaddlg.phtml -rwxrwxr-x 1 rafael rafael 3135 Fev 11 23:29 download.phtml -rwxrwxr-x 1 rafael rafael 615 Fev 11 23:29 help.phtml *drwxrwxr-x 8 rafael rafael 4096 Fev 11 23:29 img* -rwxrwxr-x 1 rafael rafael 5765 Fev 11 23:29 index.phtml drwxrwxr-x 5 rafael rafael 4096 Fev 11 23:29 js drwxrwxr-x 10 rafael rafael 4096 Fev 12 01:59 lib -rwxrwxr-x 1 rafael rafael 8846 Fev 11 23:29 license.txt drwxrwxr-x 7 rafael rafael 4096 Fev 11 23:29 plugins -rwxrwxr-x 1 rafael rafael 2320 Fev 11 23:29 printdlg.phtml -rwxrwxr-x 1 rafael rafael 3713 Fev 11 23:29 printmap.phtml drwxrwxr-x 2 rafael rafael 4096 Fev 11 23:29 test rafael@rafael-note:/var/www/pmapper-5.0-beta2$ ls -la /var/www/pmapper/ total 120 drwxrwxr-x 8 rafael rafael 4096 Nov 23 22:10 . drwxr-xr-x 12 root root4096 Fev 12 14:38 .. drwxrwxr-x 5 rafael rafael 4096 Nov 23 22:10 config -rwxrwxr-x 1 rafael rafael 17987 Jan 14 2009 COPYING -rwxrwxr-x 1 rafael rafael 2080 Out 6 2010 debian.html -rwxrwxr-x 1 rafael rafael 2373 Fev 7 2011 downloaddlg.phtml -rwxrwxr-x 1 rafael rafael 3141 Set 28 12:22 download.phtml -rwxrwxr-x 1 rafael rafael 624 Set 18 2010 help.phtml -rwxrwxr-x 1 rafael rafael 110 Set 28 12:58 .htaccess *drwxrwxr-x 9 rafael rafael 4096 Nov 23 22:10 images* drwxrwxr-x 10 rafael rafael 4096 Nov 23 22:10 incphp -rwxrwxr-x 1 rafael rafael 358 Fev 28 2010 index.phtml drwxrwxr-x 4 rafael rafael 4096 Nov 23 22:10 javascript -rwxrwxr-x 1 rafael rafael 15309 Set 4 2010
Re: [pmapper-users] Error Pmapper 5
Hi Rafael, Check in your mapfile (pmapper_demo.map) if the location of the epsg file is correct: CONFIG PROJ_LIB /usr/share/proj/ I remember now that I had to change it, before it was: CONFIG PROJ_LIB /usr/*local*/share/proj/ Everything else should be ok from what I see. Please keep sending your messages to the pmapper list, there are better pmapper users than me out there! ; ) For your info, I always keep an eye on the following logs: - Apache error - PHP error - Mapserver error - PM debug Cheers, Chris On Wed, Feb 13, 2013 at 2:22 PM, Rafael Dantas raffaeldan...@gmail.comwrote: Hi Chris, thanks for you reply! 2013/2/13 Chris forum bak.fo...@gmail.com Here is what I have in my epsg file for projection 4326http://spatialreference.org/ref/epsg/4326/proj4/ : 4326 +proj=longlat *+ellps=WGS84* +datum=WGS84 +no_defs Edited file: # WGS 84 4326 +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs For the legend, can't tell why is it pointing to the wrong directory. You could do a grep of $legPath to see where/how it is configured. It should work with www-data:rafael but I am used to set www-data:users or www-data:www-data To be safe, do it for both images and img directories. Executed: $sudo chown www-data:www-data img -R drwxrwxr-x 8 www-data www-data 4096 Fev 11 23:29 img ok? Still don't know why you have 'PHP Notice: Undefined variable: plugin_cssFileList' but it's only a notice, a low level error that should not be a problem for the page to load. Hopefully the mapfile error will disappear along with the projection error. :( log: [Wed Feb 13 11:20:27 2013] [error] [client 127.0.0.1] PHP Notice: Undefined variable: plugin_cssFileList in /var/www/pmapper-5.0-beta2/config/__startup_config.php on line 467 [Wed Feb 13 11:20:27 2013] [error] [client 127.0.0.1] PHP Warning: ms_newMapObj(): [MapServer Error]: msProcessProjection(): proj error quot;no system list, errno: 2\nquot; for quot;init=epsg:4326quot;\n in /var/www/pmapper-5.0-beta2/lib/globals.php on line 66 [Wed Feb 13 11:20:27 2013] [error] [client 127.0.0.1] PHP Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file /var/www/pmapper-5.0-beta2/config/default/pmapper_demo.map, or map file error.' in /var/www/pmapper-5.0-beta2/lib/globals.php:66\nStack trace:\n#0 /var/www/pmapper-5.0-beta2/lib/globals.php(66): ms_newMapObj('/var/www/pmappe...')\n#1 /var/www/pmapper-5.0-beta2/index.phtml(17): require_once('/var/www/pmappe...')\n#2 {main}\n thrown in /var/www/pmapper-5.0-beta2/lib/globals.php on line 66 -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Error Pmapper 5
Heh, looks like telepathy! ; ) Well Done! On Wed, Feb 13, 2013 at 2:51 PM, Rafael Dantas raffaeldan...@gmail.comwrote: Hi Chris: my map file shows this: CONFIG PROJ_LIB /usr/local/share/proj/ but the correct folder is: /usr/share/proj/ grateful -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] svn.pmapper.net not working
Great! Thx Armin On Wed, Feb 13, 2013 at 8:36 PM, Armin Burger armin.bur...@gmail.comwrote: On 02/13/2013 11:44 AM, Chris forum wrote: Hi all, Is it me or http://svn.pmapper.net/ is down? oops, apache did not start after a system reboot, now it works. thanks armin -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] problem pmapper 5 beta2
Hi Pablo, Follow this: http://svn.pmapper.net/trac/wiki/DocQuickinstall PHP.INI part That's what I set in my /etc/php5/apache2/php.ini (I am on Linux): error_log = /var/log/php/php_errors.log I suggest you first try to make running the demo map/ demo data, then you can start playing with you own data. See you, Chris On Wed, Feb 13, 2013 at 6:57 PM, Pablo Gomez geopable...@yahoo.es wrote: I uploaded a raster layer (. Tif) and load correctly. But still the shapefile is not visible. I just loaded raster, I have not changed anything from the previous configuration. Help please!! thanks De: Pablo Gomez geopable...@yahoo.es Para: pmapper-users@lists.sourceforge.net pmapper-users@lists.sourceforge.net Enviado: Miércoles 13 de febrero de 2013 18:32 Asunto: Re: [pmapper-users] problem pmapper 5 beta2 Thanks for the reply Suman, I've done these tests but did not solve the problem. Still see a pink box in place of my shapefile. Now I get this error [Wed February 13 18:17:36 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name. [Wed February 13 18:17:36 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name. [Wed February 13 18:17:37 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml [Wed February 13 18:17:37 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml [Wed February 13 18:17:37 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml [Wed February 13 18:17:38 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml [Wed February 13 18:17:41 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml [Wed February 13 18:17:42 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml [Wed February 13 18:17:43 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml [Wed February 13 18:17:44 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml [Wed February 13 18:17:44 2013] [error] [client 127.0.0.1] Incorrect setting for 'error_log' in 'php.ini'. Set to a valid file name., Referer: http://localhost/montana_palentina/index.phtml I made more changes in my config files. Attached these files. Any more suggestions, please! thank you very much De: Suman ant_...@yahoo.com Para: pmapper-users@lists.sourceforge.net Enviado: Miércoles 13 de febrero de 2013 14:41 Asunto: Re: [pmapper-users] problem pmapper 5 beta2 Hi, Pablo Gomez. In your pmapper_demo.map file, i think, i detected some errors like: you should check your SHAPEPATH, IMAGEPATH AND IMAGEURL value. In my context, i set like this. SHAPEPATH ../../../pmapper5_demodata IMAGEPATH /ms4w/tmp/ms_tmp/ IMAGEURL /ms_tmp/ Suman -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/pmapper-users-problem-pmapper-5-beta2-tp4025031p4025034.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more.
Re: [pmapper-users] Error Pmapper 5
Hi Rafael, Some infos below. Cheers, Chris On Tue, Feb 12, 2013 at 3:26 AM, Rafael Dantas raffaeldan...@gmail.comwrote: sorry, I'm using Ubuntu 12.10... grateful 2013/2/12 Rafael Dantas raffaeldan...@gmail.com Hello all, sorry my english. I'm trying to install pmapper5 unsuccessfully. He just does not load anything and gives the following error message in the browser: Erro HTTP {500 (Internal Server Error) Also got the following error messages from Apache: [Tue Feb 12 00:13:00 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico Try to add a favicon into /var/www/ : any16x16px .ico file [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Notice: Undefined variable: plugin_cssFileList in /var/www/pmapper-5.0-beta2/config/__startup_config.php on line 467, referer: http://localhost/pmapper-5.0-beta2/ ??? [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Warning: ms_newMapObj(): [MapServer Error]: msProcessProjection(): proj error quot;no system list, errno: 2\nquot; for quot;init=epsg:4326quot;\n in /var/www/pmapper-5.0-beta2/lib/globals.php on line 66, referer: http://localhost/pmapper-5.0-beta2/ Check in /usr/local/share/proj/ or /usr/share/proj/ if the projection 4326 is defined into the file 'epsg' [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Warning: ms_newMapObj(): [MapServer Error]: msSaveImage(): Failed to create output file (/var/www/pmapper/images/legend/countries_i0.png).\n in /var/www/pmapper-5.0-beta2/lib/globals.php on line 66, referer: http://localhost/pmapper-5.0-beta2/ Do a 'chown -r www-data:users' to the directoy legend, Apache needs the right to write there. However it looks strange to me, as in my pmapper-5.0-beta2 installation, the parent directory of the legend one is called 'img' and not 'images' like your log is saying. 'images ' was used in pmapper 4.x though. [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file /var/www/pmapper-5.0-beta2/config/default/pmapper_demo.map, or map file error.' in /var/www/pmapper-5.0-beta2/lib/globals.php:66\nStack trace:\n#0 /var/www/pmapper-5.0-beta2/lib/globals.php(66): ms_newMapObj('/var/www/pmappe...')\n#1 /var/www/pmapper-5.0-beta2/index.phtml(17): require_once('/var/www/pmappe...')\n#2 {main}\n thrown in /var/www/pmapper-5.0-beta2/lib/globals.php on line 66, referer: http://localhost/pmapper-5.0-beta2/ Mapfile can not be opened, probably because of the other errors. I would, if possible, any tips to understand the error messages that Apache is talking. grateful -- Rafael Dantas -- Rafael Dantas -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] pmapper 4.30 - Coordinates plugin - Display 2 projections
Hi all, Have a strange problem with the Coordinates plugin, it works fine with 1 mapPrj and 2+ prj declared int the config file. But if I only want to have 1 mapPrj and 1 prj, there is an alert message: Missing entries for plugin config. See PHP error log and apache shows the following error: [Tue Feb 12 13:21:04 2013] [error] [client 10.45.113.9] PHP Warning: projectionObj::__construct(): [MapServer Error]: msProcessProjection(): proj error projection not named for l\n in /data/dataweb/web/dev/newgc_svn/pmapper430/plugins/coordinates/projection.php on line 13, referer: http://myserver/pmapper430/map_guichetcarto02.phtml?config=guichetcarto02resetsession=ALL My config file contains: coordinates mapPrj name=CH1903 roundTo=0 definitioninit=epsg:21781/definition /mapPrj prj name=lat/lon WGS84 roundTo=6 definitioninit=epsg:4326/definition /prj /coordinates For a check, I have added the following debug in /plugins/coordinates/x_coords.php, after $prjList = $prjCfg['prj']; (line27) *throw(new Exception(prjList: . count($prjList)));* If I only keep the mapPrj in the config file, apache error log shows: Uncaught exception 'Exception' with message 'prjList: 0' if I add one prj in the config file: Uncaught exception 'Exception' with message 'prjList: *4*' if I add two prj: Uncaught exception 'Exception' with message 'prjList: 2' three prj: Uncaught exception 'Exception' with message 'prjList: 3' Any idea why the prjlist is counting 4 instead of 1 projection? Thanx, Chris -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] pmapper 4.30 - Coordinates plugin - Display 2 projections
Ok I see, thanx for the confirmation. The following trick seems to work: create a prj identical to the mapPrj in the config file and then not displaying the mapPrj by commenting the line 25 in x_coords.php: //$prjJson .= {\prjName\: \$mapPrjName\, \x\: $showX, \y\: $showY},; Hope that helps! Chris On Tue, Feb 12, 2013 at 2:51 PM, Thomas RAFFIN traf...@sirap.fr wrote: Hi, I think this parameter is badly loaded if there is only one element : a string should have been converted to an array. Thomas Le 12/02/2013 14:24, Chris forum a écrit : Hi all, Have a strange problem with the Coordinates plugin, it works fine with 1 mapPrj and 2+ prj declared int the config file. But if I only want to have 1 mapPrj and 1 prj, there is an alert message: Missing entries for plugin config. See PHP error log and apache shows the following error: [Tue Feb 12 13:21:04 2013] [error] [client 10.45.113.9] PHP Warning: projectionObj::__construct(): [MapServer Error]: msProcessProjection(): proj error projection not named for l\n in /data/dataweb/web/dev/newgc_svn/pmapper430/plugins/coordinates/projection.php on line 13, referer: http://myserver/pmapper430/map_guichetcarto02.phtml?config=guichetcarto02resetsession=ALL My config file contains: coordinates mapPrj name=CH1903 roundTo=0 definitioninit=epsg:21781/definition /mapPrj prj name=lat/lon WGS84 roundTo=6 definitioninit=epsg:4326/definition /prj /coordinates For a check, I have added the following debug in /plugins/coordinates/x_coords.php, after $prjList = $prjCfg['prj']; (line27) *throw(new Exception(prjList: . count($prjList)));* If I only keep the mapPrj in the config file, apache error log shows: Uncaught exception 'Exception' with message 'prjList: 0' if I add one prj in the config file: Uncaught exception 'Exception' with message 'prjList: *4*' if I add two prj: Uncaught exception 'Exception' with message 'prjList: 2' three prj: Uncaught exception 'Exception' with message 'prjList: 3' Any idea why the prjlist is counting 4 instead of 1 projection? Thanx, Chris -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Drawing plugin
Salut Thomas, Thanx for the fast answer! 1) My bad, I think I mixed things from what I found in the drawing.js and the text displayed... Text is mentionning DEL key to erase last point drawn, not ESC as I said, sorry. I will just add the ESC part to the info text. 2) and 3) Will look into that as I am now using MS 6.2, never tried CIRCLE object yet. Looks like it needs a bbox to draw the circle inside it, which could be an adaptation of the rectangle method... 4) I did, just mentionned it here for help purpose 5) I am not using Hatch for drawing, just tried though but it doesn't seem to work with the drawing plugin/template.map, while it works fine in the main mapfile. See herehttp://www.imagerun.info/img134/afebzfcguxca8j02.png, both the rectangle and the area on its right are using these style values (except color): STYLE SYMBOL 'hatch' COLOR 20 20 20 ANGLE 135 SIZE 5 WIDTH 1 END Same with you? 6) Had that apache error showing up: [Wed Feb 06 16:13:49 2013] [error] [client 10.45.113.9] File does not exist: /var/www/dev/newgc_svn/pmapper430/images/buttons/chameleon/drawing_off.*png* 7) Can not reproduce the comment length cut today, must have been a side effet of the label ANGLE FOLLOW I was trying yesterday with the LINE drawing. Will check how to add a max length value. See you, thanx for this great plugin! Chris On Thu, Feb 7, 2013 at 5:54 PM, Thomas RAFFIN traf...@sirap.fr wrote: Le 07/02/2013 17:16, Chris forum a écrit : Hi all, Working on a pmapper 4.3 project, just installed the 'Drawing' plugin. Works well, Hi, Thanks except for some details: :-( 1) ESC key doesn't erase the last point of a POLYGON or a LINE (as stated in the info text), but the entire drawing I will check the text. The key should be : - DEL to remove the last point - ESC to delete the entire drawing 2) For the CIRCLE, there is no window poping up letting us adding a comment. Must be an issue with that layer, as the Labelitem tag was commented in the source. Any more info on that? We didn't know how to draw circle (it was with MS 5.4) except like it is done in the template.map (see drawCircle layer) : unit is meter and size is the radius value. If you have an other solution, feel free to post it. 3) If the map is panned and the center of a CIRCLE is no more visible, the entire circle is not displayed Yes, due to point 2... 4) It misses an offset (0 -14 in my project) not to have the POINT hidden behind its label Feel free to change the template.map, the symbols, etc... in your project. (5) Styles have to be modified if using Mapserver 6, no symbol needed anymore for polygons or lines) Does it works with hatched polygons in your project? (6) Code is waiting for .png image button, .gif provided ;) Where please? Did anyone encountered the same and found a way to solve points 1), 2) and 3)? 1: just change the language file. 2 and 3: try to change the layer type from point to circle and customize the template.map. But I remember other bugs due to small or big scales... Finally, where is stated the max length of a comment? Looks like text with lots of characters are not displayed, which is good, but I would like to add it to the info text. How many characters for instance please? Thanx Chris Bye Thomas -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Drawing plugin
More on that... Annotation layers are deprecated in 6.2 and will probably be removed in a future version. For the layer drawAnnotation, simply replace TYPE ANNOTATION by TYPE POINT I have also added POSTLABELCACHE ON to all the drawing layers, so that they are on top of other layers And to limit the comment length to 30 characters for instance, insertTXT has been modified like this in drawing_base.js: insertTxt: function(point) { jg.setFont(this.fontFamily,this.fontSize,this.fontStyle); //set font-family, -size and -style values var insertTxt = prompt(*(_p('Add comment:')+ '\n \t (' + _p('30 char. max') + ')'), ''*); //user can enter his text if (insertTxt == null) { insertTxt = ''; } *else if (insertTxt.length 30)** insertTxt = insertTxt.substring(0,30); * Hope that helps Looking now if there is a way to keep the drawing in the URL of a generated link... Cheers, Chris On Fri, Feb 8, 2013 at 1:04 PM, Chris forum bak.fo...@gmail.com wrote: Salut Thomas, Thanx for the fast answer! 1) My bad, I think I mixed things from what I found in the drawing.js and the text displayed... Text is mentionning DEL key to erase last point drawn, not ESC as I said, sorry. I will just add the ESC part to the info text. 2) and 3) Will look into that as I am now using MS 6.2, never tried CIRCLE object yet. Looks like it needs a bbox to draw the circle inside it, which could be an adaptation of the rectangle method... 4) I did, just mentionned it here for help purpose 5) I am not using Hatch for drawing, just tried though but it doesn't seem to work with the drawing plugin/template.map, while it works fine in the main mapfile. See herehttp://www.imagerun.info/img134/afebzfcguxca8j02.png, both the rectangle and the area on its right are using these style values (except color): STYLE SYMBOL 'hatch' COLOR 20 20 20 ANGLE 135 SIZE 5 WIDTH 1 END Same with you? 6) Had that apache error showing up: [Wed Feb 06 16:13:49 2013] [error] [client 10.45.113.9] File does not exist: /var/www/dev/newgc_svn/pmapper430/images/buttons/chameleon/drawing_off.* png* 7) Can not reproduce the comment length cut today, must have been a side effet of the label ANGLE FOLLOW I was trying yesterday with the LINE drawing. Will check how to add a max length value. See you, thanx for this great plugin! Chris On Thu, Feb 7, 2013 at 5:54 PM, Thomas RAFFIN traf...@sirap.fr wrote: Le 07/02/2013 17:16, Chris forum a écrit : Hi all, Working on a pmapper 4.3 project, just installed the 'Drawing' plugin. Works well, Hi, Thanks except for some details: :-( 1) ESC key doesn't erase the last point of a POLYGON or a LINE (as stated in the info text), but the entire drawing I will check the text. The key should be : - DEL to remove the last point - ESC to delete the entire drawing 2) For the CIRCLE, there is no window poping up letting us adding a comment. Must be an issue with that layer, as the Labelitem tag was commented in the source. Any more info on that? We didn't know how to draw circle (it was with MS 5.4) except like it is done in the template.map (see drawCircle layer) : unit is meter and size is the radius value. If you have an other solution, feel free to post it. 3) If the map is panned and the center of a CIRCLE is no more visible, the entire circle is not displayed Yes, due to point 2... 4) It misses an offset (0 -14 in my project) not to have the POINT hidden behind its label Feel free to change the template.map, the symbols, etc... in your project. (5) Styles have to be modified if using Mapserver 6, no symbol needed anymore for polygons or lines) Does it works with hatched polygons in your project? (6) Code is waiting for .png image button, .gif provided ;) Where please? Did anyone encountered the same and found a way to solve points 1), 2) and 3)? 1: just change the language file. 2 and 3: try to change the layer type from point to circle and customize the template.map. But I remember other bugs due to small or big scales... Finally, where is stated the max length of a comment? Looks like text with lots of characters are not displayed, which is good, but I would like to add it to the info text. How many characters for instance please? Thanx Chris Bye Thomas -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] Drawing plugin
Hi all, Working on a pmapper 4.3 project, just installed the 'Drawing' plugin. Works well, except for some details: 1) ESC key doesn't erase the last point of a POLYGON or a LINE (as stated in the info text), but the entire drawing 2) For the CIRCLE, there is no window poping up letting us adding a comment. Must be an issue with that layer, as the Labelitem tag was commented in the source. Any more info on that? 3) If the map is panned and the center of a CIRCLE is no more visible, the entire circle is not displayed 4) It misses an offset (0 -14 in my project) not to have the POINT hidden behind its label (5) Styles have to be modified if using Mapserver 6, no symbol needed anymore for polygons or lines) (6) Code is waiting for .png image button, .gif provided ;) Did anyone encountered the same and found a way to solve points 1), 2) and 3)? Finally, where is stated the max length of a comment? Looks like text with lots of characters are not displayed, which is good, but I would like to add it to the info text. Thanx Chris -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] pmapper5 demo working 50%
Good to know you get it to work. Maybe that was a cache problem or something... No clue why you need an internet connection. Though Armin confirmed OSM need to be there for the map to load, maybe that is the problem if you try to load only vector or raster layers. Good luck! Chris On Mon, Feb 4, 2013 at 5:25 PM, Suman ant_...@yahoo.com wrote: Hi Chris, I am using ms4w v3.0.6. , mapserver v6.0.3 and PHP v5.4.3. thanx a lot for reply. I don't know how but that problem solved. Now It is perfectly running. But it is running only when internet connection is available. If there is vector and raster data in my own hard drive why it's not running without internet connection? I mean to say that no any content is being loaded. like.. http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/file/n4025011/snap.png Thank you again. Suman -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/pmapper-users-pmapper5-demo-working-50-tp4024999p4025011.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] pmapper5 demo working 50%
Hi Armin, Mouanis, Thx a lot for your time and help! The server I am using is actually the OSGeo Live 6 installed on a hard disk. Easier for my tests as it has a lot of webmapping stuff preinstalled, maybe too much... Even though it is working well with my pmapper 4.3 project, I can't get rid of that Apache error with pmapper 5 beta 2. So today I tried again on another server, a Debian one. It works!!! \o/ Both with Mapscript 5.6.3 and 6.0.3 Must be something on the OSGeo server that is conflicting with Mapscript, dunno... Armin Thx for the info about the ref map and OSM layer. But how should we fill the wiki with the pmapper5 setting requirements if we don't know them yet? Chris On Sat, Jan 26, 2013 at 5:00 PM, Armin Burger armin.bur...@gmx.net wrote: I made now a quick test: unpack the tar ball pmapper-5.0-beta2.tar.gz from sourceforge, place the demodata for version 5 from http://www.pmapper.net/dl/pmapper5_demodata_vector.zip under the same directory as the release files, like /demo/pmapper5_demodata/ /demo/pmapper-5.0-beta2/ I only had to set (recursively) the owner of img/legend to www-data, and to get bluemarble layer working adapt the DATA path for this layer under config/default/pmapper_demo.map. Then everything seems to work, see: http://www.pmapper.net/demo/pmapper-5.0-beta2/ The reason why OSM layer needs to be there is that it's used as only layer for the overview map. If you change this to another layer then you can drop OSM from the group list. As I already mentioned a few times: the new configuration has some specific setting requirements, and this should be available via more detailed documentation in the pm Wiki. But as long as nobody writes that, it will not be available... On 25/01/2013 11:43, Chris forum wrote: Hi all, I have reinstalled pmapper 5 from start, keeping only the minimal layers to display. It looks like Gmap or OSM have to be present, so I keep OSM and countries layers only. As before, countries don't show up on the map, only OSM does. No php or mapserver error. pm_debug.log shows: [25-Jan-2013 11:29:10] P.MAPPER debug info x_setsessionvar.php, for sessionvar mapscale: 55468034.09273208 [25-Jan-2013 11:29:15] P.MAPPER debug info P.MAPPER-ERROR: RESOLUTION tag not set to 96. This value is needed for proper function of PDF print. [25-Jan-2013 11:29:15] P.MAPPER debug info P.MAPPER-ERROR: DEFRESOLUTION tag not set to 96. This value is needed for proper function of PDF print. [25-Jan-2013 11:29:16] P.MAPPER debug info x_setsessionvar.php, for sessionvar mapMaxExtent: Array ( [0] = -400 [1] = 300 [2] = 800 [3] = 1200 ) [25-Jan-2013 11:29:16] P.MAPPER debug info x_setsessionvar.php, for sessionvar mapProjection: EPSG:900913 [25-Jan-2013 11:29:16] P.MAPPER debug info x_setsessionvar.php, for sessionvar mapscale: 55468034.09273208 [25-Jan-2013 11:29:17] P.MAPPER debug info Validation of search.xml file succeeded apache error log: /usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20090626+lfs/php_mapscript.so: undefined symbol: php_output_get_level No error in Firebug, except that the following GET runs forever: http://myserver/pmapper/pmapper500/lib/query/search/?action=optionlist Works well though if I run the link above in the browser: {searchJson:{selectname: findlist, events: onchange=\PM.Search.setSearchInput()\, options: {0: Search for, countries: Country}}, action:optionlist, divelem:1} config_default.xml and pmapper_demo.map attached. MapServer version 6.0.3 PHP Version 5.3.10-1ubuntu3.2 Any idea what could be wrong on my setup? Thanx, Chris On Wed, Jan 23, 2013 at 4:08 PM, Chris forum bak.fo...@gmail.com wrote: Hi all With a project running fine in pmapper 4.3.0, I am trying now to get demo pmapper5 beta2 working. Owner of /img/legend/ is www-data I have modified the mapfile accordingly (SHAPEPATH, FONTSET, SYMBOLSET, CONFIG PROJ_LIB, IMAGEPATH, IMAGEURL and CONFIG MS_ERRORFILE). Vector demo data have been added at the right place, raster Shaded relief also. Blue Marble has been remove from the config_default.xml file. 900913 projection added to epsg file: 900913 +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs When I run http://myserver/pmapper/pmapper500/?config=defaultresetsession=ALL in Firefox, all I get is a blank map. Eventhough Countries, Cities and Rivers layers are selected in the TOC. OSM and Google sat are the only ones to work fine. I don't get any error from both php and mapserver error logs, while pm_debug.log is showing: [23-Jan-2013 15:03:27] P.MAPPER debug info P.MAPPER-ERROR: RESOLUTION tag not set to 96. This value is needed for proper function of PDF print. [23-Jan-2013 15:03:27
Re: [pmapper-users] pmapper5 demo working 50%
Hi all, I have reinstalled pmapper 5 from start, keeping only the minimal layers to display. It looks like Gmap or OSM have to be present, so I keep OSM and countries layers only. As before, countries don't show up on the map, only OSM does. No php or mapserver error. pm_debug.log shows: [25-Jan-2013 11:29:10] P.MAPPER debug info x_setsessionvar.php, for sessionvar mapscale: 55468034.09273208 [25-Jan-2013 11:29:15] P.MAPPER debug info P.MAPPER-ERROR: RESOLUTION tag not set to 96. This value is needed for proper function of PDF print. [25-Jan-2013 11:29:15] P.MAPPER debug info P.MAPPER-ERROR: DEFRESOLUTION tag not set to 96. This value is needed for proper function of PDF print. [25-Jan-2013 11:29:16] P.MAPPER debug info x_setsessionvar.php, for sessionvar mapMaxExtent: Array ( [0] = -400 [1] = 300 [2] = 800 [3] = 1200 ) [25-Jan-2013 11:29:16] P.MAPPER debug info x_setsessionvar.php, for sessionvar mapProjection: EPSG:900913 [25-Jan-2013 11:29:16] P.MAPPER debug info x_setsessionvar.php, for sessionvar mapscale: 55468034.09273208 [25-Jan-2013 11:29:17] P.MAPPER debug info Validation of search.xml file succeeded apache error log: /usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20090626+lfs/php_mapscript.so: undefined symbol: php_output_get_level No error in Firebug, except that the following GET runs forever: http://myserver/pmapper/pmapper500/lib/query/search/?action=optionlist Works well though if I run the link above in the browser: {searchJson:{selectname: findlist, events: onchange=\PM.Search.setSearchInput()\, options: {0: Search for, countries: Country}}, action:optionlist, divelem:1} config_default.xml and pmapper_demo.map attached. MapServer version 6.0.3 PHP Version 5.3.10-1ubuntu3.2 Any idea what could be wrong on my setup? Thanx, Chris On Wed, Jan 23, 2013 at 4:08 PM, Chris forum bak.fo...@gmail.com wrote: Hi all With a project running fine in pmapper 4.3.0, I am trying now to get demo pmapper5 beta2 working. Owner of /img/legend/ is www-data I have modified the mapfile accordingly (SHAPEPATH, FONTSET, SYMBOLSET, CONFIG PROJ_LIB, IMAGEPATH, IMAGEURL and CONFIG MS_ERRORFILE). Vector demo data have been added at the right place, raster Shaded relief also. Blue Marble has been remove from the config_default.xml file. 900913 projection added to epsg file: 900913 +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs When I run http://myserver/pmapper/pmapper500/?config=defaultresetsession=ALL in Firefox, all I get is a blank map. Eventhough Countries, Cities and Rivers layers are selected in the TOC. OSM and Google sat are the only ones to work fine. I don't get any error from both php and mapserver error logs, while pm_debug.log is showing: [23-Jan-2013 15:03:27] P.MAPPER debug info P.MAPPER-ERROR: RESOLUTION tag not set to 96. This value is needed for proper function of PDF print. [23-Jan-2013 15:03:27] P.MAPPER debug info P.MAPPER-ERROR: DEFRESOLUTION tag not set to 96. This value is needed for proper function of PDF print. [23-Jan-2013 15:03:27] P.MAPPER debug info x_setsessionvar.php, for sessionvar mapMaxExtent: Array ( [0] = -400 [1] = 300 [2] = 800 [3] = 1200 ) [23-Jan-2013 15:03:27] P.MAPPER debug info x_setsessionvar.php, for sessionvar mapProjection: EPSG:900913 [23-Jan-2013 15:03:29] P.MAPPER debug info Validation of search.xml file succeeded [23-Jan-2013 15:03:29] P.MAPPER debug info x_setsessionvar.php, for sessionvar mapscale: 55468034.09273208 I then checked the mapfile (pmapper_demo.map) alone, and I had to add an EXTENT to be able to load it: EXTENT -180 -90 180 90 Unfortunately, that doesn't solve the problem in pmapper5. In Chrome, several small rose tiles are displayed, and when I inspect them (developper tool), I find a bigger tile above them: img id=OpenLayersDiv206 style=width: 0px; height: 0px; position: relative; opacity: 0.3; class=*olTileImage olImageLoadError* src=lib/map/pmhighlight?amp;width=1105amp;height=732amp;bbox=-8816145.2489599,338156.198789,12816145.24896,14661843.801211amp;crs=EPSG%3A900913amp;timestamp=13589532565 Any idea where the problem could be? Thanx, Chris pmapper ini pmapper pmTitlep.mapper - A MapServer PHP/MapScript Framework/pmTitle version5-dev/version debugLevel3/debugLevel metadataPrefixPM_/metadataPrefix pluginstocdomains/plugins pluginsmapselect/plugins /pmapper config pm_config_locationdefault/pm_config_location pm_javascript_locationjs/src/pm_javascript_location pm_print_configfilecommon/print.xml/pm_print_configfile pm_search_configfileinline/pm_search_configfile pm_resetsessionALL/pm_resetsession /config map
Re: [pmapper-users] Pmapper5
Bonjour Thomas, En effet, un peu de français pour une fois! ; ) Et pour mon problème, voir mon message d'hier en anglais: *pmapper5 demo working 50%*http://sourceforge.net/mailarchive/forum.php?thread_name=CA%2BfU8VT1xxScqeMoa68KRdFAi%2Bbh0mqXmMzhbKO6roTqv-DmPQ%40mail.gmail.comforum_name=pmapper-users Je vais suivre le conseil de Mouanis en commençant par une seule couche et voir ce que ça donne. A+ Christophe 2013/1/24 Thomas RAFFIN traf...@sirap.fr Bonjour (ça nous change de l'espagnol ;-)) Il faut aussi garder à l'esprit que pm5 n'étant pas encore stable, est donc beaucoup moins déployé. Donc moins d'aide disponible de la part des utilisateurs, évidemment. Alors si tu parles anglais, ça augmente aussi le nombre de réponses... a+ Thomas Le 24/01/2013 11:58, Mouanis LAHLOU a écrit : Bonjour Christophe Pouvez vous SVP passer par le forum de pmapper comme ça tous le monde peut en profiter. Ce que je te recommande c'est de commencer par une seule couche et si ça ne marche pas tu peut soumettre tes fichiers de configurations (xml et map) à la communauté pour trouver les failles. Cordialement Le 24 janvier 2013 10:26, Chris forum bak.fo...@gmail.com a écrit : Bonjour Mouanis, J'ai découvert votre carte de fertilité grâce à la mailing list des utilisateurs de pmapper, toutes mes félicitations c'est très réussi! Je suis également en train de transférer mon projet de pmapper 4.3 à pmapper 5, mais je rencontre des difficultés. Pour l'instant seuls les fonds Google et OSM s'affichent, mais pas mes données shapefile. Des tuiles roses apparaissent à leur place et je n'arrive pas à déterminer d'où vient le problème (aucune erreur dans les logs). J'espère éventuellement obtenir de l'aide grâce à la mailing-list, mais j'ai peu d'espoir... C'est pourquoi je me permets de faire appel à vous. Seriez-vous prêt à me fournir une copie de votre projet? Je pourrais alors simplement faire les adaptations relatives à mon serveur et remplacer vos données par les miennes. Je conçois très bien que ma demande puisse vous paraître inappropriée, mais s'agissant d'un logiciel open source, j'espère que vous serez d'accord d'y répondre positivement. Avec mes meilleures salutations, Christophe -- 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 -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] pmapper5 demo working 50%
Hi all With a project running fine in pmapper 4.3.0, I am trying now to get demo pmapper5 beta2 working. Owner of /img/legend/ is www-data I have modified the mapfile accordingly (SHAPEPATH, FONTSET, SYMBOLSET, CONFIG PROJ_LIB, IMAGEPATH, IMAGEURL and CONFIG MS_ERRORFILE). Vector demo data have been added at the right place, raster Shaded relief also. Blue Marble has been remove from the config_default.xml file. 900913 projection added to epsg file: 900913 +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs When I run http://myserver/pmapper/pmapper500/?config=defaultresetsession=ALL in Firefox, all I get is a blank map. Eventhough Countries, Cities and Rivers layers are selected in the TOC. OSM and Google sat are the only ones to work fine. I don't get any error from both php and mapserver error logs, while pm_debug.log is showing: [23-Jan-2013 15:03:27] P.MAPPER debug info P.MAPPER-ERROR: RESOLUTION tag not set to 96. This value is needed for proper function of PDF print. [23-Jan-2013 15:03:27] P.MAPPER debug info P.MAPPER-ERROR: DEFRESOLUTION tag not set to 96. This value is needed for proper function of PDF print. [23-Jan-2013 15:03:27] P.MAPPER debug info x_setsessionvar.php, for sessionvar mapMaxExtent: Array ( [0] = -400 [1] = 300 [2] = 800 [3] = 1200 ) [23-Jan-2013 15:03:27] P.MAPPER debug info x_setsessionvar.php, for sessionvar mapProjection: EPSG:900913 [23-Jan-2013 15:03:29] P.MAPPER debug info Validation of search.xml file succeeded [23-Jan-2013 15:03:29] P.MAPPER debug info x_setsessionvar.php, for sessionvar mapscale: 55468034.09273208 I then checked the mapfile (pmapper_demo.map) alone, and I had to add an EXTENT to be able to load it: EXTENT -180 -90 180 90 Unfortunately, that doesn't solve the problem in pmapper5. In Chrome, several small rose tiles are displayed, and when I inspect them (developper tool), I find a bigger tile above them: img id=OpenLayersDiv206 style=width: 0px; height: 0px; position: relative; opacity: 0.3; class=*olTileImage olImageLoadError* src=lib/map/pmhighlight?amp;width=1105amp;height=732amp;bbox=-8816145.2489599,338156.198789,12816145.24896,14661843.801211amp;crs=EPSG%3A900913amp;timestamp=13589532565 Any idea where the problem could be? Thanx, Chris -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Northarrow for printing / downloading
Hi Serge, Thomas, As I don't really like having a north arrow on my map, I have added the north arrow for the printing only. So far it only works for the HTML printing, I am working on the PDF print now and will let you know when (if) I get it to work. In /config/common/print.xml, inside the print_map_image DIV, add: div id=print_north_arrowimg src=images/logos/northarrow.png alt=north_arrow style=position:absolute; right:10px; top:10px//div Chris On Tue, Jan 22, 2013 at 3:21 PM, Serge Claudio Rafanoharana rafanohar...@gmail.com wrote: Dear Thomas, Changing the STATUS to ON and adding the layer in config resolved the problem. Meaning that I have to check/uncheck to enable/disable it. I don't know what's wrong with the STATUS DEFAULT. Both gif and png work fine. Other symbols (circle...) work fine as well. I think I will make this layer always ON (checked) and users would not be able to check or uncheck it. I think it is possible but I need to figure it out (I forget). Thank you, Cheers, Serge On Tue, Jan 22, 2013 at 8:54 PM, Thomas RAFFIN traf...@sirap.fr wrote: Yes, try with SYMBOL 'circle' Le 22/01/2013 14:43, Serge Claudio Rafanoharana a écrit : Dear Thomas, What do you mean with other symbol? Do you mean change the STYLE SYMBOL 'northarrow' to something like STYLE SYMBOL 'circle' ? I tried with gif but it is the same, nothing. Yes, it is the last layer declared in the map file. I have no problem with other layers. PS: no php error. Cheers, Serge On Tue, Jan 22, 2013 at 7:54 PM, Thomas RAFFIN traf...@sirap.fr mailto:traf...@sirap.fr wrote: Else the other objects will be drawn -- Serge -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Serge -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users attachment: northarrow.png-- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] tools
Hi all, While the tooltip tools ({tool:'auto_identify', name:'Auto Identify'}) works well on the demo map, no table info is popping up on my project, even though I have several layers that contain Metadata infos. The 'regular' identify tool works on these layers. Where do I have to look to set the tooltip parameters? And in general, in what file(s) are the tools set up? Cheers, Chris -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Legend icon creation issue in p.mapper 4.3
Well done trying with 4.2 initmap.php. Making a diff between 4.2 and 4.3 shows several differences at the paragraph called bad legend icon (due to symbolscaledenom, unit or attribute size/width binding) But that doesn't explain why the demo works fine here and not on your system... Chris On Wed, Jan 16, 2013 at 1:21 PM, Dejan Gambin dejan.gam...@coin.hr wrote: Replacing initmap.php with the 4.2 version solved the issue. So something is obviously changed in 4.3. regards, dejan On 15. sij. 2013., at 14:49, Thomas RAFFIN wrote: Could you try with this file please: http://svn.pmapper.net/trac/browser/trunk/pmapper/incphp/init/initmap.php?format=txt (save and replace actual pmapper/incphp/init/initmap.php file) Thomas Le 15/01/2013 14:29, Thomas RAFFIN a écrit : Hi, The LEGEND part of the mapfile could be used to embed legend in the drawing map. Pmapper doesn't use it and redraw each icon in the pmapper/image/legend folder. Thomas Le 15/01/2013 14:24, Chris forum a écrit : I probably can not help you anymore... Please triple check the images are in the images/legend directory, with www-data rights. Firebug will still show you the path to them even if they are not existing. I just tried to delete the legend icons of the demo layers (countries, rivers, cities, ...). I had then to modify the mapfile so that pmapper regenerates the legend icons, otherwise they don't show up in the legend (obvious) even though firebug displays their path when you inspect the legend. You are right, the LEGEND part of the mapfile doesn't seem to be used. There is one in the pmapper _demo.map though, don't really know what for... On Tue, Jan 15, 2013 at 12:06 PM, Dejan Gambin dejan.gam...@coin.hr wrote: Hi Chris Images are generated in images/legend folder. The icons are actually there so Firebug reports ok, for example background-image: url(images/legend/key_name.png. LEGEND part is empty, that is how it was in previous version. I just noticed something else. I tried default demo and saw that legend icons for point features are drawn ok, but for polygons and lines not. Now I am confused even more :-) dejan On 15. sij. 2013., at 11:24, Chris forum wrote: Hi Dejan, Are the images generated into images/legend folder? What does indicate Firebug if you try inspecting the white/empty icons? What do you have for a LEGEND part in your mapfile? Chris On Tue, Jan 15, 2013 at 9:32 AM, Dejan Gambin dejan.gam...@coin.hr wrote: Hi, I have just upgraded my p.mapper 3.2 to 4.3 on my Ubuntu box. I have a problem with legend icon creation. The icons are created but they are white/empty. Steps I tried: - I made sure images/legend folder is owned by www-data (chown -R www-data:www-data /images/legend, even did this on whole pmapper folder) - I have created a test php script for legend icon creation (createLegendIcon). It works ok, even by putting the legend icons into the same folder as above - I checked error logs. Everything seems to be fine Any clue? Am I missing something? Thx very much regards, dejan -- Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Legend icon creation issue in p.mapper 4.3
deleted everything from images/legend to force it to recreate the icons yes, I did that yesterday to check if that was working. Here I am using: pmapper 4.3 PHP Version 5.3.10-1ubuntu3.2 MapServer version 6.0.3 Yes, $changeSize = false; in 4.3 was $changeSize = true; in 4.2 (on the line you mention and also below) Maybe Thomas can tell you more about that, I'm just too noob in php... Chris On Wed, Jan 16, 2013 at 3:40 PM, Dejan Gambin dejan.gam...@coin.hr wrote: I agree :-) I suppose you have modified the map file or deleted everything from images/legend to force it to recreate the icons. Because the icons come preinstalled I think (this is so with my debian package). Next thing - maybe this can be related to MS version also. I am using 5.0.0-3ubuntu0.3 version from the package dejan On 16. sij. 2013., at 14:11, Chris forum wrote: Well done trying with 4.2 initmap.php. Making a diff between 4.2 and 4.3 shows several differences at the paragraph called bad legend icon (due to symbolscaledenom, unit or attribute size/width binding) But that doesn't explain why the demo works fine here and not on your system... Chris On Wed, Jan 16, 2013 at 1:21 PM, Dejan Gambin dejan.gam...@coin.hrwrote: Replacing initmap.php with the 4.2 version solved the issue. So something is obviously changed in 4.3. regards, dejan On 15. sij. 2013., at 14:49, Thomas RAFFIN wrote: Could you try with this file please: http://svn.pmapper.net/trac/browser/trunk/pmapper/incphp/init/initmap.php?format=txt (save and replace actual pmapper/incphp/init/initmap.php file) Thomas Le 15/01/2013 14:29, Thomas RAFFIN a écrit : Hi, The LEGEND part of the mapfile could be used to embed legend in the drawing map. Pmapper doesn't use it and redraw each icon in the pmapper/image/legend folder. Thomas Le 15/01/2013 14:24, Chris forum a écrit : I probably can not help you anymore... Please triple check the images are in the images/legend directory, with www-data rights. Firebug will still show you the path to them even if they are not existing. I just tried to delete the legend icons of the demo layers (countries, rivers, cities, ...). I had then to modify the mapfile so that pmapper regenerates the legend icons, otherwise they don't show up in the legend (obvious) even though firebug displays their path when you inspect the legend. You are right, the LEGEND part of the mapfile doesn't seem to be used. There is one in the pmapper _demo.map though, don't really know what for... On Tue, Jan 15, 2013 at 12:06 PM, Dejan Gambin dejan.gam...@coin.hr wrote: Hi Chris Images are generated in images/legend folder. The icons are actually there so Firebug reports ok, for example background-image: url(images/legend/key_name.png. LEGEND part is empty, that is how it was in previous version. I just noticed something else. I tried default demo and saw that legend icons for point features are drawn ok, but for polygons and lines not. Now I am confused even more :-) dejan On 15. sij. 2013., at 11:24, Chris forum wrote: Hi Dejan, Are the images generated into images/legend folder? What does indicate Firebug if you try inspecting the white/empty icons? What do you have for a LEGEND part in your mapfile? Chris On Tue, Jan 15, 2013 at 9:32 AM, Dejan Gambin dejan.gam...@coin.hr wrote: Hi, I have just upgraded my p.mapper 3.2 to 4.3 on my Ubuntu box. I have a problem with legend icon creation. The icons are created but they are white/empty. Steps I tried: - I made sure images/legend folder is owned by www-data (chown -R www-data:www-data /images/legend, even did this on whole pmapper folder) - I have created a test php script for legend icon creation (createLegendIcon). It works ok, even by putting the legend icons into the same folder as above - I checked error logs. Everything seems to be fine Any clue? Am I missing something? Thx very much regards, dejan -- Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more
Re: [pmapper-users] Layer projection needed for legend
Great, works fine! My mapfile is shorten a bit now! Thanx a lot for the fast answer! Chris On Mon, Jan 14, 2013 at 7:50 PM, Armin Burger armin.bur...@gmx.net wrote: try replace line 241 in common.php if ($mapProjStr != $layerProjStr) { with if ($mapProjStr $layerProjStr $mapProjStr != $layerProjStr) { and see if the error disappears. I always use projection definitions for layers so I will not get this error. armin On 14/01/2013 17:07, Chris forum wrote: Hi all, pmapper 4.3 / plainlayout4 Xubuntu (OSGEO live 6) Mapserver 6.0.3 php 5.3.10 According to the MapServer doc ( http://mapserver.org/mapfile/projection.html#projection): *If all of your data in the mapfile is in the same projection, you DO NOT have to specify any projection objects. MapServer will assume that all of the data is in the same projection*. That is my case, here under the projection declared at the beginning of the mapfile: MAP ... PROJECTION #init=epsg:21781 +proj=somerc +lat_0=46.952406 +lon_0=7.4395833 +k_0=1 +x_0=60 +y_0=20 +ellps=bessel +towgs84=674.4,15.1,405.3,0,0,0,0 +units=m +no_defs END As stated by the note above, I don't have to specify each layer projection in order to have the map displayed correctly. But if I want to have the legend working (toc/legend swap with plainlayout4 examplejavascript:openNew('p42',%20'960#700#medium',%20'it',%20'plainlayout4',%20'')), I have to add this projection to each layer individually. If I don't, I get the following php error: PHP Warning: projectionObj::__construct(): [MapServer Error]: msProcessProjection(): projection not named in /data/dataweb/web/pmapper/pmapper430/incphp/common.php on line 247 [14-Jan-2013 15:45:58 UTC] PHP Fatal error: Uncaught exception 'MapScriptException' with message 'Unable to construct projectionObj.' in /data/dataweb/web/pmapper/pmapper430/incphp/common.php:247 Stack trace: #0 /data/dataweb/web/pmapper/pmapper430/incphp/common.php(247): projectionObj-__construct('') #1 /data/dataweb/web/pmapper/pmapper430/incphp/layerview.php(201): PMCommon::checkScale(Object(mapObj), Object(layerObj), 4623.0496440596, Array) #2 /data/dataweb/web/pmapper/pmapper430/incphp/layerview.php(141): LayerView-getGroup(Object(GROUP)) #3 /data/dataweb/web/pmapper/pmapper430/incphp/layerview.php(107): LayerView-getGroupList() #4 /data/dataweb/web/pmapper/pmapper430/incphp/legend.php(53): LayerView-getCategoryList() #5 /data/dataweb/web/pmapper/pmapper430/incphp/xajax/x_legend.php(43): Legend-writeGroups(false, Array) #6 {main} thrown in /data/dataweb/web/pmapper/pmapper430/incphp/common.php on line 247 Is that a normal behaviour of pmapper? Cheers, Chris -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Legend icon creation issue in p.mapper 4.3
Hi Dejan, Are the images generated into images/legend folder? What does indicate Firebug if you try inspecting the white/empty icons? What do you have for a LEGEND part in your mapfile? Chris On Tue, Jan 15, 2013 at 9:32 AM, Dejan Gambin dejan.gam...@coin.hr wrote: Hi, I have just upgraded my p.mapper 3.2 to 4.3 on my Ubuntu box. I have a problem with legend icon creation. The icons are created but they are white/empty. Steps I tried: - I made sure images/legend folder is owned by www-data (chown -R www-data:www-data /images/legend, even did this on whole pmapper folder) - I have created a test php script for legend icon creation (createLegendIcon). It works ok, even by putting the legend icons into the same folder as above - I checked error logs. Everything seems to be fine Any clue? Am I missing something? Thx very much regards, dejan -- Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] Legend icon creation issue in p.mapper 4.3
I probably can not help you anymore... Please triple check the images are in the images/legend directory, with www-data rights. Firebug will still show you the path to them even if they are not existing. I just tried to delete the legend icons of the demo layers (countries, rivers, cities, ...). I had then to modify the mapfile so that pmapper regenerates the legend icons, otherwise they don't show up in the legend (obvious) even though firebug displays their path when you inspect the legend. You are right, the LEGEND part of the mapfile doesn't seem to be used. There is one in the pmapper _demo.map though, don't really know what for... On Tue, Jan 15, 2013 at 12:06 PM, Dejan Gambin dejan.gam...@coin.hr wrote: Hi Chris Images are generated in images/legend folder. The icons are actually there so Firebug reports ok, for example background-image: url(images/legend/key_name.png. LEGEND part is empty, that is how it was in previous version. I just noticed something else. I tried default demo and saw that legend icons for point features are drawn ok, but for polygons and lines not. Now I am confused even more :-) dejan On 15. sij. 2013., at 11:24, Chris forum wrote: Hi Dejan, Are the images generated into images/legend folder? What does indicate Firebug if you try inspecting the white/empty icons? What do you have for a LEGEND part in your mapfile? Chris On Tue, Jan 15, 2013 at 9:32 AM, Dejan Gambin dejan.gam...@coin.hrwrote: Hi, I have just upgraded my p.mapper 3.2 to 4.3 on my Ubuntu box. I have a problem with legend icon creation. The icons are created but they are white/empty. Steps I tried: - I made sure images/legend folder is owned by www-data (chown -R www-data:www-data /images/legend, even did this on whole pmapper folder) - I have created a test php script for legend icon creation (createLegendIcon). It works ok, even by putting the legend icons into the same folder as above - I checked error logs. Everything seems to be fine Any clue? Am I missing something? Thx very much regards, dejan -- Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] Layer projection needed for legend
Hi all, pmapper 4.3 / plainlayout4 Xubuntu (OSGEO live 6) Mapserver 6.0.3 php 5.3.10 According to the MapServer doc ( http://mapserver.org/mapfile/projection.html#projection): *If all of your data in the mapfile is in the same projection, you DO NOT have to specify any projection objects. MapServer will assume that all of the data is in the same projection*. That is my case, here under the projection declared at the beginning of the mapfile: MAP ... PROJECTION #init=epsg:21781 +proj=somerc +lat_0=46.952406 +lon_0=7.4395833 +k_0=1 +x_0=60 +y_0=20 +ellps=bessel +towgs84=674.4,15.1,405.3,0,0,0,0 +units=m +no_defs END As stated by the note above, I don't have to specify each layer projection in order to have the map displayed correctly. But if I want to have the legend working (toc/legend swap with plainlayout4 examplejavascript:openNew('p42',%20'960#700#medium',%20'it',%20'plainlayout4',%20'')), I have to add this projection to each layer individually. If I don't, I get the following php error: PHP Warning: projectionObj::__construct(): [MapServer Error]: msProcessProjection(): projection not named in /data/dataweb/web/pmapper/pmapper430/incphp/common.php on line 247 [14-Jan-2013 15:45:58 UTC] PHP Fatal error: Uncaught exception 'MapScriptException' with message 'Unable to construct projectionObj.' in /data/dataweb/web/pmapper/pmapper430/incphp/common.php:247 Stack trace: #0 /data/dataweb/web/pmapper/pmapper430/incphp/common.php(247): projectionObj-__construct('') #1 /data/dataweb/web/pmapper/pmapper430/incphp/layerview.php(201): PMCommon::checkScale(Object(mapObj), Object(layerObj), 4623.0496440596, Array) #2 /data/dataweb/web/pmapper/pmapper430/incphp/layerview.php(141): LayerView-getGroup(Object(GROUP)) #3 /data/dataweb/web/pmapper/pmapper430/incphp/layerview.php(107): LayerView-getGroupList() #4 /data/dataweb/web/pmapper/pmapper430/incphp/legend.php(53): LayerView-getCategoryList() #5 /data/dataweb/web/pmapper/pmapper430/incphp/xajax/x_legend.php(43): Legend-writeGroups(false, Array) #6 {main} thrown in /data/dataweb/web/pmapper/pmapper430/incphp/common.php on line 247 Is that a normal behaviour of pmapper? Cheers, Chris -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] Query possibilities
Hi Armin, Hi all, I am still working on a query setup and have some questions. My goal is to have a search option that lets the users localize them on the map by selecting an address (street name + building number). I have a Postgis POINT table (buildingaddress) with the following fields: | street_id (INT) | street_name (VARCHAR) | building_number (VARCHAR) | - | 123456 | Alps, Avenue | 12bis| and these search parameters: searchitem name=street_number_options_suggest_pg description=Street Number -Options Suggest PG- layer type=postgis name=buildingaddress field type=n name=street_id description=Street wildcard=2 definition type=options connectiontype=db sort=asc dsn encoding=UTF-8pgsql://user:pass@localhost/db_name/dsn sqlSELECT DISTINCT street_id, street_name FROM buildingaddress WHERE street_name IS NOT NULL ORDER BY street_name/sql eventsonchange=resetSuggestCache();$('#pmsfld_street_name').val('')/events /definition /field field type=s name=building_number description=Number wildcard=2 definition type=suggest connectiontype=db sort=asc minlength=1 dependfld=street_id nosubmit=1 dsn encoding=UTF-8pgsql://user:pass@localhost/db_name/dsn sqlSELECT DISTINCT building_number FROM buildingaddress WHERE building_number ~* '^[search]' {and street_id = '[dependfldval]'} ORDER BY building_number/sql /definition /field /layer /searchitem It works! : ) As I don't want these data to be listed in the TOC, I have only mentionned its group name in the ALLGROUPS tag of the config file, and not in a CATEGORY tag. Works fine! Now I would also like to avoid the query result table (pmQueryContainer) to appear when the Search button is hit. 1) Is there a parameter to add in the search.xml, so that pmQueryContainer doesn't show up? If not, according to dialog.css, pmQueryContainer default style is display:none, an idea could be to let it like that instead of showing it with display:block. Another idea could be to run $(#pmQueryContainer).hide() along with the hit of the search button. 2) Would that be feasable only for that specific query? Which files would I have to modify? Finally some general questions about attributes search: 3) From my tries, it looks like the 'suggest' type doesn't accept a keyfield and a showfield parameter. Am I right? 4) Accordingly, the 'options' type doesn't deal with a 'dependfld' parameter. Right? 5) Actually I would like to have a first field with the 'suggest' type and a second field (depending on the first field) with the 'options' type. But I didn't see any example like that. Probably because of point 4) above. Isn't such a query supposed to be set up in pmapper 4.2? Thanx in advance for your help or ideas! BaK -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] postgis search with suggest option
Hi Armin, hi all, I am trying to set up an attribute search on a postgis table. A simple query works fine, but I get errors as soon as I add the Definition tag, in order to have the suggest option working. searchitem name=tree description=Tree layer type=postgis name=tree field type=n name=id_tree description=Tree wildcard=2 definition type=suggest connectiontype=db minlength=1 startleft=1 sort=asc /definition /field /layer /searchitem [error] [client 127.0.0.1] PHP Fatal error: require_once(): Failed opening required 'MDB2.php' (include_path='.:/usr/share/php:/usr/share/pear') = apt-get install php-mdb2 [error] [client 127.0.0.1] = P.MAPPER: DB ERROR =\nStandard Message: MDB2 Error: not found\nDBMS/Debug Message: unable to find package 'MDB2_Driver_pgsql' file 'MDB2/Driver/pgsql.php' = apt-get install php-mdb2-driver-pgsql [error] [client 127.0.0.1] = P.MAPPER: DB ERROR =\nStandard Message: MDB2 Error: not found\nDBMS/Debug Message: *no RDBMS driver specified * Am I supposed to install something else or define something in the php.ini file? I tried to add the following into the Definition tag, dsn encoding=UTF-8pgsql://user:pass@localhost/db_name/dsn but I get: [error] [client 127.0.0.1] = P.MAPPER: DB ERROR =\nStandard Message: MDB2 Error: unknown error\nDBMS/Debug Message: _doQuery: [Error message: Could not execute statement] Any help will be much appreciated! Thx! BaK -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] postgis search with suggest option
Wow, thanx for the fast answer! I wasn't clear sorry, the 2 following lines were supposed to tell what I did to correct each related error: = apt-get install php-mdb2 = apt-get install php-mdb2-driver-pgsql So the 2 missing packages are already installed. But now I have this error, with which I don't know what to do: [error] [client 127.0.0.1] = P.MAPPER: DB ERROR =\nStandard Message: MDB2 Error: not found\nDBMS/Debug Message: *no RDBMS driver specified * Any idea? On Thu, Apr 12, 2012 at 5:21 AM, Armin Burger armin.bur...@gmail.comwrote: well, your operating systems already tells you the commands for installing the missing packages (apt-get install) ... in addition, you can search for MDB2 on the wiki, there you'll get e.g. a link to http://svn.pmapper.net/trac/wiki/UpgradeOlderVersions armin -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] postgis search with suggest option
That's it, I thought the SQL tag wasn't required as I didn't need to filter the postgis data. Now it works: searchitem name=tree description=Tree layer type=postgis name=tree field type=n name=id_tree description=Tree wildcard=2 definition type=suggest connectiontype=db minlength=1 startleft=1 sort=asc dsn encoding=UTF-8pgsql://user:pass@localhost /db_name/dsn sqlSELECT DISTINCT id_tree FROM tree ORDER BY id_tree/sql /definition /field /layer /searchitem Thanx a lot Armin! About modifying the wiki pagehttp://svn.pmapper.net/trac/wiki/DocManualsearch, I still have to find how to do that... In the meantime, here under the first postgis/suggest example simplified with the minimal attributes needed: searchitem name=cities_suggest_pg description=Cities Suggest PG layer type=postgis name=cities1eu_pg field type=s name=name description=City wildcard=2 definition type=suggest connectiontype=db sort=asc minlength=1 dsn encoding=UTF-8pgsql://postgres:postgres@localhost/gisdb/dsn sqlSELECT DISTINCT name FROM cities1eu_pg ORDER BY name/sql /definition /field /layer /searchitem On Thu, Apr 12, 2012 at 5:48 AM, Armin Burger armin.bur...@gmail.comwrote: why don't you try a definition similar to the settings from the wiki for exactly Postgis and suggest (there is one...)? you are for sure missing the sql tag. And when it works update the wiki and explain in more detail what parameters are required... On Thu, Apr 12, 2012 at 1:34 PM, Chris forum bak.fo...@gmail.com wrote: Wow, thanx for the fast answer! I wasn't clear sorry, the 2 following lines were supposed to tell what I did to correct each related error: = apt-get install php-mdb2 = apt-get install php-mdb2-driver-pgsql So the 2 missing packages are already installed. But now I have this error, with which I don't know what to do: [error] [client 127.0.0.1] = P.MAPPER: DB ERROR =\nStandard Message: MDB2 Error: not found\nDBMS/Debug Message: no RDBMS driver specified Any idea? On Thu, Apr 12, 2012 at 5:21 AM, Armin Burger armin.bur...@gmail.com wrote: well, your operating systems already tells you the commands for installing the missing packages (apt-get install) ... in addition, you can search for MDB2 on the wiki, there you'll get e.g. a link to http://svn.pmapper.net/trac/wiki/UpgradeOlderVersions armin -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] TOC - Category with only one layer
Thanx for your answer. I will live with it for now, and play with the files you pointed out if I find some time to. But you are right, logic/intuition may vary a lot from one person to another! In the meanwhile I have tested pmapper 5-dev demo, looks very promising! I noticed you have created a new level in the tree with the so called 'Domains', great! I also saw that one have to choose from the Blue Marble layer or the OSM one, both can not being displayed together, which makes sense. If I may throw an idea here, that would be to have a separate section for 'background' layers that you can select with radio buttons like in OpenLayers, in order to have only one of them selected at a time. If I dare again make some proposals, the following web site (using the complicated Mapfish) has some nice GoogleEarth and StreetView functionalities : http://sitn.ne.ch/ Thx again for the good job! BaK On Sat, Mar 17, 2012 at 4:27 AM, Armin Burger armin.bur...@gmail.comwrote: On 16/03/2012 16:35, Chris forum wrote: Sorry, sent it too fast... here again without errors: Sometimes there is a category that contains only one layer, e. g. in this example: http://www.pmapper.net/demo/**p42/map_default.phtml?winsize=** mediumlanguage=enconfig=**defaulthttp://www.pmapper.net/demo/p42/map_default.phtml?winsize=mediumlanguage=enconfig=default Category: Nature-spatial Data / Layer: Rivers For cases like that, is there an easy way to only display the layer in the tree, in 1 line without the +/-? There is in my opinion no easy way, I would even say it could be quite cumbersome to achieve this. You will need to modify pm.toc.js and toc.php and try to understand the logic there. And That would simplify/shorten the TOC and make it more logical I think. Which display is more logical than the other depends on the individual perception. It took me some time to set it up in the way as it currently is since this was what I personally found most intuitive, but of course this may vary much... ;-) Indeed, if the layer has been collapsed while being deactivated, it is not displayed into the map even if the category has got the check mark, which could be confusing. You can deactivate the checkboxes for the categories, this will remove a functionality that could be handy, but also a source of confusion. armin -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] TOC - Category with only one layer
Hello, Sometimes there is a category that contains only one layer, e. g. in this example: http://www.pmapper.net/demo/p42/map_default.phtml?winsize=mediumlanguage=enconfig=default Category: Nature-spatial Data / Layer: Rivers For cases like that, is there an easy to only display the layer in the tree, in 1 line with the +/-? That would simplify/shorten the TOC and make it more logical I think. Indeed, if the layer has been collapsed while being deactivated, it is not displayed in to the map even if the category has got the check mark, which could be confusing. Kind regards, BaK -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] TOC - Category with only one layer
Sorry, sent it too fast... here again without errors: Sometimes there is a category that contains only one layer, e. g. in this example: http://www.pmapper.net/demo/p42/map_default.phtml?winsize=mediumlanguage=enconfig=default Category: Nature-spatial Data / Layer: Rivers For cases like that, is there an easy way to only display the layer in the tree, in 1 line without the +/-? That would simplify/shorten the TOC and make it more logical I think. Indeed, if the layer has been collapsed while being deactivated, it is not displayed into the map even if the category has got the check mark, which could be confusing. Kind regards, BaK On Fri, Mar 16, 2012 at 9:22 AM, Chris forum bak.fo...@gmail.com wrote: Hello, Sometimes there is a category that contains only one layer, e. g. in this example: http://www.pmapper.net/demo/p42/map_default.phtml?winsize=mediumlanguage=enconfig=default Category: Nature-spatial Data / Layer: Rivers For cases like that, is there an easy to only display the layer in the tree, in 1 line with the +/-? That would simplify/shorten the TOC and make it more logical I think. Indeed, if the layer has been collapsed while being deactivated, it is not displayed in to the map even if the category has got the check mark, which could be confusing. Kind regards, BaK -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] pm_debug.log error
So easy when you have the correct instructions! Everything is fine now! : ) Armin, thank you very much for the support, I really appreciate! ++ BaK On Fri, Mar 2, 2012 at 7:10 PM, Armin Burger armin.bur...@gmx.net wrote: try to use settings independent from the Linux standard directories to avoid conflicts. Set the error log to a writable directory by www-data, do not use apache log dirs, e.g. error_log = /tmp/php_errors.log If it works (which I would guess...) then you can set a correct directory for it (and include it also in the log rotation, but be aware of the permission settings...), e.g. # mkdir /var/log/php # chown www-data /var/log/php armin On 02/03/2012 10:44, Chris forum wrote: Hi Armin, Thanx for your answer. I had already made the following modifications to the php.ini files, according to the DocQuickInstall: *error_reporting = E_ALL ~E_NOTICE log_errors = On error_log = php_errors.log* and *enable_dl=On extension=php_mapscript.so* I don't think there are other parameters related to my error on the DocQuickInstall that I should change. Reading your answer, I tried to set* error_log = pm_debug.log* - error still displaying I also tried to create the pm_debug.log into /var/log/apache2/ with www-data:users as the owner - error still here Is there anything I could show you to help locate the problem? Thx, BaK On Tue, Feb 28, 2012 at 7:39 PM, Armin Burgerarmin.bur...@gmail.com** wrote: just follow the installation instructions described here (especially the ones listed as IMPORTANT) http://svn.pmapper.net/trac/**wiki/DocQuickinstallhttp://svn.pmapper.net/trac/wiki/DocQuickinstall and it should be done --**--** -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/**sfnl/114/51521223/http://www.accelacomm.com/jaw/sfnl/114/51521223/ __**_ pmapper-users mailing list pmapper-users@lists.**sourceforge.netpmapper-users@lists.sourceforge.net https://lists.sourceforge.net/**lists/listinfo/pmapper-usershttps://lists.sourceforge.net/lists/listinfo/pmapper-users -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] pm_debug.log error
Hi Armin, Thanx for your answer. I had already made the following modifications to the php.ini files, according to the DocQuickInstall: *error_reporting = E_ALL ~E_NOTICE log_errors = On error_log = php_errors.log* and *enable_dl=On extension=php_mapscript.so* I don't think there are other parameters related to my error on the DocQuickInstall that I should change. Reading your answer, I tried to set* error_log = pm_debug.log* - error still displaying I also tried to create the pm_debug.log into /var/log/apache2/ with www-data:users as the owner - error still here Is there anything I could show you to help locate the problem? Thx, BaK On Tue, Feb 28, 2012 at 7:39 PM, Armin Burger armin.bur...@gmail.comwrote: just follow the installation instructions described here (especially the ones listed as IMPORTANT) http://svn.pmapper.net/trac/wiki/DocQuickinstall and it should be done -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] pm_debug.log error
Hi all, First try with p.mapper, it looks very nice! OS: Ubuntu 11.04 p.mapper: 4.2.0 I get the demo working, but I still have the following error message in the Apache error log (/var/log/apache2/error.log) *[Tue Feb 28 15:28:58 2012] [error] [client 127.0.0.1] PHP Warning: fopen(./pm_debug.log): failed to open stream: Permission denied in /var/www/pmapper-4.2.0/incphp/common.php on line 115 [Tue Feb 28 15:28:58 2012] [error] [client 127.0.0.1] Cannot create debug log file . Check permissions.* A guess was to create pm_debug.log file into /var/log/apache2 with www-data:users as the owner: -rw-rw-rw- 1 www-data users0 2012-02-28 06:44 pm_debug.log But the error still appears... Any idea how to solve this? Of course I can set debugLevel to 0 in the config_default.xml file, but that's not the point ; ) Thx, BaK Here after the detailed installation steps I have followed: 1) add the following new entry to /etc/apt/sources.list: 2) deb http://www.pmapper.net/dl/debian binary/apt-get updateapt-cache search pmapperapt-get install pmapper-demodataapt-get install pmapper-4.2 The packages will be installed under the default Apache document root of Debian /var/www/ 3) http://localhost/pmapper-4.2.0/map_default.phtml 4) Adapt settings of /var/www/pmapper-4.2.0/config/default/pmapper_demo.map WEB IMAGEPATH /tmp/ IMAGEURL /tmp/ 5) In /etc/php5/apache2/php.ini, set parameters for PHP errors log (line 514) error_reporting = E_ALL ~E_NOTICE(line 552) log_errors = On(line 636) error_log = php_errors.log 6) Load the PHP Mapscript Extension in php.ini (line 815) enable_dl=On (remplace enable_dl=Off)(line 942) extension=php_mapscript.so -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users