Re: [pmapper-users] WMS with authentication

2017-02-21 Thread Armin Burger
The WMS standard does not really foresee authentication, but most WMS's 
that require authentication are usually using basic web server 
authentication, you should be able to handle that with a URL of type

http://username:passw...@www.your-wms-service.net/

armin

On 21/02/17 10:40, Alexandre Oliveira wrote:
> Good morning,
>
> I´m trying, in my pmapper project, to include a WMS layer, but the one I
> want to use has an username and password associated.
>
> In the METADATA definition, does anyone know the code to use to get acess
> to the WMS?
>
> Thanks
> Alex
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] pmapper project

2016-05-29 Thread Armin Burger
You can also use the latest MS4W package from here

https://sourceforge.net/projects/pmapper/files/p.mapper%204/4.4.0/

It's based on the svn export of the latest p.mapper 4 with fixes and new 
plugins from Thomas Raffin.

I haven't tried if it works since I have no Windows PHP installation any 
more, but the zip compilation is based on a script that in the past 
produced correct ms4w packages.

p.mapper 5 is based on a legacy OpenLayers version where the OL 
developers did not provide any single bug fix release since years, so I 
regard this as a dead end. If I had to do this type of development again 
I would use a better supported library like Leaflet.

Cheers
Armin


On 27/05/16 16:15, Jeff McKenna wrote:
> Great timing, I am packaging pmapper5 now for MS4W users (on
> http://ms4w.com).  Should I be grabbing it from SVN?
> http://svn.pmapper.net/repos/pmapper/trunk/pmapper5/
>
> -jeff
>
>

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Problems on TOC, was [RE: layers list disappeared]

2016-05-26 Thread Armin Burger
set the php.ini value for error reporting to the one listed in the wiki 
under quick install, also set error display to 0, and then see if it 
works ok.

And generally check PHP error log file and Javascript console for errors.



On 26/05/16 19:17, Eugenio Trumpy wrote:
> Hi everybody,
>
> after a long day of googling it seemed my problem was on config file, which 
> hadn't the tags .
> Firstly I have to specify that my config file included the categories tags, 
> and of course the
> values of UI  was set to 1.
> Actually I don't understand why, up two days ago, the application works fine 
> anyway
> By the way I rearranged the config file by adding the  tag, 
> including all the layers I have.
> Now pmapper load the map but in the TOC I have a lot of
> Notice: Undefined variable: dynamicClasses 
> in/var/www/html/wm_geothopica/incphp/layerview.phpon line 218
> and in the end this worning:
> Warning: Cannot modify header information - headers already sent by (output 
> started at /var/www/html/wm_geothopica/incphp/layerview.php:218) 
> in/var/www/html/wm_geothopica/incphp/xajax/x_toc.phpon line 48
>
> Moreover the application doesn't work fine, for instance the identify 
> function doesn't give any answer, no attribute are displayed.
>
> Can anybody help me to understand what happened?
>
> Thanks
>
> Eugenio
>
> From: frippe12...@hotmail.com
> To: pmapper-users@lists.sourceforge.net
> Subject: layers list disappeared
> Date: Thu, 26 May 2016 11:40:03 +0200
>
>
>
>
> Hi all,
>
> I was just working to refresh a running application setup some years ago.
> Up to yesterday, during the refresh operations, everything works fine.
> Just to clarify, the update work consisted only in adding a pair of new layers
> and two tiles services as basemaps.
> Pmapper is in version 4 and mapserver 6.4.1 configured with fastCGI.
> Today the application gives problems, the interface is well loaded, but it is 
> empty,
> no layers are displayed on the list of contents.
> Any idea on what happened?
>
> Best
>
> Eugenio
>   
> --
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Pmapper mobile devices (cell)

2016-01-20 Thread Armin Burger
PHP Notices are not errors, but notices... if you get them it means that 
they are not disabled as described in the manual. Deactivate them in 
php.ini, with
   error_reporting = E_ALL & ~E_NOTICE
as described. Then try again if you have problems.

armin


On 20/01/16 12:02, Marcelo wrote:
> Hi! I'm making and install from strach but can get it done properly.
>
> after I follow the steps in the debian instalation (using ubuntu
> 14.04.3) can't load the maps: I keep having this error.
>
> [:error] [pid 16551] [client xx.xx.xx.xx:34112] PHP Notice:  Trying to
> get property of non-object in
> /var/www/html/pmapper/incphp/query/search.php on line 54, referer:
> http://xx/pmapper/map.phtml
>
>
> I know this an error on php but I'm almost sure that I follow the
> instruction. Maybe I skip some line in the text, that is why my error in
> the log ...
>
>
> Sorry my english,
> regards,
> Marcelo
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] pmapper setup on centOS 7

2015-11-07 Thread Armin Burger
you mainly need to run some debugging as described here:

http://svn.pmapper.net/trac/wiki/FaqDebugging

armin

On 04/11/15 21:36, luca paganotti wrote:
> Hi list, I'm new to map server and pmapper. I'm requested to setup a centOS
> 7 box running mapserver and pmapper (v. 4). I followed some info I found on:
>
> - http://svn.pmapper.net/trac/wiki/DocQuickinstall
> -
> http://www.rigacci.net/wiki/doku.php/formazione/web_programming/pmapper4
>
> but unfortunately I'm not able to view any map/layer. I see the ui but the
> map loading stucks forever telling me that a loading is in progress ...
> forever ...
>
> I'm asking this list, but if it's not the right place where to ask, please
> redirect me to the right place.
>
> I'm searching for a detailed step by step guide on how to setup at least a
> pmapper site with the demodata visible.
> Please forgive my english and thanks for any answer.
>
> 
> -- Luca Paganotti
> 
> -- sourceforge email:
> -- lucapagano...@users.sourceforge.net
> -- skype name: luca.paganotti
> [image: http://it.linkedin.com/in/lucapaganotti]
> 
> -
> -- Mistakes are portals of discovery - JAAJ
> -
> --
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] pmapper 4.3.2 - search (in postgis) with option sort="desc"

2015-10-29 Thread Armin Burger
the "sort" parameter is not used for options and DB connection type, but 
as you already noticed, it's also not needed since one can easily define 
the sort/order directly via the SQL definition.

armin

On 29/10/15 15:42, jose mvm wrote:
> Hi,
>
> I' am trying to get a drop-down list for search, sorted by descending order:
>
> =
>   
>  
>description="Ano" wildcard="2">
>connectiontype="db" sort="desc">
>encoding="UTF-8">pgsql://zemacau:z53498k@10.27.2.24/pmapper
>   SELECT DISTINCT proc_ano, 
> proc_ano FROM p_obra WHERE proc_ano IS
> NOT NULL ORDER BY proc_ano
>   
>   
>description="Número" wildcard="2" />
>description="Código Edifício"
> wildcard="0" />
>  
>  
> =
>
> But it seems to me that the option SORT in the search.xml file is ignored by
> the search.php file...
>
> pm_debug.log shows me that information:
>
> =
> [29-Oct-2015 14:20:04] P.MAPPER debug info
> XML->//definition
>   SimpleXMLElement Object
> (
>  [@attributes] => Array
>  (
>  [type] => options
>  [connectiontype] => db
>  [sort] => desc
>  )
>
>  [dsn] => pgsql://zemacau:z53498k@10.27.2.24/pmapper
>  [sql] => SELECT DISTINCT proc_ano, proc_ano FROM p_obra WHERE proc_ano
> IS NOT NULL ORDER BY proc_ano
> )
>
> [29-Oct-2015 14:20:04] P.MAPPER debug info
> search.php->getOptionsFromDb()
>   SELECT DISTINCT proc_ano, proc_ano FROM p_obra WHERE proc_ano IS NOT NULL
> ORDER BY proc_ano
> [29-Oct-2015 14:20:04] P.MAPPER debug info
> search.php->getOptionsFromDb()->json
>   { "1960":"1960", "1961":"1961", "1962":"1962", "1963":"1963",
> "1964":"1964", "1967":"1967", "1969":"1969", "1970":"1970", "1972":"1972",
> "1975":"1975", "1979":"1979", "1984":"1984", "1985":"1985", "1986":"1986",
> "1987":"1987", "1988":"1988", "1989":"1989", "1990":"1990", "1991":"1991",
> "1992":"1992", "1993":"1993", "1994":"1994", "1995":"1995", "1996":"1996",
> "1997":"1997", "1998":"1998", "1999":"1999", "2000":"2000", "2001":"2001",
> "2002":"2002", "2003":"2003", "2004":"2004", "2005":"2005", "2006":"2006",
> "2007":"2007", "2008":"2008", "2009":"2009", "2010":"2010", "2011":"2011",
> "2012":"2012", "2013":"2013", "2014":"2014", "2015":"2015"}
> =
>
> If i force the SELECT in search.xml file with DESC, like this:
>
> SELECT DISTINCT proc_ano, proc_ano FROM p_obra WHERE proc_ano IS NOT
> NULL ORDER BY proc_ano DESC
>
> the pm_debug.log shows me the coorect information:
>
> =
> XML->//definition
>   SimpleXMLElement Object
> (
>  [@attributes] => Array
>  (
>  [type] => options
>  [connectiontype] => db
>  [sort] => desc
>  )
>
>  [dsn] => pgsql://zemacau:z53498k@10.27.2.24/pmapper
>  [sql] => SELECT DISTINCT proc_ano, proc_ano FROM p_obra WHERE proc_ano
> IS NOT NULL ORDER BY proc_ano DESC
> )
>
> [29-Oct-2015 14:27:18] P.MAPPER debug info
> search.php->getOptionsFromDb()
>   SELECT DISTINCT proc_ano, proc_ano FROM p_obra WHERE proc_ano IS NOT NULL
> ORDER BY proc_ano DESC
> [29-Oct-2015 14:27:18] P.MAPPER debug info
> search.php->getOptionsFromDb()->json
>   { "2015":"2015", "2014":"2014", "2013":"2013", "2012":"2012",
> "2011":"2011", "2010":"2010", "2009":"2009", "2008":"2008", "2007":"2007",
> "2006":"2006", "2005":"2005", "2004":"2004", "2003":"2003", "2002":"2002",
> "2001":"2001", "2000":"2000", "1999":"1999", "1998":"1998", "1997":"1997",
> "1996":"1996", "1995":"1995", "1994":"1994", "1993":"1993", "1992":"1992",
> "1991":"1991", "1990":"1990", "1989":"1989", "1988":"1988", "1987":"1987",
> "1986":"1986", "1985":"1985", "1984":"1984", "1979":"1979", "1975":"1975",
> "1972":"1972", "1970":"1970", "1969":"1969", "1967":"1967", "1964":"1964",
> "1963":"1963", "1962":"1962", "1961":"1961", "1960":"1960"}
> =
>
> But the drop-down list appears always sorted in ascending order...
> 
>
> I think this is a pmapper bug...
>
> Can anyone help me, please?
> Thanks in advance
>
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/pmapper-4-3-2-search-in-postgis-with-option-sort-desc-tp4025805.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> --
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>


Re: [pmapper-users] wiki page not found..

2015-10-28 Thread Armin Burger
There was a misconfiguration of the web server, now it should work again.

thanks
armin

On 28/10/15 18:16, Valerio wrote:
> Hello,
> plugin and documentation page are not reachable (404):
> http://svn.pmapper.net/trac/wiki
> is there a new url?
>
> thanks in advance
> regards
>
> Valerio
> --
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Tile caching support in p.mapper 5

2015-04-07 Thread Armin Burger
you add a tag preventCaching="true" in the config XML file.

I don't think it prevents caching for layers where you have a 
server-based tile-caching activated. Would also not make much sense to 
first say "use cache", and then say "no, don't use it"...

I just added the "cache prevention" function in general to non-tiled 
layers even though there is practically no caching happening, except in 
a conceivable case where you might have dynamic layers defined. But it 
was simple to implement using the same function as for the layer used 
for result highlighting, so I added it.

For the same reason I added that function then to tiled layers as well, 
even though I find it plainly useless to use tiled layers whose main 
advantage is the caching (at least in the browser) and then find a way 
to avoid exactly that...

/a

On 04/07/2015 12:33 PM, gioza wrote:
> Hi Armin,
> I have seen from svn trunk changeset 1377 which should prevent caching
> possibility for layers.
> How does it work? Have I to set any parameters in xml file?
> Does it work independently of tilecaching system?
> Thank you very much,
> Giovanni
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/pmapper-users-Tile-caching-support-in-p-mapper-5-tp4025722p4025744.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> --
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


[pmapper-users] Tile caching support in p.mapper 5

2015-01-07 Thread Armin Burger
Dear all

In case of interest, I added a simple solution for on-disk tile caching 
for tiled layers in pm5. It only requires enough disk space for the 
cache image tiles and a few config parameters.

It's mainly useful for large datasets that shall be displayed at lower 
zoom levels but have too many details to be rendered acceptably fast at 
lower zoom levels. Could be vector layers with a lot of details or 
raster layers with lots of single files to be read.

The advantage to a fully-fledged tile cache solution (like MapCache) is 
that it does not require additional service set-ups. And in case of 
vector layers it also supports legend icons (and printing, once it is 
fully working...).

If you want to try, see changesets 1372 and 1375 for the files to be 
updated from svn trunk. Config parameters are listed here:
http://svn.pmapper.net/trac/wiki/XmlFileSettingsFive?action=diff&version=12

could look like


and needs under  an entry like
   /path/to/pmapper_tilecache/default


A corresponding basic seeding functionality is currently in test. 
Out-dated tile files, e.g. due to changes in symbology, need to removed 
manually in the directory of the tile cache. But the Unix "find" command 
allows a quite comprehensive functionality for this.

Regards
/A

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and 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] Pmapper5: refresh a layer

2014-12-09 Thread Armin Burger
you could also just have it easy, and if you want layers without any 
caching, use the non-tiled ("PMap") type

or add a timestamp KVP at the end of each x/y/z request URL, as it's 
done for the highlight layer.




On 12/09/2014 10:50 AM, gioza wrote:
>   this function seems to do the job (partially). I have to do more tests
> because it works only after a "pan"
>
> trigger: function myRefreshMap(){
>  if (this.map) {
>   map.layers[4].clearGrid();
>   map.layers[4].redraw(true);
>   
>  }
>
> },
>
> clearGrid deletes the cache for layer[4]
>
>
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Pmapper5-refresh-a-layer-tp4025689p4025705.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> --
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Pmapper5: refresh a layer

2014-12-02 Thread Armin Burger
you don't have caching on non-tiled layers, unless the URL for the layer 
image is 100% identical. Not that likely if you consider map extent 
coordinates for requests having 6 or more decimals for each corner 
coordinate pair...


On 12/02/2014 10:01 PM, gioza wrote:
> Hi Armin,
> if I understood the modifications you suggested have effect on cache
> lifetime. I have to do more tries to understand why it doesn't work for me
> (I have cache also with PMap setting).
> By the way a layer changement (symbology, contents...) won't be appreciate
> during a live-session, i think.
> I tried with  redraw function but with no success obviously because it
> redraws something in the cache...
>
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Pmapper5-refresh-a-layer-tp4025689p4025702.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> --
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] tile edge problem

2014-12-02 Thread Armin Burger
That's a common issue with tiles. There are some tags for labels in the 
map file that suppress partial labels, or some special placement 
settings I guess. It will just solve some of your problems however. 
Symbols cut in one tile should however be continued in the adjacent one.

armin



On 12/02/2014 11:38 AM, Suman wrote:
> i am facing the following problem.
> 
> As in given image the symbol of point are incomplete. i think that the edge
> of the tile is making this type of symbol.
> So, how can i solve this problem?
> Any suggestion please.
>
> Thanx in advance.
>
> Suman
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/tile-edge-problem-tp4025695.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> --
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Pmapper5: PanZoomBarContainer problem with ol 2.12 implementation

2014-12-02 Thread Armin Burger
You can of course just drop that DIV, the problems with this (relatively 
crappy implemented) control is that then you cannot easily place it 
where you want, cannot add backgrounds, transparencies etc. You can also 
use the default version of it, just remove the prototype function for it 
in pm.ol.customized.js that overwrites the default.



