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

2011-04-08 Thread Armin Burger

On 08/04/2011 09:18, moka61 wrote:

 Thank you for the quick response.

 I removed the apostrophe from the name VITO D'ASIO and the query works
 correctly. The escape is made ​​only in the second part of the key JSON.

I know, the problem is that the JSON values afterwards are used by 
Javascript and there might be an escaping necessary, but the escape 
backslash has to be escaped itself for correct JSON syntax. I don't know 
any more why the escaping was just set for the value and not the key of 
the options pair. I need to make some testing with datasets that have 
apostrophes...

armin

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


Re: [pmapper-users] Fw: Re: selectionManagement plugin

2011-04-08 Thread Armin Burger
On 08/04/2011 16:57, Chris Jackson wrote:
 I am thinking about looking into split screen layouts for comparative layer
 work as an aside.

I have some doubts that this will work with p.mapper due to its session 
handling (nearly everything is stored in a PHP session). If both maps 
will run on the same web site they would share the same session and have 
overlapping session variables, with one map overwriting the settings of 
the other. In v4.1 I added the possibility for custom session 
management, but I don't know if this could solve this issue.


 my main headaches have been data rendering performance

Where do these problems appear for you? On decently new and powerful 
servers I only noticed some potential performance issues with raster 
data that are re-projected and use resampling, but even this can usually 
be resolved with some layer/data management and pre-processing. Vector 
data if defined with reasonable scale dependencies are normally quite 
fast to render, even with re-projection.

armin

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


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

2011-04-07 Thread Armin Burger
Daniele

I guess it's related to an insufficient escaped apostrophe (could eg. be 
the VITO D'ASIO). There were changes in v 4.1 and it especially now 
uses a newer version of jQuery which expects syntactically correct JSON. 
I'll have a look at it and will try to add a patch soon. Please send me 
also via private mail the full JSON string that is reported as invalid.

Regards
Armin

On 07/04/2011 15:06, moka61 wrote:

 Hi folks

 I downloaded 4.1.1 version stable for an update to the previous.
 When I run a query on a PostGIS table I can not display the dropbox.

 This is my inline search.xml
 --
 searchlist version=1.0
  dataroot$/dataroot
   searchitem name=com description=Capoluoghi
   layer type=postgis name=capoluoghi
   field type=s name=nome description=capoluoghi 
 wildcard=2
   definition type=options connectiontype=db 
 sort=asc
   dsn 
 encoding=UTF-8pgsql://user:pass@localhost/base/dsn
   sqlSELECT DISTINCT nome, nome FROM 
 base.centroidi_comune WHERE nome
 IS NOT NULL ORDER BY nome/sql
   /definition
   /field
   /layer
  /searchitem
  /searchlist
 ---
 When view pmapper log I have this result

 [07-Apr-2011 14:45:29] P.MAPPER debug info
 search.php-getOptionsFromDb()-json
   { ANDREIS:ANDREIS, ARBA:ARBA, . VITO D'ASIO:VITO
 D\'ASIO, ZOPPOLA:ZOPPOLA}
 [07-Apr-2011 14:53:47] P.MAPPER debug info
 XML-//definition
   SimpleXMLElement Object
 (
  [@attributes] =  Array
  (
  [type] =  options
  [connectiontype] =  db
  [sort] =  asc
  )

  [dsn] =  pgsql://user:paswd@localhost/base
  [sql] =  SELECT DISTINCT nome, nome FROM base.centroidi_comune WHERE
 nome IS NOT NULL ORDER BY nome
 )

 sems fair...

 but in firebug i notice this: invalid JSON

 Invalid JSON: {searchJson:{searchitem: com, fields: [{description:
 capoluoghi, fldname: nome, fldsize: false, fldsizedesc: false,
 fldinline: false, definition: {type:options, selectname:nome,
 firstoption:*, size: 0, events:false, options: {
 ANDREIS:ANDREIS,
 .   }}}]}, action:searchitem, divelem:2}

 in the previous version 4.0 everything was working properly.

 I also noticed that the print and download the map if it is not possible if
 the map file using INCLUDE tag  with other map file.

 Thanks in advance

 Daniele



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


Re: [pmapper-users] MAXSCALE and Identify

2011-04-06 Thread Armin Burger
Try to replace in incphp/map/map.php line 590
  if ($minscale = $this-map-web-minscale) {
with
  if ($minscale = $this-map-web-minscaledenom) {

and see if it helps. I just recently replaced all min/maxscale with
min/maxscaledenom in the dev version which is the recommended setting.

alternatively you could try the other way round for a test and define
  MAP-WEB- MINSCALE
instead.

armin

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


Re: [pmapper-users] On the subject of wiki updates

2011-03-31 Thread Armin Burger
should be possible to suppress categories in the legend by setting

printCategory to 0 in print.xml

armin

On 31/03/2011 10:31, Chris Jackson wrote:
 Armin

 I noticed an omission of a comma in one of the plugins - TOC info link on
 http://svn.pmapper.net/trac/wiki/PluginsToc should have a comma after -
 insert: 'after' in the options section of code.  Hope that makes sense!

 Also thanks for the PDF tip, changes sorted, was sort of on the right
 track.  On that note is it possible to stop the category header printing?

 Chris
 --
 Create and publish websites with WebMatrix
 Use the most popular FREE web apps or write code yourself;
 WebMatrix provides all the features you need to develop and
 publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users



--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] IIS install funny

2011-03-30 Thread Armin Burger
I never used anything else than an absolute path for this setting. I 
updated the wiki that puts this as a recommended setting.

armin

On 30/03/2011 10:05, Chris Jackson wrote:
 Update - I had to switch the mapfile image path from a relative to absolute
 link and all fixed - I guess apparently I must be missing an environment
 variable on the second windows system

 Chris

 On 29 March 2011 16:37, Chris Jacksonwebturt...@gmail.com  wrote:

 Hi all

 I have been just setting up a new IIS installation of pmapper and can get
 the application to load, but with a white area (complete with loading image)
 instead of a map.  However, I can still query and print a PDF fully intact.
 There doesn't seem to be any pmapper error as such in the log.
 Any thoughts? I think all perms and extensions are correct/enabled (A PHP
 check lists mapscript ok).

 cheers
 chris

 --
 Enable your software for Intel(R) Active Management Technology to meet the
 growing manageability and security demands of your customers. Businesses
 are taking advantage of Intel(R) vPro (TM) technology - will your software
 be a part of the solution? Download the Intel(R) Manageability Checker
 today! http://p.sf.net/sfu/intel-dev2devmar
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] block zoom

2011-03-30 Thread Armin Burger
On 30/03/2011 19:24, Sandro Ferrara wrote:
 Hi to all,
 i would like to avoid the zoom beyond the scale of 1:1000, eg 1:500
 return to the scale of 1:1000, is it possible?

 Thanks in advance
 Sandro


you can add a tag in your map file

MAP
   WEB
 MINSCALEDENOM 1000
   ...
...

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] to execute a JavaScript function every time the map is refreshed

2011-03-29 Thread Armin Burger
Andreas

this changed in the current version since the old method did not work 
with Chrome browsers, the docs are not updated yet. Use something like

PM.Map.bindOnMapRefresh(function(e){
 //your_function
 ...
});

if you need you can also pass parameters to the event handler function

PM.Map.bindOnMapRefresh({foo: bar, foo2: bar2}, function(e){
 //your_function
 ...
});

for more information see the jQuery .bind() function.

armin


PS: don't try to read the compressed JS files, check in the src files.


On 29/03/2011 23:13, Andreas Douvalis wrote:
 Hi
 My name is Andreas and I use pmapper 4.1.1

 in Wiki i found that:
 to execute a JavaScript function every time the map is refreshed then add to 
 the init function referenced in config.inc something like

 $(#pmMapRefreshImg).bind(load, function(e){
pm_scaleBar.update(PMap.scale);
 });
 Moreover in pm_cjs.js i 
 found:$(#pm_mapUpdateEvent).bind(change,bindData,bindFunction);
 I use uilayout and therefor I suppose that the pm_mapUpdateEvent is the 
 correct div id.
 However I test with $(#pm_mapUpdateEvent).bind(change,bindData, 
 alert('test')); and it does not work.What is bindData ?Can someone explain me 
 how can I run one javascript function whenever I update map?How can I use the 
 above function?



 --
 Enable your software for Intel(R) Active Management Technology to meet the
 growing manageability and security demands of your customers. Businesses
 are taking advantage of Intel(R) vPro (TM) technology - will your software
 be a part of the solution? Download the Intel(R) Manageability Checker
 today! http://p.sf.net/sfu/intel-dev2devmar
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] modifying element properties per configuration

2011-03-28 Thread Armin Burger
On 27/03/2011 23:02, Chris Jackson wrote:
 Armin - any plans to integrate PMapper with the
  Jquery UI interface?

 Chris

one of the two main layouts is using parts of jQuery UI and the Layout 
plugin. I don't see where more of this should be added for the time 
being. But everybody can easily implement all sorts of accordion effects 
or whatever widget he or she wants. It's also possible to replace UI 
elements like the dialog with a jQuery UI corresponding type if someone 
finds this necessary.

armin


--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and publish 
your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] p.mapper and ECW files

2011-03-23 Thread Armin Burger
p.mapper uses Mapserver/Mapscript and Mapserver uses Gdal for raster
rendering,  p.mapper does not have a notion if your raster file is ECW
or Tiff. If something does not work try to use a systematic debugging
as described in the FAQ's.

armin

On Wed, Mar 23, 2011 at 9:26 AM, aborruso aborr...@gmail.com wrote:
 Dear all,
 I'm not able to use an ECW file as pmapper 4.1.1 Layer.

 I'm working in Ubuntu 10.04.2 LTS with MapServer version 5.6.6 (OUTPUT=GIF
 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ
 SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI
 SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
 SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI
 SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS
 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE).

 I have GDAL 1.7.2 and gdal-config gives me these formats: gxf gtiff hfa
 aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem envisat elas
 fit vrt usgsdem l1b nitf bmp pcidsk airsar rs2 ilwis rmf leveller sgi
 srtmhgt idrisi gsg ingr ers jaxapalsar dimap gff cosar pds adrg coasp tsx
 terragen blx msgn til r northwood saga wcs wms grib bsb ecw jpeg2000 hdf5
 hdf4 gif jpeg png netcdf pcraster rik rasterlite wktraster.

 In my pmapper map file I have a geotiff raster layer, and I see it perfectly
 in my pmapper application. If I substitute the geotiff file with an ECW file
 (changing only the DATA parameter of the Layer), I have a black map in
 pmapper. But if I load the map with a classic mapserver call -
 http://myserver/cgi-bin/mapserv?map=/var/www/vv1.mapmode=map - I see
 perfectly the map.

 This is for me very strange because MapServer and GDAL read properly my ECW
 file, and p.mapper generally works great for me, but when I use an ECW file
 as source I have a black map.

 Do you have some solution or advice for me?

 Thank you very much,

 a




 --
 View this message in context: 
 http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/p-mapper-and-ECW-files-tp2719486p2719486.html
 Sent from the pmapper-users -- p.mapper users mailing list mailing list 
 archive at Nabble.com.

 --
 Enable your software for Intel(R) Active Management Technology to meet the
 growing manageability and security demands of your customers. Businesses
 are taking advantage of Intel(R) vPro (TM) technology - will your software
 be a part of the solution? Download the Intel(R) Manageability Checker
 today! http://p.sf.net/sfu/intel-dev2devmar
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] resize layout

2011-03-19 Thread Armin Burger
On 18/03/2011 23:00, Aníbal Pacheco wrote:
 Hi. I Can't figure out how to enable the layout-toggle or resizer bar.
 It's a thing between the map and the formlayer used to enlarge the map
 area to the full width. Any thoughts? thanks

 --
 Colocation vs. Managed Hosting
 A question and answer guide to determining the best fit
 for your organization - today and in the future.
 http://p.sf.net/sfu/internap-sfd2d
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


you need to load the start file map_uilayout.phtml instead of 
map_default.phtml, note that it uses also another config file with a 
corresponding file name.

armin

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] problem with ECW

2011-02-08 Thread Armin Burger
Maybe the MS4W supports MrSID images... You could also download 
pre-compiled MrSid libraries for Linux and compile Mapserver/GDAL with 
it. I don't know exactly if it prohibits the use on server software as 
ECW license does, but I have not found this in their license file.

If the ECW libraries are included or not in MS4W, it's probably not 
permitted to use this in a productive server environment. I guess it 
somehow has been accepted once by ERMapper, though the 2005 license 
terms clearly state that server usage is not included..., and the 2007 
terms do not allow anything without acceptance by ERMapper, now Erdas.

Maybe you could just use Geotiff, depending on available disk space, 1 
sqkm in 1 m resolution should take 3 MB, 0.5 m resolution images 
accordingly 12 MB/sqkm.

If you can compile Mapserver yourself on Linux you could also use the 
OpenJpeg v2 library, perhaps a bit slower than ECW, but free. The file 
size you can get to similar ranges as for ECW. You need the latest GDAL 
(1.8) for this.

Armin



On 08/02/2011 22:12, Pino Scalamandrè wrote:
 A fine mess

 You know another compression format like ECW that is compatible with MS4W
 3.x?

 I am installing pm 4.1.1 or an earlier version of MS4W?

 Pino


 - Original Message -
 From: Thomas RAFFINtraf...@sirap.fr
 To:pmapper-users@lists.sourceforge.net
 Sent: Monday, February 07, 2011 10:46 AM
 Subject: Re: [pmapper-users] problem with ECW


 Hi,

 If you are using MS4W 3.x, the ECW file format is no longer supported
 (due to new Erdas license).

 Thomas

 Le 02/02/2011 21:19, Armin Burger a écrit :
 Pino

 I don't think anybody can help you if you do not specify *what* is your
 problem, and describe it in best ways ;-) the pm Wiki has a section of
 debugging under the FAQ's.

 armin

 On 02/02/2011 20:02, Pino Scalamandrè wrote:
 Hello everyone
 I'm moving to the  4.1.1 version that I have installed with MS4W.
 I have problems with  ECW images format.
 Can anyone help me?
 Pino
 --
 Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
 Finally, a world-class log management solution at an even better
 price-free!
 Download using promo code Free_Logger_4_Dev2Dev. Offer expires
 February 28th, so secure your free ArcSight Logger TODAY!
 http://p.sf.net/sfu/arcsight-sfd2d
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

 --
 Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
 Finally, a world-class log management solution at an even better
 price-free!
 Download using promo code Free_Logger_4_Dev2Dev. Offer expires
 February 28th, so secure your free ArcSight Logger TODAY!
 http://p.sf.net/sfu/arcsight-sfd2d
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users




 --
 The modern datacenter depends on network connectivity to access resources
 and provide services. The best practices for maximizing a physical server's
 connectivity to a physical network are well understood - see how these
 rules translate into the virtual world?
 http://p.sf.net/sfu/oracle-sfdevnlfb
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


 --
 The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
 Pinpoint memory and threading errors before they happen.
 Find and fix more than 250 security defects in the development cycle.
 Locate bottlenecks in serial and parallel code that limit performance.
 http://p.sf.net/sfu/intel-dev2devfeb
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Low Performance in IE with many layers

2011-02-07 Thread Armin Burger
On 07/02/2011 15:03, Nicolas Morales wrote:

 Hi,

 I've noticed that when the mapfile has many layers, the performance in
 Internet Explorer is low especially when the map zoom changes.

 I discovered that the javascript function that consumes most of the time in
 IE is tocUpdateScale () in pm.toc.js

 Is there any way to fix this problem?

 I'm using version 4.1.1

 Thanks

well, this is an issue of the Javascript speed in IE. The update layers 
function has to loop through all layers and add one style and remove 
another, stepping through the DOM tree, for IE this might take a 
while... It's not possible to change without removing the functionality, 
or wait for IE 9...

I don't know if there are any optimizations possible on the jQuery side 
and it's selector functions. p.mapper 4.1.1 is already using the latest 
jQuery version I think. On the other hand I think the map is loaded 
normally, just the TOC update takes some time.

The only possibilities that directly come into my mind are:
  - use fewer layers
(maybe allow adding/removing them via the layerselect plugin)

  - disable the greying-out of the layers when not visible
at the current scale. This I could provide with an additinal
check of a parameter. You can try this by adding as first line
in the tocUpdateScale() function
   return false;
and see how much faster it is.
You could also check if it could be related to the AJAX call (which
I don't think) and comment out just the part of the closure
$.each(layers, function(l, cl) {
...
 });


armin

--
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Customize TOC

2011-02-06 Thread Armin Burger
Pino

you should use a tool like Firebug to check which CSS settings actually 
define the various style parameters. Since styles are usually a 
combination provided by overlapping and overwriting parent/child styles 
it is virtually impossible to just rely on a simple setting and hope it 
works.

In Firebug choose the blue arrow symbol (top-left of FB window) and 
click on the element for which you want to inspect the styles. You see 
them then in the part on the right, where you can modify them on the fly 
for testing them. These changes are only valid during your session and 
are nowhere written (and hence lost after you close the browser). So 
when you found the right style write it to the *.css file that is 
indicated in Firebug.

You will eg. see that the color of the TOC is defined in the style 
.vis, but there is no such a style like .toc (ie. there is no class 
toc in p.mapper, just an ID toc).

armin

On 06/02/2011 17:17, Pino Scalamandrè wrote:
 Hi!

 I like customize the framework of pmapper 4.1.1 and have changed de 
 font-color for cat name in the TOC

 In the toc.css file:

 .toc A, .cat A {
  color: #FAFFC6;
  text-align: left;
  text-decoration: none;
 }

 but it doesn't work!

 I did the same changes for the other text of TOC and it is ok.

 Thanks!

 Pino
 --
 The modern datacenter depends on network connectivity to access resources
 and provide services. The best practices for maximizing a physical server's
 connectivity to a physical network are well understood - see how these
 rules translate into the virtual world?
 http://p.sf.net/sfu/oracle-sfdevnlfb
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] problem with ECW

2011-02-02 Thread Armin Burger
Pino

I don't think anybody can help you if you do not specify *what* is your 
problem, and describe it in best ways ;-) the pm Wiki has a section of 
debugging under the FAQ's.

armin

On 02/02/2011 20:02, Pino Scalamandrè wrote:
 Hello everyone
 I'm moving to the  4.1.1 version that I have installed with MS4W.
 I have problems with  ECW images format.
 Can anyone help me?
 Pino
 --
 Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
 Finally, a world-class log management solution at an even better price-free!
 Download using promo code Free_Logger_4_Dev2Dev. Offer expires
 February 28th, so secure your free ArcSight Logger TODAY!
 http://p.sf.net/sfu/arcsight-sfd2d
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Disable the Reference Map

2010-12-30 Thread Armin Burger


On 29/12/2010 23:48, beck...@knology.net wrote:
 I am new to pmapper and I succesfully installed pmapper 4.1.1 and the demo.  
 However, I am trying to make my on application with my own simple mapfile.  
 My mapfile only has one shapefile and I do not want to use the reference map. 
  When I remove the reference map from my mapfile the program does not work.  
 Do I need to adjust a setting somewhere and do I need to enter extent 
 coordinates anywhere else besides the mapfile?
 Thanks in advance.

 JB