On 12/02/2014 03:50 PM, gioza wrote:
> Not bad solution could be:
>
> 1) remove pmPanZoomBarContainer from index.phtml file
>
> $(document).ready(function () {
>  $('#map').pmAppendElement('div', {'id': 'pmPanZoomBarContainer'});
>  PM.Init.main();
>  
>  });
>
> 2)  in \js\ol use files located in \img_g folder as images for panzoombar
> (rename \img folder to \img_black and \img_g to \img)
>
> the toolbar works and is well visible on the map
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Pmapper5-PanZoomBarContainer-problem-with-ol-2-12-implementation-tp4025690p4025698.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> --
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Pmapper5: refresh a layer

2014-12-02 Thread Armin Burger

   make sure that you emptied the browser cache before since tiles loaded
   before that change have still the old expiration time.

   If it doesn't help either try to set
   in [1]lib/[2]map/[3]pmtile/[4]index.php line 4 to
 session_cache_expire(1);

   armin

   Gesendet: Dienstag, 02. Dezember 2014 um 09:28 Uhr
   Von: gioza 
   An: pmapper-users@lists.sourceforge.net
   Betreff: Re: [pmapper-users] Pmapper5: refresh a layer
   Hi Armin,
   i tried with a shapefile (modify in qgis and show in pmapper) but with no
   success. I modified also theindex.php file .
   I am going to have more tries I let you khow.
   Thanks,
   Giovanni
   --
   View this message in context:
   [5]http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Pma
   pper5-refresh-a-layer-tp4025689p4025693.html
   Sent from the pmapper-users -- p.mapper users mailing list mailing list
   archive at Nabble.com.
   
   --
   Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
   from Actuate! Instantly Supercharge Your Business Reports and Dashboards
   with Interactivity, Sharing, Native Excel Exports, App Integration & more
   Get technology previously reserved for billion-dollar corporations, FREE
   [6]http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clk
   trk
   ___
   pmapper-users mailing list
   pmapper-users@lists.sourceforge.net
   [7]https://lists.sourceforge.net/lists/listinfo/pmapper-users

References

   1. http://svn.pmapper.net/trac/browser/trunk/pmapper5/lib
   2. http://svn.pmapper.net/trac/browser/trunk/pmapper5/lib/map
   3. http://svn.pmapper.net/trac/browser/trunk/pmapper5/lib/map/pmtile
   4. 
http://svn.pmapper.net/trac/browser/trunk/pmapper5/lib/map/pmtile/index.php
   5. 
http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Pmapper5-refresh-a-layer-tp4025689p4025693.html
   6. 
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
   7. https://lists.sourceforge.net/lists/listinfo/pmapper-users
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Pmapper5: refresh a layer

2014-12-01 Thread Armin Burger
could you give it a try and change in lib/map/pmtile/maptile.php
line 55 to

   $offset = 1;

I'm not sure if it's this value or the one from the index.php file for 
"session_cache_expire" that defines effectively the cache expiration.

In the case the offset value works I will add some small modifications 
to allow setting default global values via the config or for single 
layers individually.

armin


On 12/01/2014 10:17 AM, gioza wrote:
> Pmapper5 has a great property which is the client-side caching so users can
> browse very fast in the map!
> Sometimes it is useful to refresh a layer (after editing or because a layer
> contents are changed for any reason).
> I tried with a new control function in this way:
>
>   map.layers[4].redraw(true );
>   map.layers[5].redraw(true );
>
> but with no results. The layers just flashed but remain the same.
> Any idea?
>
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Pmapper5-refresh-a-layer-tp4025689.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> --
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Pmapper5: refresh a layer

2014-12-01 Thread Armin Burger
tiled layers are cached by the browser (which is the main advantage 
towards non-tiled ones...). In case of changes to the data or map file 
(symbols etc) you need to empty the browser cache. I have to check iof 
there is a config setting for defining the cache policy (expiration time 
of tiles) for testing.

Alternatively don't use layer/theme type PMTile but PMap which will 
always refresh the map image for this layer/theme.

armin


On 12/01/2014 10:17 AM, gioza wrote:
> Pmapper5 has a great property which is the client-side caching so users can
> browse very fast in the map!
> Sometimes it is useful to refresh a layer (after editing or because a layer
> contents are changed for any reason).
> I tried with a new control function in this way:
>
>   map.layers[4].redraw(true );
>   map.layers[5].redraw(true );
>
> but with no results. The layers just flashed but remain the same.
> Any idea?
>
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Pmapper5-refresh-a-layer-tp4025689.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> --
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] [pmapper5] pm.ol.theme.js and highlight layer opacity issues

2014-11-25 Thread Armin Burger
this bug was introduced with changeset 1361 to correct wrong mime type. 
New fix should solve it

http://svn.pmapper.net/trac/changeset/1362

armin


On 11/25/2014 11:13 AM, Raffaele Morelli wrote:
> With a fresh install from svn (rev 1361), the map in the viewport is showed 
> with a
> div element - the highlight layer/theme - stacked on top with opacity set to 
> 0.3
> The result is this grey "veil" over the map.
>
> Commenting line #47 in
> http://svn.pmapper.net/trac/browser/trunk/pmapper5/js/src/pm.ol.theme.js 
> removes
> the highlight layer but I guess this is not the right fix for that.
>
> Any idea?
>
> /Raffaele
>
>

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] [errors] pmhighlight et al.

2014-11-18 Thread Armin Burger
Raffaele

thanks already for extending the wiki. I will try to add a few changes 
towards p.mapper 4 config that I still remember.

On 11/18/2014 01:55 PM, Raffaele Morelli wrote:
> On 18/11/14 at 01:25pm, Armin Burger wrote:
>> I would just roughly guess you have a definition of a group in the XML
>> file under   that is then not defined under .
>> You could try to use the console logging in PM.Control.PMToc.js wher
>> line 500 seems to give this error.
>> Uncomment the line 497 and change it to
>>console.log(grpName, grp);
>> and see for which group name it returns a null object for grp.
>
> "solved", I commented the raster layer in the mapfile buf forgot to comment 
> out
> the xml.

as I said, a few more checks are needed to catch errors. I will have a 
look these days.


> BTW this still occurs
>
> PM.config default js_session.php:148
> Resource interpreted as Image but transferred with MIME type image/:
> "http://localhost/pm5/lib/map/pmhighlight/?&width=1917&height=1372&bbox=-568…6,-19319204.430107,20928457.127271&crs=EPSG%3A900913×tamp=14163151369";.
> (index):1
> Resource interpreted as Image but transferred with MIME type image/:
> "http://localhost/pm5/lib/map/pmhighlight/?&width=1486&height=1200&bbox=-125…89,16543826.243852,19240727.542969&crs=EPSG%3A900913×tamp=14163151378";.
>

should now be fixed, see
http://svn.pmapper.net/trac/changeset/1361


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] [errors] pmhighlight et al.

2014-11-18 Thread Armin Burger
I would just roughly guess you have a definition of a group in the XML
file under   that is then not defined under .
You could try to use the console logging in PM.Control.PMToc.js wher
line 500 seems to give this error.
Uncomment the line 497 and change it to
  console.log(grpName, grp);
and see for which group name it returns a null object for grp.

The error might also be related to a PHP error that occurred before,
but in this case it's less likely.

The various definitions in the XML need still a bit more of
consistency checks to make the configuration a more robust against
wrong or incomplete definitions.

On Tue, Nov 18, 2014 at 12:24 PM, Raffaele Morelli
 wrote:
> Got this errors in inspector on fresh installation from svn
>
>
> PM.config default js_session.php:148
> Uncaught TypeError: Cannot read property 'hasOwnProperty' of null
> PM.Control.PMToc.js:500(anonymous function) 
> PM.Control.PMToc.js:500o.extend.each
> jquery-2.1.0.min.js:2OpenLayers.Control.PMToc.OpenLayers.Class.updateToScale
> PM.Control.PMToc.js:490OpenLayers.Events.OpenLayers.Class.triggerEvent
> OpenLayers.js:135OpenLayers.Map.OpenLayers.Class.moveTo
> OpenLayers.js:200OpenLayers.Map.OpenLayers.Class.setCenter
> OpenLayers.js:193OpenLayers.Map.OpenLayers.Class.updateSize
> OpenLayers.js:189$.extend.updateMapSize pm.map.js:88(anonymous function)
> VM1981:1
> Resource interpreted as Image but transferred with MIME type image/:
> "http://localhost/pm5/lib/map/pmhighlight/?&width=1917&height=1372&bbox=-568…6,-19319204.430107,20928457.127271&crs=EPSG%3A900913×tamp=14163096403";.
> (index):1
> Resource interpreted as Image but transferred with MIME type image/:
> "http://localhost/pm5/lib/map/pmhighlight/?&width=1486&height=1200&bbox=-125…89,16543826.243852,19240727.542969&crs=EPSG%3A900913×tamp=14163096406";.
>
>
> Any idea?
>
> --
> « Nunc est bibendum, nunc pede libero pulsanda tellus »
>
> --
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Tilcache in pmapper5?

2014-11-16 Thread Armin Burger
you're right, OL 2.13 seems to have some strange performance issues, or 
"sticky" behaviours... Deactivating a layer for example took several 
seconds with 2.13.1 which I noticed just recently, and didn't know 
why... on 2.12 it was fine again and happened immediately as was with 
2.11. So I changed OL on svn trunk from 2.13.1. back to 2.12.

The + and - buttons I've seen, I'm not sure if it can be related to the 
usage inside p.mapper, with transparent bg, etc

I cannot say anything for IE11 though since I don't have it... does it 
appear also with OL 2.13?


On 11/16/2014 07:04 PM, gioza wrote:
> You are right, but in my tests I had bad experience with OL 2.13.1.
> I realised poor performance of Zoom function/rendering with vector features
> on google base layer.
> I think this is a OL 2.13.1 issue
> (http://osgeo-org.1560.x6.nabble.com/HELP-OL-2-13-Google-v3-and-other-layers-not-zooming-quot-together-quot-td5060658.html).
>
> OL 2.12 work well with tilecache (tilecache.org), 2.11 not. With OL 2.12 and
> 2.13 in pmapper5 the +/- and nav buttons of olcontrol (the one on the left
> side) don't work.
>
> With OL 2.12 in pmapper5 I verified that if the default layer is in tiles
> mode, in IE11 some tiles are missed and become visible only zooming.
>
>
>
>
>
>
>
>
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Tilcache-in-pmapper5-tp4025488p4025673.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> --
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Tilcache in pmapper5?

2014-11-15 Thread Armin Burger
The OL version currently used in p.mapper 5 is 2.13.1

I would recommend to just use an export from pmapper5 svn trunk, not any 
old beta version...




On 11/15/2014 11:14 AM, gioza wrote:
> Some informations may help:
>
> 1) in my tests Openlayers 2.11 doesn't work with tilecache (by metacarta -
> tilecache.org); version 2.11 is the one integrate in pmapper5;
> 2) changing it with OL 2.12 (single file) and change pm.ol.customized.js
> with the one in the truck
> (http://svn.pmapper.net/trac/browser/trunk/pmapper5) make tilecache works;
> 3) Ol controls (the ones in left side of the map) don't work if you click on
> them;
> 4) I realised some problem in android systems, I'm testing it;
>
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Tilcache-in-pmapper5-tp4025488p4025671.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> --
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Tilcache in pmapper5?

2014-11-12 Thread Armin Burger
I added a basic support for native OL layer types. See changeset
   http://svn.pmapper.net/trac/changeset/1359

should work when called the application with "?config=dev" since all of 
that new type is defined in the "dev" configuration.

The custom.js needs to create and reference the native layers inside the 
block
   $.extend(PM.OL.Theme.olNativeThemes,
   {

   });

check also the dev XML config file for "vmapLayerWms", layer type needs 
to be specified as "olnative". Currently it uses a WMS, I tested it also 
with an XYZ layer, TMS & WMTS should work as well.

Note however that some cross checks are still missing, so all 
definitions in XML and the custom.js must be consistent and congruent, 
otherwise you will get some Javascript errors.

In addition, all those definitions should be described in the wiki, but 
so far nobody wanted to update and extend it for p.mapper 5...

armin


On 11/12/2014 09:08 PM, gioza wrote:
> Hi Armin,
> I think it would be a great improvement. I am  trying to get it with a
> workaround as I described in the post above but it isn't a good way, i khow.
> in my opinion to use tms or wmsc service directly from ol will make pmapper5
> perfect.
> Giovanni
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Tilcache-in-pmapper5-tp4025488p4025665.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> --
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Tilcache in pmapper5?

2014-11-12 Thread Armin Burger
One small part regarding layers that was planned but never implemented 
is a kind of OL native type. Meaning layer creation of whatever type 
using only OL standard functions defined by users via customized code 
that are then added to the map in the order how they are defined in the 
config files. Since there is an abundance of OL layer types with very 
different definitions it's not possible to define them via a 
configuration file.

I will have a bit a look how it can be easily achieved. The idea is to 
use a custom JS file that creates all required OL layer objects and add 
them to a list, from where they are taken and added to the map in the 
order and groups they are set in the config files.

armin



On 11/12/2014 05:24 PM, gioza wrote:
> I'm trying to make tilecache working with pmapper5.
> My aim is to integrate a code that let "openlayers" render the wms
> tile-service created by tilecache.
> Great performance for raster rendering...
> My first steps:
>
> 1) substitute openlayers single file with version 2.12 (only this version
> work for me)
> 2) substitute pm.ol.customized  with the one in the "pmapper5 truck"
>
> As I am not a software developper I tried to "feed" openlayers directly
> working in the "pm.ol.theme.js" file.
> I simply add a new part of code in this way:
>
> addBASETHEME: function() {
> var osm_base= new OpenLayers.Layer.Google("Google street",{
>  visibility: false
>  });
>
> var ol_wms = new OpenLayers.Layer.WMS( "Cached Base Map",
>
> "http://localhost:8080/cgi-bin/tilecache211/tilecache.cgi?";,
>{LAYERS : "google-tiles"},{
> sphericalMercator: true,projection: EPSG:900913"}   );
>   
>   map.addLayers([ ol_wms ]); },
>
> at line 29 I added this code:
> this.addBASETHEME();
> Before this part of code:
> this.getThemeList();
> this.addThemesToMap();
> this.addHighlightTheme();
>
> First results:
>
> Tilecache is on pmapper5 as a fix layer.
>
> Anyone insterested in developping pmapper5 in this direction? I this wms-c
> service is a great improvement for pmapper5, especially when raster
> background is requested!
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Tilcache-in-pmapper5-tp4025488p4025663.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> --
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] PMapper5 : PM_RESULT_FIELDS order not observed

2014-10-29 Thread Armin Burger
ok, I can change that, though I guess the the performance gain will be 
likely quite small in real world situations. Lets just hope no field 
names will be ever called "null" then... ;-)

armin

On 10/29/2014 12:26 PM, Thomas RAFFIN wrote:
> Hi,
>
> I think it should be better to use "isset($recIn[$fld])" instead of
> "array_key_exists($fld, $recIn)" by considering performance.
>
>
> Le 14/10/2014 19:10, Armin Burger a écrit :
>> On 10/14/2014 07:50 AM, Raffaele Morelli wrote:
>>> On 14/10/14 at 12:32am, Armin Burger wrote:
>>>> yes, I guess this was always the way how it worked aslo in older
>>>> versions. It's not just for Postgis but also shapefile layers etc.
>>>>
>>>> The change to make it behave as you expected is to modify the
>>>> lib/query/query.php file at line 229 replacing the 4 subsequent lines
>>>> with the following ones:
>>>> foreach ($resultFields as $fld) {
>>>> if (array_key_exists($fld, $recIn)) {
>>>> $rec[$fld] = $recIn[$fld];
>>>> }
>>>> }
>>>>
>>>> Maybe a bit of testing would be needed but it could be changed in the
>>>> main code to always work like that, I agree that it seems more logic...
>>>>
>>>> armin
>>> Tested a little and works smoothly. IMHO it should be committed because when
>>> dealing with query results it's really useful to rearrange fields order and 
>>> left
>>> db query untouched (even more with shapefile's dbf, I guess).
>> OK, committed to svn trunk
>>
>> --
>> Comprehensive Server Monitoring with Site24x7.
>> Monitor 10 servers for $9/Month.
>> Get alerted through email, SMS, voice calls or mobile push notifications.
>> Take corrective actions from your mobile device.
>> http://p.sf.net/sfu/Zoho
>> ___
>> pmapper-users mailing list
>> pmapper-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>
>>
>
>
> --
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] PMapper5 : PM_RESULT_FIELDS order not observed

2014-10-14 Thread Armin Burger
On 10/14/2014 07:50 AM, Raffaele Morelli wrote:
> On 14/10/14 at 12:32am, Armin Burger wrote:
>> yes, I guess this was always the way how it worked aslo in older
>> versions. It's not just for Postgis but also shapefile layers etc.
>>
>> The change to make it behave as you expected is to modify the
>> lib/query/query.php file at line 229 replacing the 4 subsequent lines
>> with the following ones:
>>   foreach ($resultFields as $fld) {
>>   if (array_key_exists($fld, $recIn)) {
>>   $rec[$fld] = $recIn[$fld];
>>   }
>>   }
>>
>> Maybe a bit of testing would be needed but it could be changed in the
>> main code to always work like that, I agree that it seems more logic...
>>
>> armin
>
> Tested a little and works smoothly. IMHO it should be committed because when
> dealing with query results it's really useful to rearrange fields order and 
> left
> db query untouched (even more with shapefile's dbf, I guess).

OK, committed to svn trunk

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] PMapper5 : PM_RESULT_FIELDS order not observed

2014-10-13 Thread Armin Burger
yes, I guess this was always the way how it worked aslo in older 
versions. It's not just for Postgis but also shapefile layers etc.

The change to make it behave as you expected is to modify the 
lib/query/query.php file at line 229 replacing the 4 subsequent lines 
with the following ones:
 foreach ($resultFields as $fld) {
 if (array_key_exists($fld, $recIn)) {
 $rec[$fld] = $recIn[$fld];
 }
 }

Maybe a bit of testing would be needed but it could be changed in the 
main code to always work like that, I agree that it seems more logic...

armin


On 10/13/2014 01:47 PM, Raffaele Morelli wrote:
> Hi,
>
> there's an issue with PM_RESULT_FIELDS and the specified order of fields.
>
> No matter what is specified in PM_RESULT_FIELDS, fields order follows postgis
> table fields order.
>
> Can you confirm this behaviour?
>

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Pmapper5: zoom to selected features

2014-10-10 Thread Armin Burger
an even better solution is to use the config parameters
  
  

and adapt them to the coordinate system used for your map and typical 
scales used for tour application...




On 10/10/2014 09:06 PM, gioza wrote:
> a much better solution for my work is to modify pm.map.js in this way:
>
> line 162
>
>   zoom2extent: function(layer, idx, extStr, zoomfull) {
>   var ext = extStr.split(",");
>   
>   var minx = (ext[0]*0.9995);
>   var miny = (ext[1]*0.9995);
>   var maxx = (ext[2]*1.0005);
>   var maxy = (ext[3]*1.0005);
>   
>   map.zoomToExtent( new OpenLayers.Bounds(minx, miny, maxx, 
> maxy), true );
>   
>   
>  },
>
> the previous solution gives problem with History Navigation...
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Pmapper5-zoom-to-selected-features-tp4025486p4025634.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> --
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://p.sf.net/sfu/Zoho
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] PMapper5 "bugs"

2014-10-09 Thread Armin Burger
On 10/09/2014 02:50 PM, Raffaele Morelli wrote:
> On 09/10/14 at 02:16pm, Armin Burger wrote:
>> regarding the domains issues, try the following:
>>
>> modify file
>>   "plugins/tocdomains/tocdomains.js"
>> and add after line 60 the following
>>
>> if (typeof domCategories === 'string') {
>> domCategories = [ domCategories ];
>> }
>
> Yep, fixed.

OK, committed to SVN


>> Regarding the second issue, the configuration structure was not meant
>> to have a deeper structure, like all the other PHP or JS files cannot
>> just be placed in other folders or changing the tree depth etc. But the
>> workaround is quite easy, just modify the require_once relative paths
>> to match your file structure...
>
> I wrote that because with 4.3.* config files can be nested at least with depth
> two, that meaning : config/dir1/config_location
>
> I am dealing with ~20 configurations and nesting results in a clearer 
> directory
> "look", anyway I've changed the require_once.

I'm wondering why it should work in p.mapper 4.1+ since the default 
include statement there also just goes up 2 directories to reach "incphp":
   require_once("../../incphp/*.php");



> PS is there any ongoing work on PMapper5 release?

currently no work ongoing.


--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] PMapper5 "bugs"

2014-10-09 Thread Armin Burger

   regarding the domains issues, try the following:

   modify file
 "plugins/tocdomains/tocdomains.js"
   and add after line 60 the following

   if (typeof domCategories === 'string') {
   domCategories = [ domCategories ];
   }

   Regarding the second issue, the configuration structure was not meant to
   have a deeper structure, like all the other PHP or JS files cannot just be
   placed in other folders or changing the tree depth etc. But the workaround
   is quite easy, just modify the require_once relative paths to match your
   file structure...

   Armin


   Gesendet: Donnerstag, 09. Oktober 2014 um 06:43 Uhr
   Von: "Raffaele Morelli" 
   An: pmapper-users@lists.sourceforge.net
   Betreff: [pmapper-users] PMapper5 "bugs"
   Hi there,
   I am working on PMapper5 beta2 and got it up and running.
   As I dig into configuration I've found a couple of "bugs" (but maybe I am
   wrong)
   and if there's still interest in that here they are:
   - domains definition must contain at least two categories in order to show
   up,
   if it doesn't then domain is collapsed and no category is showed at all.
   Adding an empty category tag "fixes" that.
   - js_config.php: require_once in in line #3
   require_once("../../lib/pmsession.php");
   path is relative to config dir so if you have a deeper tree to your config
   require_once doesn't work anymore
   Hope this is useful
   Regards
   /r
   --
   « Nunc est bibendum, nunc pede libero pulsanda tellus »
   
   --
   Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
   Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
   Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
   Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
   [1]http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clk
   trk
   ___
   pmapper-users mailing list
   pmapper-users@lists.sourceforge.net
   [2]https://lists.sourceforge.net/lists/listinfo/pmapper-users

References

   1. 
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
   2. https://lists.sourceforge.net/lists/listinfo/pmapper-users
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Print pdf in pmapper 4.3.2 change size font

2014-09-02 Thread Armin Burger
The only place I see where the labels are increased is in 
print/print.php, around line 359. Just try to comment out the line

   $this->increaseLabels($pdfres);

and see if it works better.

armin

On 09/02/2014 08:46 PM, Johan Guerra wrote:
> Hi I have the same problem and have not been able to find the solution for
> pdf printing .
>
> Any help I will be grateful
>
> Johan
>
> 2014-09-02 4:20 GMT-04:30 nando_gcia :
>
>> Hi again, no one can confirm if the issue is resolved by installing the 6.4
>> version of mapserver?
>>
>>
>>
>> --
>> View this message in context:
>> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Print-pdf-in-pmapper-4-3-2-change-size-font-tp4025542p4025604.html
>> Sent from the pmapper-users -- p.mapper users mailing list mailing list
>> archive at Nabble.com.
>>
>>
>> --
>> Slashdot TV.
>> Video for Nerds.  Stuff that matters.
>> http://tv.slashdot.org/
>> ___
>> pmapper-users mailing list
>> pmapper-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>
>
>
>

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] selectionManagement plugin

2014-07-26 Thread Armin Burger
this is the reference used in other plugins that seem to use some 
functions from "common/*"

require_once(dirname(__FILE__) . '/../common/groupsAndLayers.php');
require_once(dirname(__FILE__) . '/../common/pluginsMapUtils.inc.php');



On 07/26/2014 06:11 PM, jose mvm wrote:
> And if I reset the php errors level, another error appears:
>
> [26-Jul-2014 16:03:26 UTC] PHP Fatal error:  Class 'PluginsMapUtils' not
> found in
> /var/www/pmapper/plugins/clientdynamiclayers/clientDynamicLayers.php on line
> 477
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/selectionManagement-plugin-tp4025583p4025586.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> --
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] selectionManagement plugin

2014-07-26 Thread Armin Burger
I don't know those plugins, but from the fatal error you get it is clear 
that the file with the function getLayersByGroupOrLayerName() is not 
loaded. Try for testing to add to the file 
clientdynamiclayers/clientDynamicLayers.php at the beginning a line like

   require_once '../common/groupsAndLayers.php';

And as already mentioned, please change your settings for error 
reporting in your php.ini file as described in the wiki. It is not for 
nothing that this setting is labeled  with "IMPORTANT" Keeping 
notices will not help you or anybody else at all for debugging, it just 
makes it annoying to find the only logged error in between lots of 
useless "Notice" logs.

/armin

On 07/26/2014 03:39 PM, jose mvm wrote:
> Hi,
>
> I would like to know if someone (except Thomas and Armin) have tried to save
> selections with refactored selectionManagement plugin.
>
> I'm sorry but I did that several times, with a clean pmapper install and
> using demo data, without success.
>
> <http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/file/n4025583/saveSelection.jpg>
>
> The php notices through the process (only to contextualize):
>
> [26-Jul-2014 12:55:19 UTC] PHP Notice:  Undefined index: JSON_Results in
> /var/www/pmapper/incphp/xajax/x_info.php on line 40
> [26-Jul-2014 12:55:24 UTC] PHP Notice:  Undefined variable: content in
> /var/www/pmapper/plugins/selectionManagement/x_saveSelection.php on line 119
> [26-Jul-2014 12:55:54 UTC] PHP Notice:  Use of undefined constant
> msCurrentSelection - assumed 'msCurrentSelection' in
> /var/www/pmapper/plugins/clientdynamiclayers/x_clientDynamicLayers.php on
> line 46
> [26-Jul-2014 12:55:54 UTC] PHP Notice:  Use of undefined constant
> msSelection - assumed 'msSelection' in
> /var/www/pmapper/plugins/clientdynamiclayers/clientDynamicLayers.php on line
> 697
>
> And at the end, the PHP FATAL ERROR (when i press OK to save selection):
>
> [26-Jul-2014 12:55:54 UTC] PHP Fatal error:  Call to undefined function
> getLayersByGroupOrLayerName() in
> /var/www/pmapper/plugins/clientdynamiclayers/clientDynamicLayers.php on line
> 461
>
> I think this refactored plugin (and the new plugins) are very important and
> usefull and I would like to work with it and see the results (as all pmapper
> users) in my pmapper project.
>
> So, I hope someone can help me.
> Thank you very much Thomas Raffin and Armin Burger, and all pmapper users.
>
> Best Regards,
> José
>
>
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/selectionManagement-plugin-tp4025583.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> --
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] PMapper 5

2014-07-24 Thread Armin Burger
Since there are not many reports about bugs of p.mapper 5 there are no 
fixes that could go into another beta... So far I would say that the 
printing is the main remaining issue. It works as HTML and with layers 
managed via Mapserver (so on your own server). Printing PDF and using 
layers like OSM for the print is still a bigger TODO.

Another issue is a rewriting of the documentation on the wiki, but so 
far nobody contributed to it, and hence it remains as it is...

The new developments for p.mapper 4 have been exclusively done by 
Thomas, I will just run the scripts to create the new release files and 
put everything on SF. If Thomas decides to work more on PM-5 to use it 
in his business then there is a high chance that things move forward.

/a




On 07/24/2014 10:42 AM, Chris Jackson wrote:
> Hi all
>
> As PMapper moves towards a 4.4 release, I was just wondering if any
> progress was being made with PMapper 5 - (is there a newer beta release as
> bugs ave been found etc?)  Out of interest how many of the PMapper 4
> plugins work with v5?
>
> Cheers
> Chris
> --
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] search one layer

2014-07-23 Thread Armin Burger
Ok, the change event is not applied if no change happens... Try the 
following for the custom.js which should also improve the labels and 
logic in this case:

$.extend(PM.Query,
{
 createSearchItems: function(url) {
 $.ajax({
 url: url,
 dataType: "json",
 success: function(response){
 var searchJson = response.searchJson;
 var action = response.action;

 if (action == 'searchitem') {
 PM.Query.createSearchInput(searchJson);
 } else {
 delete searchJson.options[0];
 var searchHtml = PM.Query.json2Select(searchJson, "0");
 $('#searchoptions').html(searchHtml);
 PM.Query.setSearchInput();
 $('#searchoptions').html(_p("Search 
for")).css({"white-space": "nowrap"});
 }
 },
 error: function (XMLHttpRequest, textStatus, errorThrown) {
 if (window.console) console.log(errorThrown);
 }
 });
 }

});


On 07/23/2014 08:58 AM, Bogumił Szady wrote:
> Hello,
> Thanks. I have tried to insert this modification.
> I see my layer defined, but without white box on the right to put the
> search attribute.
> Where is the the problem?
>
> best
>
> Bogumił
>
>
> W dniu 2014-07-22 23:11, Armin Burger pisze:
>> not a very elegant solution, but should work:
>>
>> add the following block at the end of your
>>   /config/[your-config]/custom.js
>> file
>>
>> $.extend(PM.Query,
>> {
>>createSearchItems: function(url) {
>>$.ajax({
>>url: url,
>>dataType: "json",
>>success: function(response){
>>var searchJson = response.searchJson;
>>var action = response.action;
>>
>>//---
>>delete searchJson.options[0];
>>//---
>>
>>if (action == 'searchitem') {
>>PM.Query.createSearchInput(searchJson);
>>} else {
>>var searchHtml = PM.Query.json2Select(searchJson, 
>> "0");
>>$('#searchoptions').html(searchHtml);
>>}
>>},
>>error: function (XMLHttpRequest, textStatus, errorThrown) {
>>if (window.console) console.log(errorThrown);
>>}
>>});
>>}
>>
>> });
>>
>>
>>
>>
>> or use
>>
>>//---
>>if (Object.keys(searchJson.options).length < 3) {
>>delete searchJson.options[0];
>>}
>>//---
>>
>> to do this just in case the search has just 1 layer defined for search,
>> in case you once will add another one you don't remember what you once
>> modified...
>>
>>
>> On 07/22/2014 07:25 PM, Bogumił Szady wrote:
>>> Hello,
>>> Is it possible to get one default search field turned on in the moment
>>> of starting of application window?
>>> I have only one layer to search and I would like to avoid every time
>>> selecting layer to search.
>>>
>>>
>>> all the best
>>>
>>> Bogumił
>>>
>>> --
>>> Want fast and easy access to all the code in your enterprise? Index and
>>> search up to 200,000 lines of code with a free copy of Black Duck
>>> Code Sight - the same software that powers the world's largest code
>>> search on Ohloh, the Black Duck Open Hub! Try it now.
>>> http://p.sf.net/sfu/bds
>>> ___
>>> pmapper-users mailing list
>>> pmapper-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>>
>> --
>> Want fast and easy access to all the code in your enterprise? Index and
>> search up to 200,000 lines of code with a free copy of Black Duck
>> Code Sight - the same software that powers the world's largest code
>> search on Ohlo

Re: [pmapper-users] search one layer

2014-07-22 Thread Armin Burger
not a very elegant solution, but should work:

add the following block at the end of your
/config/[your-config]/custom.js
file

$.extend(PM.Query,
{
 createSearchItems: function(url) {
 $.ajax({
 url: url,
 dataType: "json",
 success: function(response){
 var searchJson = response.searchJson;
 var action = response.action;

 //---
 delete searchJson.options[0];
 //---

 if (action == 'searchitem') {
 PM.Query.createSearchInput(searchJson);
 } else {
 var searchHtml = PM.Query.json2Select(searchJson, "0");
 $('#searchoptions').html(searchHtml);
 }
 },
 error: function (XMLHttpRequest, textStatus, errorThrown) {
 if (window.console) console.log(errorThrown);
 }
 });
 }

});




or use

 //---
 if (Object.keys(searchJson.options).length < 3) {
 delete searchJson.options[0];
 }
 //---

to do this just in case the search has just 1 layer defined for search, 
in case you once will add another one you don't remember what you once 
modified...


On 07/22/2014 07:25 PM, Bogumił Szady wrote:
> Hello,
> Is it possible to get one default search field turned on in the moment
> of starting of application window?
> I have only one layer to search and I would like to avoid every time
> selecting layer to search.
>
>
> all the best
>
> Bogumił
>
> --
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] pmapper4: new plugins and options

2014-07-22 Thread Armin Burger
First of all I would set the PHP error reporting to the value as 
described in the Wiki for the quick installation part, to avoid all pure 
notifications that just blow up your error log. What remains afterwards 
should be checked again.

/a

On 07/22/2014 06:51 PM, jose mvm wrote:
> Hi Thomas,
>
> after update the pmapper code, i found some questions and difficulties:
>
> - when pmapper start up php notice apeears (repeatedly):
> [22-Jul-2014 16:06:49 UTC] PHP Notice:  Undefined variable: dynamicClasses
> in /var/www/pmapper-4.3.2/incphp/layerview.php on line 218
>
> but no problem...
>
> - when i make a search the table of results appears closed by default... (no
> probem too)
>
> but my main problem, possibly, is that I don't understand the philosophy,
> the goal, the mechanism and operation of the "clientDynamicLayers". i don't
> understand the "examples" contained in plugin.
>
> and without this dependence plugin, the selectionManagement plugin doesn't
> work correctly. i can't save selections. when i search width searchtool
> these messages appears:
>
> [22-Jul-2014 16:37:27 UTC] PHP Notice:  Undefined index: JSON_Results in
> /var/www/pmapper-4.3.2/incphp/xajax/x_info.php on line 40
> [22-Jul-2014 16:37:27 UTC] PHP Notice:  Undefined index: numero in
> /var/www/pmapper-4.3.2/incphp/query/search.php on line 171
> [22-Jul-2014 16:37:27 UTC] PHP Notice:  Undefined index: papel in
> /var/www/pmapper-4.3.2/incphp/query/search.php on line 171
> [22-Jul-2014 16:37:27 UTC] PHP Notice:  Undefined index: embalagens in
> /var/www/pmapper-4.3.2/incphp/query/search.php on line 171
> [22-Jul-2014 16:37:27 UTC] PHP Notice:  Undefined index: vidro in
> /var/www/pmapper-4.3.2/incphp/query/search.php on line 171
> [22-Jul-2014 16:37:27 UTC] PHP Notice:  Undefined index: pilhao in
> /var/www/pmapper-4.3.2/incphp/query/search.php on line 171
> [22-Jul-2014 16:37:27 UTC] PHP Notice:  Undefined index: oleao in
> /var/www/pmapper-4.3.2/incphp/query/search.php on line 171
> [22-Jul-2014 16:37:27 UTC] PHP Notice:  Undefined index: propriet in
> /var/www/pmapper-4.3.2/incphp/query/search.php on line 171
> [22-Jul-2014 16:37:27 UTC] PHP Notice:  Undefined index: freguesia in
> /var/www/pmapper-4.3.2/incphp/query/search.php on line 171
> [22-Jul-2014 16:37:27 UTC] PHP Notice:  Undefined index: first_lug1 in
> /var/www/pmapper-4.3.2/incphp/query/search.php on line 171
> [22-Jul-2014 16:37:27 UTC] PHP Notice:  Undefined index: designacao in
> /var/www/pmapper-4.3.2/incphp/query/search.php on line 171
>
> when i try to save selection these messages appears:
>
> [22-Jul-2014 16:40:32 UTC] PHP Notice:  Undefined variable: content in
> /var/www/pmapper-4.3.2/plugins/selectionManagement/x_saveSelection.php on
> line 119
> [22-Jul-2014 16:40:46 UTC] PHP Notice:  Use of undefined constant
> msCurrentSelection - assumed 'msCurrentSelection' in
> /var/www/pmapper-4.3.2/plugins/clientdynamiclayers/x_clientDynamicLayers.php
> on line 46
> [22-Jul-2014 16:40:46 UTC] PHP Notice:  Use of undefined constant
> msSelection - assumed 'msSelection' in
> /var/www/pmapper-4.3.2/plugins/clientdynamiclayers/clientDynamicLayers.php
> on line 697
> [22-Jul-2014 16:40:46 UTC] PHP Fatal error:  Call to undefined function
> getLayersByGroupOrLayerName() in
> /var/www/pmapper-4.3.2/plugins/clientdynamiclayers/clientDynamicLayers.php
> on line 461
>
> in other words, my problem remains, i can't get use "intersect with actual
> selection" operator. when i try these messages appears:
>
> [22-Jul-2014 16:48:06 UTC] PHP Notice:  Undefined offset: 0 in
> /var/www/pmapper-4.3.2/incphp/xajax/x_select.php on line 99
> [22-Jul-2014 16:48:12 UTC] PHP Notice:  Undefined index: JSON_Results in
> /var/www/pmapper-4.3.2/plugins/graphicalqueries/x_graphicalqueries.php on
> line 19
> [22-Jul-2014 16:48:12 UTC] PHP Notice:  Undefined variable: poly in
> /var/www/pmapper-4.3.2/plugins/graphicalqueries/x_graphicalqueries.php on
> line 28
> [22-Jul-2014 16:48:12 UTC] PHP Notice:  Undefined property:
> QueryExtended::$querygroups in /var/www/pmapper-4.3.2/incphp/query/query.php
> on line 59
> [22-Jul-2014 16:48:13 UTC] PHP Notice:  Undefined offset: 0 in
> /var/www/pmapper-4.3.2/incphp/xajax/x_select.php on line 99
> [22-Jul-2014 16:48:22 UTC] PHP Notice:  Undefined offset: 0 in
> /var/www/pmapper-4.3.2/incphp/xajax/x_select.php on line 99
> [22-Jul-2014 16:48:31 UTC] PHP Notice:  Undefined variable: poly in
> /var/www/pmapper-4.3.2/plugins/graphicalqueries/x_graphicalqueries.php on
> line 28
> [22-Jul-2014 16:48:31 UTC] PHP Notice:  Undefined property:
> QueryExtended::$querygroups in /var/www/pmapper-4.3.2/incphp/query/query.php
> on line 59
> [22-Jul-2014 16:48:32 UTC] PHP Notice:  Undefined offset: 1 in
> /var/www/pmapper-4.3.2/plugins/common/selectTools.inc.php on line 433
> [22-Jul-2014 16:48:32 UTC] PHP Notice:  Trying to get property of non-object
> in /var/www/pmapper-4.3.2/plugins/common/selectTools.inc.php on line 433
> [22-Jul-2014 16:48:32 UTC] PHP Notice:  Undefine

Re: [pmapper-users] Attribute search

2014-07-17 Thread Armin Burger
Attribute searches just work on layers, not groups. So in your case you 
have to decide which of the grouped layers to use for the search. In 
principal it would be possible to use the same mechanism as for identify 
(collecting results for layers of a group) but that was never implemented.

/a

On 07/17/2014 06:37 PM, Juliano C. P. Agostinho wrote:
> Hi,
>
>
>
> I have one problem, I have 2 SHAPEfiles (point and polygon) and I want
> search in both.
>
>
>
> Exemple:
>
> I want search Topdown's city in all SHP's (point and polygon) in same time.
>
>
>
> Is there one way?
>
>
>
>
>
>
>
> MAPFILE:
>
>
>
>  LAYER
>
>  NAME "City"
>
>  GROUP CITY
>
>  MAXSCALE 7000
>
>  TYPE POLYGON
>
>  STATUS OFF
>
>  DATA City_polig.shp"
>
>  CLASS
>
>  NAME " "
>
>  STYLE
>
> OUTLINECOLOR 128 128 128
>
> LINECAP butt
>
> WIDTH 2
>
> PATTERN 5 5 END
>
>  END
>
>  TEMPLATE void
>
>  END
>
>  METADATA
>
>   "DESCRIPTION" "city"
>
>   "RESULT_FIELDS" "NAME"
>
>   "RESULT_HEADERS" "Name"
>
>   "LAYER_ENCODING" "ISO-8859-1"
>
>   "ows_title"  "City"
>
>  END
>
>  END
>
>
>
>  LAYER
>
>  NAME "City"
>
>  GROUP CITY
>
>  MAXSCALE 7000
>
>  TYPE POINT
>
>  STATUS OFF
>
>  DATA "City_point.shp"
>
>  CLASS
>
>  NAME " "
>
>  STYLE
>
> SYMBOL "circle1"
>
> COLOR 128 128 128
>
> SIZE 10
>
>  END
>
>  TEMPLATE void
>
>  END
>
>  METADATA
>
>   "DESCRIPTION" "city"
>
>   "RESULT_FIELDS" "NAME"
>
>   "RESULT_HEADERS" "Name"
>
>   "LAYER_ENCODING" "ISO-8859-1"
>
>   "ows_title"  "City"
>
>  END
>
>  END
>
>
>
>
>
> 
>
>  
>
>  
>
>  
>
>  
>
>
>
>
>
> --
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Search several database columns at the same time with the same search field

2014-07-11 Thread Armin Burger
I would guess something like that (haven't fully understood what you 
want, though...) could be achieved via the "sql_where" definition in the 
XML file,

I found an old sample like


   
 
 
 cmeu01
 (cmbname ~* '[cmbname]' OR cminame ~* '[cmbname]') AND 
id = [id]
   



If the  tag is really used I don't remember any more.


armin


On 07/11/2014 09:08 PM, Pedro Venâncio wrote:
> Hi,
>
> Do you think this is possible just configuring the search in the 
> config_xxx.xml? I've tried several ways, but without success.
>
>
> Thanks.
>
> Best regards,
> Pedro
>
>
>
>
>
> - Mensagem original -
>> DE: Pedro
>>
>> Hi,
>>
>> I'm trying to create a search of type suggest, that search multiple columns
>> of a PostGIS layer, at the same time.
>>
>> For example,
>>
>> col1 | col2
>> a | b
>> c | d
>> e | f
>> ...
>>
>>
>> I tried this:
>>
>> 
>>  
>>  > alias="nomes" description="Nome" wildcard="0"
>> operator="OR">
>>  > connectiontype="db" minlength="0" sort="asc">
>>  > encoding="UTF-8">pgsql://xxx:xxx@localhost/cartografia
>>  SELECT DISTINCT col1 FROM xxx.casas WHERE col1 ~*
>> '[search]' ORDER BY col1
>>  
>>  
>>  > alias="nomes" operator="OR">
>>  > connectiontype="db" minlength="0" sort="asc">
>>  > encoding="UTF-8">pgsql://xxx:xxx@localhost/cartografia
>>  SELECT DISTINCT col2 FROM xxx.casas WHERE col2 ~*
>> '[search]' ORDER BY col2
>>  
>>  
>>  
>> 
>>
>>
>> This way I can search and get the correct result. However, two fields are
>> displayed to do the search (image attached), and I want to just get one 
>> field,
>> where it does the search for the values ​​of the two columns (col1 and col2).
>>
>> Any suggestions?
>>
>> Thank you very much!
>>
>> Best regards,
>> Pedro
>>
>
> --
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] No Legend Wanted

2014-07-11 Thread Armin Burger
use this setting in the configuration XML:

swap



On 07/11/2014 06:23 PM, bean wrote:
> Is it possible to prevent the creation of a legend?
>
> I've found a few ways to prevent the creation but they all throw
> errors in the log. I'd like to do this cleanly but I'm not great at
> PHP. Can someone point me in the right direction?
>
> bean
>
> --
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] PM.Custom.open Hyperlink is not a function

2014-07-11 Thread Armin Burger
now also committed to pm 4 trunk

http://svn.pmapper.net/trac/changeset/1338



On 07/11/2014 07:23 PM, Armin Burger wrote:
> the layout samples *.phtml files have not been updated to reflect some
> changes a while ago for allowing custom orders of JS files.
>
> In your map_plainlayout*.phtml files search for the line (around line 66)
>   echo $jsConfigReference;
>
> and add afterwards the additional line:
>   echo $jsCustomReference;
>
> Then the custom.js from the config directories should be loaded. The
> "map_default.phtml" already has that correctly set.
>
> armin
>
>
> On 07/11/2014 06:16 PM, nando_gcia wrote:
>> Works perfectly with the "default" folder. I modified the file
>> \pmapper\pmapper_demodata\countries.shp adding a new column called
>> "pdf_files" with the value "data1.pdf" in the country of Spain, after I
>> edited \pmapper-4.3.2\config\default\pmapper_demo.map
>>
>>   "RESULT_FIELDS"
>> "ISOCODE,@default:NAME_EN@de:NAME_DE@it:NAME_IT@fr:NAME_FR@br:NAME_BR@es:NAME_ES,@default:CAPITAL_EN@de:CAPITAL_DE@it:CAPITAL_IT@fr:CAPITAL_FR@br:CAPITAL_BR@es:CAPITAL_ES,AREA_KM2,POPULATION,pdf_files"
>>   "RESULT_HEADERS" "ISO Code,Name,Capital,Area,Population,Pdf Files"
>>   "RESULT_HYPERLINK" "pdf_files||Link to detail"
>>
>> And it works perfectly, so the problem is that the template plainlayout3.
>> Also js_config.php file is different than exists in the "default" folder.
>>
>> Can anyone help me fix it?
>>
>>
>>
>> --
>> View this message in context: 
>> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/pmapper-users-PM-Custom-open-Hyperlink-is-not-a-function-tp4025508p4025523.html
>> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
>> archive at Nabble.com.
>>
>> --
>> ___
>> pmapper-users mailing list
>> pmapper-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>
>
> --
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] PM.Custom.open Hyperlink is not a function

2014-07-11 Thread Armin Burger
the layout samples *.phtml files have not been updated to reflect some 
changes a while ago for allowing custom orders of JS files.

In your map_plainlayout*.phtml files search for the line (around line 66)
 echo $jsConfigReference;

and add afterwards the additional line:
 echo $jsCustomReference;

Then the custom.js from the config directories should be loaded. The 
"map_default.phtml" already has that correctly set.

armin


On 07/11/2014 06:16 PM, nando_gcia wrote:
> Works perfectly with the "default" folder. I modified the file
> \pmapper\pmapper_demodata\countries.shp adding a new column called
> "pdf_files" with the value "data1.pdf" in the country of Spain, after I
> edited \pmapper-4.3.2\config\default\pmapper_demo.map
>
>  "RESULT_FIELDS"
> "ISOCODE,@default:NAME_EN@de:NAME_DE@it:NAME_IT@fr:NAME_FR@br:NAME_BR@es:NAME_ES,@default:CAPITAL_EN@de:CAPITAL_DE@it:CAPITAL_IT@fr:CAPITAL_FR@br:CAPITAL_BR@es:CAPITAL_ES,AREA_KM2,POPULATION,pdf_files"
>  "RESULT_HEADERS" "ISO Code,Name,Capital,Area,Population,Pdf Files"
>  "RESULT_HYPERLINK" "pdf_files||Link to detail"
>
> And it works perfectly, so the problem is that the template plainlayout3.
> Also js_config.php file is different than exists in the "default" folder.
>
> Can anyone help me fix it?
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/pmapper-users-PM-Custom-open-Hyperlink-is-not-a-function-tp4025508p4025523.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> --
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Poor image quality on pmapper

2014-02-18 Thread Armin Burger
Marcello

I can only confirm what Thomas wrote. I think the default outputformat 
definition for PNG in p.mapper is 8-bit PNG, which is unsuitable for 
data like satellite or aerial images since it has only 256 colors. For 
imagery data you need to use either 24-bit PNG or JPEG. The first has 
the advantage of better quality for overlaid vector data, the second the 
much smaller file size that is transfered to the users.