you need to remove (or comment out) in the map_phtml the uielement 
for the reference map, then it should work without.



--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Best practice to integrate a missing jQuery-UI

2010-12-20 Thread Armin Burger
Niccolo

I don't know if you need the jQuery ui layout for the re-sizable panes. 
If yes, then merge the 'jquery.layout.min.js' from the src directory 
with the full/custom jQuery-UI minimized package and replace the one 
under javascript/optional. Or better, create your own custom directory 
under javascript/optional, like
javascript/optional/uicustom/jquery.ui-custom-merged.js
  and place your merged file there. Then in the config XML use

   pm_javascript_optionaloptional/uicustom/pm_javascript_optional

instead of the original setting.

This should do the job. If you don't use the uilayout but the plain 
layout then you should be able to place the custom jQuery-UI everywhere 
where JS files are loaded (see FAQ customization for this).

It would help if you update the Wiki FAQ with this if it works.

armin





On 20/12/2010 23:33, Niccolo Rigacci wrote:
 Is there a best practice to integrate a missing jQuery-UI plugin
 in p.mapper?

 For example I want to add the accordion widget.

 I see that javascript/jquery_merged.js is not a plain vanilla
 jQuery, and javascript/optional/ui/jquery.ui_merged.js is not a
 complete jQuery-UI.

 I suppose that loading an original jquery.js and a full
 jquery-ui.js putting them in config/common/ can break someting,
 overriding the versions provided by p.mapper (indeed I confirm
 that it breaks).

 So I followed this way:

 * Downloaded a custom jquery-ui with just the required widget
and the dependencies required.

 * Extracted from the archive the minified version, and copied
into config/common/

 But I think this is not the safest way.


--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Authentication for p.mapper

2010-12-15 Thread Armin Burger
you could contact Walter Lorenzetti, afaik he was working on something 
like this.

Regarding the map images in the tmp folder: have a look at the file 
names (a combination of session ID and time in microseconds) and then 
decide if these names are guessable... if you use cookies for sessions 
it's also not possible to have a slight risk leakage of session 
information via HTTP referrer headers. you should just be aware about 
the side effects of cookies for sessions in p.mapper and clear the 
session if required (eg. at start up). you can also run a cron job every 
minute that deletes the tmp files older than a minute.

or if you (or your customer) are paranoid enough, add an AJAX request to 
the map image loading that launches a PHP script to delete the just 
created image. You can do this as a plugin, check the scalebar plugin 
(in pm. 4.1.), something like

PM.Map.bindOnMapRefresh(function(e){
 PM.Plugin.RmTmpFiles.rm();
});

You can extract the current map image name file name from the src 
attribute via
$('#mapImg').src();

or just overwrite the default PM.Map.swapMapImg() with your custom 
function that launches the AJAX for removing the tmp file.

armin

On 15/12/2010 22:18, Peter Wells wrote:
 Hello all,

 I'm in the process of setting up p.mapper for a client who wishes to map
 potentially sensitive data to authenticated users.

 Users will need to be authenticated against an SQL db residing at
 another location so I was looking to steer away from .htaccess based
 ideas.  If anyone has any pre-existing suggestions, I'd be happy to hear
 them.

 Below are some ideas for developing an authentication solution (if
 anyone is interested in discussing this further, please read on...)

 At present, I've added a login.php and logout.php which authenticate and
 set php session variables.  It shouldn't be hard to adjust all php pages
 so that they only function if the user is logged in, else re-directing
 them to a login page.

 My problem at the moment is how to stop people from accessing the
 rendered images in the /tmp folder.  If someone (unauthenticated)
 managed to guess a filename under the /tmp folder, they'd be able to see
 previously rendered maps.  The only solution I've thought of so far to
 this is to stop apache from serving files directly from this folder and
 instead write some php which reads the correct image and then squeezes
 it out through GD functions or similar (after checking that the user is
 authed obviously).

 I suspect I'll end up developing further the idea above unless there is
 something out there that does this already and it would be great to hear
 any thoughts for improvement / criticism from any developers (p.mapper
 or otherwise) on the mailing list.

 Kind regards,

 Pete
 --
 Lotusphere 2011
 Register now for Lotusphere 2011 and learn how
 to connect the dots, take your collaborative environment
 to the next level, and enter the era of Social Business.
 http://p.sf.net/sfu/lotusphere-d2d
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] problems with relative path in mapfile

2010-12-13 Thread Armin Burger
just use an absolute path and you're done. otherwise change core code to 
use file name resolution with PHP function realpath().

armin

On 13/12/2010 10:43, Fco. Javier García Ricca wrote:
 Hello,

 In my application all work fine with relative path in mapfile but when I try
 to export the map to geotiff I get the next error:

 [13-Dec-2010 10:37:20] PHP Warning:
 readfile(../../../ms_tmp/18c6hpup5imb6vqlva3f950585.tif) [a
 href='function.readfile'function.readfile/a]: failed to open stream

 If I change the relative path by the fullpath I can export to geotiff
 correctly.

 Is possible to solve this problem and put the relative path to the
 IMAGEAPTH? How?







--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] option-tags for searchitems

2010-11-25 Thread Armin Burger
On 25/11/2010 15:35, BSAP (Andres Thomas) wrote:
 Dear List,

 where can I find the code segment, which fills the dropdown list for the
 search of type 'option'.


http://svn.pmapper.net/trac/wiki/DocManual#javascript

--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] IE8 tool tip issue

2010-11-25 Thread Armin Burger
On 24/11/2010 16:12, Chris Jackson wrote:
 All

 Apologies if this has already been raised, but the tool-tip dialog/results
 aren't behaving in IE8  - just a collapsed little grey box (in 4.1.1 and dev
 version), the other i-tools work fine.  All behaves in FF.  Any ideas?
 Thanks
 Chris

For me IE8 displayed everything correctly when using the default option

PM.autoIdentifyFollowMouse = false;



--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] question about gdal

2010-11-23 Thread Armin Burger
I would say gdal is usually necessary to run Mapserver (at least some 
parts will not work otherwise), and hence also p.mapper - being based on 
Mapserver...

On 23/11/2010 19:14, Fco. Javier García Ricca wrote:
 Hello, I suposse that gdal only is required when we make transformations but
 I am not sure. Is it necessary to run pmapper?

 Thanks

--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Issue with zoom2extent function call [Revisit]

2010-11-23 Thread Armin Burger
The @ is probably there because your layer seems to be a tileindex 
shapefile. Checking back in history, seems it has been introduced in 
version 3.1.1, which dates from Sept 2007, so not really a very recent 
modification.

I'm not using tileindex shapefiles at all so I never experienced 
problems. But you also do not mention what exactly is not working and 
what the error logs (PHP and Javascript) say.

So if you want to get it addressed sooner or later, file a ticket on the 
Trac Wiki with detailed descriptions, error logs, etc. I can re-enable 
the self registration function of the Wiki so you can cerate your 
account there.

Armin

On 23/11/2010 23:27, Chris Domangue wrote:
 Armin-

 Back on October 14, someone posted a problem with zoom2extent, but he 
 apparently got it working on his own before you could answer. I just got the 
 same exact behavior when I recently upgraded to 4.1.1... never seen it before 
 in 2 years of using pmapper.

 The function call to zoom2extent from the Result window is putting a number 
 and @ in front of the second parameter.

 For example, looking up layer=pipeline gid=14563, the function call is 
 constructed as zoom2extent('pipelines', '4...@14563',...) rather than the 
 expected zoom2extent('pipelines', '14563',...)

 Curiously, this only happens when the Result window is derived from the 
 Identify or Select menu bar.   The same Result window derived from a Search 
 works just fine.

 Your help would be much appreciated!!

 Chris Domangue






 --
 Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
 Tap into the largest installed PC base  get more eyes on your game by
 optimizing for Intel(R) Graphics Technology. Get started today with the
 Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
 http://p.sf.net/sfu/intelisp-dev2dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] External link for menu

2010-11-22 Thread Armin Burger
I thought I already set the possibility for a new target to the code 
code, which was not the case... So I added it now (and I once will 
change it to some cleaner code...).

In case you're interested, you need the new
http://svn.pmapper.net/trac/export/1126/trunk/pmapper/javascript/pm_cjs.js

(or the src/uielement.js if you use the uncompressed files)

and define the link like here:

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


The approach using JS 'window.open' has the advantage of more 
possibilities to specify the behaviour, and the disadvantage of having 
the browser asking the user if he wants to accept pop-up windows.

armin

On 22/11/2010 15:09, Sypou wrote:

 Dear Thomas,

 Thank you for your answer.
 It gives me what I needed. Very good idea to add this function because I can
 even manage the specs of the window like the width, height... and so on.

 Serge



 Thomas RAFFIN wrote:

 Maybe you could just call a js function that could do it:

 - in js_config.php:
 linkid:'mywebpage', name:'Mywebpage',
 run:'your_js_function',imgsrc:'external-c.png'},

 - in config/xxx/custom.js:
 function your_js_function() {
 window.open('http://www.example.com/');
 }


 Le 22/11/2010 13:00, Sypou a écrit :
 Dear Thomas,

 Thank you for your answer... Yes I see the link and it works fine. But
 what
 I need is to make it as an external link, meaning that it opens a new
 window
 of Internet browser to open my Mypage Website.
 Something like target='_blank' in HTML.

 Sorry, maybe my explanation was not clear enough...

 Thank you again,

 Serge




 Thomas RAFFIN wrote:
 Hi,

 I've just tested the following lines an it works in pmapper 4.1.1:

 /**
 * Tool link elements
 */
 PM.linksDefault = {
containerid:'toolLinkContainer',
links: [
{linkid:'link', name:'Link', run:'PM.UI.showMapLink',
 imgsrc:'link-w.png'},
{linkid:'print', name:'Print', run:'PM.Dlg.openPrint',
 imgsrc:'print-w.png'},
{linkid:'download', name:'Download',
 run:'PM.Dlg.openDownload',
 imgsrc:'download-w.png'},
{linkid:'mywebpage', name:'Mywebpage',
 run:'http://www.example.com/',imgsrc:'external-c.png'},
{linkid:'help', name:'Help', run:'PM.Dlg.openHelp',
 imgsrc:'help-w.png'}
//{linkid:'layers', name:'Layers',
 run:'PM.Plugin.Layerselect.openDlg', imgsrc:'layers-bw.png'}

]
 };

 Do you seen the link? Does it works?

 Thomas

 Le 21/11/2010 10:49, Sypou a écrit :
 Hi all,

 I use p-mapper 4

 I would like to know how to create an external link on the menu top
 left
 like help, download, ...

 What I have done is that I added a new tool link element in
 js_config.php

 /**
 * Tool link elements
 */
 PM.linksDefault = {
containerid:'toolLinkContainer',
links: [

   {linkid:'mywebpage', name:'Mywebpage', 
 run:'http://www.example.com/',
 imgsrc:'external-c.png'},
 ...

 I already tried to add: target:'_blank' but nothing...

 Thank you for your help,

 Serge

 --
 Beautiful is writing same markup. Internet Explorer 9 supports
 standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2   L3.
 Spend less time writing and  rewriting code and more time creating great
 experiences on the web. Be a part of the beta today
 http://p.sf.net/sfu/msIE9-sfdev2dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users



 --
 Beautiful is writing same markup. Internet Explorer 9 supports
 standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
 Spend less time writing and  rewriting code and more time creating great
 experiences on the web. Be a part of the beta today
 http://p.sf.net/sfu/msIE9-sfdev2dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users





--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] errors with extra layouts examples

2010-11-19 Thread Armin Burger
there are various tools to compare 2 text files and see the differences...

otherwise you will find all reasons for these error messages if you 
google for them, they happen to appear more often with Mapserver, some 
are even in the Mapserver error-FAQ's

see http://lmgtfy.com/?q=msProcessProjection()%3A+No+such+filel=1

I committed the outstanding changes now, so now all map files should be 
identical in the SVN.

armin


On 18/11/2010 23:32, Giovanni Manghi wrote:
 Seems something I cannot catch (besides the paths) in the mapfile
 shipped in the plainlayoutX folders. If I use the pmapper_demo.map
 shipped in default it all works fine.

 cheers

 -- Giovanni --


 On Thu, 2010-11-18 at 20:33 +, Giovanni Manghi wrote:
 Hi all,

 I just made a couple of normal pmapper 4 installations, one on Ubuntu
 (using the repos) and the other on windows (using ms4w packages).

 On both installation I'm having problems using the extra layout examples
 that I donwloaded here

 http://svn.pmapper.net/repos/pmapper/trunk/layout-samples/

 or from sourceforge.

 The problem comes when using an alternative config file

 http://127.0.0.1/pmapper/map_plainlayout4.phtml?config=plainlayout4

 on windows:

 Warning: [MapServer Error]: msProcessProjection(): No such file or
 directory in C:\ms4w\apps\pmapper\pmapper-4.0.0\incphp\globals.php on
 line 60

 Warning: Failed to open map file
 C:/ms4w/apps/pmapper/pmapper-4.0.0/config/plainlayout4/pmapper_demo.map
 in C:\ms4w\apps\pmapper\pmapper-4.0.0\incphp\globals.php on line 60

 Fatal error: Call to a member function getAllGroupNames() on a
 non-object in C:\ms4w\apps\pmapper\pmapper-4.0.0\incphp\init\initmap.php
 on line 284

 on linux:

 Warning: [MapServer Error]: msProcessProjection(): no system list,
 errno: 2 in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning:
 [MapServer Error]: msProcessProjection(): no system list, errno: 2
 in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning:
 [MapServer Error]: msProcessProjection(): no system list, errno: 2
 in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning:
 [MapServer Error]: msProcessProjection(): no system list, errno: 2
 in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning:
 [MapServer Error]: msProcessProjection(): no system list, errno: 2
 in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning:
 [MapServer Error]: msProcessProjection(): no system list, errno: 2
 in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning:
 [MapServer Error]: msProcessProjection(): no system list, errno: 2
 in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning:
 [MapServer Error]: msProcessProjection(): no system list, errno: 2
 in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning:
 [MapServer Error]: msProcessProjection(): no system list, errno: 2
 in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning:
 [MapServer Error]: msProcessProjection(): no system list, errno: 2
 in /var/www/pmapper-4.0/incphp/globals.php on line 60 Warning: Failed to
 open map file /var/www/pmapper-4.0/config/plainlayout4/pmapper_demo.map
 in /var/www/pmapper-4.0/incphp/globals.php on line 60 Notice: Trying to
 get property of non-object
 in /var/www/pmapper-4.0/incphp/init/initmap.php on line 278 Fatal error:
 Call to a member function getAllGroupNames() on a non-object
 in /var/www/pmapper-4.0/incphp/init/initmap.php on line 284


 then I have to remove all cookies from the broswer otherwise it will
 throw always the same error even browsing


 http://localhost/pmapper-4.0/map.phtml


 I feel I have already encountered this problem, but now I can't recall
 how I solved it, any help?


 cheers

 -- Giovanni --



 --
 Beautiful is writing same markup. Internet Explorer 9 supports
 standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
 Spend less time writing and  rewriting code and more time creating great
 experiences on the web. Be a part of the beta today
 http://p.sf.net/sfu/msIE9-sfdev2dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Dynamical PostGis Layer.

2010-11-19 Thread Armin Burger
Rafael

dynamic layers are not something simplistic in p.mapper due to the way 
layers and groups are handled in p.mapper. Based on the map file 
definitions, all layers and groups are referenced internally in 
additional objects. This was mainly necessary to handle layer grouping 
which otherwise is not really supported in Mapscript. This complicates 
somewhat the adding of new layers dynamically because you need to 
re-reference all layers and groups after adding a new layer.

In your case I think it's not necessary since the only thing you need to 
modify is the FILTER parameter (or DATA parameter) for your Postgis 
layer based on user input. The rest of the layer definition can always 
remain the same. So you only need to always set the necessary filters 
every time the map is initialized in p.mapper. This is done in 
'globals.php' that is loaded in every file that requires the map file 
definitions.

Thomas added a functionality there that allows to load additional PHP 
files (coming from a plugin) every time the map object is initialized. 
These could be easily used to modify the map object and all of it's sub 
objects (like eg. your Postgis layer). The session variable is called 
plugin_phpMapObjModifierFileList. Thomas can give you better 
information about how he uses this parameter. I would say you need to 
write a small plugin and in the config.inc file define the PHP files 
that will be loaded. I would suggest you also put all your other logic 
(web forms, Javascript, etc) in this plugin.


the code in a PHP file to be loaded there could be like

$pgLayer = $map-getLayerByName(your_layer_name);
$filter = $_SESSION['myCustomFilterParameters'];
$pgLayer-setFilter($filter);

the filter parameters in the PHP session you would need to set based on 
user input in web forms and eg. write them to the PHP session via 
Javascript/AJAX.

Hope this helps

Armin

On 19/11/2010 21:02, Rafael Rend wrote:
   RAFFIN, thanks by your answer. I didn't know about PluginsDynamicData
 on pmapper. But, based on I could see, these are more specific about
 drawing shapes on the map.

   I think that most effective to me is using PHP. But I don't know
 every required skills. You tell me about $_SESSION['groups'], I didn't
 know it.

In my testing, right now, I've added my layer name on
 $_SESSION['groups'], but I got the same trouble: A blank screen,
 without any information.. I expected either error message on error.log
   or a screen error.. but all is blank.

Do you know all required steps to make this works ?. (or do you know
 a specific manual about it ?).

   In my project, basically, my situation is:

   I have a research database , that contains numbers about avaliations
 made in a lot of cities here in Brazil. Every city has a lot of
 numbers associated to indicators from research. Until that, I don't
 use spatial information, just numbers.

   Posteriorly, I made a join with results and cities, my cities
 database have geografical columns with every respective area. I need
 show the city's area with corresponding  color  to result number.

Specially, i need use a dynamical layer because users will need
 filter these results. Filtering by Year (every year has a new
 research), indicator, regions... and more. To use lot of filters, I
 believe I need a dynamical layer.

   Thanks.




   traf...@sirap.fr
 Subject: Re: [pmapper-users] Dynamical PostGis Layer.


 2010/11/19, pmapper-users-requ...@lists.sourceforge.net
 pmapper-users-requ...@lists.sourceforge.net:
 Send pmapper-users mailing list submissions to
  pmapper-users@lists.sourceforge.net

 To subscribe or unsubscribe via the World Wide Web, visit
  https://lists.sourceforge.net/lists/listinfo/pmapper-users
 or, via email, send a message with subject or body 'help' to
  pmapper-users-requ...@lists.sourceforge.net

 You can reach the person managing the list at
  pmapper-users-ow...@lists.sourceforge.net

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of pmapper-users digest...


 Today's Topics:

 1. Re: errors with extra layouts examples (Giovanni Manghi)
 2. Re: Dynamical PostGis Layer. (Thomas RAFFIN)
 3. JOINING SQL Server (Gustavo Insaurralde)
 4. Re: JOINING SQL Server (Armin Burger)
 5. Re: errors with extra layouts examples (Armin Burger)
 6. Re: errors with extra layouts examples (Giovanni Manghi)


 --

 Message: 1
 Date: Thu, 18 Nov 2010 22:32:07 +
 From: Giovanni Manghigiovanni.man...@gmail.com
 Subject: Re: [pmapper-users] errors with extra layouts examples
 To: pmapper-users@lists.sourceforge.net
 Message-ID:1290119527.9723.2.ca...@sibirica
 Content-Type: text/plain; charset=UTF-8

 Seems something I cannot catch (besides the paths) in the mapfile
 shipped in the plainlayoutX folders. If I use the pmapper_demo.map
 shipped in default it all works fine.

 cheers

 -- Giovanni

Re: [pmapper-users] queryeditor plugin - installation instructions to update

2010-11-17 Thread Armin Burger

On 17/11/2010 20:41, jeanfaubert wrote:

 Hi,

 Can you tell me more about the installation of QueryEditor plugin? I use
 pmapper4.

 Thanks you very much.


 Jeanfaubert


http://lmgtfy.com/?q=p.mapper+installation+of+QueryEditor+pluginl=1

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Checkboxes on Layers are not synchronizised with Checkboxes on Categories

2010-10-25 Thread Armin Burger
On 10/25/2010 05:42 PM, Hermann Karl wrote:
 Dear List,

 If the status of the checkboxes of all layers of a categoriy is
 unchecked and the status of the checkbox
 on the categories is checked then the change of the status of the
 checkbox of the categories
 has no influence to the status of the checkboxes on the layers
 Also changing the status of the checkbox of all layers in a category to
 unchecked does not change the
 status of the checkbox on the categories
 Synchronization between checkboxes of category and layers occurs when
 checkboxes on layers are checked

 Karl



we already had this question a while ago...
http://sourceforge.net/mailarchive/forum.php?thread_name=C709F902-33B4-4F1D-BAAC-3F8F870C123C%40coin.hrforum_name=pmapper-users

the categories-layer relation is:

layers are only enabled on the map if they themselves and their 
respective category are checked, and if they are defined visible for the 
current scale. If after a zoom the layer is into a scale where it should 
not be displayed (setting in the map file), it is just greyed out, and 
will get the normal color and become enabled when the scale is in the 
range of scale-denominators for the layer.

If I uncheck the category then the layer checkboxes become grey 
(de-activated, but not unchecked), and the layer is disabled from the 
map. But neither unchecking a category will uncheck all layers below, 
nor will unchecking all layers uncheck the parent category.

This I found the most logical behaviour of all studied possibilities 
(and I do not like other implementations I've seen so far). If it does 
not work like that, then it's a bug, otherwise it's a feature ;-)

If anybody wishes a different behaviour then he/she is free to change 
this  according to his/her preferences.

armin


--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] pmapper-users Digest, Vol 49, Issue 5