Therefore the "altImgFormat" exists as alternative format in case a 
certain layer is activated. So you could use e.g. PNG-8 for vector only 
data, and PNG-24 or JPEG when the Landsat layer is activated. See also a 
coarse description of output format and layers here

http://svn.pmapper.net/trac/wiki/FaqTips#Optimizationimageoutputformat:

I would guess the default PNG format for Mapserver (if not defined 
differently via the map file) is PNG-24, and thus you get a good quality 
image from Mapserver CGI.

Armin



On 02/18/2014 02:09 PM, Thomas RAFFIN wrote:
> Hi,
>
> You have to use the same outputformat than with your CGI:
> http://svn.pmapper.net/trac/wiki/XmlFileSettings#map (search
> "http://svn.pmapper.net/trac/wiki/XmlFileSettings#map"; and "altImgFormat").
>
> Thomas
>
> Le 18/02/2014 12:58, Marcello Benigno a écrit :
>> Hello all,
>>
>> In my application a Landsat image appear coarse when viewed in pmapper, for 
>> the
>> same when viewed via cgi-bin. Could anyone help me on this?
>>
>> CGI-BIN:
>> http://186.202.165.209/cgi-bin/mapserv?map=/var/www/geofazendasmapas/config/default/geofazendasmapas.map&mode=map&layers=municipios+landsat7
>>
>> Application: http://mapas.geofazendas.com.br/
>>
>> Thanks in Advance,
>
>   
>   
>
> --
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


[pmapper-users] p.mapper release 4.3.2

2014-01-03 Thread Armin Burger
For the interested, I created a bug fix release 4.3.2 that mainly 
contains fixes provided by Thomas Raffin, and a few by me.

See
   http://sourceforge.net/projects/pmapper/files/p.mapper%204/4.3.2/

Let me know in case you experience any problems with the new uploaded 
release files.

armin

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


Re: [pmapper-users] pgrouting

2013-12-30 Thread Armin Burger
you should be able to do this relatively easy with p.mapper 5 since this 
is built around MapServer and Openlayers. Doing the same for p.mapper 4 
is possible but requires more in-depth knowledge how to dynamically add 
and remove a layer in p.mapper.

armin


On 12/30/2013 02:55 PM, Emmanuel Adegboye wrote:
> Hi.
>
> I have a working pmapper setup with a postgis database but I want to
> incorporate routing using pgrouting. I need users to be able to at least
> click both a start and end point on the road network, calculate the route
> and display it on a new layer in pmapper. It would be ideal if there is a
> search box where users can enter an address for both points.
>
> I'm learning how to implement this using openlayers. Any ideas of how I can
> transfer or implement this to pmapper.
>
> I really appreciate your help.
>
> Emmanuel Adegboye
> --
> 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=84349831&iu=/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=84349831&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Zoom to layer Postgis

2013-12-19 Thread Armin Burger
You need to check the PHP error log since "server error 500" means 
typically a PHP error.


On 12/19/2013 12:15 PM, Pedro Venâncio wrote:
> Hi
>
> I'm having problems with "Zoom to layer" on PostGIS layers. I have an 
> application where everything works fine, but I have other, based on the same 
> version of pMapper (4.2.0), where the "Zoom to layer" works with raster 
> layers, but does not work with PostGIS layers.
>
> For example, with "lugares" layer, firebug gives:
>
> http://prociv.local/incphp/xajax/x_load.php?&mode=map&zoom_type=zoomgroup&groupname=lugares&dummy=dummy
> 500 Internal Server Error   20msjquery_merged.js (linha 16)
> Internal Server Error   pm_cjs.js (linha 35)
>
>
> If I select some features of this layer and do "Zoom to selection", 
> everything works fine. Also, if I use the Query Editor or Query Search, it 
> also works well. It only fails with "Zoom to layer".
>
> The layer connection is like this:
>
> LAYER
>NAME "lugares"
>  STATUS DEFAULT
>  TYPE POINT
>  CONNECTIONTYPE postgis
>  PROCESSING "CLOSE_CONNECTION=DEFER"
>  CONNECTION "user= password= dbname=carto host=localhost 
> options='-c client_encoding=LATIN1'"
>  DATA "the_geom from topo.lugares using unique id"
>  TOLERANCE 3
>  TOLERANCEUNITS pixels
>  TEMPLATE void
>  PROJECTION
>"init=epsg:3763"
>  END
>METADATA
>  "DESCRIPTION" "Toponímia de Lugares"
>  "RESULT_FIELDS" "nome,xx,yy,tipo,carta_mili"
>  "RESULT_HEADERS" "Nome,X,Y,Tipo,Folha"
>  "ows_title" "Toponímia de Lugares"
>END
>CLASS
>  NAME 'Toponímia'
>  COLOR 0 0 255
>  SYMBOL 'circle'
>  SIZE 4
>END
> END
>
> Does anyone have any suggestions on what's wrong?
>
> Thank you very much!
>
> Best regards,
> Pedro Venâncio
>
>
> --
> 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=84349831&iu=/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=84349831&iu=/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

2013-11-28 Thread Armin Burger
Wildcard searches as you can see in the debug logs are using ILIKE 
function, this however will not work on numeric fields. Just insert the 
query in a standard DB client and you will get errors.


On 11/28/2013 04:36 PM, i...@architekten.coop wrote:
> thank you chris,
>
> i missed to mention the error log in my question, here the only message
> i got:
>
> error_pmapper.log:
> [28-Nov-2013 11:36:39] P.MAPPER: PG Query error for : SELECT gid,
>xmin(box3d(the_geom)),
>ymin(box3d(the_geom)),
>xmax(box3d(the_geom)),
>ymax(box3d(the_geom)),
> raumnr,bezeichn,nutzung,kategorie,trakt,geschoss,flaeche
>   FROM schema02.e44_raeume
>  WHERE   raumnr ILIKE '%'  AND geschoss = -1
>  LIMIT 301
>
> in pm_debug.log
> [28-Nov-2013 10:36:59] P.MAPPER debug info
> Parameters for searchParams
> file: query.php->q_execAttributeQuery
>Array
> (
>   [layerName] => raeume
>   [layerType] => postgis
>   [firstFld] => raumnr
>   [qStr] =>   raumnr = *
> )
>
> [28-Nov-2013 10:36:59] P.MAPPER debug info
> P.MAPPER-DEBUG: squery.php/dumpPGQueryResults() - SQL Cmd:
>SELECT gid,
>xmin(box3d(the_geom)),
>ymin(box3d(the_geom)),
>xmax(box3d(the_geom)),
>ymax(box3d(the_geom)),
> raumnr,bezeichn,nutzung,kategorie,trakt,geschoss,flaeche
>   FROM schema02.e44_raeume
>  WHERE   raumnr = *
>  LIMIT 301
>
> regards,
> matthias moser
>
>
> Am 28.11.2013 16:15, schrieb Chris forum:
>> 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, > > 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:
>>
>>  
>> 
>>   >  wildcard="1" />
>>   
>>
>>  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:
>>
>>  
>> 
>>   >  wildcard="1" />
>>   
>>
>>
>>  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=84349351&iu=/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=84349351&iu=/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=84349351&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Querying rasters

2013-11-25 Thread Armin Burger
from the MS docs:

"Other query operations such as QueryByIndex, QueryByIndexAdd, 
QueryByAttributes and QueryByFeature are not supported for raster layers"

On 11/25/2013 09:59 PM, Chris Jackson wrote:
> Cheers Armin will give that a go, out of interest could an attribute search
> query (find all pixels between values x and y) be wired to a raster layer?
>
> Chris
>
>
> On 25 November 2013 20:26, Armin Burger  wrote:
>
>> if you want to give it a try with raster layers and selection, change in
>>incphp/xajax/x_select.php, line 94
>> from
>> if ($mapLayer->type < 3 && ...
>> to
>> if ($mapLayer->type < 4 && ...
>>
>> You should turn off highlighting in the XML config file to avoid errors.
>>
>> armin
>>
>> On 11/25/2013 08:58 PM, Chris Jackson wrote:
>>> Hi Armin
>>>
>>> Been off-grid for a bit, thanks for clarifying.  I appreciate it is
>>> selection of pixels, this may be still useful in some situations for
>>> smaller local areas.  I am dealing with model outputs (to date mainly
>>> rectilinear->polygon features),  though may now be dealing with
>> rasterised
>>> flexi-mesh grids instead and trying to maintain the level of data
>>> accessibility where possible.  I wonder whether I need to grab selection
>>> extents and query a separate points feature class instead.
>>>
>>> Cheers
>>> Chris
>>>
>>>
>>> On 22 November 2013 18:17, Armin Burger  wrote:
>>>
>>>> On 11/22/2013 02:38 PM, Chris Jackson wrote:
>>>>> Hi all
>>>>>
>>>>> I got the old Corine geotiff raster sample working with the usual
>> select
>>>> by
>>>>> click tool, but it doesn't work using select by rectangle (doesn't
>> appear
>>>>> on the list of layers to choose).
>>>>>
>>>>> Is this by design or me just missing some configuration?  Can it be
>> done?
>>>>>
>>>>
>>>> by design. You'd definitively not want a select on raster data, and it
>>>> wouldn't make much sense either. See
>>>>  http://mapserver.org/input/raster.html#raster-query
>>>> and especially the sentence "Raster queries on raster layers return one
>>>> point feature for each pixel matching the query".
>>>>
>>>> So a single feature is a pixel, not the pixels belonging to a class and
>>>> separated from other classes. If your selections are e.g. 5000 pixels
>>>> you would get 5000 records back to display, all with the same values...
>>>> and you'd need to create 5000 points for the highlighting layer. Also,
>>>> one would expect the full area of a homogeneous class block to be
>>>> treated as a single feature (like a single polygon) and selected
>>>> altogether, which is not feasible since every pixel is an independent.
>>>>
>>>> Think about a global vegetation raster layer, just 1 by 5000 pixels
>>>> which is not really much (e.g. a Tiff with 150 MB). If a user selects
>>>> the whole world you'd select roughly 0.3 * 1 * 5000 pixels and their
>>>> values to be read pixel by pixel...
>>>>
>>>>
>>>>
>> --
>>>> Shape the Mobile Experience: Free Subscription
>>>> Software experts and developers: Be at the forefront of tech innovation.
>>>> Intel(R) Software Adrenaline delivers strategic insight and
>> game-changing
>>>> conversations that shape the rapidly evolving mobile landscape. Sign up
>>>> now.
>>>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
>>>> ___
>>>> pmapper-users mailing list
>>>> pmapper-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>>>
>>>
>> --
>>> Shape the Mobile Experience: Free Subscription
>>> Software experts and developers: Be at the forefront of tech innovation.
>>> Intel(R) Software Adrenaline delivers strategic insight and game-changing
>>> conversations that shape the rapidly evolving mobile landscape. Sign up
>> now.
>>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.

Re: [pmapper-users] Querying rasters

2013-11-25 Thread Armin Burger
if you want to give it a try with raster layers and selection, change in 
  incphp/xajax/x_select.php, line 94
from
   if ($mapLayer->type < 3 && ...
to
   if ($mapLayer->type < 4 && ...

You should turn off highlighting in the XML config file to avoid errors.

armin

On 11/25/2013 08:58 PM, Chris Jackson wrote:
> Hi Armin
>
> Been off-grid for a bit, thanks for clarifying.  I appreciate it is
> selection of pixels, this may be still useful in some situations for
> smaller local areas.  I am dealing with model outputs (to date mainly
> rectilinear->polygon features),  though may now be dealing with rasterised
> flexi-mesh grids instead and trying to maintain the level of data
> accessibility where possible.  I wonder whether I need to grab selection
> extents and query a separate points feature class instead.
>
> Cheers
> Chris
>
>
> On 22 November 2013 18:17, Armin Burger  wrote:
>
>> On 11/22/2013 02:38 PM, Chris Jackson wrote:
>>> Hi all
>>>
>>> I got the old Corine geotiff raster sample working with the usual select
>> by
>>> click tool, but it doesn't work using select by rectangle (doesn't appear
>>> on the list of layers to choose).
>>>
>>> Is this by design or me just missing some configuration?  Can it be done?
>>>
>>
>> by design. You'd definitively not want a select on raster data, and it
>> wouldn't make much sense either. See
>> http://mapserver.org/input/raster.html#raster-query
>> and especially the sentence "Raster queries on raster layers return one
>> point feature for each pixel matching the query".
>>
>> So a single feature is a pixel, not the pixels belonging to a class and
>> separated from other classes. If your selections are e.g. 5000 pixels
>> you would get 5000 records back to display, all with the same values...
>> and you'd need to create 5000 points for the highlighting layer. Also,
>> one would expect the full area of a homogeneous class block to be
>> treated as a single feature (like a single polygon) and selected
>> altogether, which is not feasible since every pixel is an independent.
>>
>> Think about a global vegetation raster layer, just 1 by 5000 pixels
>> which is not really much (e.g. a Tiff with 150 MB). If a user selects
>> the whole world you'd select roughly 0.3 * 1 * 5000 pixels and their
>> values to be read pixel by pixel...
>>
>>
>> --
>> Shape the Mobile Experience: Free Subscription
>> Software experts and developers: Be at the forefront of tech innovation.
>> Intel(R) Software Adrenaline delivers strategic insight and game-changing
>> conversations that shape the rapidly evolving mobile landscape. Sign up
>> now.
>> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
>> ___
>> pmapper-users mailing list
>> pmapper-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>
> --
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing
> conversations that shape the rapidly evolving mobile landscape. Sign up now.
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Querying rasters

2013-11-22 Thread Armin Burger
On 11/22/2013 02:38 PM, Chris Jackson wrote:
> Hi all
>
> I got the old Corine geotiff raster sample working with the usual select by
> click tool, but it doesn't work using select by rectangle (doesn't appear
> on the list of layers to choose).
>
> Is this by design or me just missing some configuration?  Can it be done?
>

by design. You'd definitively not want a select on raster data, and it 
wouldn't make much sense either. See
   http://mapserver.org/input/raster.html#raster-query
and especially the sentence "Raster queries on raster layers return one 
point feature for each pixel matching the query".

So a single feature is a pixel, not the pixels belonging to a class and 
separated from other classes. If your selections are e.g. 5000 pixels 
you would get 5000 records back to display, all with the same values... 
and you'd need to create 5000 points for the highlighting layer. Also, 
one would expect the full area of a homogeneous class block to be 
treated as a single feature (like a single polygon) and selected 
altogether, which is not feasible since every pixel is an independent.

Think about a global vegetation raster layer, just 1 by 5000 pixels 
which is not really much (e.g. a Tiff with 150 MB). If a user selects 
the whole world you'd select roughly 0.3 * 1 * 5000 pixels and their 
values to be read pixel by pixel...

--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Redraw map in pmapper5 function

2013-10-28 Thread Armin Burger
something like

$.each(map.layers, function(k,v) {
this.redraw();
});

On 10/28/2013 12:40 PM, Juan Ramón Charco Toboso wrote:
> Hello,
>
> To redraw the map in pmapper 4.x:
> PM.Map.reloadMap();
>
> How to do that in pmapper5?
>
> Regards
>
> --
> 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=60135991&iu=/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=60135991&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Capture coordinates of the polygon drawn with 'Measure area' in pmapper5

2013-10-23 Thread Armin Burger
add an entry like the following to your custom.js file at the end:

OpenLayers.Control.PMMeasureArea.prototype.showMeasureResults = 
function(evt) {
 console.log(evt);
}


Then use tools like Firebug to analyze the "evt" object that is logged 
there. inside this evt object you will find an object like geometry and 
you need to analyze the properties of this further on and use some 
Javascript methods to extract and display the coordinates and put this 
in this function.

armin

On 10/23/2013 01:23 PM, Juan Ramón Charco Toboso wrote:
> Hola,
> En pmapper5, Existe alguna forma de modificar el código de la
> herramienta 'Measure area' para que capture/muestre las coordenadas de
> los vértices del polígono dibujado ?
>
> El código de la herramienta 'Measure area' se encuentra en el archivo
> C:\ms4w\apps\pmapper\pmapper-5.0-beta2\js\src\PM.Control.PMToolMeasure.js
>
> Gracias de antemano,
> Juan Ramón
>
> Translation by Google:
>
> Hello,
> In pmapper5, there a way to modify the code of the tool 'Measure area'
> for capture / display the coordinates of the vertices of the polygon drawn?
>
> The code of the tool 'Measure area' is located in the file
> C: \ MS4W \ apps \ pmapper \ pmapper-5.0-beta2 \ js \ src \
> PM.Control.PMToolMeasure.js
>
> Thanks in advance.
> Juan Ramón
>
>
> --
> 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=60135991&iu=/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=60135991&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Culculate the size of an area in hectors(ha) instead of m ²

2013-10-18 Thread Armin Burger
On 10/17/2013 10:41 PM, Solly Vuso wrote:
> Hi
>
> I have been using the Measure area in pmapper 5 and I have been
> strugling to change the size of and area from m ² to hectors (ha).
>
> any idea how should i change the calculation?
>
> Thank you


I do not know an easier solution than replacing the function to display 
the results. Add the following lines to the custom.js file under your 
config/?/ directory


OpenLayers.Control.PMMeasureArea.prototype.showMeasureResults = 
function(evt) {
 var measureDecimals = 1;

 if (evt.units == "m") {
 var measurement = evt.measure / 1;
 } else if (evt.units == "km") {
 var measurement = evt.measure * 10;
 }

 $('#pmMeasureTotal').val(measurement.roundTo(measureDecimals) + " 
ha").css({width:'110px'});
}



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


Re: [pmapper-users] donwload link broken

2013-10-15 Thread Armin Burger
thanks for the hint. There is no maintained "latest-stable" any more. I 
therefore removed the link. You can use the development version for some 
bug fixes (checking the changesets) or use a bug fix release that is 
created from time to time.

armin



On 10/15/2013 11:54 AM, Raffaele Morelli wrote:
> Hi,
>
> this is just to inform Armin that download link on
> http://www.pmapper.net/download.shtml is broken for stable release, tar.gz
> link downloads an empty file.
>
> Regards
>
> /R
> --
> 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=60135031&iu=/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=60135031&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Pmapper 5 Bugs

2013-10-11 Thread Armin Burger
standard (HTML) printing and download mainly work in current trunk, at 
least the errors you get appear only in some older versions. The main 
remaining issues are the layer selections which is not the right one 
from the map... and PDF printing will require some more rework.



On 10/08/2013 07:08 AM, Luciano Martin Galletti wrote:
> Is there a Pmapper 5 list of known bugs?
> I've installed it and i've seen that a first look The Print and The Download 
> links don't work.
> For Download link i've:Warning: require_once(incphp/group.php): failed to 
> open stream: No such file or directory in 
> C:\ms4w\apps\pmapper\pmapper5\download.phtml on line 31Fatal error: 
> require_once(): Failed opening required 'incphp/group.php' 
> (include_path='.;\ms4w\Apache\php') in 
> C:\ms4w\apps\pmapper\pmapper5\download.phtml on line 31
> Infact the incphp folder doesn't exist!
> For Print link i've:TCPDF ERROR: [Image] Unable to get image: /home/www/tmp/
>
>   
> --
> 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=60134071&iu=/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=60134071&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] GPX Files and Pmapper

2013-10-02 Thread Armin Burger
this seems to be provided by the "OGR" layer connection type and so I 
guess it will work.

armin


On 10/02/2013 07:22 AM, Gis Newbye wrote:
> i've seen on Mapserver the documentation about Gpx files
> http://mapserver.org/it/input/vector/gpx.html
>
> I've only to customize the mapfile or i've also to do something on pmapper?
> --
> 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=60134791&iu=/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=60134791&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Pmapper 5 and Google Street View

2013-10-02 Thread Armin Burger
If OpenLayers supports this (and it looks like it does) then it might 
work. But I have no clue how to use it and implement it in the 
interface. Note that p.mapper uses OL version 2.11 if I remember well.

armin

On 09/30/2013 07:02 PM, Gis Newbye wrote:
> Is it possible to add also Google Street view on Pmapper!
>
> I've seen the demo and google maps works fine for me! Will be great to add
> also Street View!
>
> Any hint?
> --
> 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=60133471&iu=/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=60134791&iu=/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

2013-09-27 Thread Armin Burger
On Fri, Sep 27, 2013 at 11:35 AM, Solly  wrote:
> I have upgraded mapserver to 6.2.1 but I still get the sane error
>
>
> *Warning*: ms_newMapObj(): [MapServer Error]: msProcessProjection(): proj
> error "No such file or directory" for "init=epsg:4326" in *


Try this :

http://www.lmgtfy.com/?q=msProcessProjection()%3A+proj+error+%22No+such+file+or+directory%22&l=1

and then check the detailed description and suggested solutions...

--
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=60133471&iu=/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

2013-09-26 Thread Armin Burger
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=60133471&iu=/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

2013-08-25 Thread Armin Burger


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=48897511&iu=/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

2013-08-19 Thread Armin Burger
OK, it was a trial. Trunk now set back to old compression function

http://svn.pmapper.net/trac/changeset/1319

armin

On 08/19/2013 03:19 PM, Chris forum wrote:
> Same here, loading time back to 'normal' when compressJavaScriptFilePM is
> used.
>
>
> On Fri, Aug 16, 2013 at 7:18 PM, Armin Burger  wrote:
>
>> I can at least confirm that the compression using JSMinPlus takes
>> noticeably longer to load the js_session.php (and somehow subsequently
>> js_config.php). Something like 215 ms compared to 12 ms on my desktop
>> PC. This for sure depends on the server etc. So I guess it's better
>> switching back to the simple hand-made compression method.
>>
>> It is worth to mention however that having Firebug enabled slows down
>> the loading also noticeably... one of the the worst examples is with
>> Openlayers and lots of tiles loaded in the background.
>>
>> armin
>>
>> On 08/16/2013 07:09 PM, Armin Burger wrote:
>>> Chris
>>>
>>> I could only guess that this is related to the new way how the JS files
>>> of the plugins are compressed, using "JSMinPlus". The check for custom
>>> JS files under the config directories was there also before, now they
>>> are just referenced in the phtml file at a different place.
>>>
>>> That huge difference looks strange to me though.
>>>
>>> Try the difference by replacing in incphp/js/js_session.php line 21
>>>
>>>  PMCommon::compressJavaScriptFile(...
>>> with
>>>  PMCommon::compressJavaScriptFilePM(...
>>>
>>> the latter is using the old hand-made compression as it was before, the
>>> first uses the JSMinPlus library for that. If with the old function it
>>> works fast again I will change it back to this.
>>>
>>> Armin
>>>
>>>
>>>
>>> On 08/16/2013 01:40 PM, Chris forum wrote:
>>>> 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


--
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=48897511&iu=/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

2013-08-16 Thread Armin Burger
I can at least confirm that the compression using JSMinPlus takes 
noticeably longer to load the js_session.php (and somehow subsequently 
js_config.php). Something like 215 ms compared to 12 ms on my desktop 
PC. This for sure depends on the server etc. So I guess it's better 
switching back to the simple hand-made compression method.

It is worth to mention however that having Firebug enabled slows down 
the loading also noticeably... one of the the worst examples is with 
Openlayers and lots of tiles loaded in the background.

armin

On 08/16/2013 07:09 PM, Armin Burger wrote:
> Chris
>
> I could only guess that this is related to the new way how the JS files
> of the plugins are compressed, using "JSMinPlus". The check for custom
> JS files under the config directories was there also before, now they
> are just referenced in the phtml file at a different place.
>
> That huge difference looks strange to me though.
>
> Try the difference by replacing in incphp/js/js_session.php line 21
>
> PMCommon::compressJavaScriptFile(...
> with
> PMCommon::compressJavaScriptFilePM(...
>
> the latter is using the old hand-made compression as it was before, the
> first uses the JSMinPlus library for that. If with the old function it
> works fast again I will change it back to this.
>
> Armin
>
>
>
> On 08/16/2013 01:40 PM, Chris forum wrote:
>> 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 > <mailto:armin.bur...@gmail.com>> wrote:
>>
>>  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 datab

Re: [pmapper-users] Plugins modifications

2013-08-16 Thread Armin Burger
Chris

I could only guess that this is related to the new way how the JS files 
of the plugins are compressed, using "JSMinPlus". The check for custom 
JS files under the config directories was there also before, now they 
are just referenced in the phtml file at a different place.

That huge difference looks strange to me though.

Try the difference by replacing in incphp/js/js_session.php line 21

   PMCommon::compressJavaScriptFile(...
with
   PMCommon::compressJavaScriptFilePM(...

the latter is using the old hand-made compression as it was before, the 
first uses the JSMinPlus library for that. If with the old function it 
works fast again I will change it back to this.

Armin



On 08/16/2013 01:40 PM, Chris forum wrote:
> 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  <mailto:armin.bur...@gmail.com>> wrote:
>
> 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=48808831&iu=/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
>  >
>
>
> 
> --
> 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.double

Re: [pmapper-users] pmapper little bugs

2013-08-10 Thread Armin Burger


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=48897031&iu=/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

2013-08-10 Thread Armin Burger
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=48808831&iu=/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=48897031&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] ECW Problem

2013-07-31 Thread Armin Burger
I would guess that output as ECW is not possible with Mapserver. But you 
don't need an ECW outputformat if you just want to *read* an ECW for a 
layer (this is more sort of an "inputformat"), so just remove the 
[OUTPUTFORMAT - NAME "ECW"] block. Your GDAL installation however must 
support ECW.

armin

On 07/31/2013 04:27 PM, Filippo Grasso [Demetra] wrote:
> Hi Dear User
> I have a problem,
>
> I want to up in my webgis one Ecw photo,
>
> This is my mapfile:
>
> #
> # Start of map file
> #
> MAP
> EXTENT  1524694 5045034 1532000 5048927
>
> UNITS meters
> #EXTENT -15 30 40 70
> #UNITS dd
> SIZE 600 500
> SHAPEPATH
> SYMBOLSET "../common/symbols/symbols-pmapper.sym"
> FONTSET "../common/fonts/msfontset.txt"
> RESOLUTION 96
> IMAGETYPE png
> INTERLACE OFF
> #CONFIG "PROJ_LIB" "C:/proj/nad/"
> PROJECTION
># ETRS-LAEA
>"init=epsg:3003"
>#"+proj=tmerc +lat_0=0 +lon_0=-3.4523 +k=0.9996 +x_0=150 +y_0=0
> +ellps=intl +pm=rome +units=m +no_defs"
> END
>
> #
> # Image formates for GD
> #
> OUTPUTFORMAT
>NAME "png"
>DRIVER "GD/PNG"
>MIMETYPE "image/png"
>IMAGEMODE RGB
>FORMATOPTION  INTERLACE=OFF
>TRANSPARENT OFF
>EXTENSION "png"
> END
>
> OUTPUTFORMAT
>NAME "png8"
>DRIVER "GD/PNG"
>MIMETYPE "image/png"
>IMAGEMODE PC256
>FORMATOPTION  INTERLACE=OFF
>TRANSPARENT OFF
>EXTENSION "png"
> END
>
> OUTPUTFORMAT
>NAME "jpeg"
>   DRIVER "GD/JPEG"
>MIMETYPE "image/jpeg"
>IMAGEMODE RGB
>FORMATOPTION "QUALITY=70"
>EXTENSION "jpg"
> END
>
> OUTPUTFORMAT
>NAME GTiff
>DRIVER "GDAL/GTiff"
>MIMETYPE "image/tiff"
>IMAGEMODE RGB
>#FORMATOPTION "TFW=YES"
>FORMATOPTION "COMPRESS=PACKBITS"
>EXTENSION "tif"
> END
>
>
> OUTPUTFORMAT
>NAME imagemap
>MIMETYPE "text/html"
>FORMATOPTION SKIPENDTAG=OFF
>DRIVER imagemap
> END
>
>
> #
> # Start of web interface definition
> #
> WEB
>TEMPLATE "map.html"
>IMAGEPATH "/var/www/tmp/"
>IMAGEURL "/tmp/"
>METADATA
>  #"MAPFILE_ENCODING" "ISO-8859-1"
>  #"ows_title" "WMS Demo Server"
>  #"ows_onlineresource" "http://wms.yourserver.org?owskey=test&";
>  #"ows_srs"   "EPSG:3035 EPSG:4326"
>END  # Metadata
> END  # Web
>
> #
> # Start of Reference map definition
> #
> REFERENCE
>EXTENT 1524530 5044850 1531900 504 #220 140 800 540
>IMAGE "../../images/reference.png"
>SIZE 199 149
>COLOR -1 -1 -1
>OUTLINECOLOR 255 255 255
> END  # Reference
>
> LEGEND
> END
>
> #
> # Start of ScaleBar definition
> #
> SCALEBAR
>STATUS off
>TRANSPARENT off
>INTERVALS 4
>SIZE 200 3
>UNITS kilometers
>COLOR 250 250 250
>OUTLINECOLOR 0 0 0
>BACKGROUNDCOLOR 100 100 100
>STYLE 0
>POSTLABELCACHE true
>LABEL
>  COLOR 0 0 90
>  #OUTLINECOLOR 200 200 200
>  SIZE small
>END  # Label
> END  # Reference
>
>
>
> # SYMBOLS USED IN PMAPPER
> # - 'circle' always necessary (used e.g. for highlight)
> # - 'square' used in currecnt map file
> # Symbols can also be defined via tag SYMBOLSET (see above)
> Symbol
>Name 'circle'
>Type ELLIPSE
>Filled TRUE
>Points
>  1 1
>END
> END
>
> Symbol
>Name 'square'
>Type VECTOR
>Filled TRUE
>Points
>  0 1
>  0 0
>  1 0
>  1 1
>  0 1
>END
> END
>
>
>
> #== START OF LAYER SECTION =#
>
>
> #
> # LAYER DGM
> #
>
> LAYER
>NAME "dem"
>TYPE Raster
>STATUS OFF
>DATA  'Agrate_Bz.ecw '
>MINSCALE 30
>PROJECTION
>  "init=epsg:3003"
>  #"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs  no_defs"
>END
>METADATA
>  "DESCRIPTION"   "Ortofoto"
>  "LEGENDICON""images/legend/dem.png"
>  "ows_title" "Ortofoto"
>END
> END
>
>
> END  #Map
>
>
>
> And This is my config.php
> 
>  
>  
>  Webgis Comune di Agrate Brianza Verde
> Pubblico
>   
>  images/logos/logo-black.png
>  Webgis Comune di Agrate Brianza Verde
> Pubblico
>  http://www.parchidiagrate.it/
>  3
> layerinfo
>  scalebar
>  transparency
>  queryeditor
>  measure2
>  drawing
> 
>  
>  default
>  javascript
>  common/print.xml
>  inline
>  
>  
>  pmapper_demo.map
>  common/template.map
>  
>  
> Edifici_pubblici
> Fabbricati
> Grafo_stradale
> Area_stradale
> Aree_pedonali
> Grafo_stradalevie
> Ciclabili
> Confini_comune
>  
>
> Corsi_acqua
> 
>  
>  alberi
> Aiuole
> Parchi
> Sentieri
> Bosco
> campi
> alberi
>  
>  
> 
> 
> Giochi
> 
>  
>  
> Edifici_pubblici
> Cic

Re: [pmapper-users] Plugins modifications

2013-07-26 Thread Armin Burger
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 (

Re: [pmapper-users] pmapper little bugs

2013-07-26 Thread Armin Burger
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=48808831&iu=/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

2013-07-25 Thread Armin Burger
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  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  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 > > 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?
>>
>>Ye

Re: [pmapper-users] pmapper error mapscript

2013-07-12 Thread Armin Burger
Makkat

I have some doubts that everything works fine with p.mapper 4 and the 
identical Mapserver version that produces this error. If you google for 
your error message then you get e.g. this

http://comments.gmane.org/gmane.comp.gis.osgeo.ubuntu/334

and the error appears already with a simple call like

$map = ms_newMapObj();

You can just try another version of Mapserver/Mapscript (newer or older, 
different subversions) and see if the error disappears. I tested 
p.mapper 5 only with Mapserver 6, and it worked...

armin



On 07/10/2013 03:10 PM, Makkat wrote:
> Hi all,
> i have read the post on this problem from Cris forum.
> My problem is the same of Cris. With pampper 5 version vector layer don't
> show on the map. On the map google map layer  and OSM layer are visible.
> No error log the from .map and from php too.
>
> Apache error log file said this : /usr/sbin/apache2: symbol lookup error:
> /usr/lib/php5/20090626/php_mapscript.so: undefined symbol:
> php_output_get_level.
>
> With pmapper 4 all work fine...
>
> You in the post said that there is a problem of mapscript and segmentation
> fault.
>
> It's is possible a conflict between pmapper 5 and mapserver 6 ???
>
> In your opinion with a mapserver older version can i solve my problem?
>
> thanks
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/pmapper-error-mapscript-tp4025231.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> --
> 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=48808831&iu=/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=48808831&iu=/4140/ostg.clktrk
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] legend error

2013-06-04 Thread Armin Burger
you either need to set the config parameter

   

to 0 or use a newer version of Mapserver (6.0+ is required I guess). The 
dynamic legend update however gets very slow on layers with lots of 
features.

armin



On 06/04/2013 03:04 PM, Gillen wrote:
>
> Hi all,
> i´m using *map_separate-legend *configuration that appears in the live
> demos (alternative layouts) in pmapper.net.
> I have this error in the legend pane:
> *Fatal error*: Call to undefined method ms_layer_obj::getClassIndex() in
> *C:\ms4w\apps\pmapper\pmapper-4.3.1\incphp\common.php* on line *259
>
> *does anybody know how can I solve it?
>
> Thanks!
>
>
>
> --
> How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>


--
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] question about export pluggin pmapper 5

2013-05-31 Thread Armin Burger
just saw it:

   /home/www/tmp/
seems to be defined for the imagepath and that will not work on a 
Windows installation... should be something like
   C:\ms4w\tmp
or so

armin


On 05/31/2013 05:25 AM, naef...@aol.com wrote:
> I have pmapper 5 working.  I have installed the pear modules successfully.
> I turned on the export pluggin and I get the radio button, but when I click
> on the radio button for csv in the table (after I have done a search)
> the download link does not appear... the console says there is a syntax error.
> The error log has these errors:
>
>
>
> C:\\ms4w\\apps\\pmapper5\\pmapper\\plugins\\export\\export.csv.php on line 
> 57, referer: http://localhost:8080/pmapper5/
> [Thu May 30 19:51:16 2013] [error] [client 127.0.0.1] PHP Warning:  fwrite() 
> expects parameter 1 to be resource, boolean given in 
> C:\\ms4w\\apps\\pmapper5\\pmapper\\plugins\\export\\export.csv.php on line 
> 138, referer: http://localhost:8080/pmapper5/
> [Thu May 30 19:51:16 2013] [error] [client 127.0.0.1] PHP Warning:  fwrite() 
> expects parameter 1 to be resource, boolean given in 
> C:\\ms4w\\apps\\pmapper5\\pmapper\\plugins\\export\\export.csv.php on line 
> 138, referer: http://localhost:8080/pmapper5/
> [Thu May 30 19:51:16 2013] [error] [client 127.0.0.1] PHP Warning:  fclose() 
> expects parameter 1 to be resource, boolean given in 
> C:\\ms4w\\apps\\pmapper5\\pmapper\\plugins\\export\\export.csv.php on line 
> 94, referer: http://localhost:8080/pmapper5/
> [Thu May 30 19:51:16 2013] [error] [client 127.0.0.1] PHP Warning:  
> unlink(/home/www/tmp/countries_eko4gs0a00mhbp1rl6mkfir4t5.csv): No such file 
> or directory in C:\\ms4w\\apps\\pmapper5\\pmapper\\lib\\common.php on line 
> 452, referer: http://localhost:8080/pmapper5/
>
>
>
> Is this because it cannot write the file... if so... where do I setup the 
> temporary file directory and
> permissions?
>
>
> 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://p.sf.net/sfu/appdyn_d2d_ap2
> ___
> 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://p.sf.net/sfu/appdyn_d2d_ap2
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] question about export pluggin pmapper 5

2013-05-31 Thread Armin Burger
I would mainly guess that the tag

WEB
   IMAGEPATH

does not exist in your map file or that this path does not exist in your 
file system. You should check the value of the session variable 
$_SESSION['web_imagepath'] and see if it does exist in the file system.

armin


On 05/31/2013 05:25 AM, naef...@aol.com wrote:
> I have pmapper 5 working.  I have installed the pear modules successfully.
> I turned on the export pluggin and I get the radio button, but when I click
> on the radio button for csv in the table (after I have done a search)
> the download link does not appear... the console says there is a syntax error.
> The error log has these errors:
>
>
>
> C:\\ms4w\\apps\\pmapper5\\pmapper\\plugins\\export\\export.csv.php on line 
> 57, referer: http://localhost:8080/pmapper5/
> [Thu May 30 19:51:16 2013] [error] [client 127.0.0.1] PHP Warning:  fwrite() 
> expects parameter 1 to be resource, boolean given in 
> C:\\ms4w\\apps\\pmapper5\\pmapper\\plugins\\export\\export.csv.php on line 
> 138, referer: http://localhost:8080/pmapper5/
> [Thu May 30 19:51:16 2013] [error] [client 127.0.0.1] PHP Warning:  fwrite() 
> expects parameter 1 to be resource, boolean given in 
> C:\\ms4w\\apps\\pmapper5\\pmapper\\plugins\\export\\export.csv.php on line 
> 138, referer: http://localhost:8080/pmapper5/
> [Thu May 30 19:51:16 2013] [error] [client 127.0.0.1] PHP Warning:  fclose() 
> expects parameter 1 to be resource, boolean given in 
> C:\\ms4w\\apps\\pmapper5\\pmapper\\plugins\\export\\export.csv.php on line 
> 94, referer: http://localhost:8080/pmapper5/
> [Thu May 30 19:51:16 2013] [error] [client 127.0.0.1] PHP Warning:  
> unlink(/home/www/tmp/countries_eko4gs0a00mhbp1rl6mkfir4t5.csv): No such file 
> or directory in C:\\ms4w\\apps\\pmapper5\\pmapper\\lib\\common.php on line 
> 452, referer: http://localhost:8080/pmapper5/
>
>
>
> Is this because it cannot write the file... if so... where do I setup the 
> temporary file directory and
> permissions?
>
>
> 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://p.sf.net/sfu/appdyn_d2d_ap2
> ___
> 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://p.sf.net/sfu/appdyn_d2d_ap2
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] open pmapper window with active selection

2013-05-24 Thread Armin Burger
you could try to modify the file incphp/init/initmap.php in function 
"getMapInitURL" at line 782-783

from

$ext = array ($shpMinx, $shpMiny, $shpMaxx, $shpMaxy);
$_SESSION['zoom_extparams'] = $ext;

to

if (! isset($_SESSION['zoom_extparams'])) {
$ext = array ($shpMinx, $shpMiny, $shpMaxx, $shpMaxy);
$_SESSION['zoom_extparams'] = $ext;
}

and see if it does what you want. If so please let me know, I could add 
this then to the code.

armin

On 05/24/2013 04:17 PM, Valerio wrote:
> Dear Sylvain,
> Selection works! however it zooms to the feature coordinates and overrides
> the coordinates contained in the url:
>
> http://MYIP/map/mappa.phtml?dg=interv,area&me=1612940.8751359,4841490.4329934,1613026.9070329,4841533.6401239&language=it&config=default&zoomLayer=interv&zoomQuery=ID@0@880@1@0&resetsession=ALL
>
> I'd like to show the selected feature but with a different map extension...
> maybe there's something wrong in my url.
>
> thank you very much
>
> Valerio
>
>
> 2013/5/24 Sylvain Arabeyre 
>
>> Dear Valerio, dear all
>>
>> You can set up the highlight of a feature via the URL adding the following
>> string to the URL:
>>
>> &zoomLayer=LayerName&zoomQuery=NAME@1@SearchString@0@1
>>
>> where:
>>
>> LayerName is the name of the layer to query,
>> NAME is the name of the field to search (upper case for shapefiles)
>> 1: field type (0 = numerical, 1= alphanumerical)
>> SearchString is the search string (case sensitive)
>> 0: highlight feature (0 = no, 1= yes) in your case set the value to 1
>> 1: set the maximum map extent to feature extent (0 = no, 1= yes)
>>
>> Regards.
>> Sylvain.
>>
>>
>> 2013/5/24 Valerio 
>>
>>> Dear All,
>>> I inserted in a web page  links that open (in a new window) a pmapper
>>> webgis at different coordinates extensions, simply zooming and copying the
>>> link url with a resetsession parameter set to ALL. However, in every view
>>> I'd like to show a selected (yellow) object. it seems that the object
>>> selection is not saved in the url. Is it possibile to pass this parameter,
>>> or modifying the resetsession parameter?
>>>
>>> thanks in advance
>>> best regards
>>>
>>> Valerio
>>>
>>> --
>>> Try New Relic Now & We'll Send You this Cool Shirt
>>> New Relic is the only SaaS-based application performance monitoring
>>> service
>>> that delivers powerful full stack analytics. Optimize and monitor your
>>> browser, app, & servers with just a few lines of code. Try New Relic
>>> and get this awesome Nerd Life shirt!
>>> http://p.sf.net/sfu/newrelic_d2d_may
>>> ___
>>> pmapper-users mailing list
>>> pmapper-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>>
>>
>>
> --
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
> .
>


--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] webpage

2013-05-17 Thread Armin Burger
the site is now accessible again.


On 05/17/2013 09:41 AM, Chris forum wrote:
> 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  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
>

--
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] queries using two layers

2013-05-06 Thread Armin Burger
I would suggest you set the debugging level to a higher value like 3 and 
then check the query logging in the debug log, see

http://svn.pmapper.net/trac/wiki/FaqDebugging#a3.Enablep.mapperdebugging

it should contain the queries sent to PG.

armin

On 05/06/2013 05:34 PM, Moritz Lennert wrote:
> Hello,
>
> I have two PostGIS layers: one with lines representing hiking paths, one
> with polygons representing administrative units, with the mapfile
> definitions in [1].
>
> I am trying to elaborate a query in pmapper which would allow to select
> an admin unit in an options list and then in a second field select
> amongst the hikes that cross through that admin unit.
>
> To start with, one general question: is it possible to create an options
> list dependent on the first options list (i.e. chose an admin unit in
> the first list and the get a second options list with only those hikes
> that cross that admin unit), or does the second field have to be a
> suggest field ?
>
> Now, even using a suggest field in the second part, I just can't seem to
> get the correct config to make it work.
>
> At [0] is the searchitem definition.
>
> At this stage, I don't get any error message, but searches are empty,
> even though executing them directly in PostgreSQL works.
>
> No error message in the postgresql, php or apache2 logs...
>
> Any hints ?
>
> Moritz
>
>
> [0] Searchitem definition
>
>   
>   
>   
>   sort="asc" firstoption="Sélectionner une commune" nosubmit="1">
> encoding="UTF-8">pgsql://USER:PASSWD@SERVER/DATABASE
>SELECT DISTINCT muniname1,muniname1 FROM
> communes ORDER BY muniname1
>
> onchange="resetSuggestCache();$('#pmsfld_name').val('')"
>  
>   
>
>   
>   minlength="1" sort="asc" firstoption="Sélectionner une balade"
> dependfld="muniname1">
> encoding="UTF-8">pgsql://USER:PASSWD@SERVER/DATABASE
>SELECT DISTINCT name,name FROM balades JOIN
> communes ON (ST_Crosses(ST_Transform(balades.the_geom, 31370),
> communes.the_geom)) WHERE name ~* E'^[search]' AND muniname1 =
> '[dependfldval]' ORDER BY name
>  
>   
>   
>   
>
>
>
>
> [1] Mapfile definitions
>
> #admin units
> LAYER
>   NAME 'communes'
>   TYPE POLYGON
>   TEMPLATE void
>   CONNECTIONTYPE postgis
>   CONNECTION "dbname='MyDatabase' host=localhost port=5432
> user='MyUser' password='MyPassword' sslmode=disable"
>   DATA 'the_geom FROM (SELECT gid, the_geom, muniname1 FROM communes)
> as subquery USING UNIQUE gid USING srid=31370'
>   METADATA
>  "DESCRIPTION" "communes"
>  "RESULT_FIELDS" "gid,muniname1"
>  "RESULT_HEADERS" "ID,Nom"
>  "ows_title"  "communes"
>  "LAYER_ENCODING" "UTF-8"
>   END
>   TRANSPARENCY 100
> PROJECTION
>  "init=epsg:31370"
> END
>   CLASS
>  NAME 'communes'
>  STYLE
>WIDTH 1
>OUTLINECOLOR 0 0 0
>  END
>   END
> END
>
> #hikes
> LAYER
>   NAME "balades"
>   TYPE LINE
>   TEMPLATE void
>   CONNECTIONTYPE postgis
>   CONNECTION "dbname='MyDatabase' host=localhost port=5432
> user='MyUser' password='MyPassword' sslmode=disable"#Prendre simplement
> tous les champs de la table balades
>   DATA "the_geom FROM (SELECT b.gid, b.the_geom, b.name,
> b.duree_minutes, b.longueur_metres, upper(a.prenom) || ' ' ||
> upper(a.nom) as nom, a.email, a.section FROM balades b JOIN auteur a ON
> (b.id_auteur = a.id)) AS SUBQUERY USING UNIQUE gid USING srid=4326"
>
>   METADATA
> "RESULT_FIELDS" "name,duree_minutes,longueur_metres,nom,section"
> "RESULT_HEADERS" "BALADE,DUREE (min),LONGUEUR (m),AUTEUR,SECTION"
> "DESCRIPTION" "Balades"
> "ows_title" "balades"
> "LAYER_ENCODING" "UTF-8"
>   END #Metadata
> PROJECTION
>   "init=epsg:4326"
> END #Projection
>   CLASS
>  NAME 'Balades'
>  COLOR 255 0 0
>   END #Class
> END #Layer
>
>
>
> --
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>