2010-10-21 Thread Armin Burger


On 21/10/2010 17:10, Gustavo Insaurralde wrote:
 Hi there,

 pmapper 4.1.0 here


 I´m trying to perform a query to a SQL Server

 But i receive this error on pm_error.log

 [21-Oct-2010 10:45:33] PHP Warning:  Suggest::require_once(MDB2.php) [a
 href='suggest.require-once'suggest.require-once/a]: failed to open
 stream: No such file or directory in
 C:\ms4w\apps\pmapper-4.0.0\incphp\query\suggest.php on line 129 

 I´ve installed PEAR, but there is no MDB2.php file anywhere on my ms4w
 folder...

http://svn.pmapper.net/trac/search?q=MDB2wiki=on



 Also...
 is it possible to make a xml file that retrieves the query data to the
 suggest option?

 Because this is an inline search option, right?


inline means just that the search config is in the same file as the main 
config and not in a separate xml file. Otherwise just see the available 
examples and check the docs for MDB2 how to define the connection string 
to the database.


 CODE:

  searchlist version=1.0
  dataroot$/dataroot
 searchitem name=inmuebles description=Inmuebles
   layer type=xy name=Layer
   field type=s name=inmuebles description=Plaats:   wildcard=0
   definition type=suggest connectiontype=db minlength=2 startleft=0
 sort=asc dependfld=CATEGORY
   dsn encoding=UTF-8odbc://'':''/localh...@databasename/dsn
   sqlSELECT DISTINCT Adrema FROM INMUEBLES WHERE Adrema LIKE
 '[search]%'/sql
   /definition
   /field
   /layer
   /searchitem
  /searchlist

 ---
 Gustavo Insaurralde
 Analista Programador en Sistemas
 Analista en Informática Aplicada
 Maestro Mayor de Obras
 --
 Nokia and ATT present the 2010 Calling All Innovators-North America contest
 Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
 $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
 Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
 http://p.sf.net/sfu/nokia-dev2dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] problem export query to csv

2010-10-21 Thread Armin Burger
On 21/10/2010 19:06, Fco. Javier García Ricca wrote:
 Hello,

 I have pmapper 4.0.0 working in centos 5.5. I have checked all the
 application and everything works fine except the export query to csv. When I
 press the radio button to export to csv don't active the download button. It
 is fine for pdf export.
 I have checked the problem with firebug and the style display none when I
 press the radio button for csv. If I modify none for blank the download
 button is active but don work. Any idea?



very likely a PHP error, you need to check the error log, see the Trac FAQ

armin

--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Browser compatibility p.mapper v.4.1.0

2010-10-18 Thread Armin Burger
On 18/10/2010 09:42, Hermann Karl wrote:
 Dear List,


 With microsoft internet explorer 8.0 the refresh map button is not
 visible.
 With compatibility view int microsoft internet explorer 8.0 the refresh
 map button is visible but the advanced
 print window will not open properly.

 Karl


Hello Karl

thanks for pointing out this. The problem with IE 7 I could solve by a 
patch for the Javascript that switches between standard  advanced settings.

I just do not understand why the hell IE8 displays the separators in 
the toolbar differently than any other browser, making them much bigger 
than they should be... Since I have only IE7 installed I did not notice 
it until today. Having both installed on the same machine is impossible. 
So I might add the following line that forces IE8 to emulate the IE7...

   meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 

I set this on the live demo page of the p.mapper site, so if you could 
give it a try if the rest works still fine with IE8 (being forced to 
emulate the compatibility mode) would be nice.

Armin

--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Pemmaper 4 stable svn errors

2010-10-04 Thread Armin Burger
For the first error:
I guess you just need to insert a tag at the top level of the map file 
that is

SHAPEPATH something

since you're using only Postgis I guess it is not necessary that it is 
an actually existing directory. I probably never used a map file without 
any shapes or images, so always included this tag and never got any 
error... I will once add a check if this tag exists.


For the second:
likely related to this issue:
http://svn.pmapper.net/trac/wiki/UpgradeInfo#MapServer5.6.x

You could try substituting the line 95 in plugins/export/export.shp.php

$srcShp = $srcLayer-getShape(-1, $shpIdx);

with

$srcShp = = PMCommon::resultGetShape($srcLayer, $shpIdx, -1);

if it works please report back and I will add this patch to the SVN.

armin



On 04/10/2010 18:55, Nahum Castro wrote:
 Hello all

 I have found an error on the search tool, when i select an item for search,
 there are no fields to search.

 Also the shp export extension don't work anymore,

 Here are the php error log:
 [04-Oct-2010 10:15:58] PHP Notice:  Uninitialized string offset: 0 in
 /var/www/html/pmapper/incphp/init/initmap.php on line 545
 [04-Oct-2010 10:15:58] PHP Notice:  Uninitialized string offset: 1 in
 /var/www/html/pmapper/incphp/init/initmap.php on line 545
 [04-Oct-2010 10:16:05] PHP Notice:  Uninitialized string offset: 0 in
 /var/www/html/pmapper/incphp/init/initmap.php on line 545
 [04-Oct-2010 10:16:05] PHP Notice:  Uninitialized string offset: 1 in
 /var/www/html/pmapper/incphp/init/initmap.php on line 545
 [04-Oct-2010 10:16:18] type: 2
 [04-Oct-2010 10:16:18] PHP Fatal error:  Object expected as argument. in
 /var/www/html/pmapper/plugins/export/export.shp.php on line 96

 Here are the pm_debug.log
 [04-Oct-2010 10:35:25] P.MAPPER debug info
 XML-//definition
   SimpleXMLElement Object
 (
  [...@attributes] =  Array
  (
  [type] =  suggest
  [connectiontype] =  db
  [sort] =  asc
  [minlength] =  1
  [dependfld] =  cmcncd
  )

  [dsn] =  pgsql://postgres:postg...@localhost/geografia
  [sql] =  SELECT nombre FROM municipios WHERE nombre ~* '^[search]' ORDER
 BY nombre
 )

 [04-Oct-2010 10:35:28] P.MAPPER debug info
 XML-//definition
   SimpleXMLElement Object
 (
  [...@attributes] =  Array
  (
  [type] =  suggest
  [connectiontype] =  db
  [sort] =  asc
  [minlength] =  1
  [dependfld] =  cmcncd
  )

  [dsn] =  pgsql://postgres:postg...@localhost/geografia
  [sql] =  SELECT DISTINCT nombre FROM localidades WHERE nombre ~*
 '^[search]' ORDER BY nombre
 )

 There are no errors on firebug.

 My versions:

 pmapper 4 stable from svn downloaded octuber 1, 2010
 php 5.2.14
 postgresql 9.0.0
 postgis 1.5.2
 MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
 OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
 SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
 SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS
 SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=MYGIS
 INPUT=SHAPEFILE
 OS: CentOS Linux 5.5 x86_64

 All vector layers came from Postgis

 Thanks.



--
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Problem with Select Tool and MAXSCALE

2010-09-26 Thread Armin Burger
I modified now query.php on the SVN so that the seextent and setmapsize 
is not only applied for point queries (as it was until now) but also for 
rectangle queries (select).
see http://svn.pmapper.net/trac/changeset/1042

So far I never noticed any problems with the rectangle queries and could 
also not re-produce this problem mentioned. But it should not harm 
running these settings for both type of geo queries anyway...

armin

On 24/09/2010 14:44, Thomas RAFFIN wrote:
I've forgottent : when I call map-setExtent, I also set map width and
 height (just before extent) : map-set('width', xxx) and
 map-set('height', xxx)

 Le 24/09/2010 12:44, s_lar...@libero.it a écrit :
 With version dev it works!
 For my needs, I customize the file globals.php in order to draw the various
 layers.
 Moreover, I also configure the extents of the map with setExtent (.)
 I noticed that with this change (setExtent ()) select tool does not work, the
 same applies to the version pmapper-dev.

 Try setting the following string in globals.php immediately after the
 definition of $ map:

 $map = ms_newMapObj($PM_MAP_FILE);
 $map-   setExtent (1988372,140,6411627,540);

 and then comment statement EXTENT  in map file.



--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] sub-categories in TOC (p.mapper 4.0)

2010-09-15 Thread Armin Burger
since this feature is asked every now and again (and no one seems to 
read older postings), I started a special customization section in the 
wiki to be able to point people to, see

http://svn.pmapper.net/trac/wiki/FaqCustomizations?version=28#Somefrequentlyaskedcustomizations

this could also be extended by other users...

armin

On 15/09/2010 13:54, Tommaso Vinciguerra wrote:
 Hi,
 did anybody try to modify the js code that handles the TOC in pmapper 4.0 ?
 Now we have a 2 levels tree : each category (node) in the TOC contains
 a flat list of groups (layers).
 I would like to have one or more sub-categories under categories, in
 order to have up to 3 levels : categories (root nodes), sub-categories
 (level 2 nodes) and groups (level 3)
 Any hint on how to code this ?
 tom

 --
 Start uncovering the many advantages of virtual appliances
 and start using them to simplify application deployment and
 accelerate your shift to cloud computing.
 http://p.sf.net/sfu/novell-sfdev2dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Always on layers and legends

2010-09-03 Thread Armin Burger
On 02/09/2010 22:39, Chris Jackson wrote:
 Armin

 It is only a 50mb GeoTIFF of bathmetry for the UK continental shelf with 12
 classes.  It takes about 8 seconds to draw, I wasn't sure about using a
 tileindex (my old app didn't), but will start using one.  I also have a
 slight mix in projections WGS 84 UTM zone 31N and UTM zone 30N, which I
 think may slow things down too.

 Chris

 On 2 September 2010 20:13, Armin Burgerarmin.bur...@gmx.net  wrote:


Just re-project all images to the projection used for your MAP, using 
eg. gdalwarp:
# gdalwarp -s_srs EPSG:32631 -t_srs EPSG:32630 -co TILED=YES 
in_img.tix out_img.tif

re-projects from UTM zone 31 to zone 30 and creates a GeoTiff with 
internal tiles.

Then create overviews with gdaladdo, like
# gdaladdo -ro your_img_file.tif 4 8 16 32

The 4GB image I mentioned took 1-2 s to be rendered into the map image, 
depending on scale.

armin

--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] (no subject)

2010-08-26 Thread Armin Burger
There is nothing foreseen to have this done via a config option. The
only way is to direc tly modify the source code for the plugin, which
should not be too difficult though.

armin

On Thu, Aug 26, 2010 at 2:21 PM, Kalafateli Efstratia
e.kalafat...@aratos.gr wrote:

   Hi,
   I would like to ask a question about the pdf export plugin. It works great
   but I would like to add a logo at the pdf which is created. Is there any
   way?
   Thanks in advance!
   Best Regards,
   Stratoula
 --
 Καλαφατέλη Î•Ï…ÏƒÏ„Ï Î±Ï„Î¯Î±
 Î†Ï Î±Ï„Î¿Ï‚ Τεχνολογίες Α.Ε.
 Τμήμα Ανάπτυξης
 Patras Port Business Center
 Ευμήλου 30, 262 22, Î Î¬Ï„Ï Î±
 Tηλ: +30 2610 242670
 Fax: +30 2610 242671
 e-mail: [1]e.kalafat...@aratos.gr
 Web: [2]www.aratos.gr

 References

   1. mailto:e.kalafat...@aratos.gr
   2. http://www.aratos.gr/
 --
 Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
 Be part of this innovative community and reach millions of netbook users
 worldwide. Take advantage of special opportunities to increase revenue and
 speed time-to-market. Join now, and jumpstart your future.
 http://p.sf.net/sfu/intel-atom-d2d
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Feature select performance

2010-08-26 Thread Armin Burger
On Wed, Aug 25, 2010 at 3:44 PM, Chris Jackson webturt...@gmail.com wrote:
 So back to the query.php code,
 do you retrieve a count of matched features from the shapefile before
 looping through them or is it even possible?


You can check the returned JSON string using eg. Firebug and the
response for x_info.php. Or check the value in the session variable,
The parameter is called numresults, but if the display limit is
reached it returns this value instead of the real number of results.

For shapefiles you could change this in squery.php, commenting out line 89.

armin

--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Feature select performance

2010-08-25 Thread Armin Burger
If you want to try the highlight method with the 2 files I put in the
zip file, you need to limit the number of features to be returned for
the result table. Just try setting it to 100. The highlight using the
querymap will nevertheless highlight *all* found features. So I guess
it should make a difference.

I would also guess that the pure transfer of 5000 features as JSON
string (I guess more than 1 MB) and converting them via JavaScript to
HTML is at least as much slowing down the display as the adding of the
features to the map. Just try the difference between browsers like IE
(very slow) and Chrome (very fast).  Also I'm wondering how it makes
sense to display more than a few 100 in the result table.