--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their ap

Re: [pmapper-users] Pmapper5 Demo and MS4W

2013-04-28 Thread Armin Burger

On 04/28/2013 05:14 PM, Luciano Martin Galletti wrote:
> i recieve these errors:
>
> Warning:  ms_newMapObj(): [MapServer Error]: msProcessProjection(): No such 
> file or directory
>   in C:\ms4w\apps\pmapper\pmapper5\lib\globals.php on line 66


http://lmgtfy.com/?q=msProcessProjection()%3A+No+such+file+or+directory&l=1

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] pmapper 5

2013-04-22 Thread Armin Burger
the tiles are created on the fly, no caching is done on the server. But 
browsers are caching tiles already downloaded once (up to a predefined 
time), meaning same tile x/y/z and MS layer combination.



On 04/21/2013 10:02 PM, Andreas Douvalis wrote:
> Hi!
>
> Does anybody know how pmtile works? Is there any folder with cached tiles?
> --
> 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

2013-04-03 Thread Armin Burger
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?
> onchange="$('#pmsfld_numero').val('').flushCache()"
>

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


Re: [pmapper-users] search.xml with 2 fields

2013-04-03 Thread Armin Burger
On 04/03/2013 03:28 PM, Thomas RAFFIN wrote:
> The compress js version is certainly not up-to-date.
>
> Armin, could you update the js compress files please?

Hi Thomas

I updated now the compressed JS files to SVN trunk. I was believing you 
were also committing these ones to SVN. It means that the pmapper 4.3 
release will very likely have outdated files as well since I just 
exported it from SVN trunk...

Armin

--
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] IMAGEPATH

2013-03-26 Thread Armin Burger
don't worry, it works as you see ;-)

there are no map images created any more on local disks but they are 
directly streamed to the browser. The tmp dir is still needed for some 
other things like printing I guess.

/a

On 03/26/2013 12:39 PM, Raffaele Morelli wrote:
> Hi,
>
> I am testing pmapper5 with the demo map file. I've set the IMAGEPATH and
> IMAGEURL paramters, map is correctly displayed in the viewport but no files
> are genereted in IMAGEPATH dir...
>
> Any hints?
>
> regards
> -r
>

--
Own the Future-Intel® 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] exportacion a PDF en IE9

2013-03-11 Thread Armin Burger
probably it would make most sense anyway if someone rewrites the PDF 
export, creating an HTML table (which should be straightforward) and 
using the TCPDF functionality to convert HTML to PDF... The current 
export function is a quick and dirty solution, more as proof of concept, 
from several years ago...

On 03/11/2013 08:57 PM, Cristian Balbontin wrote:
> Hi Guys,
>
> Any comments about this issue? Why the PDF export plugin won't work in IE
> correctly?
>
> The pdf file always show the same results during the session.
>
>
> Best regards
>
>
> El 26 de febrero de 2013 18:38, Cristian Balbontin <
> cbalbontin.informat...@gmail.com> escribió:
>
>> Hola lista, hace algunos dias noté que la tabla de resultados tiene
>> problemas de refresco/actualización cuando se exporta a PDF en IE9 y en
>> modo compatibilidad tambien.
>>
>> Mi caso, luego de emitir alguna tabla de resultados queda almacenada, pero
>> si ejecuto cualquier otra(s) consulta(s) posterior(es), la exportacion
>> a PDF devuelve siempre la primera consulta emitida. Esto sólo se soluciona
>> al cerrar la ventana e iniciar nuevamente la sesión.
>>
>> Actualmente estoy usando la version pmapper 4.2 e IE9 (Windows Vista).
>> Probando en otros exploradores no ocurre este problema.
>>
>> ---
>>
>> Hi Guys, days ago I'm having problems with Export to PDF from results
>> table. I'm using pmapper 4.2 and IE9(and compatibility mode).
>>
>> When I push 'Download PDF', this file it's OK the first time. Then I
>> execute others queries, but I keep getting the same results table than
>> first time in file .pdf
>> When I restart my session on IE, newly I can download ok the first time
>> ... and begins again.
>>
>>
>> Regards
>>
> --
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Problem printing layers

2013-03-08 Thread Armin Burger
tiled layers not coming from local data (referenced in the map file) 
cannot be printed for the time being.

On 03/08/2013 05:44 PM, Borja Cano Barredo wrote:
> Hi,
>
> I have a problem with print function.
> Pmapper 5 only prints default groups/layers ( tag). I have all
> layers defined in  tag in config_default.xml. How can i fix it
> to print def layers and selectable(tiled) layers?
>
> Thanks.
> --
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Get list of layers into js variable

2013-03-07 Thread Armin Burger
all parameters from the XML config file are available via the JS var
PM.ini

To get session variables and do something with them you can use the function
   PM.getSessionVar(varname, callback),
e.g. like
   PM.getSessionVar('categories',
'PM.Plugin.Layerselect.updateTree(response)');

/a

On 03/07/2013 05:54 PM, Chris Jackson wrote:
> Hi all
>
> I am trying to get a list of loaded layers in p.mapper into a js variable
> so if 2 particular layers are on then a pop-up is triggered.  I thought the
> best way is to retrieve the groups out of the php session, but having
> trouble getting the values into a variable, any steer would be appreciated.
>
> Many thanks
> Chris
> --
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>


--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] search.xml with postgis - invalidJSON

2013-03-03 Thread Armin Burger
this is related to 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. In your 
case you need to edit the file
   incphp/query/squery.php
and change inside function dumpPGQueryResults "xmin" to "ST_xmin" and so 
forth. So it should look like

$query = "SELECT $unique_field,
  ST_xmin(box3d($geom)),
  ST_ymin(box3d($geom)),
  ST_xmax(box3d($geom)),
  ST_ymax(box3d($geom)),
  $select
 FROM $dbtable
WHERE $queryStr
LIMIT $searchlimit";

The changeset
   http://svn.pmapper.net/trac/changeset/1272
lists all parts of the code where this was updated.

In principal it should also just be fine replacing the whole squery.php 
with the one of p.mapper 4.3

Armin

On 03/03/2013 11:13 AM, Suman wrote:
> Hi all Pmapper User
> I am using ms4w v3.0.6. , mapserver v6.0.3, PHP v5.4.3. and pmapper 4.2.0.
> When I run a query on a PostGIS table I can see suggestions but when i click
> them no any response.
> This is my inline search.xml
> --
> 
>  $
>
>  
>  
>  
>   minlength="1" startleft="1" sort="asc" dependfld="gid">
>   encoding="UTF-8">pgsql://postgres:postgres@localhost:5432/gisdb
>   SELECT DISTINCT name FROM 
> public.tbl_utility WHERE name ~*
> '^[search]' ORDER BY name
>   
>  
>  
>  
>  
> ---
>
> and i found in chrome console invalid JSON
>
> Invalid JSON: 
> *Warning*:  pg_query(): Query failed: ERROR:  function xmin(box3d) does not
> exist
> LINE 2:  xmin(box3d(geom)),
>   ^
> HINT:  No function matches the given name and argument types. You might need
> to add explicit type casts. in
> *C:\ms4w\apps\newbrt\biratnagar\incphp\query\squery.php* on line *712*
> 
> *Warning*:  pg_numrows() expects parameter 1 to be resource, boolean given
> in *C:\ms4w\apps\newbrt\biratnagar\incphp\query\squery.php* on line *716* />
> {"mode":"search", "queryResult":0}
> pm_cjs.js:38
>
> i tried all above given suggestions but i cant solve this problem.. plz help
> me..
>
>
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/pmapper-users-search-xml-with-postgis-invalidJSON-tp2790207p4025076.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_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] General questions

2013-02-28 Thread Armin Burger
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


Re: [pmapper-users] Pmapper 5 pop-up google

2013-02-27 Thread Armin Burger
everything for this is described in the Openlayers wiki

http://trac.osgeo.org/openlayers/wiki/Release/2.11/GoogleMaps37


On 02/26/2013 11:47 PM, Pablo Gomez wrote:
>
>
> Good morning,
> Quick question, how can you remove the pop-up ad on the ownership of data 
> from Google? Every time I move around the map get this notice.
>
> thanks
> --
> 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] Legend - Segmentation fault

2013-02-20 Thread Armin Burger
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

0

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


Re: [pmapper-users] Hello!

2013-02-18 Thread Armin Burger
http://mapserver.org/optimization/index.html
http://mapserver.org/input/raster.html#raster-display-performance-tips


On 02/16/2013 06:35 PM, yllka baci wrote:
> 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


Re: [pmapper-users] svn.pmapper.net not working

2013-02-13 Thread Armin Burger
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


Re: [pmapper-users] pmapper5 beta 2

2013-02-12 Thread Armin Burger
On 02/12/2013 02:31 PM, i...@architekten.coop wrote:
> dear pmapper users
>
>
> i want to test pmapper5. does it work with mapserver version 5.2 ?
>
> in the programm files on
>
> http://www.pmapper.net/demo/pmapper-5.0-beta2/
>
> i miss the file map_default.phtml. so i took it from version 4.2 pmapper,
> but without success. in mozilla i recieve:
>
> *Warning*: [MapServer Error]: msProcessProjection(): No such file or
> directory in *C:\Program Files
> (x86)\ms4w\apps\pmapper\pmapper-5.0-beta2\lib\globals.php* on line *66*

Insert the error
   msProcessProjection(): No such file or directory
in Google and check the error explanation in the first result.



--
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] excel download

2013-02-05 Thread Armin Burger


On 02/05/2013 12:24 PM, Gillen wrote:
> Hi all,
> The excel export plugin is not working in my pmapper 4.2.0. I have
> installed the pear packages and at first it was working fine but now the
> php release changed in our server and maby because of that is not working.
> When I tell to my pmapper application to download any data table to
> excel, the download button doesn´t appear and I can´t download it, but
> the file is created in the tmp folder.
> I think that the release is php 5, does anybody know how can I solve it?

maybe re-install the required Pear packages...?

--
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%

2013-02-05 Thread Armin Burger
without knowing anything about the configuration you're using it's only 
possible to make some guessing... one could e.g. guess that you have a 
Google layer defined, and without downloading the required Google 
Javascript API due to missing Internet connection you will just get 
errors from OL.



On 02/04/2013 05:25 PM, Suman 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..
> 
>
> 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%

2013-01-26 Thread Armin Burger
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  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=default&resetsession=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) al

Re: [pmapper-users] pmapper5 demo working 50%

2013-01-26 Thread Armin Burger
On 26/01/2013 09:15, Mouanis LAHLOU wrote:
> Hi Chris
> In your pmapper_demo:
> I suppose that you work in linux
> Line 85 :   IMAGEPATH "/tmp/" verify that this path exist and owner by
> www-data

that's not needed any more for p.mapper 5 since the map images are 
directly streamed to the browser.


> Line 190:   DATA "vector/10m_cultural/ne_10m_admin_0_countries" I think you
> missed (.shp) ...  DATA "vector/10m_cultural/ne_10m_admin_0_countries.shp"

the .shp extension was never needed for Mapserver, and in older versions 
not recommended to be added since it prevented the spatial index (*.qix) 
to be used.



>
>
> 2013/1/25 Chris forum 
>
>> 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  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=default&resetsession=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

Re: [pmapper-users] pmapper5 demo working 50%

2013-01-25 Thread Armin Burger
well, you have an Apache error caused by MapScript. Most of the cases 
this is related to some kind of segmentation fault. This however should 
also be listed in the apache log.

The single tiles for the country layer are accessible via firebug, you 
need to check the HTTP response there for such tiles. All other lower 
level debugging methods as described in the wiki applies also for 
p.mapper 5 to narrow down problems.


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  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=default&resetsession=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:
>> > src="lib/map/pmhighlight?&width=1105&height=732&bbox=-8816145.2489599,338156.198789,12816145.24896,14661843.801211&crs=EPSG%3A900913×tamp=13589532565">
>>
>> Any idea where the problem could be?
>>
>> Thanx,
>> Chris
>>
>>
>>
>>
>> ---

Re: [pmapper-users] Layer projection needed for legend

2013-01-14 Thread Armin Burger
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
> example),
> 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


Re: [pmapper-users] milestone for pmapper 5?

2013-01-09 Thread Armin Burger
no roadmap sort of thing. See also this posting some time ago:

http://sourceforge.net/mailarchive/message.php?msg_id=30189515




On 09/01/2013 21:44, Jose Mercedes Venegas Acevedo wrote:
> Good day to all
>
> sorry I only speak Spanish
> is there any roadmap for pmapper 5?
> I would like to migrate my current application pmapper 5
> regards
> I would like to collaborate with pmapper
> but my code is a monstrous spaghetti
> even so
> this is the application I made in pmapper
>
> http://www.youtube.com/watch?v=D8_7RDPMrdo
>
> apologize for removing the logos but it was necessary to let me implement it 
> at
> work.
>
> *
> Buen dia a todos
>
> disculpen solo hablo español
> hay alguna hoja de ruta para pmapper 5?
> quisiera migrar mi aplicación actual a pmapper 5
> saludos
> quisiera colaborar con pmapper
> pero mi codigo es un espagueti mostruoso
> aun asi
> esta es la aplicación que hice en pmapper
>
> http://www.youtube.com/watch?v=D8_7RDPMrdo
>
> disculpen por quitar los logos pero era necesario para que me dejaran
> implementarlo en el trabajo.
>

--
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] pmapper5

2013-01-09 Thread Armin Burger
The print part (and "download" was functionally placed under "print") is 
not complete. The PDF print might still be implemented once.

The download functionality will likely be removed from the core code and 
could be added as a plugin (if someone is going write this plugin...). 
It's anyway a bit of a confusing name and does only make sense if no 
layers like OSM or Google are involved.


On 09/01/2013 21:29, webmas...@corponarino.gov.co wrote:
> Cordial saludo,
> el archivo download.php contiene estas sentencias:
>
> require_once("incphp/group.php");
> require_once("incphp/pmsession.php");
> require_once("incphp/globals.php");
> require_once("incphp/common.php");
> require_once("incphp/map/map.php");
> require_once("incphp/print/print.php");
>
> Pero la version pmapper5 no tiene la carpeta incphp y por tanto se
> genera error al tratar de descargar el mapa como GeoTIFF en cual quier
> resolucion 150 DPI,200 DPI o 300 DPI.
>
> Alguien me puede ayudar
> Atenetamente
> German Mazuera
>
> --
> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
> and much more. Keep your Java skills current with LearnJavaNow -
> 200+ hours of step-by-step video tutorials by Java experts.
> SALE $49.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122612
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Categories and sub-categories

2013-01-09 Thread Armin Burger
no, not possible.

On 09/01/2013 09:19, Serge Claudio Rafanoharana wrote:
> Dear Armin and All,
>
> Is it possible with pmapper 4 to have a second sub-categories? Something
> like:
> Cat1
> -sub-cat11
> --sub-sub-cat111
> --sub-sub-cat112
> -sub-cat12
> --sub-sub-cat121
> --sub-sub-cat122
> Cat2
> ...
>
> Like in pmapper 5, we have the domain.
>
> Cheers,
> Serge
> --
> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
> and much more. Keep your Java skills current with LearnJavaNow -
> 200+ hours of step-by-step video tutorials by Java experts.
> SALE $49.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122612
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] link / plugin / any solution that brings to a specific extent

2012-12-19 Thread Armin Burger
Serge

you can also update the documentation for the plugin on the wiki so 
others might find it helpful when wanting to use it:

http://svn.pmapper.net/trac/wiki/PluginsMap#Mapselector

though if in your case it would not be necessary to create separate 
config files, don't know if you modified the Javascript file to avoid this.

Best regards
Armin

On 19/12/2012 09:42, Serge Claudio Rafanoharana wrote:
> Dear Armin and Zoltan,
>
> Thanks for your replies. Zoltan's suggestion was an alternative but I
> think the mapselect plugins is the right option. The readme file of the
> plugin was not so detailed which made me a little bit confused but now
> it's working. And this is what I was expecting.
>
> Thanks.
> Serge
>
> On Wed, Dec 19, 2012 at 3:49 AM, Armin Burger  <mailto:armin.bur...@gmail.com>> wrote:
>
> you could use a modification of the mapselect plugin defining the start
> up parameters as explained here:
>
> http://svn.pmapper.net/trac/wiki/DocManual#Zoomtopre-definedextent
>
> armin
>
>
> On 18/12/2012 21:29, Serge Claudio Rafanoharana wrote:
>  > Dear All,
>  >
>  > Is there any plugins/ways that can bring to a specific extent.
> Let's say
>  > the default extent is covering the whole country, and the
> link/button will
>  > bring/zoom to a specific province within the country.
>  >
>  > Thanks,
>  >
>  > Cheers,
>  > Serge
>  >
> 
> --
>  > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
>  > Remotely access PCs and mobile devices and provide instant support
>  > Improve your efficiency, and focus on delivering more value-add
> services
>  > Discover what IT Professionals Know. Rescue delivers
>  > http://p.sf.net/sfu/logmein_12329d2d
>  > ___
>  > pmapper-users mailing list
>  > pmapper-users@lists.sourceforge.net
> <mailto:pmapper-users@lists.sourceforge.net>
>  > https://lists.sourceforge.net/lists/listinfo/pmapper-users
>  >
>
>
> 
> --
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> <mailto:pmapper-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>
>
>
>
> --
> Serge


--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


  1   2   3   4   5   6   7   8   9   10   >