You could also disable the display of the result table and just see
what's the difference between the 2 highlight methods. You need to
disable some parts in the JavaScript files pm.query.js (and define the
/javascript/src/ folder in the config XML as the JS location to be
used.

try adding something like

$.extend(PM.Query,
{
parseResult: function(jsonRes, tplName, container) {}
});

in the custom.js file of your config dir (probably
config/default). After query you need to slightly pan the map to
reload the map with the highlight. If this is acceptable fast then the
bottleneck is  really the JSON parsing and HTML table creation. If so,
you could tweak the JS functions for only displaying a few 100's at a
time and having buttons for swapping to the next set.

Also for your shapefile, I guess you created a spatial index using the
shptree tool ...

Just some ideas

Armin

PS: a query via a unregular polygon is currently not implemented but
could be done using some of the drawing methods of the measure
function (or the draw plugin from Thomas Raffin) together with a
modified query. But  the code was not designed for modular use and you
would need to make some code duplications...


On Wed, Aug 25, 2010 at 11:12 AM, Chris Jackson webturt...@gmail.com wrote:
 Armin

 Tried your code and timed the two selection techniques with a 5000 feature
 limit querying a shapefile - both about 8.5 mins!!! - so no real performance
 gain using the old code.  Takes ~45sec with a 1000 feature limit and about
 13 secs with a 500 feature limit (working from a low performance test
 server).  I do wonder what the difference between by querying shapefile vs
 PostGIS would be with a 5000 feature limit, but unlikely to be able to do
 that at this end :o(.

 Also does the query code count the matching features before looping through
 them or just loop and cut off when the feature limit is reached? - it would
 be useful to see the number of features selected (and total possible
 matching features) at the top of the results table (ie. 500 of a possible
 4050 features selected) - this would then inform users that they have
 'missed' results due to the imposed feature limit (more important when using
 the search or query editor plugins).

 Other thoughts - have you tried to tie in users drawing a polygon and it as
 the query extents or use of a circular buffer select with the user defining
 the distance?

 I am still continually impressed with what has been done with P.Mapper - so
 thanks!

 Chris

 On 24 August 2010 21:43, Armin Burger armin.bur...@gmail.com wrote:

 Chris

 something that came into my mind was the use of queryMap. I had not used
 it since eternities because it became obsolete to me using the p.mapper
 highlighting method. I made a quick test and it would need just a few
 lines in query.php and map.php to change/add.

 Note that this will only work for selects, not identifies or searches
 (this would require some more changes). And I have currently no plans
 for changing to this solution, it might be faster in case of lots
 returned values, but has less flexibility. And it would not work with
 the current way of searching in Postgis layers.

 If you're interested, I put the files at
   http://www.pmapper.net/dl/querymap.zip

 You need to define a querymap entry in the map file like

 QUERYMAP
   COLOR 255 255 0
   STATUS on
   STYLE hilite
 END

 also set highlightSelected in the XML config file to 0.

 I have not modified anything to remove the highlight but I can tell you
 what to modify in case you would like to use this solution.

 armin

 On 24/08/2010 16:58, Chris Jackson wrote:
  Hi all
 
  One of the underlying datasets in my P.Mapper app is a model grid (many
  thousand cells) in a shapefile.  The data displays nice and quick when
  just
  viewing, but if I allow the user to select say 5000 cells (using the
  select
  by rectangle tool or even the seach tool) it is very (extremely) slow to
  redraw with the highlighted cells.  Doing the same task in a very old
  ArcGIS
  server web app was much quicker (admittedly the data was in SDE/MS SQL).
   So
  my question is what is the best way to improve performance?  Does using
  a
  shapefile just not cut it when selecting so much data?  Has anyone got

Re: [pmapper-users] Feature select performance

2010-08-25 Thread Armin Burger
just an update: I made a quick test, using the normal highlight. This
is not really slowing down things. If I disable the result table
creation the map is rendered quite fast with the default highlight,
even when 6 or 7000 features are returned. The JSON string returned
however is close to 2 MB! So you need to work on the result display,
maybe create a plugin for displaying the result in the table in chunks
of a few 100.

armin

On Wed, Aug 25, 2010 at 2:31 PM, Armin Burger armin.bur...@gmail.com wrote:
 If you want to try the highlight method with the 2 files I put in the
 zip file, you need to limit the number of features to be returned for
 the result table. Just try setting it to 100. The highlight using the
 querymap will nevertheless highlight *all* found features. So I guess
 it should make a difference.

 I would also guess that the pure transfer of 5000 features as JSON
 string (I guess more than 1 MB) and converting them via JavaScript to
 HTML is at least as much slowing down the display as the adding of the
 features to the map. Just try the difference between browsers like IE
 (very slow) and Chrome (very fast).  Also I'm wondering how it makes
 sense to display more than a few 100 in the result table.

 You could also disable the display of the result table and just see
 what's the difference between the 2 highlight methods. You need to
 disable some parts in the JavaScript files pm.query.js (and define the
 /javascript/src/ folder in the config XML as the JS location to be
 used.

 try adding something like

 $.extend(PM.Query,
 {
    parseResult: function(jsonRes, tplName, container) {}
 });

 in the custom.js file of your config dir (probably
 config/default). After query you need to slightly pan the map to
 reload the map with the highlight. If this is acceptable fast then the
 bottleneck is  really the JSON parsing and HTML table creation. If so,
 you could tweak the JS functions for only displaying a few 100's at a
 time and having buttons for swapping to the next set.

 Also for your shapefile, I guess you created a spatial index using the
 shptree tool ...

 Just some ideas

 Armin

 PS: a query via a unregular polygon is currently not implemented but
 could be done using some of the drawing methods of the measure
 function (or the draw plugin from Thomas Raffin) together with a
 modified query. But  the code was not designed for modular use and you
 would need to make some code duplications...


 On Wed, Aug 25, 2010 at 11:12 AM, Chris Jackson webturt...@gmail.com wrote:
 Armin

 Tried your code and timed the two selection techniques with a 5000 feature
 limit querying a shapefile - both about 8.5 mins!!! - so no real performance
 gain using the old code.  Takes ~45sec with a 1000 feature limit and about
 13 secs with a 500 feature limit (working from a low performance test
 server).  I do wonder what the difference between by querying shapefile vs
 PostGIS would be with a 5000 feature limit, but unlikely to be able to do
 that at this end :o(.

 Also does the query code count the matching features before looping through
 them or just loop and cut off when the feature limit is reached? - it would
 be useful to see the number of features selected (and total possible
 matching features) at the top of the results table (ie. 500 of a possible
 4050 features selected) - this would then inform users that they have
 'missed' results due to the imposed feature limit (more important when using
 the search or query editor plugins).

 Other thoughts - have you tried to tie in users drawing a polygon and it as
 the query extents or use of a circular buffer select with the user defining
 the distance?

 I am still continually impressed with what has been done with P.Mapper - so
 thanks!

 Chris

 On 24 August 2010 21:43, Armin Burger armin.bur...@gmail.com wrote:

 Chris

 something that came into my mind was the use of queryMap. I had not used
 it since eternities because it became obsolete to me using the p.mapper
 highlighting method. I made a quick test and it would need just a few
 lines in query.php and map.php to change/add.

 Note that this will only work for selects, not identifies or searches
 (this would require some more changes). And I have currently no plans
 for changing to this solution, it might be faster in case of lots
 returned values, but has less flexibility. And it would not work with
 the current way of searching in Postgis layers.

 If you're interested, I put the files at
   http://www.pmapper.net/dl/querymap.zip

 You need to define a querymap entry in the map file like

 QUERYMAP
   COLOR 255 255 0
   STATUS on
   STYLE hilite
 END

 also set highlightSelected in the XML config file to 0.

 I have not modified anything to remove the highlight but I can tell you
 what to modify in case you would like to use this solution.

 armin

 On 24/08/2010 16:58, Chris Jackson wrote:
  Hi all
 
  One of the underlying datasets in my P.Mapper app is a model grid (many
  thousand

Re: [pmapper-users] Category checkbox behaviour

2010-08-25 Thread Armin Burger
On 25/08/2010 09:53, Dejan Gambin wrote:
 Hi,

 I would just like to know if this is an expected behaviour:

yes, if you want another logic you need to modify the pm.toc.js


 I have a category with two groups. Each group consist of several mapfile 
 layers having the same GROUP. I set catwithcheckbox to 1. Neither of those 
 two groups are default groups.

 Initial display of the map (tried with Firefox and Safari) has this category 
 checkbox (all category checkboxes) turned on, but group checkboxes are of 
 course turned off. If I turn off category checkbox and turn it on again, the 
 group checkboxes are still turned off and (of course) nothing displayed on a 
 map. Shouldn't turning on of a category checkbox turn on all the groups 
 belonging to this category?

 If I turn on one or both the groups under this category the bahaviour is OK - 
 turning off category checkbox hides the group is not shown on the map anymore 
 (although the checkbox is turned on but dimmed); turning it on, the map 
 displays this group.

 Any information appreciated

 Thanks very much

 regards, dejan


--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Attribute search example with MySQL table

2010-08-25 Thread Armin Burger
I updated the docs for this issue, see limitations part at

http://svn.pmapper.net/trac/wiki/DocManual?version=77#JoiningDatabasetablestolayers

armin

On 24/08/2010 13:07, Dejan Gambin wrote:
 Hi,

 I have successfully made a join from shape file to MySQL database using 
 RESULT_JOIN syntax like this:

 RESULT_JOIN 
 mysql://user:pas...@localhost/database_name||table_n...@table_join_field@1...@name,owner||SHAPE_JOIN_FIELD||1

 I have also slightly modified sqery.php so that one-to-many join (dirty) 
 works in a way I can get several rows in result table (in case somebody needs 
 it :-)

 Next thing I need to do is enabling attribute search via search.xml. I can 
 see many examples in dev search.xml but I am not sure how to do it with 
 MySQL. I simply neeed to search by field owner, stored in MySQL table 
 table_name.

 How should I define search item? Should I set layer type to shape, 
 connectiontype to db and then definedsn  andsql, like for postgis 
 layers? Is there maybe some MySQL example available?

 thanks very much

 regards, dejan
 --
 Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
 Be part of this innovative community and reach millions of netbook users
 worldwide. Take advantage of special opportunities to increase revenue and
 speed time-to-market. Join now, and jumpstart your future.
 http://p.sf.net/sfu/intel-atom-d2d
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Feature select performance

2010-08-24 Thread Armin Burger
Chris

the way the highlight works, is taking all shape features' ID's and 
adding one by one to a temporary dynamic layer, using a Mapscript 
function addFeature(). This is for sure not an efficient way but has no 
problems for normal selections up to a few 100's. Having a result 
table displayed for 5000 records will also not be very fast, though.

There's a new approach used for Postgis layers since the old method (the 
one used for shapefiles) did not work any more with Mapserver 5.6. This 
should in theory be somewhat faster because the highlight is done by a 
clone of the queried layer using the SQL IS IN (...) clause. This will 
also very likely not be blazingly fast for huge amount of data but 
should work better than the old method. You need to set an index for the 
field used for the UNIQUE in the CONNECTION tag. You need an SVN 
checkout newer than a few weeks to have this included.

One could very likely speed it up using the same query applied to the 
Postgis layer that is sent to the DB by Mapserver as an effect of the 
queryByRectangle(), but I don't have a clue how one can get this query 
string.

Let me know if it helps, at least a bit...

Armin


On 24/08/2010 16:58, Chris Jackson wrote:
 Hi all

 One of the underlying datasets in my P.Mapper app is a model grid (many
 thousand cells) in a shapefile.  The data displays nice and quick when just
 viewing, but if I allow the user to select say 5000 cells (using the select
 by rectangle tool or even the seach tool) it is very (extremely) slow to
 redraw with the highlighted cells.  Doing the same task in a very old ArcGIS
 server web app was much quicker (admittedly the data was in SDE/MS SQL).  So
 my question is what is the best way to improve performance?  Does using a
 shapefile just not cut it when selecting so much data?  Has anyone got
 P.Mapper to work with a mapfile containing a layer where the data is within
 a MS SQL 2005 db with the MSSQLSPATIAL add-on (using OGR)?   Or are there
 other better approaches to use or settings (inc. PHP) to tweak?

 Many thanks
 Chris
 --
 Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
 Be part of this innovative community and reach millions of netbook users
 worldwide. Take advantage of special opportunities to increase revenue and
 speed time-to-market. Join now, and jumpstart your future.
 http://p.sf.net/sfu/intel-atom-d2d
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users



--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Feature select performance

2010-08-24 Thread Armin Burger
Chris

something that came into my mind was the use of queryMap. I had not used 
it since eternities because it became obsolete to me using the p.mapper 
highlighting method. I made a quick test and it would need just a few 
lines in query.php and map.php to change/add.

Note that this will only work for selects, not identifies or searches 
(this would require some more changes). And I have currently no plans 
for changing to this solution, it might be faster in case of lots 
returned values, but has less flexibility. And it would not work with 
the current way of searching in Postgis layers.

If you're interested, I put the files at
   http://www.pmapper.net/dl/querymap.zip

You need to define a querymap entry in the map file like

QUERYMAP
   COLOR 255 255 0
   STATUS on
   STYLE hilite
END

also set highlightSelected in the XML config file to 0.

I have not modified anything to remove the highlight but I can tell you 
what to modify in case you would like to use this solution.

armin

On 24/08/2010 16:58, Chris Jackson wrote:
 Hi all

 One of the underlying datasets in my P.Mapper app is a model grid (many
 thousand cells) in a shapefile.  The data displays nice and quick when just
 viewing, but if I allow the user to select say 5000 cells (using the select
 by rectangle tool or even the seach tool) it is very (extremely) slow to
 redraw with the highlighted cells.  Doing the same task in a very old ArcGIS
 server web app was much quicker (admittedly the data was in SDE/MS SQL).  So
 my question is what is the best way to improve performance?  Does using a
 shapefile just not cut it when selecting so much data?  Has anyone got
 P.Mapper to work with a mapfile containing a layer where the data is within
 a MS SQL 2005 db with the MSSQLSPATIAL add-on (using OGR)?   Or are there
 other better approaches to use or settings (inc. PHP) to tweak?

 Many thanks
 Chris
 --
 Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
 Be part of this innovative community and reach millions of netbook users
 worldwide. Take advantage of special opportunities to increase revenue and
 speed time-to-market. Join now, and jumpstart your future.
 http://p.sf.net/sfu/intel-atom-d2d
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users



--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Attribute Search does not utilize MS_ENCRYPTION_KEY

2010-08-18 Thread Armin Burger
On 17/08/2010 10:16, Hermann Karl wrote:
 Dear List,

 If the password in the connection string to postgres is encrypted
 and CONFIG MS_ENCRYPTION_KEY is set in the mapfile the layers are
 displayed but attributesearch does not work.

 Karl


it does not work since this is a pure MS specific setting and the search 
on Postgis layers uses generic PHP functions.

To avoid having the XML with the password in it visible to the world, 
follow the FAQ about security settings.

armin

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] p.mapper sample layouts

2010-08-11 Thread Armin Burger
just download the current files via svn from listed URL. The zip at SF
might be outdated.
armin

On Wed, Aug 11, 2010 at 4:16 PM, Chris Jackson webturt...@gmail.com wrote:
 Hi

 I have downloaded the sample layouts zipfile for p.mapper 4, however they
 don't seem to come out quite like the online versions (
 http://www.pmapper.net/demo.shtml) - mainly styling and positioning
 differences.  Are there newer dev samples available somewhere?

 Thanks
 Chris
 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] fixing pmToolLinks for Chrome

2010-08-09 Thread Armin Burger
It's only necessary to change a CSS style, see

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

Armin


On 09/08/2010 15:23, Giovanni Manghi wrote:
 Hi all,

 I'm trying fix the following function in PM 4

 
 /** Tool links   */
  pmToolLinks: function(tl) {
  var container = $(this);
  var ul = $('ul/').addClass('pm-tool-links');
  $.each(tl.links, function() {
  var linkName = _p(this.name); //;
  var a = 'a href=' + (this.run.substr(0,4) == 'http' ?
 this.run : 'javascript:' + this.run + '()') + '';
  a += 'img style=background:transparent
 url(images/menus/' + this.imgsrc + ')' + '
 no-repeat;height:16px;width:16px src=images/transparent.png alt=' +
 linkName +' /';
  a += 'span' + linkName +'/span/a';
  $('li/').html(a).appendTo(ul);
  });
 

 in order to fix a glitch of the tool links toolbar under Chrome (the
 last element does not appear on the same line as the others), but I'm
 not getting the problem.

 Any hint?


 cheers

 -- Giovanni --



 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users



--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] pmapper4.0 errors in advanced print options A4L A3P A3L

2010-08-05 Thread Armin Burger
the main problem, however, is that whatever you define, the advanced 
options are not implemented in the print libraries, and hence have no 
effect... so for the time being, forget about them. I should have 
removed the commented parts to avoid confusion.

armin

On 05/08/2010 19:01, Hermann Karl wrote:
 Dear List,

 in pmapper-4.0 in the config/common/print.xml thediv
 class=printdlg_advanced  is commented
 if the comments are stripped off and checked Create PDF Document
 clicking on the button Advanced
 results in the error message printDlgShowAdvanced is not defined

 if the onclick=printDlgShowAdvanced() in print.xml is changed to
 onclick=PM.Dlg.printShowAdvanced()
 and the onclick=printDlgHideAdvanced() is changed to
 onclick=PM.Dlg.printHideAdvanced()
 the advanced dialog with Create PDF Document and Paper size set to A3
 causes following error message

 Fatal error: Call to a member function attributes() on a non-object in
 /usr/share/pmapper-4.0/incphp/print/printxml.php on line 239

 The direct cause for this error message is that in thesettings  pdf
 section of the print.xml map attribute type is not defined in the
 formats other then a4 portrait.
 so $xmlSettings =
 $this-xml-xpath(/print/settings/pdf/form...@papersize=\$papersize\
 and @orientation=\$orientation\]/m...@type=\$maptype\]);
 xpath does not work as intended

 Karl


 --
 The Palm PDK Hot Apps Program offers developers who use the
 Plug-In Development Kit to bring their C/C++ apps to Palm for a share
 of $1 Million in cash or HP Products. Visit us here for more details:
 http://p.sf.net/sfu/dev2dev-palm
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] incorrect zoom2extent from search

2010-07-22 Thread Armin Burger
go to the online manual
http://svn.pmapper.net/trac/wiki/XmlFileSettings
and search for zoom extent for point layers

On Thu, Jul 22, 2010 at 12:46 AM, Matt Doggett dogg...@nacse.org wrote:
 Hi-



 Using pmapper 4.0, php 5.2.4, mapscript 5.2 on a Linux server.   I have an
 map application where all the data are in geographic latlong projection.
 Units in decimal degrees.  The app works fine, except.



 When I perform a search using the search tool, the search window opens with
 the results, but the ZoomTo link contains extent coordinates that are way
 out of whack.  For example, my search returns a point (city) located at
 X:-120.10, Y:46.30 but the ZoomTo link contains the following



 javascript:PM.Map.zoom2extent('cities','754','-10119.70135498+-9954.16021347
 05+9880.2986450195+10045.83978653','1')



 I get the same results when I use the Select tool to select/identify the
 cities on the map directly using the mouse.



 Note that the minx,miny,maxx,maxy extents are WAY wrong for a lat/long map.
 Needless to say, the resultant map displayed is completely blank.

 What's going on and how can I fix this obvious projection mismatch?



 Thanks.



 Matt



 PRISM Climate Group

 Northwest Alliance for Computational Science  Engineering

 2000 Kelley Engineering Center
 Oregon State University
 Corvallis, Oregon, 97331-5501

 541-737-2531

 FAX 541-737-6609



 --
 This SF.net email is sponsored by Sprint
 What will you do first with EVO, the first 4G phone?
 Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] ReRe: Problem with search.xml

2010-07-13 Thread Armin Burger
you at least have a clear error reported:

[13-Jul-2010 12:07:25] = P.MAPPER: DB ERROR =
Standard Message:   MDB2 Error: not found
DBMS/Debug Message: unable to find package 'MDB2_Driver_pgsql' file
'MDB2\Driver\pgsql.php'

which means that you need to install also the pgsql driver for MDB2, see
http://svn.pmapper.net/trac/wiki/UpgradeOlderVersions

The other errors are mainly warning about deprecated methods used in some
packages, change the php.ini settings according to the description in
http://svn.pmapper.net/trac/wiki/DocQuickinstall#PHPSettings

armin



On Tue, Jul 13, 2010 at 1:48 PM, Alberto Poggi albpo...@gmail.com wrote:

 I checked the error.log file.
 I have installed the PEAR package, MDB2. OLE 0.5 and 0.9.2
 Spreadsheet_Excel_Writer in ms4w/Apache/php folder and everything seems
 correct.
 I gave the command pear list in a DOS window and packages are properly
 installed in the PEAR folder.

 When I try to export an excel file from my excel data button does not
 appear
 in the toolbar and the log file in folder plugins reads:

 [13-Jul-2010 11:31:29] PHP Deprecated:  Assigning the return value of new
 by reference is deprecated in
 C:\ms4w\Apache\php\pear\Spreadsheet\Excel\Writer\Workbook.php on line 180
 [13-Jul-2010 11:31:29] PHP Deprecated:  Assigning the return value of new
 by
 reference is deprecated in
 C:\ms4w\Apache\php\pear\Spreadsheet\Excel\Writer\Workbook.php on line 189.

 In folder incphp/xajax the error.log reads:

 [13-Jul-2010 12:07:25] PHP Deprecated:  Assigning the return value of new
 by reference is deprecated in C:\ms4w\Apache\php\pear\MDB2.php on line 390
 [13-Jul-2010 12:07:25] PHP Deprecated:  Assigning the return value of new
 by
 reference is deprecated in C:\ms4w\Apache\php\pear\MDB2.php on line 1885
 [13-Jul-2010 12:07:25] PHP Deprecated:  Assigning the return value of new
 by
 reference is deprecated in C:\ms4w\Apache\php\pear\MDB2.php on line 2572
 [13-Jul-2010 12:07:25] PHP Deprecated:  Assigning the return value of new
 by
 reference is deprecated in C:\ms4w\Apache\php\pear\MDB2.php on line 2595
 [13-Jul-2010 12:07:25] PHP Deprecated:  Assigning the return value of new
 by
 reference is deprecated in C:\ms4w\Apache\php\pear\MDB2.php on line 2940
 [13-Jul-2010 12:07:25] = P.MAPPER: DB ERROR =
 Standard Message:   MDB2 Error: not found
 DBMS/Debug Message: unable to find package 'MDB2_Driver_pgsql' file
 'MDB2\Driver\pgsql.php'

 This is the error in pm_debug.log under the folder incphp/xajax:

 [13-Jul-2010 12:02:23] P.MAPPER debug info
 search.php-getOptionsFromDb()
  SELECT DISTINCT tzona, tzona FROM prg.prg_camp WHERE tzona is NOT NULL
 ORDER BY tzona
 [13-Jul-2010 12:07:25] P.MAPPER debug info
 XML-//definition
  SimpleXMLElement Object
 (
[...@attributes] = Array
(
[type] = options
[connectiontype] = db
[sort] = asc
[firstoption] = *
)

[dsn] = pgsql://username:passw...@localhost/carbonara
[sql] = SELECT DISTINCT tzona, tzona FROM prg.prg_camp WHERE tzona is
 NOT NULL ORDER BY tzona
[dblayer] = SimpleXMLElement Object
(
[...@attributes] = Array
(
[encoding] = UTF-8
[keyfield] = tzona
[showfield] = tzona
)

)

 )

 That'all.

 Thanks

 Alberto

 --
 This SF.net email is sponsored by Sprint
 What will you do first with EVO, the first 4G phone?
 Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Problem with Masking Create PDF Document

2010-07-08 Thread Armin Burger
On 28/06/2010 12:05, Hermann Karl wrote:
 Dear List,

 If there is a category set in config_default.xml to
 category name=Straamp;#223;enbeleuchtung
 then the in the legend of the PDF-document Straamp;#223;enbeleuchtung
 is printed instead of Straßenbeleuchtung

 Karl


you should either

define this as
   category name=Strassenbeleuchtung description=Straßenbeleuchtung
(works only in pm 4)

OR

category name=Strassenbeleuchtung

and add in your locale/language_de.php

$_sl['Strassenbeleuchtung'] = 'Straßenbeleuchtung';


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Problem with search.xml

2010-07-07 Thread Armin Burger
Alberto

you need to check the PHP error log (default for MS4W is AFAIR the apache
error log), without that nobody will be able to provide you any useful help.
MDB2 and DB should be supported by PHP 5.3 since they do not need the dl()
function, but the required PEAR packages must be installed.

armin

On Wed, Jul 7, 2010 at 5:51 PM, Thomas RAFFIN traf...@sirap.fr wrote:

 Hi,

 Maybe this needs more research, but I think that the PHP version
 included in ms4w 3 should not support MDB2 and DB (due to dl PHP
 function).

 Le 07/07/2010 17:24, Alberto Poggi a écrit :
  Hi to all,
 
  I'm trying the latest version of ms4w (3.0 beta 11)  with the website I
 did
  with the stable version of ms4w (2.3.1).
  I configured the PEAR package with MDB2 with the instructions on the
  documentation of p.mapper site but I have problems using the function
  search.xml.
  When I select the toolbar that I activate the window to enter search
  parameters, the window does not appear.
 
  I state that in the version 2.3.1 everything works well
 
  Can someone help me?
 
  Thanks in advance.
 
  Alberto
 
 --
  This SF.net email is sponsored by Sprint
  What will you do first with EVO, the first 4G phone?
  Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
  ___
  pmapper-users mailing list
  pmapper-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/pmapper-users
 
 
 
 
 
 


 --
 This SF.net email is sponsored by Sprint
 What will you do first with EVO, the first 4G phone?
 Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Problem loading Query editor plugin

2010-07-06 Thread Armin Burger
Check for Javascript errors, eg. using Firebug. I would guess you're missing
a comma, or have 1 too much in your js_config after your modifications

armin

On Tue, Jul 6, 2010 at 9:46 PM, Eric Omwanza erykolr...@gmail.com wrote:

 Thanx Armin and others for the good work you are doing.We apreciate and i
 belive pmapper is one of the best thing that happened in our proffessions.
 Apparently im using mapserver 2.3.1,php 5.2.6 and pmapper 4.0.0 on postgis.
 Im trying to run plugin queryeditor, my window just hangs once i finish the
 step of adding the button in js_config,and after adding an image in the
 buttons directory,altering my xml?
 the only thing its showing is the reference map.Im trying to test using the
 demodata.
 checking my error log  dont relly seem to reflect the problem.
 Thank you.



 Department of Geomatic Enginering  Geospatial Info Systems

 --
 This SF.net email is sponsored by Sprint
 What will you do first with EVO, the first 4G phone?
 Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


[pmapper-users] Fwd: CLASSITEM from MySQL Table

2010-06-18 Thread Armin Burger
 but you can try the Mapserver join definitions like described here:
 http://mapserver.org/mapfile/join.html

 This was not existing when working on the first releases of pmapper,
 but I guess now it makes the pmapper-specific join definitions somehow
 obsolete (at least for Postgres and Mysql). and it seems to allow also
 1-to-many joins


just discovered that this also does not do what you need:

It is important to understand that JOINs are ONLY available once a
query has been processed. You cannot use joins to affect the look of a
map

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Linux - p.mapper searchitem

2010-05-31 Thread Armin Burger
On 31/05/2010 22:55, Lalo - Hotmail wrote:
 Hola a todos, por favor me pueden ayudar, estoy trabajando con Linux fedora
 y con p.mapper. He configurado la busqueda de la siguiente manera

 searchitem name=departamento description=Departamentos
 layer type=postgis name=departamento
   field type=s name=iddpto description=Departamento
 wildcard=0
   definition type=options connectiontype=db sort=asc
 firstoption=*
   dsn
 encoding=UTF-8pgsql://postgres:postg...@localhost/foncodes/dsn
   sql  select distinct iddpto, nombdep from peru_dpto order by
 nombdep/sql
   /definition
   /field
 /layer
 /searchitem


 Sin embargo no me funciona.
^^^
Es una descripcion clasica con mucho detalle... ;-)


 Hice la prueba con el mismo archivo en Windows y ahí si funciona.

 Me pueden indicar por favor que estaría faltando instalar o configurar en el
 Linux para que funcione correctamente.

The options for the search on Postgis layers uses generic PHP and PEAR 
DB/MDB2 functionality for querying Postgres databases. I don't know well 
Fedora, but e.g. on Debian you need to install specific Postgres-related 
PHP packages to have PHP-PG functions available. Or you're just missing 
the required PEAR packages (DB or MDB2). It could also be that your 
connection to the database does just not work.

But all of that you can just check when looking at the PHP error logs...

armin


 Agradezco de antemano la informacion.

 Saludos
 Eduardo de la Torre Arroyo
 Celular: 99334-3899
 Nextel: 426*1247



--

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


Re: [pmapper-users] [english 99%] Re: disable wms 'identify'

2010-05-28 Thread Armin Burger
The value void has no effect at all. You could as well write
   TEMPLATE pippo
and it will do the same, that is the tag TEMPLATE has to exist in order 
to make a layer queryable. And it needs a value, otherwise the map file 
parser should give an error.

I would guess that - also for WMS layers - dropping the TEMPLATE tag 
should skip querying them, but I'm not completely sure without checking 
the code...

Since the thread opener did not provide any information about error logs 
(if the query does not work, there is very likely a PHP error logged), 
nor does she mention the version of p.mapper. So there's no way to 
provide any useful help.

armin



On 28/05/2010 14:24, Sebastian Schweizer wrote:
 Hi Valentina,
 I confirm what you say (I had the same problem): the instruction 'void' for
 the template has to be set in order to solve your problem.
 Here is the piece of code I used:


 Layer WMS###

 LAYER
NAME ortofoto_colore_06_f32
TYPE RASTER
STATUS OFF
CONNECTION
 http://wms.pcn.minambiente.it/cgi-bin/mapserv.exe?map=/ms_ogc/service/ortofoto_colore_06_f32.map;
CONNECTIONTYPE WMS
TEMPLATE Void
 #  PROJECTION
 #init=epsg:32632
 #+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs  no_defs
 #  END
METADATA
  DESCRIPTION ORTOFOTO
  wms_srs EPSG:32632
  wms_nameortofoto_colore_06_f32
  wms_style   
  wms_server_version  1.1.1
  wms_format  image/png
  ows_title   ortofoto_colore_06_f32
END
 END

 


 =

 Sebastian Schweizer
 Via D. M. Manni, 84r
 50135 - Firenze
 Italy
 Cell. +393398979963
 Tel. +390556120806
 sebast...@aquaterra.it
 www.aquaterra.it




 --
 From: Niccolo Rigaccinicc...@rigacci.org
 Sent: Friday, May 28, 2010 1:09 PM
 To: Luana Valentiniluanavalent...@hotmail.it
 Cc:pmapper-users@lists.sourceforge.net
 Subject: [english 99%] Re: [pmapper-users] disable wms 'identify'

 On Fri, May 28, 2010 at 10:58:31AM +0200, Luana Valentini wrote:

 In another case, with different WMS layers, it was sufficient
 to put the string TEMPLATE void in the layer, but this time
 it doesn't work.

 If I remember well, putting TEMPLATE void means that the layer
 is queryable, so try to remove it from the WMS.

 --
 Niccolo Rigacci
 Firenze - Italy

 --

 ___
 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] How to use DynLayer?

2010-05-25 Thread Armin Burger
Niccolo

I think there is a bug in the code as left over from some earlier 
version. You could try changing the line in dynlayer.php-createDynLayers()
from
   foreach ($dObj-layerlist as $dl) {
to
   foreach ($dObj as $dl) {

But it might still not work. I got strange and practically not 
debuggable segmentation vialotaions from the PHP CGI, so I stopped there 
quite some time ago.

The JSON encoded approach was an attempt to have a layer representation 
in text form that can be easily added to the map. The new function of 
creating a layer object based on map file syntax strings (available 
since MS 5.4) made this somehow obsolete. So I guess I will not try to 
resurrect it in its current implementation. Maybe once add the same 
functionality using map file syntax (or XML parsed to map file syntax 
via the XSLT available on the development part of Mapserver...).

Armin


On 25/05/2010 18:53, Niccolo Rigacci wrote:
 I'm writing a p.mapper application where I need to dynamically
 add some layers on user input.

 I'm looking at the dynlayersample plugin, but I cannot understand
 how it is supposed to work. I initialize dynlayers with the given
 example text file:

 jsonFile = dynlayer_def.txt;
 $dynLayers = preg_replace(, file_get_contents($jsonFile));
 $dyn = new DynLayer($map, $dynLayers);


 But the DynLayer class seems to expect a different json object,
 because it fails in several places:

 foreach ($this-json as $dObj) {
  require_once($dObj-require);
 ... // $dObj-require is empty

 foreach ($dObj-layerlist as $dl) {
  $this-createDynLayer($dl);
 ... // $dObj-layerlist is not valid for foreach.


 Is dynlayer an usable feature? Some hints?


--

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


Re: [pmapper-users] pro?blem loading all the categories on the Menu list

2010-04-23 Thread Armin Burger


On 23/04/2010 08:48, Eric Omwanza wrote:
 i got an issue loading my dem layer? when i load the tiff,(placing it as the
 first on the mapsript) the menu only shows the raster category,
 but when i put the dem(tiff) as the last layer in the mapscript the menu
 shows all the categories However the dem image on the screen loads
 overlapping all the other point layers

 Question: How do i load DEM layer at the background and the point layers at
 the foreground while the menu categories for all the layers appear?

Whatever this means...:

   log errorcheck the spelling of the layer xx,xx,xxx

???

Check the following link:

http://svn.pmapper.net/trac/wiki/FaqDebugging#a1.WhatshouldIdoifp.mapperisnotworkingcorrectly


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


Re: [pmapper-users] Change Pmapper GUI

2010-04-16 Thread Armin Burger
redefine the function displayCoordinates() from zoombox.js. 
recommended to create a js file and put the modified version there, 
place this js file in the config/yourconfig/ directory.

armin

On 16/04/2010 05:31, Marcos Pierri wrote:
 Hello,
 Anyone knows which javascript I have to modify to change the value of X and
 Y to grads minutes and seconds. The pmapper version is 3.2 and the reference
 system is WGS84 ESPG:4326. I attach an image about it.

 Thanks in advance,

 Marcos
 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Query/Search on Google Chrome

2010-04-14 Thread Armin Burger
I'm wondering if you really use the final version 4... please see the 
changelog called search: bad HTML, so hidden inputs are not included in 
Safari or Chrome at

http://svn.pmapper.net/trac/changeset/858/pmapper/trunk/pmapper/javascript/src/pm.search.js

where Thomas Raffin fixed this bug.

armin

On 14/04/2010 10:54, Siki Zoltan wrote:
 Hello Sebastian,

 It doesn't work in 4.0.0 final version neither.
 There are some error messages in the php.log:

 [14-Apr-2010 10:39:17] PHP Warning:  getLayerByName failed for :
in ...\incphp\query\query.php on line 710
 [14-Apr-2010 10:39:17] PHP Stack trace:
 [14-Apr-2010 10:39:17] PHP   1. {main}()
 ...\incphp\xajax\x_info.php:0
 [14-Apr-2010 10:39:17] PHP   2. Query-q_processQuery()
 ...\incphp\xajax\x_info.php:44
 [14-Apr-2010 10:39:17] PHP   3. Query-q_execAttributeQuery()
 ...\incphp\query\query.php:94
 [14-Apr-2010 10:39:17] PHP   4. ms_map_obj-getlayerbyname()
 ...\incphp\query\query.php:710
 [14-Apr-2010 10:39:17] PHP Fatal error:  Call to a member function
 getXYLayerProperties() on a non-object in
 ...\incphp\query\query.php on line 717
 [14-Apr-2010 10:39:17] PHP Stack trace:
 [14-Apr-2010 10:39:17] PHP   1. {main}()
 ...\incphp\xajax\x_info.php:0
 [14-Apr-2010 10:39:17] PHP   2. Query-q_processQuery()
 ...\incphp\xajax\x_info.php:44
 [14-Apr-2010 10:39:17] PHP   3. Query-q_execAttributeQuery()
 ...\incphp\query\query.php:94

 Best regards,
 Zoltan

 On Tue, 13 Apr 2010, Sebastian Schweizer wrote:

 Has somone an idea on why querys/search on Shapefiles don't work on Google
 Chrome. Pmapper version 3.2.1 and 4.02 beta.

 Thanks

 Sebastian



 =

 Sebastian Schweizer
 Via D. M. Manni, 84r
 50135 - Firenze
 Italy
 Cell. +393398979963
 Tel. +390556120806
 sebast...@aquaterra.it
 www.aquaterra.it



 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Problem in zoom2extent using postgis layers

2010-03-21 Thread Armin Burger
please check your PHP and Javascript error log, report them, and mention 
also which version of Mapserver (and PHP) you're using, and when/where 
the error appears exactly.

armin

On 21/03/2010 15:50, Marcello Benigno wrote:
 Hi Armin, hi all,

 First, congratulations to new pmapper version!  It´s really easier to
 configured. But I don´t know why, when I use PostGIS Layers, the function
 javascript:PM.Map.zoom2extent() doesn´t woks. The same layer in shapefile
 format, works perfectly. I tried in Linux (Ubuntu 9.10) and in Windows (7).

 Resuming, when the user clicked in the information button, the attributes
 window appear, but the zoom button in this window not working, the loading
 message appears for all the time.

 Am I missing any configuration?

 thanks in advance,


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Zoom to point problem

2010-03-17 Thread Armin Burger
http://lmgtfy.com/?q=p.mapper+zoom+to+point+layerl=1


On 17/03/2010 21:08, greg koron wrote:
 I am a gis newbie, building an application using pmapper 4, and mapserver
 2.3.1 and i came across the following problem:
 When i apply a query or select features via the selecting tool (i have the
 auto zoom set to on)  pmapper updates the map zooming to the selected
 feature or features. This works as expected for every geometry type except
 points. In this case pmapper zooms out,  far beyond the maxscale i have set
 in:
 sliderMax26000/sliderMax
 sliderMin100/sliderMin
 and PM.scaleSelectList =
 [100,200,400,800,1000,2000,3500,5000,7000,13500,2,26000];
 the value in selectList after the update is 16.
 Has anyone come across something similar. Any ideas on how to correct this,
 or at least prevent pmapper from zooming out so much?
 Thanks in advance!
 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] [p.mapper 4.0] how to configure infoZone

2010-03-15 Thread Armin Burger
http://svn.pmapper.net/trac/wiki/XmlFileSettings#query

!--
  How to show the query results (identify/search)
  dynwin: open DHTML window
  anything else will be used as id of the DOM elment where to place the 
query result
--
infoWindynwin/infoWin


so just create a div id=pippo in map.phtml and put pippo in the 
XML config, then the result is added to this div.

armin

On 15/03/2010 17:01, Giuseppe Naponiello wrote:
 Hi all,
 I'm using p.mapper 4.0 and I need to display query result in a separate div,
 below the map zone.
 With p.mapper 3.0 I was able to do it but now I don't know how configure it.
 How set the taginfoWin  and what are the files to configure for display
 the div #infoZone?

 Please help me

 thanks


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Exportproblem with Charset ISO-8859-1

2010-03-10 Thread Armin Burger
try to use UTF-8 for all encodings. I make no tests with any other 
encodings except for shapefiles, so ISO-8859-1 might not work correctly 
for this, but I have not tried.

armin

On 10/03/2010 16:13, BSAP (Thomas Andres) wrote:
 Hi,





 In /pmapper/locale/language_de.php I've written the translation for german, 
 with  the special characters.

 They are displayed well in the legend.



 $_sl['Area'] = 'Fläche';



 ...now, when I select polygone features I have an attribute column named 
 'Fläche', with the special  character 'ä'.

 This is working fine,... but, when I export this data to excel nothing is 
 displayed.



 In export.xls.php the foreach ($groups as $grp) {} is false (not executed) at 
 the first time. This means that

 $groups = (array)$this-jsonList[0] is empty.



 Wenn ich define Area with another character, the export is working well.



 $_sl['Area'] = 'Flaeche';



 What  could be the problem?



 Thx, Thomas



 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] fighting with Postgis

2010-03-03 Thread Armin Burger
I made some quick patches for 3.2.x and committed them to the SVN 
latest-stable-v3. With a quick test now all query functions worked for me.

See here which files to replace:
   http://svn.pmapper.net/trac/changeset/998

Just download these files on the link at the bottom Download in other 
formats: Original Format and replace yours (maybe make a copy of the 
old ones before).

Please try it and report back how it works or if any other 
incompatibility was introduced (in this case include error logs and 
descriptions).

Armin


On 03/03/2010 20:11, Moore, James wrote:
 Armin,
 What if you are using the 3.2.1 release and you get this behaviour?

 -Original Message-
 From: Armin Burger [mailto:armin.bur...@gmail.com]
 Sent: Tuesday, March 02, 2010 12:19 AM
 To: Giorgio Plazzotta
 Cc: pmapper-users@lists.sourceforge.net
 Subject: Re: [pmapper-users] fighting with Postgis

 Giorgio

 this has been discussed here 2 weeks ago. It only happens with
 Mapserver 5.6  Postgis since they completely changed the query
 mechanism for Postgis layers, see the patches listed here

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

 you need to replace all these files in your installation with the ones
 mentioned if you use pmapper 4. As soon as some other patches are done
 for some Javascript issues there should also be a bug fix release
 soon.

 armin

 On Tue, Mar 2, 2010 at 2:13 AM, Giorgio Plazzotta
 plazzo...@tiscalinet.it  wrote:
 Hi all
 my data come from an ESRI geodatabase. I import them into POSTGIS using 
 SPIT. Unfortunately most column names are in capitals letters. Postgis 
 doesnt like it but i cannot change them all. I need to create joins with 
 lookup tables. Though the capitals field names are not very good for PostGIS 
 i succeded in activating a JOIN between the postgis table and another 
 postgresql table.

 Now I have another quite odd problem. When i use the Identify tool I dont 
 get the results that i should. when i select some polygons or only one with 
 the identify tool, in the table i get the data of other polygons. Pratically 
 the system extracts always the first records in the table even if i was 
 graphically extracting others.
 this happens also if i renounce to the JOIN and i work just on a normal DATA 
 the_geom FROM  table query

 If i activate the original shapefile  everything works perfectly
 any idea?

 thanx in advance

 Giorgio
 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users




--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


[pmapper-users] Problems and upgrade information MapServer 5.6 and PHP 5.3

2010-03-02 Thread Armin Burger
Hi all

Since every now and then issues are raised about some problems with 
MapServer version 5.6 and p.mapper, I put some upgrade info for both 
MapServer 5.6 and PHP 5.3 on the Wiki. See

http://svn.pmapper.net/trac/wiki/UpgradeInfo#MapServer5.6.x
http://svn.pmapper.net/trac/wiki/UpgradeInfo#PHP5.3.x

Please, for any problems you have with very recent MapServer and PHP 
installations, check first these 2 links before starting to post on this 
list.

Thanks
Armin

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] PNG transparency with raster

2010-03-01 Thread Armin Burger
On 01/03/2010 23:07, Tétranéon wrote:
 Hi everyone,

 First, thanks for this fantastic GIS...

 I use png files with transparency on my map. But the PNG lost their
 transparency when a raster is active.


I do not really understand what you mean with that. You mean you're 
using as OUTPUTFOMAT a transparent PNG? How did they lose their 
transparency? And it is still a PNG file? All of that with you own data 
 mapfile or with the demo data and the default configuration for that?

The default config file uses altImgFormatLayers to define layers that 
swap the outputformat to jpeg if one of those is visible. If that's 
what's causing your problems just remove this setting.

 I only in the change this driver in the pmapper_demo.map file but the
 problem is the same with GD/PNG :

 OUTPUTFORMAT
  NAME png
  DRIVER AGG/PNG
  MIMETYPE png
  IMAGEMODE RGB
  FORMATOPTION  INTERLACE=OFF
  TRANSPARENT OFF
  EXTENSION png
 END

Here you define TRANSPARENT OFF, how could it be transparent then?

armin


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Main frame blank and Tag RESOLUTION

2010-02-25 Thread Armin Burger
I could just guess that your extent settings in the map file are not 
corresponding to the actual coordinate range of your data (and the data 
projection), but I don't know your full set up. It's therefore that I 
asked you to follow the steps in the FAQ's to narrow down the problem.

regarding the resolution setting, just read the manual, eg. this
http://svn.pmapper.net/trac/wiki/DocManual#RESOLUTION

armin


On 25/02/2010 15:55, Eduardo Bieñkowski wrote:
 Armin:
 I've done what you suggested, even so, although there are no errors no
 warnings in pm_debug.log and php.log, map in the main frame is still
 blank, but the map appears in the frame of reference and generate maps
 blank in the / tmp

 eduardo




 2010/2/24 Armin Burger armin.bur...@gmail.com
 mailto:armin.bur...@gmail.com

 you're posting the debug file that does not contain real errors, just
 debugging info's. Check your PHP error log and the Wiki FAQ for
 debugging. One line though shows a problem:

 [qStr] =

 there's no query string sent to the server...

 armin

 On 24/02/2010 17:11, Edukoski wrote:
  
   After some problems, map not listed in the primary framework, is
 shown in
   white.
   When reviewing the pm_debug.log I getting the following error:
  
   [24-Feb-2010 14:03:55] P.MAPPER debug info
   Searcharray in search.php-getSearchParameters()
 Array
   (
[PHPSESSID] =  154ed5ad87b2e30b76a5e37fbb934910
[mode] =  search
   )
  
   [24-Feb-2010 14:03:55] P.MAPPER debug info
   Parameters for searchArray
   file: query.php-q_execAttributeQuery
  
 Array
   (
[PHPSESSID] =  154ed5ad87b2e30b76a5e37fbb934910
[mode] =  search
   )
  
   [24-Feb-2010 14:03:55] P.MAPPER debug info
   Parameters for searchParams
   file: query.php-q_execAttributeQuery
 Array
   (
[layerName] =  departamento
[layerType] =  shape
[firstFld] =  NOMBRE
[qStr] =
   )
  
   [24-Feb-2010 14:04:59] P.MAPPER debug info
 P.MAPPER-ERROR: RESOLUTION tag not set to 96. This value is
 needed for
   proper function of PDF print.
   [24-Feb-2010 14:05:15] P.MAPPER debug info
   Validation of search.xml file succeeded
  
   I send my mapfile:
  
   #
   # Start of map file
   #
   MAP
   EXTENT  1988372 140 6411627 540
  
   UNITS meters
   #EXTENT -15 30 40 70
   #UNITS dd
   SIZE 600 500
   SHAPEPATH /var/www/pmapper-3.2/config/geo/
   SYMBOLSET ../common/symbols/symbols-pmapper.sym
   FONTSET ../common/fonts/msfontset.txt
   RESOLUTION 96
   IMAGETYPE png
  
   INTERLACE OFF
   CONFIG PROJ_LIB /opt/fgs/share/proj/
   PROJECTION
   #ETRS-LAEA
   init=epsg:22521
   END
  
  
  
   #
   # Image formates for GD
   #
   OUTPUTFORMAT
  NAME png
  DRIVER GD/PNG
  MIMETYPE image/png
  IMAGEMODE RGB
  FORMATOPTION  INTERLACE=OFF
  TRANSPARENT OFF
  EXTENSION png
   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;
 http://wms.yourserver.org?owskey=test;
  
   ows_srs EPSG:22521
  END  # Metadata
   END  # Web
  
   #
   # Start of Reference map definition
   #
   REFERENCE
  EXTENT 20 140 800 540
  IMAGE ../../images/reference.png
  SIZE 199 110
  COLOR -1 -1 -1
  OUTLINECOLOR 255 0 0
   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

Re: [pmapper-users] strange behaviour with field name

2010-02-25 Thread Armin Burger
just try the SQL definition of your map file in a normal query client 
like Pgadmin (dropping the parts starting with USING...). It will 
probably not work either... I would strongly recommend to *not* use 
upper case characters in Postgres columns unless you really know how to 
handle them, and how they are handled by Mapserver.

armin

On 25/02/2010 16:05, giorgio61 wrote:

 hello i am experiencing a very strange behaviour in a p.mapper mapfile
 i hope i can explain it properly
 i have a postgis layer defintiion that was not working. I spent many hours
 changing it in order to realize where is the problem also because the simple
 defintion

 DATA the_geom from (select * from srd_comuni) as foo USING UNIQUE gid USING
 srid=3003

 is working perfectly. things didnt go well when i wanted to list the fields
 to select inspite of the * and i also wanted to create a JOIN.
 For example this query doesnt work

 DATA the_geom FROM (SELECT srd_comuni.gid as gid, srd_comuni.the_geom as
 the_geom, srd_comuni.A09010103 FROM srd_comuni) AS foo USING SRID=3003 USING
 UNIQUE gid

 try and try i realized that the problem was in the field named A09010103.
 try and try i realized that if i changed the name of the field the quesry
 worked. it could be named province_code or also a09010103 but not A09010103
 and not even A090 or B090. This is a mystery for me. Any help?





--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Query dialog with pmapper 4.0.0 and Mapserver 5.6.1 problems

2010-02-24 Thread Armin Burger
On 24/02/2010 11:47, Christian Braun wrote:
 Hello list members,

 I recently installed a new infrastructure with pmapper 4.0.0 and Mapserver 
 5.6.1 out of UbuntuGIS repos (Karmic).
 Everthing is working fine except of data queries. The system is not able to 
 reproduce a correct query. It always just comes up with the same polygons 
 highlighted that were not selected and shows their attributes. Apart from 
 that it is just once possible. It kind of 'hangs' afterwards and no further 
 selection is possible. For the 'tool tip' function it is working the same way.
 Data itself comes out of PostGIS and is propperly visualized.

 Any suggestions,
 Christian


Just google for the error you get in the PHP error log and you will very 
likely end up in an email thread on this list a few days ago. You'll get 
also the mail mentioning patches provided on the SVN (which have not 
been confirmed to solve the problem by the last thread opener 
though...). For my testing this problem has been resolved with the 
patched files.

armin


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Bug? in result windows

2010-02-20 Thread Armin Burger
Nahum

I tried to work out fixes  workarounds for this new behaviour of MS 5.6 
with PostGIS layers and query results. Some quick testing worked fine in 
both MS 5.6 and 5.2.

If you want to test it use either a fresh checkout of SVN trunk or 
download just the files committed in changeset 952
http://svn.pmapper.net/trac/changeset/952

Let me know if the problems are then solved

armin


On 19/02/2010 17:07, Nahum Castro wrote:
 2010/2/19 Armin Burgerarmin.bur...@gmx.net

 http://lmgtfy.com/?q=%22map%2Fmap.php+on+line+813%22

 ;-)


 I have already tried that.

 even I modified line 794,  who gives same error. Note these errors on lines
 794 and 813 only ocurr with 5.6.1.

 Seems not related, i have found this behavior only on mapserver/mapscript
 5.6.1

 I tried the following configurations:

 php 5.2.11, mapserver 5.2.1 works
 php 5.2.11, mapserver 5.4.2 works
 php 5.3.1, mapserver 5.2.1 works
 php 5.3.1, mapserver 5.42 works
 php 5.2.11, mapserver 5.6.1 don't work
 php 5.3.1, mapserver 5.6.1 don't work

 Seem to be related to mapserver, mapscript 5.6.1 but i do not how?

 The only thing i have found trought wireshark are the mapserver querys to
 postgresql
 this is the first one:
 select * from (select * from municipios) as foo where false limit 0;
   gid | the_geom | nombre | superficie_km2 | localidades_urbanas |
 localidades_ru
 rales | poblacion_total | densidad_poblacion | poblacion_60_an_mas |
 hablantes_l
 _indigena | hacinamiento | promedio_escolar | marginacion
 -+--+++-+---
 --+-++-+
 --+--+--+-
 (0 filas)

 and this one:
 select
 gid,nombre,superficie_km2,localidades_urbanas,localidades_rurales,poblacion_total,densidad_poblacion,poblacion_60_an_mas,hablantes_l_indigena,hacinamiento,promedio_escolar,marginacion,encode(AsBinary(force_collection(force_2d(the_geom)),'NDR'),'hex')
 as geom,gid from (select * from municipios) as foo where gid = 0;
   gid | nombre | superficie_km2 | localidades_urbanas | localidades_rurales |
 pob
 lacion_total | densidad_poblacion | poblacion_60_an_mas |
 hablantes_l_indigena |
   hacinamiento | promedio_escolar | marginacion | geom | gid
 -+++-+-+
 -++-+--+
 --+--+-+--+-
 (0 filas)

 Result window still draw cells but is empty.
 Thanks





--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] catInfoLink grpInfoLink in v4.x

2010-02-20 Thread Armin Burger
The check for 'PM.Plugin.TocInfolink.options.groupList' was correct. But 
it required a config option in the config xml as mentioned in the 
readme. I made some modifications and now it does not require any 
configuration setting, if not existing it will just use defaults.

If you want to create an account on the Trac Wiki for creating tickets 
in the future or add something to the wiki, just go there and register 
(Register link). I will leave this link just enabled for a few days, 
otherwise according to my experience there will be too many spammers 
registering as well...

armin

On 20/02/2010 15:47, emanuele masiero wrote:
 thank Armin!

 I think I found a small error in the code in the file tocinfolink.js

 Correction:
 delete .groupList  from  typeof(PM.Plugin.TocInfolink.options.groupList)

 Here is the corrected line:
   var groupList = typeof (PM.Plugin.TocInfolink.options) = 'undefined'?
 PM.Plugin.TocInfolink.options.groupList:
 PM.ini.map.allGroups.group;


 can I create a ticket? How do I Register yourself in trac?

 Best regards,
 emanuele masiero


 --

 Message: 1
 Date: Sun, 14 Feb 2010 16:59:45 +0100
 From: Armin Burgerarmin.bur...@gmail.com
 Subject: Re: [pmapper-users] catInfoLink grpInfoLink in v4.x
 To: pmapper-users@lists.sourceforge.net
 Message-ID:4b781df1.7040...@gmail.com
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 if you want an (i) image link, in p.mapper 4 you need to load the plugin
 'tocinfolink', add a line in your config XML file underpmapper  like
pluginstocinfolink/plugins

 and then follow the instructions in the readme file under
plugins/tocinfolink/

 armin

 On 14/02/2010 16:02, emanuele masiero wrote:
 thank Zoltan
 how do I activate the InfoLink (i) in the TOC?
 emanuele



 2010/2/14 Siki Zoltans...@agt.bme.hu

 Dear Emanuele,

 You can find showCategoryInfo and showGroupInfo functions in custom.js.
 Custom.js can be found in the config/default directory.

 Best regards,
 Zoltan


 On Sun, 14 Feb 2010, emanuele masiero wrote:

hi everybody

 in version 4.x,  are there still functions catInfoLink and grpInfoLink?
 how can activate them in config.xml?

 thank
 emanuele masiero





 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Bug? in result windows

2010-02-19 Thread Armin Burger
http://lmgtfy.com/?q=%22map%2Fmap.php+on+line+813%22

;-)


 Original-Nachricht 
 Datum: Fri, 19 Feb 2010 08:34:36 -0600
 Von: Nahum Castro nahumcas...@gmail.com
 An: pmapper-users@lists.sourceforge.net
 Betreff: [pmapper-users] Bug? in result windows

 Here I have found some strange behavior, the result window show the result
 of the query with cell on the table but empty.
 
 I'm using pmapper 4.0.0 final, Mapserver 5.6.1, php 5.3.1 all installed on
 CentOS 5.4 x86_64
 
 MapScript MapServer Version MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG
 OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG
 SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
 SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
 SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7
 INPUT=POSTGIS
 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision:
 9558
 $ $Date: 2009-11-20 10:11:50 -0800 (Fri, 20 Nov 2009) $)
 Here is my layer definition on .map file
 
 LAYER
 NAME municipios
 STATUS ON
 DATA the_geom from (select * from municipios) as foo using unique gid
 using srid=32614
 TYPE POLYGON
 CONNECTIONTYPE POSTGIS
 CONNECTION user=geografia password=info1980 dbname=geografia
 host=127.0.0.1 port=5432
 UNITS METERS
 SIZEUNITS PIXELS
 LABELITEM nombre
 TRANSFORM TRUE
 TRANSPARENCY 25
 TEMPLATE void
 METADATA
   LAYER_ENCODING UTF-8
 END
 #LABELMINSCALE 1
 #LABELMAXSCALE 35
 CLASS
   NAME Municipios
   LABEL
 TYPE TRUETYPE
 FONT monaco
 SIZE 8
 POSITION cc
 FORCE true
 #COLOR 248 240 11
 OUTLINECOLOR 255 255 255
 COLOR 49 56 105
 ANTIALIAS TRUE
   END
   STYLE
 #COLOR 0 0 10
 OUTLINECOLOR 0 0 0
 BACKGROUNDCOLOR 255 255 255
 ANTIALIAS TRUE
   END
 END
   END
 
 Here is the error on the php.log
 [18-Feb-2010 16:08:13] PHP Fatal error:  Object expected as argument. in
 /var/www/html/app41/incphp/
 map/map.php on line 813
 
 These behavior does not ocurr on pmapper 3.X.
 
 I also include a screenshot
 
 Thanks
 
 *Update: This behavior does not ocurr on php 5.2.11 and Mapserver 5.2.1
 *
 
 
 -- 
 Nahum Castro González
 León, Guanajuato, México

-- 
Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -
jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/atbrowser

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Bug? in result windows

2010-02-19 Thread Armin Burger
I finally checked MS 5.6 with Postgis layers and you are right. It will 
not work since there was a change in MS 5.6 for querying RDBMS based 
layers. The problem is that the highlight function requires the indexes 
of the records for retrieving just the features that shall be added to 
the dynamically added highlighting layer. This unfortunately does not 
work any more in 5.6 because the indexes retrieved are not the values 
from the filed defined with USING UNIQUE... but just starting with 0 
and going up to the numbers of results. For shape layers it still is as 
it was before.

I will have to see how this can be fixed, or avoid this method for 
Postgis layers and use another method for it.

So far I would suggest to avoid 5.6 with Postgis layers or if you 
compile MS by yourself, replace the mappostgis.c in 5.6 with the latest 
5.4 version.

armin

On 19/02/2010 17:07, Nahum Castro wrote:
 2010/2/19 Armin Burgerarmin.bur...@gmx.net

 http://lmgtfy.com/?q=%22map%2Fmap.php+on+line+813%22

 ;-)


 I have already tried that.

 even I modified line 794,  who gives same error. Note these errors on lines
 794 and 813 only ocurr with 5.6.1.

 Seems not related, i have found this behavior only on mapserver/mapscript
 5.6.1

 I tried the following configurations:

 php 5.2.11, mapserver 5.2.1 works
 php 5.2.11, mapserver 5.4.2 works
 php 5.3.1, mapserver 5.2.1 works
 php 5.3.1, mapserver 5.42 works
 php 5.2.11, mapserver 5.6.1 don't work
 php 5.3.1, mapserver 5.6.1 don't work

 Seem to be related to mapserver, mapscript 5.6.1 but i do not how?

 The only thing i have found trought wireshark are the mapserver querys to
 postgresql
 this is the first one:
 select * from (select * from municipios) as foo where false limit 0;
   gid | the_geom | nombre | superficie_km2 | localidades_urbanas |
 localidades_ru
 rales | poblacion_total | densidad_poblacion | poblacion_60_an_mas |
 hablantes_l
 _indigena | hacinamiento | promedio_escolar | marginacion
 -+--+++-+---
 --+-++-+
 --+--+--+-
 (0 filas)

 and this one:
 select
 gid,nombre,superficie_km2,localidades_urbanas,localidades_rurales,poblacion_total,densidad_poblacion,poblacion_60_an_mas,hablantes_l_indigena,hacinamiento,promedio_escolar,marginacion,encode(AsBinary(force_collection(force_2d(the_geom)),'NDR'),'hex')
 as geom,gid from (select * from municipios) as foo where gid = 0;
   gid | nombre | superficie_km2 | localidades_urbanas | localidades_rurales |
 pob
 lacion_total | densidad_poblacion | poblacion_60_an_mas |
 hablantes_l_indigena |
   hacinamiento | promedio_escolar | marginacion | geom | gid
 -+++-+-+
 -++-+--+
 --+--+-+--+-
 (0 filas)

 Result window still draw cells but is empty.
 Thanks





--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] have diferents config_default.xml

2010-02-17 Thread Armin Burger
On 17/02/2010 15:10, Fco. Javier García Ricca wrote:
 Hello Victoria,

 I have a couple questions.

 If necesary that the name of configuration file start with config word? Can
 I name it with a sigle name (myfile.xml)?

no, not without changing the code. Though I don't see the problem in using


 In other side, you said to me that I need to append the name of the file to
 the url, similar to specify the language for the application. However I am
 looking for another way to do that. Back to the case of language I specfy
 this into the config file and not append language=es to the url.


you need to tell the application somehow which config file to use. You 
can do that via a URL key=value pair (GET) or using an HTML form that 
uses method=POST. This way the config parameter will not be attached to 
the URL but sent to the application in a hidden way. This POST method 
however does only work for a launch via an HTML form.

You could also use Apache rewrite rules in .htaccess files, I added a 
Wiki entry for this here:

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


Greetings
armin

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] catInfoLink grpInfoLink in v4.x

2010-02-14 Thread Armin Burger
if you want an (i) image link, in p.mapper 4 you need to load the plugin 
'tocinfolink', add a line in your config XML file under pmapper like
   pluginstocinfolink/plugins

and then follow the instructions in the readme file under
   plugins/tocinfolink/

armin

On 14/02/2010 16:02, emanuele masiero wrote:
 thank Zoltan
 how do I activate the InfoLink (i) in the TOC?
 emanuele



 2010/2/14 Siki Zoltans...@agt.bme.hu

 Dear Emanuele,

 You can find showCategoryInfo and showGroupInfo functions in custom.js.
 Custom.js can be found in the config/default directory.

 Best regards,
 Zoltan


 On Sun, 14 Feb 2010, emanuele masiero wrote:

   hi everybody

 in version 4.x,  are there still functions catInfoLink and grpInfoLink?
 how can activate them in config.xml?

 thank
 emanuele masiero

 --
 SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
 Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
 http://p.sf.net/sfu/solaris-dev2dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


 --
 SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
 Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
 http://p.sf.net/sfu/solaris-dev2dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users



--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Pmapper generates png files but don't display them

2010-02-03 Thread Armin Burger
check the FAQ and debugging link on the pm wiki

armin

On 03/02/2010 16:09, Matías Manuel Grandi wrote:
 Hi! I'm still with problems with pmapper 4 and ms4w.
 Now, pmapper is generating the files in the ms_tmp files, but they are not
 displayed in the screen. The loading... message don't dissapear.
 Here is my map file:


 MAP
  EXTENT   -59.7177 -35.4223 -57.7094 -33.8073

  UNITS dd
  SIZE 600 500
  SHAPEPATH ../../../pmapper_demodata/
  SYMBOLSET ../common/symbols/symbols-pmapper.sym
  FONTSET ../common/fonts/msfontset.txt
  RESOLUTION 96
  IMAGETYPE png
  INTERLACE OFF
  #CONFIG PROJ_LIB C:/proj/nad/
  PROJECTION
  proj=latlong
  END

 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 C:\ms4w\tmp\ms_tmp\
IMAGEURL /ms_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 -59.7177 -35.4223 -57.7094 -33.8073 #220 140 800
 540
IMAGE ../../images/reference.png
SIZE 199 149
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
 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
  NAME 'departamentos'
  TYPE POLYGON
  DATA departamentos.shp
  METADATA
'wms_title' 'departamentos'
  END
  STATUS DEFAULT
  TRANSPARENCY 100
  PROJECTION
  proj=latlong
  END
  CLASS
 NAME 'departamentos'
 STYLE
   SYMBOL 0
   SIZE 2
   OUTLINECOLOR 0 0 0
   COLOR 97 136 146
 END
  END
 END
 END  #Map


 --
 The Planet: dedicated and managed hosting, cloud storage, colocation
 Stay online with enterprise data centers and the best network in the business
 Choose flexible plans and management services without long-term contracts
 Personal 24x7 support from experience hosting pros just a phone call away.
 http://p.sf.net/sfu/theplanet-com
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users



--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] download in kml format

2010-02-01 Thread Armin Burger
On 01/02/2010 12:12, Walter Lorenzetti wrote:
 Giuseppe Naponiello ha scritto:
 Hi,
 I'd like to create a button for download the map in kml format, maybe I
 could use the ogr2ogr script but I don't know how. Is it possible?

 thanks a lot


 Hi Giuseppe,

 Alessandro Pasotti (itOpen) sometimes ago, made a class to export a map
 to kml format: http://www.itopen.it/soluzioni/kml-map-server/

 you can start to study this  for to try a write i pmapper plugins...

 Bye
 W


Giuseppe,

Another purely PHP-KML approach is to use the Google PHP-KML bindings:
http://code.google.com/p/php-kml/
But in any case you will first have to exactly define what you really 
want to export. All layers or single layers of the map, or results of a 
query, or all of that...

Calling ogr2ogr via PHP instead of writing the KML with a separate class 
gives the advantage to have this more flexible also for other formats in 
case you once need to extend this.

There are also OGR bindings for PHP but they're a bit of a pain to use. 
The Python bindings for GDAL/OGR are a bit more straightforward to use, 
you could use this via a web service (REST, or XML-RPC) that is then 
called from PHP. But for all of that you would need some more deeper 
knowledge how OGR works.

armin

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] ms4w 3.0 b + pmapper 4.0- Select singularly more then a feature.

2010-01-29 Thread Armin Burger
no, and in the way selection is currently working this will also be a
bit difficult to achieve.
armin

On Fri, Jan 29, 2010 at 5:24 PM, Marco Battelapesca barm4...@gmail.com wrote:
 Hi all,
 at the moment in order to select more then one feature, i have to select
 them by a square. So i include in my select features which i don't care. I
 would like to select singularly all the the features which i'm interested in
 so i can view they're table properties and export them.
 Is there any way to do that?
 thanks
 --
 The Planet: dedicated and managed hosting, cloud storage, colocation
 Stay online with enterprise data centers and the best network in the business
 Choose flexible plans and management services without long-term contracts
 Personal 24x7 support from experience hosting pros just a phone call away.
 http://p.sf.net/sfu/theplanet-com
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] ms4w + pmapper - plugin to change the order of the layers

2010-01-29 Thread Armin Burger
No, nothing available at the moment. I never worked on this because
the possibility to group physical layers together into one logical
which makes it difficult to achieve a changing of drawing order. It
would only work  if there are only separate layers without any
grouping. And since p.mapper was mainly designed as web gis for less
experienced users and not as desktop replacement I rarely found a real
need for this.

armin

On Fri, Jan 29, 2010 at 4:58 PM, Marco Battelapesca barm4...@gmail.com wrote:
 Hi all,
 is there a plugin to change the order of the layers? At the moment, i have
 to change that in the config_default.xml. I'dd like to change the order by a
 button to move up or down the layer inside the toc. Is there any way to do
 that?
 Thanks.

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Search does not work.

2010-01-21 Thread Armin Burger
The SQL used is missing the result fields and therefore the SQL is not
correct (the comma at the end of the line before FROM...) .

Try to add the result fields in the layer definition like

METADATA
   ...
RESULT_FIELDS NAME, ISO2_CODE, POPULATION, GTOPO30
RESULT_HEADERS Name,Country,Inhabitants,Altitude
...
END  # Metadata

If they are not defined normally *all* fields are defined, but there
might be a bug. I never define layers without them (I do not want to
display the column names literally in the result, normally... ), so I
have not stumbled over this problem

armin

On Thu, Jan 21, 2010 at 12:16 PM, richardcam...@adinet.com.uy
richardcam...@adinet.com.uy wrote:
 Estimado Nahum, la versión de pmapper es la 4 stable, adjunto parte
 archivos de configuración:
 Archivo .map
 LAYER
               CONNECTIONTYPE postgis
                DATA the_geom from v_callepuerta USING UNIQUE gid
 USING SRID=32721
                TYPE point
                CONNECTION user=montevimap password=xxx
 dbname=nucleo host=desgis.imm.gub.uy port=5432
                NAME busqueda
                STATUS OFF
                DUMP TRUE
            END

 Archivo search.xml
 searchitem name=busqueda description=Calle y Nº de puerta
        layer type=postgis name=busqueda
                field type=s name=nom_calle description=Calle 
 wildcard=0
                        definition type=suggest connectiontype=db 
 sort=asc
 minlength=1 dependfld=cmcncd
                                dsn 
 encoding=UTF-8pgsql://montevimap:x...@desgis.imm.gub.
 uy/nucleo/dsn
                                sql SELECT nom_calle FROM v_callepuerta 
 WHERE nom_calle
 ='[search]' /sql
                        /definition
                /field
                field type=n name=num_puerta description=Numero
 de Puerta wildcard=2
                        definition type=suggest connectiontype=db
 sort=asc minlength=1 dependfld=cmcncd
                                dsn encoding=UTF-8pgsql:
 //montevimap:x...@desgis.imm.gub.uy/nucleo/dsn
                                sqlSELECT num_puerta FROM
 v_callepuerta WHERE num_puerta ='[search]' /sql
                        /definition
                /field
        /layer
 /searchitem

 Definición tabla postgrs.
    Columna     |       Tipo        | Modificadores
 +---+---
  gid            | bigint            |
  cod_nombre_via | integer           |
  nom_calle      | character varying |
  num_puerta     | integer           |
  letra          | character(5)      |
  paridad        | character(1)      |
  the_geom       | geometry

 Muchas gracias por cualquier ayuda, otras busquedas si me funcionan
 pero no logro que esta funciones.

 Richard
 Montevideo, Uruguay

 English
 Dear Nahum, pmapper version is 4 stable, attached some configuration
 files:
 Archive. Map
 LAYER
               CONNECTIONTYPE postgis
                DATA the_geom from v_callepuerta USING UNIQUE gid
 USING SRID = 32721
                TYPE point
                CONNECTION user = montevimap password = xxx dbname =
 nucleo desgis.imm.gub.uy host = port = 5432
                NAME Search
                STATUS OFF
                DUMP TRUE
 END

 File search.xml
 searchitem name=busqueda description=Calle and Nº of puerta
 layer type=postgis name=busqueda
 field type=s name=nom_calle description=Calle wildcard=0
 definition type=suggest connectiontype=db sort=asc minlength=
 1 dependfld=cmcncd
 dsn encoding=UTF-8 pgsql: / / montevimap:x...@desgis.imm.gub.uy
 /nucleo / dsn
 nom_calle SELECT sql FROM v_callepuerta WHERE nom_calle = '[search]'
 / sql
 / definition
 / field
                field type=n name=num_puerta description=Numero
 of Puerta wildcard=2
                        definition type=suggest connectiontype=db
 sort=asc minlength=1 dependfld=cmcncd
                                dsn encoding=UTF-8 pgsql: / /
 montevimap:x...@desgis.imm.gub.uy /nucleo / dsn
                                num_puerta SELECT sql FROM
 v_callepuerta WHERE num_puerta = '[search]' / sql
                        / definition
                / field
 / layer
 / searchitem

 Definition postgres table.
    Column | Type | Modifiers
  --- ---
  gid | bigint |
  cod_nombre_via | integer |
  nom_calle | character varying |
  num_puerta | integer |
  letter | character (5) |
  parity | character (1) |
  the_geom | geometry

 Thank you very much for any help, if I run other searches but can not
 get these functions.

 Richard
 Montevideo, Uruguay

 Spanish
 ¿Cómo tienes definido tu .map y el archivo de configuración de
 búsquedas?
 ¿Qué versión de pmapper tienes?.

 English
 How is defined your .map file and search.xml file?
 Wich pmapper version you have?

 Saludos.
 Nahum

 2010/1/20 richardcam...@adinet.com.uy richardcam...@adinet.com.uy
 - Ocultar texto citado -

 llo everyone, sorry for my English.
 I have configured and installed the viewer pmapper, the only 

Re: [pmapper-users] Search does not work.

2010-01-21 Thread Armin Burger
just noticed that you're mainly missing the template tag for the
layer, so *no* query will work. see

http://svn.pmapper.net/trac/wiki/DocManual#LayerGroupDescriptionsandFieldsforQueries


On Thu, Jan 21, 2010 at 12:16 PM, richardcam...@adinet.com.uy
richardcam...@adinet.com.uy wrote:
 Estimado Nahum, la versión de pmapper es la 4 stable, adjunto parte
 archivos de configuración:
 Archivo .map
 LAYER
               CONNECTIONTYPE postgis
                DATA the_geom from v_callepuerta USING UNIQUE gid
 USING SRID=32721
                TYPE point
                CONNECTION user=montevimap password=xxx
 dbname=nucleo host=desgis.imm.gub.uy port=5432
                NAME busqueda
                STATUS OFF
                DUMP TRUE
            END

 Archivo search.xml
 searchitem name=busqueda description=Calle y Nº de puerta
        layer type=postgis name=busqueda
                field type=s name=nom_calle description=Calle 
 wildcard=0
                        definition type=suggest connectiontype=db 
 sort=asc
 minlength=1 dependfld=cmcncd
                                dsn 
 encoding=UTF-8pgsql://montevimap:x...@desgis.imm.gub.
 uy/nucleo/dsn
                                sql SELECT nom_calle FROM v_callepuerta 
 WHERE nom_calle
 ='[search]' /sql
                        /definition
                /field
                field type=n name=num_puerta description=Numero
 de Puerta wildcard=2
                        definition type=suggest connectiontype=db
 sort=asc minlength=1 dependfld=cmcncd
                                dsn encoding=UTF-8pgsql:
 //montevimap:x...@desgis.imm.gub.uy/nucleo/dsn
                                sqlSELECT num_puerta FROM
 v_callepuerta WHERE num_puerta ='[search]' /sql
                        /definition
                /field
        /layer
 /searchitem

 Definición tabla postgrs.
    Columna     |       Tipo        | Modificadores
 +---+---
  gid            | bigint            |
  cod_nombre_via | integer           |
  nom_calle      | character varying |
  num_puerta     | integer           |
  letra          | character(5)      |
  paridad        | character(1)      |
  the_geom       | geometry

 Muchas gracias por cualquier ayuda, otras busquedas si me funcionan
 pero no logro que esta funciones.

 Richard
 Montevideo, Uruguay

 English
 Dear Nahum, pmapper version is 4 stable, attached some configuration
 files:
 Archive. Map
 LAYER
               CONNECTIONTYPE postgis
                DATA the_geom from v_callepuerta USING UNIQUE gid
 USING SRID = 32721
                TYPE point
                CONNECTION user = montevimap password = xxx dbname =
 nucleo desgis.imm.gub.uy host = port = 5432
                NAME Search
                STATUS OFF
                DUMP TRUE
 END

 File search.xml
 searchitem name=busqueda description=Calle and Nº of puerta
 layer type=postgis name=busqueda
 field type=s name=nom_calle description=Calle wildcard=0
 definition type=suggest connectiontype=db sort=asc minlength=
 1 dependfld=cmcncd
 dsn encoding=UTF-8 pgsql: / / montevimap:x...@desgis.imm.gub.uy
 /nucleo / dsn
 nom_calle SELECT sql FROM v_callepuerta WHERE nom_calle = '[search]'
 / sql
 / definition
 / field
                field type=n name=num_puerta description=Numero
 of Puerta wildcard=2
                        definition type=suggest connectiontype=db
 sort=asc minlength=1 dependfld=cmcncd
                                dsn encoding=UTF-8 pgsql: / /
 montevimap:x...@desgis.imm.gub.uy /nucleo / dsn
                                num_puerta SELECT sql FROM
 v_callepuerta WHERE num_puerta = '[search]' / sql
                        / definition
                / field
 / layer
 / searchitem

 Definition postgres table.
    Column | Type | Modifiers
  --- ---
  gid | bigint |
  cod_nombre_via | integer |
  nom_calle | character varying |
  num_puerta | integer |
  letter | character (5) |
  parity | character (1) |
  the_geom | geometry

 Thank you very much for any help, if I run other searches but can not
 get these functions.

 Richard
 Montevideo, Uruguay

 Spanish
 ¿Cómo tienes definido tu .map y el archivo de configuración de
 búsquedas?
 ¿Qué versión de pmapper tienes?.

 English
 How is defined your .map file and search.xml file?
 Wich pmapper version you have?

 Saludos.
 Nahum

 2010/1/20 richardcam...@adinet.com.uy richardcam...@adinet.com.uy
 - Ocultar texto citado -

 llo everyone, sorry for my English.
 I have configured and installed the viewer pmapper, the only problem
 I
 have is with the search, the same achievements on Postgres with
 PostGIS, work correctly on some tables, but in others does not
 search
 me.
 I use both geometry tables or views both with the corresponding
 column
 the_geom and gid.
 The log tells me that there is an error with the gid, but it exists
 and it's OK, I can properly display the layer in the map view.
 Deputy log with errors.

 

Re: [pmapper-users] zoomLayer zoomQuery

2010-01-20 Thread Armin Burger
zoomLayer=countrieszoomquery=n...@1@it...@0@1

zoomQuery parameters (separated by @):

   NAME: name of the field to search (upper case for shapefiles)
   1: field type, 0 = numerical, 1 = alphanumerical
   Italy: search string (case sensitive)
   0: highlight feature, 0 = no, 1 = yes
   
   
   1: set maximum map extent to feature extent, 0 = no, 1 = yes
   
   


On 20/01/2010 00:06, Siki Zoltan wrote:
 Dear Armin,

 Thank you for your answer.
 May be my email was misunderstanded.
 The information on the link you sent me is clear for me.
 I try to explane my problem clearer.

 I use pmapper 4.0 and shape files.
 Starting map.phtm with a query string like
 .../pmapper/map.phtml?config=xxxzoomLayer=yyyzoomQuery=...

 I get the map zoomed to the right place, but after it I couldn't zoom out.
 The slider reflects to be at the maximal extent.
 As the extent in the map file would be overrided.
 I don't want to oveeride the map extend, I only want to start the map
 zoomed to a map feature and allow the user to browse the whole map.

 Thanks,
 Zoltan

 On Mon, 18 Jan 2010, Armin Burger wrote:

 On 18/01/2010 21:40, Siki Zoltan wrote:
 Hi List,

 I try to use zoomLayer and zoomQuery query string parameters.
 I works, but after zooming into the map I couldn't zoom back to a larger
 extent. Is there any workaround?

 no, there's no workaround, but an existing config setting for this:

 http://svn.pmapper.net/trac/wiki/DocManual#Extentreadfromlayerfeature:

 armin

 --
 Throughout its 18-year history, RSA Conference consistently attracts the
 world's best and brightest in the field, creating opportunities for 
 Conference
 attendees to learn about information security's most important issues through
 interactions with peers, luminaries and emerging and established companies.
 http://p.sf.net/sfu/rsaconf-dev2dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


 --
 Throughout its 18-year history, RSA Conference consistently attracts the
 world's best and brightest in the field, creating opportunities for Conference
 attendees to learn about information security's most important issues through
 interactions with peers, luminaries and emerging and established companies.
 http://p.sf.net/sfu/rsaconf-dev2dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] zoomLayer zoomQuery

2010-01-18 Thread Armin Burger
On 18/01/2010 21:40, Siki Zoltan wrote:
 Hi List,

 I try to use zoomLayer and zoomQuery query string parameters.
 I works, but after zooming into the map I couldn't zoom back to a larger
 extent. Is there any workaround?

no, there's no workaround, but an existing config setting for this:

http://svn.pmapper.net/trac/wiki/DocManual#Extentreadfromlayerfeature:

armin

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Problems with cssReference and jsInitFunctions

2010-01-15 Thread Armin Burger


On 15/01/2010 16:14, Edukoski wrote:

 Armin:
 I made the changes and displays the blank map with all the tools including
 the reference.
 But do not see the map on the main frame.
 The log reads:
 [15-Jan-2010 13:08:00] PHP Warning: PHP Startup: Unable to load dynamic
 library '/ usr/lib/php5/20060613/mcrypt.so' - /
 usr/lib/php5/20060613/mcrypt.so : can not open shared object file: No such
 file or directory in Unknown on line 0


your PHP installation seems to have some problems. Follow the 
*debugging* info from the p.mapper *Trac FAQ* and make sure step by step 
as mentioned there that your installation is of all basic requirements 
(PHP, MapScript, etc) is functioning correctly

armin

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Problems with cssReference and jsInitFunctions

2010-01-15 Thread Armin Burger
On 15/01/2010 19:32, Edukoski wrote:

 Dear Armin:
 I've checked everything but the map is not in the main frame.
 Check the error console of Firefox and I throw myself the following:

 Warning: Error reading value of 'overflow'. Statement ignored.
 Source File: http://localhost/pmapper-3.2/templates/default.css
 Line: 92

 Warning: Unknown property 'layer-background-color'. Statement ignored.
 Source File: http://localhost/pmapper-3.2/templates/layout.css
 Line: 96

 There are several caveats I put some warnings only as an example.
 Sorry for my bad English



warnings from CSS do not prevent the application to work (I always have 
CSS checking disabled anyway)



--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Clear POIs data in a sesstion

2010-01-12 Thread Armin Burger
On 12/01/2010 06:08, i-boy wrote:
 Hi all !

 When I use Add POI tool, it remains until I start a new session (close the
 brower), so I try to clear POIs data when still remain in the current
 session.

 I had changed in pm.map.js (and the compress file pm_cjs.js too)


 reloadMap: function(remove) {
 ...
 PM.extentSelectedFeatures = null;
 // new line
 unset($_SESSION['url_points']);
 ...

 but it returned an error.


'reloadMap' is a JavaScript function,

the call
unset($_SESSION['url_points']);

is PHP code... mixing both will not work... ;-)


try using

PM.setSessionVar('url_points', 'null');

I'd recommend that you do not change this in the Javascript files 
directly but that you add it in a *.js file under your config directory, 
like


$.extend(PM.Map,
{
 /**
  * Reload application
  */
 reloadMap: function(remove) {
 var mapurl = PM_XAJAX_LOCATION + 
'x_load.php?'+SID+'zoom_type=zoompoint';
 if (remove) {
 mapurl += 'resultlayer=remove';
 PM.extentSelectedFeatures = null;
 PM.setSessionVar('url_points', 'null');
 }
 this.updateMap(mapurl);
 }
});


In order for this to work correctly you will also need to replace the 
file 'incphp/xajax/x_setsessionvar.php' with the one from SVN trunk:

http://svn.pmapper.net/trac/browser/pmapper/trunk/pmapper/incphp/xajax/x_setsessionvar.php?format=raw


armin

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Search 2 (or more) fields with same data column

2010-01-05 Thread Armin Burger
On 05/01/2010 04:26, i-boy wrote:
 Thanks you Armin, it works great !

 I have updated Docs at the end of trac/wiki/DocManualsearch with this:

 ---

 For search multi-items in one database column:
 - In file search.php =  function: getSearchParameters() change $operator
 from AND to OR
 - Use alias for the search column, ex:

 {{{
  searchitem name=Item description=Items
  layer type=shape name=Layer
  field type=s name=DB_Column description=Item_1
 wildcard=0 /
  field type=s name=DB_Column alias=DB_Column_2
 description=Item_2 wildcard=0 /
  field type=s name=DB_Column alias=DB_Column_3
 description=Item_3 wildcard=0 /
...

  /layer
  /searchitem
 }}}


something I noticed now is that you changed the code in search.php to 
have an OR operator. This is not recommended and you should use the setting
   operator=OR
instead, like

field type=s name=DB_Column alias=DB_Column_2
   description=Item_2 wildcard=0 operator=OR /

If you want to have the various tags and attributes available when you 
edit the xml file use an editor supporting xml schemas and use the 
provided schema, see

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

The search string that is created can be retrieved via the debug log 
(see docs for it) and tested with
= http://svn.pmapper.net/trac/wiki/FaqDebugging#a9.Testofquerystrings

armin

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Search 2 (or more) fields with same data column

2010-01-04 Thread Armin Burger
On 04/01/2010 04:40, i-boy wrote:
 Hi lists,


 I defined a search item like this:

 --
 searchitem name=Dist description=District
 ___layer type=shape name=HN_District
 __field type=s name=D_Name description=ID0 wildcard=0 /
 __field type=s name=D_Name description=ID1 wildcard=0 /
 ___/layer
 /searchitem
 --

 and changed in  search.php =  getSearchParameters()   operator AND to
 OR

 it works fine when search fields in different DB column but when use same
 column name (as above), it only found the last field.


 Can I edit some file to make it (search multi item in one database column)
 work ?

it should work defining an alias for the 2nd field, like

field type=s name=D_Name alias=D_Name_1 description=ID1
 wildcard=0 /

If it works fine please update the docs in the Trac system (use the 
'Register' link to create an account).

armin

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] resutlayer rendering very very slow....

2009-12-30 Thread Armin Burger
On 29/12/2009 18:57, G. Allegri wrote:
 I'm using a polygonal postgis layer, composed of simple rectangular
 cells (a grid). I'm quite worried by the performances in rendering
 search results in map.php-pmap_addResultLayer(). I've profiled a
 search query which returns 380 grids/polygons, and I've found it takes
 17.5-18 seconds to do the foreach loop at lines 797-816 of map.php. Is
 it normal??? I hope there is a bottleneck I've missed...


check this and see if it speeds up things:

http://postgis.refractions.net/documentation/manual-1.4/ch05.html#id2542540

armin

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] search distinct features on one-to-many join query (for time series)

2009-12-16 Thread Armin Burger
On 16/12/2009 20:04, G. Allegri wrote:
 Hello list.
 Before spending too much time on this, I would like to know if the
 trunk beta supports this thing:
 
 I have a big postgis table with a time series (TS) associated with a
 polygonal grid layer. For each polygon/cell I have multiple rows in
 the TS table. Let's say I have the list od daily rainfall.
 I need to let the user query the TS table to see if there is ANY cell
 where the daily rainfall have exceeded a certain threshold.
 (The truth is that I have many TS tables, coming from different
 simulations, and one single vector layer...)
 
 So, the user should be able to do a Search for Rainfall values higher
 then X, and receive all the cells where it happens.
 
 The actual code seems to offer many ways to deal with multiple joins,
 but nothing seems to respond to my need. Am I wrong? Is this already
 available or should I code it?


There is no special support for joins in Postgis layers in p.mapper, 
just use the functionality of the database for all sorts of joins and be 
aware of the special settings for this in the DATA parameter map file. I 
usually use DB views that do all the join definitions instead of 
defining the join in the map file. If the search does exactly what you 
want I cannot say, but you can define the full SQL statement in the 
search definition. Just check the docs and samples.

armin



--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] zoomQuery

2009-12-15 Thread Armin Burger
On 15/12/2009 17:28, Eugenio Trumpy wrote:
 Hi to all,
 i'm using pmapper3.2 yet,
 now i'd like to give the parameters to zoom to a selected item.
 I'm trying to use this line:
 http://localhost/my_project/map.phtml?winsize=largelanguage=itconfig=zoomLayer=my_layerzoomquery...@0@5740...@1@0
 the application return me the right object selected, 
 but the extention is wrong, because all layer stay in a point,
 if i zoom many time i'm able to have the map in right extention and see the 
 item selected with the colored boundary.
 I don't know why...
 my_layer's epgs=4326, and also the project.
 The extent of the project is = 5.00 35.000 20.000 50.000 and the unit is =dd
 I supose the problem is around the proj of the layer, isen't it?
 Any suggests?
 Is there an other way or other parameters to use to have that result?
 
 Eugenio
 

for zoom to points you need to adapt the config.ini setting for 
pointBuffer accordingly to fit the dimensions of your map projection.

armin

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] plugin php var to js var

2009-12-10 Thread Armin Burger
On 10/12/2009 10:57, Walter Lorenzetti wrote:
 Hi all, hi Armin, I'm writing authentication plugin,
 I've a problem with fill a js var with a php value:
 
 if I try to put a js.php file in the $jsFiles array in the config.inc
 plugin file
 I obtain an error from firebug console, because in the js_sesssion.php
 file pmapper 
 use PMCommon::compressJavaScriptFile to copress js scripting plugin
 files...
 
 so my question is:
 
 there's a method to do it, in a simple way?
 
 A solution not simple that i found is put in a init plugin function a ajax
 request to retrieve... the php value..
 but I found this solution not very elegant and slowly
 
 Thanks In advance
 W
 

does it work when you deactivate the compression of the JS files by 
setting the debugLevel in the config xml to 4? If so, it would be 
possible to add another config parameter that globally disables this, 
even when debug set to production values like 1 or 0 (all for the small 
price of more data to be sent to the browser).

armin

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Configuring Pmapper

2009-12-03 Thread Armin Burger
if you're using the MS4W package of p.mapper then you do not need to
to anything but unpack the zip and copy the files as described, and
you should be done.

Also see here:  http://svn.pmapper.net/trac/wiki/FaqDebugging
and especially the paragraph:

2.  3) Do not expect any reply to questions that e.g. just say:
 ...
* I get a blank map/page/no results
  with no further details mentioned as explained above.


armin

On Thu, Dec 3, 2009 at 6:40 AM, Kennedy Karani kar...@aridland.go.ke wrote:
 Hallo all,



 I am new to pmapper and have been trying to configure the pmapper demo for
 ms4w. However when I try all the instruction given and try to run it from my
 browser. It gives a blank web page. Can anyone please help.



 Kennedy Karani



 ICT Officer

 Arid Lands Reource Management Project

 P.O. Box 53547, 00200,

 Nairobi.

 Email:kar...@aridland.go.ke

 Telephone: 020 2227496 Ext. 230

 Mobile:0721440526

 



 --
 Join us December 9, 2009 for the Red Hat Virtual Experience,
 a free event focused on virtualization and cloud computing.
 Attend in-depth sessions from your desk. Your couch. Anywhere.
 http://p.sf.net/sfu/redhat-sfdev2dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] hiperlink floating window

2009-12-02 Thread Armin Burger
On 02/12/2009 21:33, Armin Burger wrote:
 On 02/12/2009 13:25, Fco. Javier García Ricca wrote:
 Hello,

 I would like to know if is possible to open a hiperlink in a floating
 window. Can i make a javascript to do it? How can I do it?


 Thanks

 
 
 In general see here for hyperlinks:
 http://svn.pmapper.net/trac/wiki/DocManual#Hyperlinks
 
 I guess with 'floating window' you mean the standard dialog (like for 
 queries, print etc). If the hyperlink url is pointing to a site on the 
 same server where the p.mapper application is hosted then it works. 
 There were several explanations and a full example how to use the 
 dialogs ('PM.Dlg.createDnRDlg...') in previous postings and the 
 descriptions should have been added to the wiki.
 
 Otherwise it will not work directly because the content of the dialog 
 window is filled via an AJAX call. And Ajax calls do not allow to load 
 external (cross-domain) URL's. This would just be possible via a proxy 
 script (using e.g. PHP and curl calls) but that would be a bit much to 
 discuss the details here, just google for 'ajax proxy'.

and just to complete for the case of cross-domain urls: instead of an 
Ajax proxy you could also load a PHP script passing the remote url as 
GET parameter and create a simple HTML page with an IFrame using as 
src the remote url. This has the advantage that also all styles and 
Javascript files etc are transfered.

armin

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Live CD/DVD

2009-12-01 Thread Armin Burger
You need at least to define a 'tmp' directory for the temporary map
files that is writeable by the web server user (www-data in Ubuntu).
Live CD's usually have foreseen a mechanism for that (mapping it into
memory).

armin

On Tue, Dec 1, 2009 at 10:32 AM,  dejan.gam...@pula.hr wrote:
 Hi,

 I am thinking about creating a Live CD/DVD that includes Mapserver,
 p.mapper and everything else needed. I need this for demonstration
 purposes and I am thinking about using Ubuntu LiveCD for this.

 Does anyone have an experience and/or was successful doing this, so he can
 point me to the right direction?

 Thanks very much

 regards, dejan
 --
 Join us December 9, 2009 for the Red Hat Virtual Experience,
 a free event focused on virtualization and cloud computing.
 Attend in-depth sessions from your desk. Your couch. Anywhere.
 http://p.sf.net/sfu/redhat-sfdev2dev
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] search question

2009-11-27 Thread Armin Burger
Javier

for p.mapper 4 set in /config/.../js_config.php
   PM.suggestLaunchSearch = false;

(true is the default)

for pm 3 it should be something like 'pmSuggestLaunchSearch' instead

armin

2009/11/27 Fco. Javier García Ricca fjri...@gmail.com:
 Hello,

 I use this code in the config.xml.

         searchitem name=secciones description=Secciones Censales
             layer type=shape name=secciones
                 field type=s name=Distrito_1 description=Distrito
 wildcard=2
                      definition type=suggest connectiontype=ms
 minlength=1 startleft=1 sort=asc
                          mslayer encoding=UTF-8/
                      /definition
                 /field
                 field type=s name=Seccione_1 description=Seccion
 wildcard=2
                      definition type=suggest connectiontype=ms
 minlength=1 startleft=1 sort=asc dependfld=Distrito_1
                          mslayer encoding=UTF-8/
                 /definition
                 /field
             /layer
        /searchitem

 to search features. I would like search those feature only when I press
 the button search. Is this possible?


 Thans

 --

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] searching with filter

2009-11-25 Thread Armin Burger
Marco

Currently *all* form elements (fields) are used for the query string.
Using one of them just for defining the depending field values but
excluding them from the query string composition is not foreseen
currently. This will require additional settings predefined in  XML
that is read by PHP and then passed over to Javascript. So nothing
done in 5 minutes.

You can add a ticket in the Trac system (svn.pmapper.net/trac) of type
'enhancement'. Use the 'Register' link to create an account. I know
people practically never do that, so most enhancement proposals via
the mailing list will be discarded because I'm usually not going to
follow them up any more if not added in Trac.

For a quick and dirty solution:
I'm currently not sure how the [search] place holder is substiuted for
SQL queries, I guess it replaces them in the order how the fields are
defined in the XML. A quick solution could be to try to 'hide' the
value of the first [search] in the query string so that it is not
executed, e.g.  by putting them inside a comment, like

sqlSELECT DISTINCT [dependfldval] FROM
[7 HOSPITAL]  WHERE  /* [search] */ [dependfldval] LIKE '%[search]%'/sql

armin

On Wed, Nov 25, 2009 at 10:34 AM, Marco marc...@katamail.com wrote:
 Hi,

 First I want to compliment for Pmapper's quality code, it's difficult
 to find applications so well written!

 Now my problem: I have to add a select when the user chooses the field
 on which to search, and I wrote the XML:

 searchitem name=hospital description=Hospital
               layer type=ms name=hospital
                   field type=s name=hospfield description=Field
 to search wildcard=2
                       definition type=options firstoption=Select
 connectiontype=inline
                           option value=NAME name=Name /
                           option value=ADDR name=address /
                           option value=CITY name=City /

 eventsonchange=$('#pmsfld_hospric').val('')/events
                       /definition
                   /field
                   field type=s name=hospric description=Search
 wildcard=2
                       definition type=suggest connectiontype=db
 sort=asc minlength=2 dependfld=hospfield
                           dsn
 encoding=UTF-8odbc://'':''@localhost/datahosp/dsn
                           sqlSELECT DISTINCT [dependfldval] FROM [7
 HOSPITAL] WHERE [dependfldval] LIKE '%[search]%'/sql
                       /definition
                   /field
               /layer
   /searchitem

 I logged the results and it working properly, except that it submit
 also the field hospfield, I also tried with the xml attribute
 nosubmit but doesn't work, what's the best way to solve it?

 thanks

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] new interface pmapper and search drag drop

2009-11-25 Thread Armin Burger
On 25/11/2009 16:46, raul retamozo velarde wrote:
 
 I've just been trying something like this, a double parameter search.
 

what's special with that? just define 2 (or more...) field entries per 
searchitem and you'll get 2 (or more) search parameters.

armin

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Query on PostGIS Layer

2009-11-23 Thread Armin Burger
one of the usual questions (blank map, no map, just 'loading' image ,
etc), and the usual answer is

http://svn.pmapper.net/trac/wiki/FaqDebugging#a1.WhatshouldIdoifp.mapperisnotworkingcorrectly
http://svn.pmapper.net/trac/wiki/FaqDebugging#a2.Howtoaskquestionsonthep.mappermailinglist

armin

On Mon, Nov 23, 2009 at 10:52 AM, Sebastian Walter
sebastian.wal...@fu-berlin.de wrote:
 Dear All,

 My mapserver application lets me query/info/select on shapefiles,
 but when I include the same features as a PostGIS table, the query
 functions don't work anymore (endless spinning wheel). The layer's
 features are shown in the map.
 As the source features are in the database, I now have to dump the data
 to a shapefile before including in the map, which is quite inconvenient.

 Anyone's got an idea? Thanks for your help...
 Regards, Sebastian

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Bug

2009-11-23 Thread Armin Burger
did you read this?

http://svn.pmapper.net/trac/wiki/FaqConfiguration#Cookiesforsessionhandling:yesorno

armin

On Mon, Nov 23, 2009 at 9:45 AM, torellim torellim torell...@gmail.com wrote:
 I have noticed, in the toc about pmapper-4.0.beta2 version, that changing
 map it always maintains the layers old. I have resolved resetting the
 variable of session in the file map.phtml, after session_start():

 if(isset($_SESSION[groups])) $_SESSION[groups] = null;

 I hope that it could be usefull

 regard, M.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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   >