Re: [pmapper-users] how to create plugin in pmapper

2009-02-19 Thread Armin Burger
thanks for pointing to it. I forgot that I wrote something quite some 
time ago... ;-)

I'll add another link to this in the wiki.

armin

On 19/02/2009 10:37, Thomas Raffin wrote:
 Hi,
 
 A short introduction here:
 http://svn.pmapper.net/trac/wiki/FaqCustomizations#Plugins
 
 Thomas
 
 Armin Burger a écrit :
 On 18/02/2009 16:17, Zaid Dawood Issa wrote:
   
 I need a manual to create and integrate a plugin with pmapper,the
 functionally of plugin si to hide and unhide the toc and reference map
 with one botton in the tool bar.I have develop the functionally of the
 plugin, but i have this function and parameters in server file and i
 want to join that in one plugin
 thank you

 Zaid Dawood


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] how to create plugin in pmapper

2009-02-18 Thread Armin Burger
On 18/02/2009 16:17, Zaid Dawood Issa wrote:
 I need a manual to create and integrate a plugin with pmapper,the
 functionally of plugin si to hide and unhide the toc and reference map
 with one botton in the tool bar.I have develop the functionally of the
 plugin, but i have this function and parameters in server file and i
 want to join that in one plugin
 thank you
 
 Zaid Dawood
 

there's nothing like a plugin manual. you can have a look at plugins 
like 'coordinates', e.g. in files like 'coordinates.js' and the comments 
there. Check the available plugins and the *.inc files that should give 
you a hint how to include/reference files (php, js, css) in the main 
application.

armin

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] search.xml

2009-02-16 Thread Armin Burger
If you combine all 9 shape datasets in 1 tileindex layer insetad of 9 
separate layers
(see http://mapserver.org/optimization/tileindex.html)
then the search should go through all single shapes and retrieve all 
parcels. I think that also the suggest definition works (with 
connectiontype=ms) with tileindex layers.

armin

On 16/02/2009 17:51, Kevin Edmundson wrote:
 Hello List,
 
  
 
 I have a map file that contains multiple shape files for parcels that
 are separated by townships meaning that I have 9 shape files that
 comprise different geographical regions of one governmental entity.  
 
  
 
 I would like to give the user the ability to have a search function that
 would be by OwnerName.  Each of these layers (shapefiles) has a filed
 OwnerName.  I was wondering if there was a way to configure the
 search.xml such that one SearchItem entry would search ALL 9 layers for
 that particular field value and return the result?
 
  
 
 Any help would be greatly appreciated.
 
  
 
 Kevin Edmundson
 
 CIO
 
 WTH Technology, Inc
 
 567 W Westfield Blvd
 
 Indianapolis, IN 46208
 
 317.259.0105 office
 
 317.259.1423 fax
 
 317.501.8560 mobile
 
 kevin.edmund...@wthtechnology.com
 
  
 
 NOTICE: This message is from the technology firm WTH Technology, Inc.
 This message is intended only for the individual or entity to which it
 is directed. If you are not the addressee, or if this message has been
 addressed to you in error, you are not authorized to use, read, copy or
 distribute this message and any attachments, and we ask that you please
 immediately delete this message and attachments (including all copies),
 and notify the sender by return e-mail so that our records can be
 corrected. All personal messages express views only of the sender, which
 are not to be attributed to WTH Technology, Inc, and may not be
 distributed or copied without this statement.
 
  
 
 --
 Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
 -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
 -Strategies to boost innovation and cut costs with open source participation
 -Receive a $600 discount off the registration fee with the source code: SFAD
 http://p.sf.net/sfu/XcvMzF8H
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 



--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] search.xml

2009-02-16 Thread Armin Burger
the *attribute* search in p.mapper is independent of the current map 
extent since it's not applied on the map object before running the 
queryByAttribute() method (there's no difference between normal shape 
layers and tileindex layers). So it uses the default extent defined in 
the map file.

armin

On 16/02/2009 19:55, Kevin Edmundson wrote:
 Thanks for the information.  I think I will use that on my image files.
 
 
 However...I do not want to limit the searching of a vector layer to just
 the current view.  A user might be searching for 'SMITH' as a last name
 for parcel information and they might exist outside the currently viewed
 data.
 
 Unless there is a way to use the TileIndex that way, is my only option
 to combine the actual shapefiles into one gigantic one and use it as the
 source for the layer?
 
 Kevin Edmundson
 CIO
 WTH Technology, Inc
 567 W Westfield Blvd
 Indianapolis, IN 46208
 317.259.0105 office
 317.259.1423 fax
 317.501.8560 mobile
 kevin.edmund...@wthtechnology.com
 
 NOTICE: This message is from the technology firm WTH Technology, Inc.
 This message is intended only for the individual or entity to which it
 is directed. If you are not the addressee, or if this message has been
 addressed to you in error, you are not authorized to use, read, copy or
 distribute this message and any attachments, and we ask that you please
 immediately delete this message and attachments (including all copies),
 and notify the sender by return e-mail so that our records can be
 corrected. All personal messages express views only of the sender, which
 are not to be attributed to WTH Technology, Inc, and may not be
 distributed or copied without this statement.
 
 -Original Message-
 From: Armin Burger [mailto:armin.bur...@gmail.com] 
 Sent: Monday, February 16, 2009 1:37 PM
 To: Kevin Edmundson
 Cc: pmapper-users@lists.sourceforge.net
 Subject: Re: [pmapper-users] search.xml
 
 If you combine all 9 shape datasets in 1 tileindex layer insetad of 9 
 separate layers
 (see http://mapserver.org/optimization/tileindex.html)
 then the search should go through all single shapes and retrieve all 
 parcels. I think that also the suggest definition works (with 
 connectiontype=ms) with tileindex layers.
 
 armin
 
 On 16/02/2009 17:51, Kevin Edmundson wrote:
 Hello List,

  

 I have a map file that contains multiple shape files for parcels that
 are separated by townships meaning that I have 9 shape files that
 comprise different geographical regions of one governmental entity.  

  

 I would like to give the user the ability to have a search function
 that
 would be by OwnerName.  Each of these layers (shapefiles) has a filed
 OwnerName.  I was wondering if there was a way to configure the
 search.xml such that one SearchItem entry would search ALL 9 layers
 for
 that particular field value and return the result?

  

 Any help would be greatly appreciated.

  

 Kevin Edmundson

 CIO

 WTH Technology, Inc

 567 W Westfield Blvd

 Indianapolis, IN 46208

 317.259.0105 office

 317.259.1423 fax

 317.501.8560 mobile

 kevin.edmund...@wthtechnology.com

  

 NOTICE: This message is from the technology firm WTH Technology, Inc.
 This message is intended only for the individual or entity to which it
 is directed. If you are not the addressee, or if this message has been
 addressed to you in error, you are not authorized to use, read, copy
 or
 distribute this message and any attachments, and we ask that you
 please
 immediately delete this message and attachments (including all
 copies),
 and notify the sender by return e-mail so that our records can be
 corrected. All personal messages express views only of the sender,
 which
 are not to be attributed to WTH Technology, Inc, and may not be
 distributed or copied without this statement.

  


 
 --
 Open Source Business Conference (OSBC), March 24-25, 2009, San
 Francisco, CA
 -OSBC tackles the biggest issue in open source: Open Sourcing the
 Enterprise
 -Strategies to boost innovation and cut costs with open source
 participation
 -Receive a $600 discount off the registration fee with the source
 code: SFAD
 http://p.sf.net/sfu/XcvMzF8H
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

 
 
 


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists

Re: [pmapper-users] Blanks in Layer Name

2009-02-15 Thread Armin Burger
On 15/02/2009 09:26, Rogers, Janet (SKM) wrote:
 Is there some other functionality that will not be supported if there are 
 spaces in the Layer names?

yes





--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Legend bug in MapToPDF

2009-02-03 Thread Armin Burger
On 03/02/2009 13:55, Jamie wrote:
 Hello list,
 I have found another little bug in “export map to PDF”. When layer have odd 
 number of CLASS with odd number of symbols (in my case: layer “letiste” with 
 3 symbols), there is an error in formatting in legend in PDF, as you can see 
 here:
 
 http://picasaweb.google.com/jamie037/PMapper#5298550196620451666
 
 When I get the layer with 3 symbols on the end of “config_default.ini” in 
 “allGroups”, the legend is generated well:
 
 http://picasaweb.google.com/jamie037/PMapper#5298550199040192770
 
 But what if I will have more layers with odd number of symbols???
 
 Jamie
 

I once fixed something that looks similar to your problem. Looks like I 
forgot to add it to the core code... I will see if I find those things back.

armin

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Querying problem with WMS

2009-02-03 Thread Armin Burger
On 03/02/2009 14:22, Andreas Haux wrote:
 Hi all,
 
 I have the following problem:
 - Querying one or two layers works without a problem, result is shown  
 and so on - perfect.
 - I have added raster maps from a WMS service - as soon as I have  
 activated the layer in the legend the query seems to try to search the  
 WMS as well - the symbol Searching ... appears forever.

I'm quite sure you got a PHP error, so you would need to check the error 
logs.


 
 What is my mistake?
 
 Thanks for your feedback!
 
 BTW: Armin, you recommend to open pmapper in a new window; I have  
 embedded pmapper within an iframe and it seems to work very well. Any  
 restrictions you know using iframes?
 

I never tried iframes but if it works then why bother? The 
recommendation for  a new window is also a bit outdated, it came from 
the times with the use of frames but that's not any more the case.

 
 Regards
 Andreas
 
 
 --
 Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
 software. With Adobe AIR, Ajax developers can use existing skills and code to
 build responsive, highly engaging applications that combine the power of local
 resources and data with the reach of the web. Download the Adobe AIR SDK and
 Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Problem with frame on IE

2009-02-03 Thread Armin Burger
Using frames became a bit... unusual... I could just assume that the 
usage of 'jQuery layout' is not working so well with frames. You could 
try using the alternate layout with 'map-plain-layout.phtml' and see if 
it works better. Or try iframes, just a few hours ago somebody wrote 
that they work fine with pm. and maybe the src has to point directly to 
the file, not just the directory.

armin

On 03/02/2009 19:50, Juliano Agostinho wrote:
 I having been problem with version 4.0, the frame BODY in the Internet 
 Explorer not appear pmapper but in the Mozilla its show.
 If I open a new window with http://gis/pmapper its appear in the frame BODY 
 and in new window.
 I think this problem is in the width and height frame BODY in the Internet 
 Explorer
 
 Are there anyone with the same problem?
 Whats happen, anyone knows ?
 
 In the Mozilla Firefoz works nice
 
 
 frameset cols=130,* frameborder=0
   frame name=MENU src=menu.html scrolling=no noresize
   frame name=body src=http://gis/pmapper;
   noframes
   body oncontextmenu=return false;
 
   pThis page use frames./p
 
   /body
   /noframes
 /frameset
 
 
 
 Atenciosamente, 
 JCPA 
  
  


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] P.MAPPER 4.0 overrides rendering setting in map file?

2009-02-02 Thread Armin Burger
On 02/02/2009 13:04, Vladimir Cvejanovic wrote:

 I'm not able to find docs for v4.

http://svn.pmapper.net/trac/wiki/DocQuickinstall
http://svn.pmapper.net/trac/wiki/DocManual
http://svn.pmapper.net/trac/wiki/XmlFileSettings
http://svn.pmapper.net/trac/wiki/DocJsSettings
http://svn.pmapper.net/trac/wiki/DocAdvancedJsSettings

or just

http://www.google.it/search?q=p.mapper+documentation

no comments... ;-)



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] PM 4.1 search

2009-01-29 Thread Armin Burger
On 29/01/2009 09:02, SeUr2000 wrote:
 I all,
 on version 3.1 I have modified function submitSearch
 on pmquery.js for to open a list of options for research.
 
 on version 4.1 I have tried to replicate the function submitSearch in
 pm.search.js but this is not no sign of response and the alert() not
 function.
 
 perhaps there is another place where I have to watch?
 
 thanks
 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 

To directly modify the JS sources (not recommended though...) you have 
to define the path to your javascript directory in config.xml as 
'javascript/src', otherwise the 'compressed' files are used (pm_cjs.js).

The call to this function from most places would probably also have to 
be PM.Query.submitSearch() since in v4 nearly all JS functions are valid 
only in their namespace context.

If you want to replace the default function with your own I'd recommend 
placing it in custom.js under your config and put it inside the PM.Query 
namespace, like


$.extend(PM.Query,
 submitSearch: function() {
... your code ...
 }
);  


armin

PS: p.mapper is currently not that advanced, just 4.0 beta and not yet 
at 4.1 ;-)

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Attribute query against ODBC MS Access

2009-01-28 Thread Armin Burger
It's not a question to identify if ODBC is used or not, but if *MS
Access* is the backend ODBC source. Real databases understand correct
SQL via ODBC and not the crude SQL/VBA mix MS defines ;-)

armin

On Wed, Jan 28, 2009 at 8:33 AM,  dejan.gam...@pula.hr wrote:
 Hi,

 I have solved the problem by using UCASE instead of UPPER in search.php
 (in getSearchParamsXY_DB function). It works fine, only it is not a
 generic solution that could identify if odbc is being used or not

 regards, dejan

 dejan.gam...@pula.hr wrote on 28.01.2009 08:02:09:

 Hi,

 I am using p.mapper version 3.2 on Windows XP machine.

 I have successfully displayed points coming from MS Access with two
 spatial columns, using XY layer. Attributes from the same table are
 correctly displayed too, using Info button.

 The problem is the attribute query that somehow doesn't work because of
 incorrect sql code.

 The map file part is:

 LAYER
   NAME  krk
   TYPE POINT
   METADATA
 DESCRIPTION KC
 LAYER_ENCODING WINDOWS-1250
 XYLAYER_PROPERTIES  odbc://'':''/localh...@krk||baza||x,y,0
 RESULT_FIELDS PREZIME,IME
 RESULT_HEADERS Prezime, Ime
   END  # Metadata
   CLASS
 Name 'Kc broj'
 COLOR 0 0 0
 SYMBOL 'circle'
 SIZE 10
 TEMPLATE void
   END
 END

 The search.xml part is:

 searchitem name=ime description=Ime
 layer type=xy name=krk
 field type=s name=IME description=Ime  wildcard=0
 /
 /layer
 /searchitem

 And the error.log is:

 [28-Jan-2009 07:52:03] = P.MAPPER: DB ERROR =
 Standard Message:   DB Error: syntax error
 DBMS/Debug Message: SELECT x, y, PREZIME,IME FROM baza  WHERE UPPER(IME)

 LIKE '%ROB%'  [nativecode=37000 [Microsoft][ODBC Microsoft Access
 Driver]
 Undefined function 'UPPER' in expression.]

 I have seen a similar post and I suppose I have to somehow change the
 UPPER to UCASE.

 Can it be done in a simple way?

 thanks and regards

 dejan

 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Search OGR layer

2009-01-27 Thread Armin Burger
and whats's the problem with your settings? does your listed search 
config not work with map info files? do you get errors, no results? I 
converted the cities1eu shapefile from the demo data to tab format 
and everything works fine as with it in shapefile format.

armin

On 27/01/2009 12:36, Juliano Agostinho wrote:
 
 Hi,
 
 I have many layers with OGR connection but i dont know how config the search 
 file.
 
 MAPFILE :
 
 LAYER
 NAME City
 MAXSCALE 8000
  TYPE POLYGON
  STATUS ON
  CONNECTIONTYPE OGR
  CONNECTION City.TAB
  STYLEITEM AUTO
 CLASS
 Name City
 END
 METADATA
  DESCRIPTION City
  RESULT_FIELDS NAME
  RESULT_HEADERS Name
  RESULT_HYPERLINK Name
  LAYER_ENCODING UTF-8
  ows_title  City
 END
 END
 
 Search file (XML):
 
 searchitem name=City description=City
 layer type=shape name=City
 field type=s name=NAME description=Name  wildcard=0 /
 /layer
 /searchitem
 
 I want search in OGR LAYER.
 I dont want convert TAB to SHP, anyone have one suggestion ?
 THX
 
 _
 Receba GRÁTIS as mensagens do Messenger no seu celular quando você estiver 
 offline. Conheça  o MSN Mobile!
 http://mobile.live.com/signup/signup2.aspx?lc=pt-br
 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


[pmapper-users] p.mapper 4.0 beta1 available

2009-01-20 Thread Armin Burger
Folks

I have uploaded a first beta version of the new p.mapper. It's named to 
v4 since quite a lot changes make it not very much backward compatible 
with older configurations, so the new major version should also reflect 
this. Layout core has changed and Javascript libraries have been 
completely rewritten.

To facilitate migrating existing configs (mainly confi.ini, 
php_config.php and search.xml) to the new single XML file, I created 
small script, downloadable from here:

http://svn.pmapper.net/trac/browser/pmapper/trunk/utils/ini2xml.php?format=txt

run it like
   php ini2xml.php /path/to/your/config_xyz.ini

It creates a config_xyz.xml at the same location as the ini file.

I updated also some main parts of the docs on Trac/wiki to mention the 
new settings. Some parts of older settings, like some legend/toc 
settings might be missing but they will be added sooner or later.

pm4beta1 can be downloaded as standard and MS4W package from 
sourceforge, debian/ubuntu packages from the normal apt source path. 
Demos are available as
   http://www.pmapper.net/demo/pmapper-dev/map.phtml
or
   http://www.pmapper.net/demo/pmapper-dev/map-plain-layout.phtml

Folks who provided translations to other languages than EN, DE and IT 
are welcome to check missing translations and report them back. For the 
ones interested there's also an online tool available to update the 
translations, send me a mail off-list if you're interested in updating 
the locales.

Best regards

Armin

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Spatial query for all layers in mapfile

2009-01-13 Thread Armin Burger
On 13/01/2009 09:23, Jamie wrote:
 Hello list,
 I have about 150 layers (SHP) in my mapfile. The basic layer is a cadastral 
 map. The others are technical infrastructure, environmental thematic and so 
 on. Now I would like to make a spatial query, where input should be a number 
 of parcel from cadastral layer and result will give a list of all entities 
 from all 149 layers which intersects the selected parcel.
 Is it at all possible? 
 Any idea? 
 Jamie
 
 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 

It's technically possible if you programm the logic for it. There is a 
Mapscript method queryByShape or so (and some GEOS related stuff too). 
If it's really feasible I don't know, depends how long you can wait for 
a result to be returned...  How you achieve to have 150 thematic layers 
is a mystery for me. ;-)

armin



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Query result

2009-01-10 Thread Armin Burger
The result is as you noticed transfered as JSON string. The description 
of the format and a better eradable sample output is available from the file

incphp/query/json_query_doc.txt

This should allow you to structure the code in the way you want by 
defining you custom Javascript function for it. Have a look at the the 
jQuery site and the available plugins. There are for sure various tab 
plugins available from small/simple to big/fully-featured.

When I will find some time I might have a quick look how to achieve 
this, shouldn't be too complicated. You could create a ticket on the pm 
Trac as enhancement request, so it will not get lost and I can remember it.

Armin

On 09/01/2009 22:05, Nahum Castro wrote:
 I Want to format the results from a query presented on a dynwin.
 
 What I want to achive is a result page with tabs for every layer and
 pagination on the results, i have found thar x_info.php produces the
 results in the form:
 
 
 {'mode':'query', 'queryResult':[ [
 
 {name: regiones, description: regiones, header:
 [@,gid,regsdsh,count], values: [ [{shplink:
 [regiones,2,220882.68718598+2290308.2647369+348680.86685145+2418184.0280652]},
 2, 2, 5]]} ,
 
 {name: municipios, description: municipios, header:
 [@,gid,mun,nombre,marginacion,region], values: [
 [{shplink: 
 [municipios,17,221306.16622011+2338173.7855666+311003.62288478+2417760.5489982]},
 17, 030, San Felipe, A, 2]]} ,
 
 {name: localidades, description: localidades, header:
 [@,gid,nombre,municipio,poblacion_total,poblacion_60_an_mas,hablantes_l_indigena,hacinamiento,promedio_escolar,marginacion],
 values: [ [{shplink:
 [localidades,6292,242716.49211654+2341280.6411738+262716.49211654+2361280.6411738]},
 6292, Las Avispas, San Felipe, 57, 1, 0, 2.04, 3.1,
 Muy alto]]}
 
 What I need to know to modify the code so i can show regiones,
 municipios and localidades layers on diferent tabs and paginate the
 results?
 I think this code uses json
 
 Some times i get a lot of rows and the result page becomes very large.
 
 Thanks.
 
 --
 Nahum Castro González
 León, Guanajuato, México
 
 --
 Check out the new SourceForge.net Marketplace.
 It is the best place to buy or sell services for
 just about anything Open Source.
 http://p.sf.net/sfu/Xq1LFB
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] can't get hyperlink to work

2009-01-10 Thread Armin Burger
On 10/01/2009 17:47, Aigars V wrote:
 Hi.
 
 I'm new with p.mapper.
 
 I add my own layer in pmapper_demodata, I get it to appear in TOC and map
 window, so far all is great.
 
 
 Now I want to get my hyperlink to work in Result window with my layer,
 
 I add RESULT_HYPERLINK ID2 to pmapper_demo.map file.
 
 I tried to change custom.js for my layer and hyperlik, but it doesn't work.
  I  notice that even if I remove custom.js from javascript folder demodata
 hyperlink works without any problem it means that custom.js dont work and it
 gets
 this wikipedia script from another file (pm_cjs.js).
 
 how to get custom.js to work ?
 --
 Check out the new SourceForge.net Marketplace.
 It is the best place to buy or sell services for
 just about anything Open Source.
 http://p.sf.net/sfu/Xq1LFB
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 

Place the custom.js file eith your modifications in your config 
directory. Check the source output of map.phtml in your browser 
(right-click/'View Page Source' in FF) and you can see which JS files 
are loaded.

armin

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] How to catch values from mapextent, layers opened and so on...

2008-12-16 Thread Armin Burger
this should be mainly a 1-liner of Javascript passing the session ID and 
the desired language, like

a href=javascript:reloadMap('it')Load IT/a
a href=javascript:reloadMap('de')Load DE/a

with

function reloadMap(language) {
location = location.href.split('?')[0] + '?' + SID + 'language=' + 
language;
}

There might be more elegant solutions but this should do it. Often used 
JS variables are visible if you inspect the produced HTML source (and 
Firebug might show them all).

armin

On 16/12/2008 03:38, Gustavo C. Boselli wrote:
 Dear users, 
 I am using pmapper 3.2.0 and want to know how to get in a variable values 
 from map extent, url, language and config that are calculated for the local 
 variable linkhref (current_maplink) in the pm_cjs.js file.
 
 The purpose is being able to open the viewer in a different languaje
 but conserving some properties (layers opened, map extent,
 configuration) and only changing the language and  the application
 (for example from http://localhost/App1_en to http://localhost/App1_fr). 
 To do that I assume it is neccesary to get the parameters to open a new 
 browser in a variable and make the appropriate changes to open the viewer 
 properly. 
 
 Is the source (https...js) an ajax script? i tried creating a javascript 
 function inside the pm_cjs file, and modifying the string linkhref adding for 
 example: linkhref+'language=fr' 
 
 
 Gustavo C. Boselli
 
 E-mail: gb1...@yahoo.com
 
 
   
 --
 SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
 The future of the web can't happen without you.  Join us at MIX09 to help
 pave the way to the Next Web now. Learn more and register at
 http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Variable Substitution

2008-12-14 Thread Armin Burger
run-time substitution is CGI only,
see http://mapserver.gis.umn.edu/docs/howto/runsub

In Mapscript there are more flexible ways to achieve this. But you have 
to program it with Javascript and the Mapscript language.

Armin


On 13/12/2008 17:45, leandro leandro wrote:
 Hello all,
 
 I´m tring to use mapserver variable substitution (
 http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub) and it
 works using cgi mapserv but I can't figure out how to use in pmapper.
 
 Is it possible to pass variables to map file in the url using pmapper?
 
 For example: I want to pass the variable newpoint in the url and use it in
 the query string in mysql
 
 MAP FILE:
  LAYER
 NAME testpoint
 TYPE POINT
 STATUS DEFAULT
 CONNECTIONTYPE OGR
 CONNECTION 
   OGRVRTDataSource
   OGRVRTLayer name='mydata'
 
  
 SrcDataSourceMYSQL:dbname,user=,password=,host=localhost,port=3306,tables=position/SrcDataSource
 
  SrcSQL
  select  point, lat, lon from  position where
 point='%newpoint%';
  /SrcSQL
  GeometryTypewkbPoint/GeometryType
  GeometryField encoding='PointFromColumns' x='lon' y='lat'/
   /OGRVRTLayer
 /OGRVRTDataSource
  DATA mydata
  LABELITEM point
  ...
   END # Layer
 
 
 Using cgi mapserv:
 http://localhost/cgi-bin/mapserv.exe?map=mymap.mapmode=mapnewpoint=point-test1
 Using pmapper:
 http://localhost/pmapper_test/map.phtml?newpoint=point-test1
 
 In pmapper I dont have any error in the logs, the map is drawn (other
 layers) but the point is not showed.
 
 If I put a fixed value in the query string, instead of using variables , it
 works ok:
  SrcSQL
  select  point, lat, lon from  position where
 point='point-test1';
  /SrcSQL
 Thanks
 Leandro
 --
 SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
 The future of the web can't happen without you.  Join us at MIX09 to help
 pave the way to the Next Web now. Learn more and register at
 http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Help needed with Load Balancing

2008-12-10 Thread Armin Burger
On 10/12/2008 07:41, Geografisches Informationssystem wrote:
 Hello,
 are there any experiences with pmapper and load-balancing or nlb (Apache 
 mod_proxy_balancer)?
 I would like to realize a NLB with 2 pmapper  installations (3.x).
 I switched the session handling to database (PostGres). Each server alone 
 works ok, but if I use it with the Apache-internal NLB, the applications 
 won't work, then I get only one time the initial page but no zooming or 
 moving nor changing layers.
 Greets
 Guido

It's the usual thing: it's impossible to say anything about the problem 
if you do not add the error logs of PHP/Javascript. One quick guess is 
that the path to the produced map image file could be pointing to the 
wrong server (depending if you have sticky sessions or not).

At work we are using a piece of p.mapper with sessions in PG and Apache 
proxy/balancer. The tmp dir for the produced images is on an NFS network 
mount, so it will be found by both servers. If this is the problem in 
your case you can also just use NFS on one server mounting the tmp of 
the other (this way not requiring a network storage solution).

armin


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] next p.mapper proposal from ja

2008-12-10 Thread Armin Burger
On 10/12/2008 14:05, TTO wrote:

 
 3) Integration
 I don't have a clue what you mean with that...
 sorry.
 For instance, print.xml is customized in the print of pdf in actual work.
 It is search.xml in the retrieval.
 In RESULT_HYPERLINK, pm_cjs.js.
 After that, config.ini and php_config.php.
 Two or more files will be customized.
 I did not think that it made this one file if possible.
 

p.mapper started years ago with one small ini file. Due to more 
functionality and more parameters definable via a configuration (instead 
of fix code) the complexity has been growing noticeably. An ini file was 
too limited and so a PHP and a JS file were added. Defining the search 
as XML is also related to the increased possibilities. I don't see much 
possibility to do this in another way. The printing was before static 
HTML, so the current situation did not change that much.

The idea was to have more often modified values in the ini and more 
complex in the php/js_config. The only way I see would be to drop the 
ini file and put it into XML. On the other hand I find an ini file quite 
handy compared to XML. It might be possible to merge PHP and JS file.

The next major release will probably have some more fundamental changes 
in the whole layout. The current was always a kind of workaround that I 
never liked that much. One could use this opportunity to streamline some 
settings. Currently I'm mainly thinking about more consistent naming of 
parameters (it's a historical grown mix of everything ;-)). But concrete 
suggestions and examples of alternatives are welcome.

It would also help if more users were willing to contribute to the wiki 
documentation. Very few are doing so. I myself do not need any 
documentation and can very well live with the current configuration files.

armin


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] next p.mapper proposal from ja

2008-12-09 Thread Armin Burger
On 09/12/2008 15:09, TTO wrote:
 Hi all.
 
 # I cannot speak, write and read English well.
 
 Thank you for developing work.
 
 It uses it in Japanese, and it wants to describe a little inconvenient
 point, and to
 help some.
 It is likely to be able to help possibly.
 
 1) XLS Export
 I want you to shift to PHPExcel from SpreadSheet_Excel _Writer and OLE.
 My environment does for OLE not to operate by 2007 versions by being.
 (The Excel of Japan should use mb_string_encoding for the Shift+JIS
 encode.)

If somebody wants to impment the class for XSLX he/she is welcome. 
Though the UTF-8 support for SpreadSheet_Excel _Writer does not really 
work I want to keep this since Excel2007 format is just understood by 
newer software versions (Latin1 works fine...). So just somebody needed 
to use the current XSL code and modify/add the few lines for XSLX.

It's also possible to create HTML and tell the browser that it receives 
an Excel file, if you click on 'open with...' it loads the HTML into 
Excel. Same is true for MS Word.

 
 2) Version of TCPDF
 I want to use it in the Multibyte String ..becoming it.. environment
 though it was also in the mailing list.
 (May be 4.x series  full support.)

Last time I tried TCPDF 4.x the produced output for larger legends 
created corrupted PDF. Since this is difficult to debug I gave up and 
kept at the 3.x. Just replace the 3 with 4 for testing will need only 
few modifications to the beginning of tcpdf.php, so you could try it 
yourself (I think I unfortunately threw away the adapted one).

 
 3) Integration
 Integration of configuration files such as print.xml ,search.xml other.
 (fonts...embarrassed.)

I don't have a clue what you mean with that...

 
 4) Is this explanation answered correctly? (var pmExportFormatList)
 http://svn.pmapper.net/trac/wiki/AvailablePlugins
 I made it to turning off with export.js.
 
 Which is the priority level?

if nothing is defined in the js_config.php then default values are taken 
in export.js

 
 --
 Takashi Ota
 
 --
 SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
 The future of the web can't happen without you.  Join us at MIX09 to help
 pave the way to the Next Web now. Learn more and register at
 http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Google Maps layer

2008-11-19 Thread Armin Burger
you could use Openlayers to overlay your data over google maps.

A low resolution satellite image (~250 m) is available for download as 
Blue Marble from the Nasa (world coverage), or a medium resolution (30 
m) from
http://geotorrent.org/details.php?id=72

armin

On 18/11/2008 23:53, Gabe wrote:
 Hi everyone
 
  
 
 I have a requirement to provide a web mapping app for use in Swaziland and I
 have had a hard time finding any decent background data to display.  
 
  
 
 Google maps has the same Lo-Fi vector data that I have but they have a
 reasonable satellite image.
 
  
 
 I have considered (but not implemented) getting the googlemaps image as a
 backdrop to my map and then just request a new backdrop when the extent
 changes.
 
  
 
 Im just wondering if anyone has done anything similar or has some thoughts
 about this - or if anyone knows of some WMS server that covers southern
 Africa.
 
  
 
 Thanks in Advance
 
  
 
 Gabe
 
  
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] How do zoom in on a polygon?

2008-11-19 Thread Armin Burger
On 19/11/2008 16:46, Leonardo Rodriguez Silva wrote:
 Thanks for your help¡¡
 
 I realize an application in php, and need to integrate this application with
 pmapper.
 
 
 Exactly I am searching a function that allows to send a parameter , And that
 allows to do zoom
 
 For example a query like '
 *operation=query*layername=MyLayer*layerType=shape*query = [code] LIKE 12345
 ';
 And that this function realizes a zoom on the polygon or entity that
 corresponds with this condition.
 
 Which is this the function?
 
 Thank you
 
 
 And excuse me for my bad english.
 
 
 Thanks.
 

just check the manual on the pm wiki.

armin

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] How measure in meters?

2008-11-18 Thread Armin Burger
you cannot correctly measure in m when you projection is lat/lon if
you do not use at least an approximation function, something like
'Distance on ellipsoid'.

You could do a quire coarse calculation applying a factor in the
config that converts from degrees to m, it will be ok for N-N but less
accurate for E-W (unless you're close to the equator).  1 degree
minute (arcminute) corresponds to 1 nautical mile (at the equator, or
in N-S direction) , see
http://en.wikipedia.org/wiki/Nautical_mile
 so you can calculate your factor from this correlation.

After you set up this solution, please insert the description in the
pmapper Wiki FAQ since every now and then someone comes up with a
similar question.

armin

On Tue, Nov 18, 2008 at 1:02 AM, Leonardo Rodriguez Silva
[EMAIL PROTECTED] wrote:
 Hi:

 I am using geographical coordinates in WGS84. (Degrees, minutes and seconds)

 I want to modify the file js_config.php, to use the button of measurement,
 and to measure in meters.

 Var pmMeasureUnits = {distance:  [m] , area:  [m ²] , factor:1};


  But Pmapper does not realize the measurement correctly with factor=1.


 What is the variable factor?... What means this variable ??


 Thanks, and  excuseme for my bad english¡¡¡
 --
 lerods
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Using FPDI with p.mapper TCPDF

2008-11-14 Thread Armin Burger
I tried to use TCPDF 4 instead of the 3.x I placed under p.mapper dev.
It worked in most cases but for a layer with lots of classes the PDF
print created an unvalid PDF, without any chance to know where it
failed. With TCPDF 3 it worked fine however.

armin


On Fri, Nov 14, 2008 at 9:58 AM,  [EMAIL PROTECTED] wrote:

 Thanks Armin, you made me happy for the end of the week :-)

 I have successfully used your newest printpdf.php with the newest TCPDF
 version 4.2.009. Now I have to try using FPDI with all this ... I hope I'll
 be able to do it alone

 regards, dejan

 Armin Burger [EMAIL PROTECTED] wrote on 13.11.2008 21:58:14:

 For the actual dev version I replaced the odler TCPDF with a newer
 version (something 3.x). It worked, I just noticed some offset of the
 text towards the legend icons in the printed legend. I haven't tried to
 identify why. Maybe it's just a small adjustment necessary. So you could
 use a newer version and try your luck.

 AFAIR it was necessary to modify 1 or 2 entries in the config for TCPDF
 to work without absolute paths. Just compare the original and my
 modified one.

 Armin

 On 13/11/2008 11:18, [EMAIL PROTECTED] wrote:
  I have tried using the newest TCPDF version instead of p.mapper one and
  it
  works!
 
  Now, do I have to include this new TCPDF version in p.mapper? Can I do
  it
  at all? Will p.mapper support this and which changes have to be done?
 
  regards, dejan
 
  [EMAIL PROTECTED] wrote on 13.11.2008 11:02:14:
 
  Hi,
 
  The recent version of FPDI supports TCPDF. So I have tried the
  following,
  just for the test:
 
  - downloaded FPDI-1.2.1 and FPDF TPL-1.1.2
  - put everything to an example web accessible folder, together with all
  the content from pmapper/incphp/print folder
  - made a test php file like this:
 
  ?php
  require_once('tcpdf.php');
  require_once('fpdi.php');
 
  // initiate FPDI
  $pdf = new FPDI();
 
  // add a page
  $pdf-AddPage();
  // set the sourcefile
  $pdf-setSourceFile('PDFDocument.pdf');
  // import page 1
  $tplIdx = $pdf-importPage(1);
  // use the imported page and place it at point 10,10 with a width of
  100
 
  mm
  $pdf-useTemplate($tplIdx, 10, 10, 100);
  // now write some text above the imported page
  $pdf-SetFont('arial');
  $pdf-SetTextColor(255,0,0);
  $pdf-SetXY(25, 25);
  $pdf-Write(0, This is just a simple text);
 
  $pdf-Output('newpdf.pdf', 'D');
 
  But when I try to run it, I get FPDF error: Cannot access protected
  property FPDI:$fontlist / Undefined property: FPDI::$fontlist error
 
  Do I have to try with another (newer) TCPDF version? Do I have to
  modify
 
  something in p.mapper TCPDF version?
 
  thanks very much
 
  regards, dejan
 
 
  -
  This SF.Net email is sponsored by the Moblin Your Move Developer's
  challenge
  Build the coolest Linux based applications with Moblin SDK  win great
  prizes
  Grand prize is a trip for two to an Open Source event anywhere in the
  world
  http://moblin-contest.org/redirect.php?banner_id=100url=/
  ___
  pmapper-users mailing list
  pmapper-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/pmapper-users
 
  -
  This SF.Net email is sponsored by the Moblin Your Move
  Developer'schallenge
  Build the coolest Linux based applications with Moblin SDK  win
 great prizes
  Grand prize is a trip for two to an Open Source event anywhere in the
  world
  http://moblin-contest.org/redirect.php?banner_id=100url=/
  ___
  pmapper-users mailing list
  pmapper-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/pmapper-users
 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Using FPDI with p.mapper TCPDF

2008-11-13 Thread Armin Burger
As a quick patch, I put a modified pdfprint.php on the SVN, so it should 
work better now with newer TCPDF

http://svn.pmapper.net/trac/browser/pmapper/trunk/incphp/print/pdfprint.php?format=txt

armin



On 13/11/2008 21:58, Armin Burger wrote:
 For the actual dev version I replaced the odler TCPDF with a newer 
 version (something 3.x). It worked, I just noticed some offset of the 
 text towards the legend icons in the printed legend. I haven't tried to 
 identify why. Maybe it's just a small adjustment necessary. So you could 
 use a newer version and try your luck.
 
 AFAIR it was necessary to modify 1 or 2 entries in the config for TCPDF 
 to work without absolute paths. Just compare the original and my 
 modified one.
 
 Armin
 
 On 13/11/2008 11:18, [EMAIL PROTECTED] wrote:
 I have tried using the newest TCPDF version instead of p.mapper one and it 
 works!

 Now, do I have to include this new TCPDF version in p.mapper? Can I do it 
 at all? Will p.mapper support this and which changes have to be done?

 regards, dejan

 [EMAIL PROTECTED] wrote on 13.11.2008 11:02:14:

 Hi,

 The recent version of FPDI supports TCPDF. So I have tried the 
 following, 
 just for the test:

 - downloaded FPDI-1.2.1 and FPDF TPL-1.1.2
 - put everything to an example web accessible folder, together with all 
 the content from pmapper/incphp/print folder
 - made a test php file like this:

 ?php 
 require_once('tcpdf.php'); 
 require_once('fpdi.php'); 

 // initiate FPDI 
 $pdf = new FPDI(); 

 // add a page 
 $pdf-AddPage(); 
 // set the sourcefile 
 $pdf-setSourceFile('PDFDocument.pdf'); 
 // import page 1 
 $tplIdx = $pdf-importPage(1); 
 // use the imported page and place it at point 10,10 with a width of 100 
 mm 
 $pdf-useTemplate($tplIdx, 10, 10, 100); 
 // now write some text above the imported page 
 $pdf-SetFont('arial'); 
 $pdf-SetTextColor(255,0,0); 
 $pdf-SetXY(25, 25); 
 $pdf-Write(0, This is just a simple text); 

 $pdf-Output('newpdf.pdf', 'D'); 

 But when I try to run it, I get FPDF error: Cannot access protected 
 property FPDI:$fontlist / Undefined property: FPDI::$fontlist error

 Do I have to try with another (newer) TCPDF version? Do I have to modify 
 something in p.mapper TCPDF version?

 thanks very much

 regards, dejan

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's 
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great 
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the 
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

 
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Attribute search error - is this correct behaviour?

2008-10-30 Thread Armin Burger
You can try to modify this behaviour in toc.js. But if you use
categories then you will have overlapping functions to enable/disable
the checkbox and you need to figure out which logic you want, and then
modify everything accordingly.

armin

On Thu, Oct 30, 2008 at 8:06 AM,  [EMAIL PROTECTED] wrote:

 I agree with you Armin. I really don't need this necessarily.

 What I wanted - I have a point layer with 27.000 points labeled by a
 cadastrial number. When I try to turn on this layer at full extent, it
 freezes and never ends. So I put MAXSCALE for this layer and everything
 works ok. The layer description in TOC is dimmed when the layer is not
 shown, which is OK, but the check box next to description is not. So it was
 much simpler for me to just hide this layer instead of trying to figure out
 how to disable/dim the checkbox too :-)

 Do you have a quick solution for this?

 thanks very much

 regards, dejan

 Armin Burger [EMAIL PROTECTED] wrote on 30.10.2008 00:41:46:

 Layers that are not in the config.ini will very likely not work with
 various functions like queries since they are not referenced in the
 p.mapper layer and groups objects (thats different objects than pure
 Mapscript layers). Hence they produce errors when trying to read some
 specific attributes.

 What you mention is more a solution for always displaying annotations,
 north arrows, copyright notice, a permanent background raster layer, etc.

 I personally would find it a bit confusing seeing something on the map
 and in the query but not in the Toc/legend.

 armin

 On 29/10/2008 23:12, [EMAIL PROTECTED] wrote:
  Hi,
 
  I want to display a point layer (labeled by its attribute field) on the
  map, without showing it in TOC/legend. If I am correct, it can be done
  by
  setting the status of the layer to DEFAULT in map file and removing it
  from config.ini. Then it is drawn always.
 
  This works fine but doing attribute search by its attribute field
  returns
  error:
 
  [29-Oct-2008 22:55:27] PHP Fatal error:  Call to a member function
  getXYLayerProperties() on a non-object in
  C:\ms4w\apps\pmapper\pmapper-3.2.0\incphp\query\query.php on line 730
  [29-Oct-2008 22:55:27] PHP Stack trace:
  [29-Oct-2008 22:55:27] PHP   1. {main}()
  C:\ms4w\apps\pmapper\pmapper-3.2.0\incphp\xajax\x_info.php:0
  [29-Oct-2008 22:55:27] PHP   2. Query-q_processQuery()
  C:\ms4w\apps\pmapper\pmapper-3.2.0\incphp\xajax\x_info.php:44
  [29-Oct-2008 22:55:27] PHP   3. Query-q_execAttributeQuery()
  C:\ms4w\apps\pmapper\pmapper-3.2.0\incphp\query\query.php:94
 
  The question is - is this supposed to be so or can I do something to
  enable attribute search for this layer?
 
  thanks very much
 
  regards, dejan
 
  -
  This SF.Net email is sponsored by the Moblin Your Move
  Developer'schallenge
  Build the coolest Linux based applications with Moblin SDK  win
 great prizes
  Grand prize is a trip for two to an Open Source event anywhere in the
  world
  http://moblin-contest.org/redirect.php?banner_id=100url=/
  ___
  pmapper-users mailing list
  pmapper-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/pmapper-users
 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] pmapper+postgis

2008-10-30 Thread Armin Burger
http://svn.pmapper.net/trac/wiki/FaqDebugging


On 30/10/2008 19:12, rodabadia wrote:
 Hi
 
 How to test the connection to the database that is set to file map.
 
 I can not see the map in the map viewer pmapper, because it shows the
 animation that asks expect to load the map but this never appears. I believe
 the problem is that there is no connection to the database. 
 
 Someone can help me ...
 
 The connection to the database is this:
 
 LAYER 
NAME cities1eu_pg  
TYPE point 
CONNECTION user=postgres password=postgres dbname=gisdb_prue
 host=localhost
CONNECTIONTYPE POSTGIS  
DATA the_geom from (select * from cities1) AS foo USING UNIQUE
 geonameid using SRID=4326 
FILTER continent = 'Europe' AND population  20 
TOLERANCE 6 
TOLERANCEUNITS pixels 
LABELITEM asciiname 
LABELMAXSCALE 800 
TEMPLATE void 
PROJECTION 
  init=epsg:4326 
END 
METADATA  
  DESCRIPTION Cities PG 
  RESULT_FIELDS name, iso2_code, population, gtopo30 
  RESULT_HEADERS Name,Country,Population,Altitude 
  RESULT_HYPERLINK NAME 
  LAYER_ENCODING UTF-8 
  CATEGORY cat_admin 
  ows_title  cities1000 
END  # Metadata   
 
 I need to connect to the database urgent
 
 Thank you
 
 Rodrigo


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Reference map not shown

2008-10-29 Thread Armin Burger
You need to check the produced HTML output sent to the browser (right 
click - View Page Source) for the part with the reference map, there 
you'll see something like

img id=refMapImg  src=images/reference.png ...

and you can check if this relative file path is existing.

armin

On 29/10/2008 12:39, experimento escenario wrote:
 Hi
 First  as FAQ says:
 pmapper 3.2 - Windows XP
 
 I can´t make the reference map to be shown.
 I´ve looked up the pmapper *demodata*, and there is the reference.png from
 europe.
 I´ve adjust the extent and size of my minireferencemap
 *
 CODE:
 
 REFERENCE
   EXTENT 6488407 6712384 6492760 6716040 #6486934 6711721 6492973 6716179
   IMAGE ../../images/reference-plibres.png
   SIZE 199 138
   COLOR -1 -1 -1
   OUTLINECOLOR 255 0 0
 END  # Reference*
 
 My png it´s on images directory, but i can´t see it on pmapper.
 It draws the red square indicating the position.
 You can see it here (
 http://www.idesoft.com.ar/ftp/pmapper/error-referencemap.JPG )
 
 Any idea?
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Attribute search error - is this correct behaviour?

2008-10-29 Thread Armin Burger
Layers that are not in the config.ini will very likely not work with 
various functions like queries since they are not referenced in the 
p.mapper layer and groups objects (thats different objects than pure 
Mapscript layers). Hence they produce errors when trying to read some 
specific attributes.

What you mention is more a solution for always displaying annotations, 
north arrows, copyright notice, a permanent background raster layer, etc.

I personally would find it a bit confusing seeing something on the map 
and in the query but not in the Toc/legend.

armin

On 29/10/2008 23:12, [EMAIL PROTECTED] wrote:
 Hi,
 
 I want to display a point layer (labeled by its attribute field) on the 
 map, without showing it in TOC/legend. If I am correct, it can be done by 
 setting the status of the layer to DEFAULT in map file and removing it 
 from config.ini. Then it is drawn always.
 
 This works fine but doing attribute search by its attribute field returns 
 error:
 
 [29-Oct-2008 22:55:27] PHP Fatal error:  Call to a member function 
 getXYLayerProperties() on a non-object in 
 C:\ms4w\apps\pmapper\pmapper-3.2.0\incphp\query\query.php on line 730
 [29-Oct-2008 22:55:27] PHP Stack trace:
 [29-Oct-2008 22:55:27] PHP   1. {main}() 
 C:\ms4w\apps\pmapper\pmapper-3.2.0\incphp\xajax\x_info.php:0
 [29-Oct-2008 22:55:27] PHP   2. Query-q_processQuery() 
 C:\ms4w\apps\pmapper\pmapper-3.2.0\incphp\xajax\x_info.php:44
 [29-Oct-2008 22:55:27] PHP   3. Query-q_execAttributeQuery() 
 C:\ms4w\apps\pmapper\pmapper-3.2.0\incphp\query\query.php:94
 
 The question is - is this supposed to be so or can I do something to 
 enable attribute search for this layer?
 
 thanks very much
 
 regards, dejan
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Problem with starting p.mapper zoomed to a predefined extent

2008-10-23 Thread Armin Burger
Thats because you are very likely using cookies for PHP session 
variables. This is an every now and then upcoming issue on this list. 
Nobody however used the User Wiki to add something about this to the FAQ's.

See in the manual

http://svn.pmapper.net/trac/wiki/DocQuickinstall#PHP.INI

and then there below:

A recommended setting is also

session.use_cookies = 0


If for whatever reasons you need cookies for the session (that can also 
be disabled for just a single site if you use PHP as Apache module) then 
you can try to reset the session for pm 3.2 by adding
resetsession=Y
to the URL,

or for pm 3.3dev add
   resetsession=ALL

or just
   resetsession=GEOEXT

Armin

On 23/10/2008 17:00, David Mitchell wrote:
 I want to allow users of my web application to start p.mapper zoomed to
 a predefined extent which I have coded into a link.  The extent values
 are generated by the program code.
 
 e.g. a target=pmapper_window
 href=http://sasa-maps/map.phtml?dg=cities,townsme=24000,45990,25000,47
 599language=enconfig=defaultClick me/a
 
 This works perfectly - the first time.  Closing the pmapper window and
 selecting a link with a different extent opens the application again
 (the address bar show the correct link to the new extent) but the map
 displayed is the original one.   This is repeated until I close both the
 pmapper window and the browser window containing my application.
 Restarting the main application allows me to display a different map
 view.
 
 It appears that p.mapper's session memory is overriding the request for
 a new map.  Is there some way I can get round this?
 
 David
   
 
 Correspondents should note that all communications to or from the Scottish 
 Agricultural Science Agency may be automatically logged, monitored and/or 
 recorded for lawful purposes.
 
 The original of this email was scanned for viruses by the Government Secure 
 Intranet (GSi) virus scanning service. On leaving the GSi this email was 
 certified virus-free.
 
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Map vanishes after removing a raster layer

2008-10-20 Thread Armin Burger
do you have any knowledge about Mapserver and set up of map files? If 
not, try first to gain some knowledge there, otherwise you will very 
likely have not much fun with p.mapper. Test your map file with simple 
Mapserver-CGI tools or use the 'test_mapfile.phtml' script from the 
p.mapper /util directory.

In your case I guess you need to adapt the initial map extent in the map 
file. Or you specify an initial map extent via URL parameters as 
described in the p.mapper docs.

armin

On 20/10/2008 08:24, germana manca wrote:
 Good morning,
 I'm a beginner. I'm trying to modify a pmapper demo map and to adjust
 it to my shapefiles (already uploaded inside the pmapper-demo.map and
 I can see them clearly), but something is going wrong when I remove
 the two raster files from a pmapper demo map (jpl_wms_global_mosaic
 and europa_dem.jpg, having a huge mapexent that it doesn't fit
 perfectly for my shapefile. Actually I'm trying to visualize Sardinia.
 I could see it but of course very small), the map disappears from
 firefox, and the loading message shows up. I tried and tried several
 times to understand the reason, but no result (the error console show
 something like php.ini. I uploaded my raster files and if I remove
 them nothing happens. I use ogrinfo, gdalinfo, error console
 everything, but I'm not able to find a solution). My purpose is to
 eliminate the raster files and to keep mine.
 Any suggestion?
 Thanks,
 Germana
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] R: zoom to features from external application

2008-10-20 Thread Armin Burger
by following the descriptions of the docs

http://svn.pmapper.net/trac/wiki/DocManual#Zoomtopre-definedextent

   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

armin

On 20/10/2008 10:17, Maarten G wrote:
 Hello,
 
 In the demo it is not possible to zoom to whole europe again after the zoom
 to italy
 How can I make it possible to zoom out again?
 
 Maarten
 
 
 
 Armin Burger-2 wrote:
 all you need is to modify the function 'getMapInitURL()' in
 init/initmap.php to perform the query you need.

 For zooming to 2 countries you might be able to specify the full
 Mapserver query string in the URL with the default setting, but you
 need to know how to compose the query string, could be something like
'[NAME]'='Italy' OR '[NAME]'='Spain'
 one might need to encode some characters, never tried though.

 maybe you can do the same with 2 fields included, just read the MS
 docs about expressions/filters and try it, and check the PHP (and or
 JS) error log if it does not work.

 armin

 On Wed, Oct 8, 2008 at 10:42 AM, Leonardo L.O. Olivieri
 [EMAIL PROTECTED] wrote:
 Thanks for answer:

 I have other questions:

 1)  Is it possible to zoom on two countries ( ex Italy and Spain)?
 2 ) is it possible to zoom on a country like Italy and a city like
 Madrid( in other terms to zoom on features of two different layers)?

 Thanks in advance
 Leonardo



 -Messaggio originale-
 Da: Ivan Mincik [mailto:[EMAIL PROTECTED]
 Inviato: venerdì 26 settembre 2008 12.12
 A: pmapper-users@lists.sourceforge.net
 Oggetto: Re: [pmapper-users] zoom to features from external application

 In the pmapper's Live Demos page there is an example Extent from feature
 (countries, Italy), Italian.
 You can use  zoomLayer=countries[EMAIL PROTECTED]@[EMAIL PROTECTED]@1

 Ivan

 On Friday 26 September 2008 11:39, Leonardo L.O. Olivieri wrote:
 Hello,



 I have a database with river information and I have an application web
 used for browser database.



 From this application i  want zoom and highlight one or more features(
 using a shared key)

 on the shapefile (with river)  used in pmapper.



 Is it possible?



 Thanks in advance

 Leonardo



 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

 --
 Mgr. Ivan Minčík
 Gista s.r.o
 tel:. 0907 639 570
 email: [EMAIL PROTECTED]
 http://www.gista.sk, http://demo.gisplan.sk

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http

Re: [pmapper-users] Search XML with PostGIS

2008-10-17 Thread Armin Burger
Andreas

have a look here

http://svn.pmapper.net/trac/browser/pmapper/trunk/config/dev/search.xml

If you do not need things like options/suggest then the definition
should be quite straightforward:

searchitem name=cities_pg description=City PG
layer type=postgis name=cities1eu_pg
field type=s name=name description=City  wildcard=1 /
/layer
/searchitem

For options/suggest username/passwd need to be defined in the dsn like

dsn encoding=UTF-8pgsql://username:[EMAIL PROTECTED]/gisdb/dsn


armin


On Fri, Oct 17, 2008 at 9:23 AM, Andreas Haux
[EMAIL PROTECTED] wrote:
 Hi,

 p.mapper is great - and I am experimenting for quite a while but
 didn't found out how exactly to define a search funktion in the
 search.xml file using PostGIS; the examples show the connection
 without sending a username and password.

 e.g.:
 Database name ist testdb
 Tablename is testfile
 Username is testperson
 Password is testpassword

 and I would like to select all the geometries where the field NAME is
 searchstring

 Here is your example where I have tried to fill this informations in,
 but I failed - I would simply like to establish a connection but did
 not know how to handle username and password (since the XML file is
 open to the public I could/would not include it here):

 searchitem name=testsearch description=Only a test
 layer type=postgis name=testfile
 field type=s name=name description=City
 wildcard=2
 definition type=suggest connectiontype=db
 sort=asc minlength=1 dependfld=cmcncd
 dsn encoding=UTF-8pgsql://
 postgres:[EMAIL PROTECTED]/testdb/dsn
 sqlSELECT DISTINCT name FROM testtfile WHERE
 name ~* '^[search]' ORDER BY name/sql
 /definition
 /field
 /layer
 /searchitem

 As far as I understand I don't need the suggest type in my case
 instead of receiving the results immediately at the map. So the most
 simple example how to write a request with PostGIS would be appreciated!

 Thanks for your help!

 Regards
 Andreas

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Search XML with PostGIS

2008-10-17 Thread Armin Burger
Andreas

1. Check all the error logs (mainly PHP, but also Javascript)

2. set the debugging to value 3 and analyze the debug output. You should 
get the query strings sent to the database. Try to launch this query 
directly on the database via a generic DB client.

See the FAQ for more details
http://svn.pmapper.net/trac/wiki/FaqDebugging

Report any error you get, including some debugging info. Include the map 
file, etc. There's a whole bunch of things you need to do and analyze.

Armin

On 17/10/2008 15:46, Andreas Haux wrote:
 Armin,
 
 thanks for your feedback - and sorry for coming back with this issue.
 
 I have defined the XML as follows:
 
 ?xml version='1.0'?
 !-- ?xml-stylesheet href=style.xsl type=text/xsl ? --
 
 searchlist version=1.0
 
 dataroot$/dataroot
 
 searchitem name=pfarreien description=Pfarrei
 layer type=postgis name=pfarreien
 field type=s name=pfarrei description=Name  
 wildcard=1 /
 /layer
 /searchitem
 
 /searchlist
 
 
 - The layer name in the .map-file is pfarreien
 - The database connection is defined in the map file
 - The database is world, the table is bamberg_pfarreien; but this 
 seems not to be neccessary here?
 - The column of the table where the search shall took place is pfarrei
 
 Everytime I start a search I only see the working image in the top 
 right corner and nothing happens.
 
 After hours of testing - could you please have a look whether something 
 is wrong with the xml? Thanks!!
 
 Regards
 Andreas
 --
 screen  paper Werbeagentur GmbH
 Firmensitz: Martin-Luther-Straße 6, D-85354 Freising
 Telefon: +49-(0)8161-97 94-0
 Telefax: +49-(0)8161-97 94-23
 Registergericht: Freising, HRB 104 687
 Geschäftsführer: Andreas Haux
 http://www.screen-paper.de
 http://www.csite.de
 http://www.maps-on-demand.com
 http://www.mapshop-online.de
 --
 
 Disclaimer
 
 Der Inhalt dieser E- Mail ist ausschließlich für den bezeichneten 
 Adressaten bestimmt und enthält vertrauliche und/oder rechtlich 
 geschützte Informationen. Wenn diese E- Mail nicht an Sie persönlich 
 adressiert ist oder Sie die Vertretung sein sollten, so beachten Sie, 
 dass jede Form der Kenntnisnahme, Veröffentlichung, Vervielfältigung 
 oder die Weitergabe  des Inhalts dieser E- Mail unzulässig ist.
 
 This e-mail may contain confidential and/or privileged information. If 
 you are not the intended recipient (or have received this e-mail in 
 error) please notify the sender immediately and destroy this e-mail. Any 
 unauthorised copying, disclosure or distribution of the material in this 
 e-mail is strictly forbidden.
 
 
 
 Am 17.10.2008 um 12:50 schrieb Armin Burger:
 
 Andreas

 have a look here

 http://svn.pmapper.net/trac/browser/pmapper/trunk/config/dev/search.xml

 If you do not need things like options/suggest then the definition
 should be quite straightforward:

 searchitem name=cities_pg description=City PG
layer type=postgis name=cities1eu_pg
field type=s name=name description=City  wildcard=1 /
/layer
 /searchitem

 For options/suggest username/passwd need to be defined in the dsn like

 dsn encoding=UTF-8pgsql://username:[EMAIL PROTECTED]/gisdb/dsn


 armin


 On Fri, Oct 17, 2008 at 9:23 AM, Andreas Haux
 [EMAIL PROTECTED] wrote:
 Hi,

 p.mapper is great - and I am experimenting for quite a while but
 didn't found out how exactly to define a search funktion in the
 search.xml file using PostGIS; the examples show the connection
 without sending a username and password.

 e.g.:
 Database name ist testdb
 Tablename is testfile
 Username is testperson
 Password is testpassword

 and I would like to select all the geometries where the field NAME is
 searchstring

 Here is your example where I have tried to fill this informations in,
 but I failed - I would simply like to establish a connection but did
 not know how to handle username and password (since the XML file is
 open to the public I could/would not include it here):

searchitem name=testsearch description=Only a test
layer type=postgis name=testfile
field type=s name=name description=City
 wildcard=2
definition type=suggest connectiontype=db
 sort=asc minlength=1 dependfld=cmcncd
dsn encoding=UTF-8pgsql://
 postgres:[EMAIL PROTECTED]/testdb/dsn
sqlSELECT DISTINCT name FROM testtfile WHERE
 name ~* '^[search]' ORDER BY name/sql
/definition
/field
/layer
/searchitem

 As far as I understand I don't need the suggest type in my case
 instead of receiving the results immediately at the map. So the most
 simple example how to write a request with PostGIS would be appreciated!

 Thanks for your help!

 Regards
 Andreas

 - 

 This SF.Net email is sponsored

Re: [pmapper-users] Search XML with PostGIS

2008-10-17 Thread Armin Burger
see my mail to Andreas.

In your case in addition: make you life easier and put your join in a DB 
view and try using this view as DATA.

armin

On 17/10/2008 16:38, Marcello Benigno wrote:
 Hi Andreas and Armin,
 
 I have te *same problem* too. why it happens? I have defined the XML as
 follows:
 
 searchitem name=acudes_grupo description=Açudes
 layer type=postgis name=acudes
 field type=s name=ds_acude description=Nome do Açude
 wildcard=0 /
 /layer
 /searchitem
 
 and my layer:
 
 LAYER
 NAME 'acudes1'
 GROUP 'acudes_grupo'
 
 # POSTGIS #
 CONNECTIONTYPE postgis
 CONNECTION dbname=MYDB user=MYUSER host=MYHOST password=PASS
 DATA the_geom FROM
 (SELECT a.cd_acude AS oid , a.ds_acude, a.nm_anoconclusao,
 a.ds_riachobarrado, a.ds_tipobarragem, a.nm_capacidade,
 a.nm_areabaciahidrografica, a.nm_baciahidraulica, a.nm_vazaoregularizada,
 a.nm_extensaocoroamento,
 a.nm_larguracoroamento, a.nm_cotacoroamento, a.nm_alturamaxima,
 a.ds_tiposangradouro,
 a.nm_largurasangradouro, a.nm_laminamaximasangradouro, a.nm_cotasoleira,
 a.ds_tipotomadadagua, a.nm_diametrotomadadagua, a.nm_comprimentotomadadagua,
 
 a.ds_obs, cd_statusacude, a.fl_gerenciado, a.vl_valorestimado, a.the_geom AS
 the_geom,
 m.ds_municipio, b.ds_baciahidrografica
 FROM acudes a, municipio m, baciahidrografica b
 where a.cd_baciahidrografica = b.cd_baciahidrografica AND a.cd_municipio =
 m.cd_municipio AND cd_statusacude=1)
 as foo USING UNIQUE oid USING SRID=29184
 # END POSTGIS #
 TYPE Point
 TEMPLATE void
 TOLERANCE 20
 TOLERANCEUNITS pixels
 METADATA
 DESCRIPTION Açudes
 RESULT_FIELDS ds_acude, ds_municipio, ds_baciahidrografica,
 ds_riachobarrado, ds_tipobarragem, nm_capacidade, nm_areabaciahidrografica,
 nm_vazaoregularizada, oid
 RESULT_HEADERS Nome do Açude, Município, Bacia Hidrográfica, Rio Barrado,
 Tipo de Barragem, Capacidade (m3), Bacia Hidrográfica (ha), Vazão (m3/s),
 Detalhamento
 RESULT_HYPERLINK oid||Clique aqui para mais informações
 END  # Metadata
 
 LABELITEM 'ds_acude'
 LABELMINSCALE 100
 LABELMAXSCALE 160
 
 CLASS
 NAME 'Construído'
 LABEL
 TYPE TRUETYPE
 FONT FreeSans
 POSITION UR
 BUFFER 5
 SIZE 8
 COLOR 0 0 255
 OUTLINECOLOR 255 255 255
 ANTIALIAS TRUE
 FORCE TRUE
 END #LABEL
 
 STYLE
 SYMBOL 'triangle'
 SIZE 12
 COLOR 0 0 255
 OUTLINECOLOR 0 0 0
 END #STYLE
 END #CLASS
 END #LAYER
 #-
 
 2008/10/17 Andreas Haux [EMAIL PROTECTED]
 
 Armin,

 thanks for your feedback - and sorry for coming back with this issue.

 I have defined the XML as follows:

 ?xml version='1.0'?
 !-- ?xml-stylesheet href=style.xsl type=text/xsl ? --

 searchlist version=1.0

dataroot$/dataroot

searchitem name=pfarreien description=Pfarrei
 layer type=postgis name=pfarreien
 field type=s name=pfarrei description=Name
 wildcard=1 /
 /layer
 /searchitem

 /searchlist


 - The layer name in the .map-file is pfarreien
 - The database connection is defined in the map file
 - The database is world, the table is bamberg_pfarreien; but this
 seems not to be neccessary here?
 - The column of the table where the search shall took place is pfarrei

 Everytime I start a search I only see the working image in the top
 right corner and nothing happens.

 After hours of testing - could you please have a look whether
 something is wrong with the xml? Thanks!!

 Regards
 Andreas
 --
 screen  paper Werbeagentur GmbH
 Firmensitz: Martin-Luther-Straße 6, D-85354 Freising
 Telefon: +49-(0)8161-97 94-0
 Telefax: +49-(0)8161-97 94-23
 Registergericht: Freising, HRB 104 687
 Geschäftsführer: Andreas Haux
 http://www.screen-paper.de
 http://www.csite.de
 http://www.maps-on-demand.com
 http://www.mapshop-online.de
 --

 Disclaimer

 Der Inhalt dieser E- Mail ist ausschließlich für den bezeichneten
 Adressaten bestimmt und enthält vertrauliche und/oder rechtlich
 geschützte Informationen. Wenn diese E- Mail nicht an Sie persönlich
 adressiert ist oder Sie die Vertretung sein sollten, so beachten Sie,
 dass jede Form der Kenntnisnahme, Veröffentlichung, Vervielfältigung
 oder die Weitergabe  des Inhalts dieser E- Mail unzulässig ist.

 This e-mail may contain confidential and/or privileged information. If
 you are not the intended recipient (or have received this e-mail in
 error) please notify the sender immediately and destroy this e-mail.
 Any unauthorised copying, disclosure or distribution of the material
 in this e-mail is strictly forbidden.



 Am 17.10.2008 um 12:50 schrieb Armin Burger:

 Andreas

 have a look here

 http://svn.pmapper.net/trac/browser/pmapper/trunk/config/dev/
 search.xml

 If you do not need things like options/suggest then the definition
 should be quite straightforward:

 searchitem name=cities_pg description=City PG
layer type=postgis

Re: [pmapper-users] Disable mouse wheel

2008-10-08 Thread Armin Burger
it's defined in zoombox.js function omw(e)

armin

On Wed, Oct 8, 2008 at 10:12 AM, Bayu Kurniawan R [EMAIL PROTECTED] wrote:
 How to disable mouse wheel in pmapper so the map won't zoom in and zoom out
 when i scrool the mouse wheel
 Thanks

 --
 Bayu Kurniawan R
 GIS Specialist
 http://bkurniawan.com
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] R: zoom to features from external application

2008-10-08 Thread Armin Burger
all you need is to modify the function 'getMapInitURL()' in
init/initmap.php to perform the query you need.

For zooming to 2 countries you might be able to specify the full
Mapserver query string in the URL with the default setting, but you
need to know how to compose the query string, could be something like
   '[NAME]'='Italy' OR '[NAME]'='Spain'
one might need to encode some characters, never tried though.

maybe you can do the same with 2 fields included, just read the MS
docs about expressions/filters and try it, and check the PHP (and or
JS) error log if it does not work.

armin

On Wed, Oct 8, 2008 at 10:42 AM, Leonardo L.O. Olivieri
[EMAIL PROTECTED] wrote:
 Thanks for answer:

 I have other questions:

 1)  Is it possible to zoom on two countries ( ex Italy and Spain)?
 2 ) is it possible to zoom on a country like Italy and a city like Madrid( in 
 other terms to zoom on features of two different layers)?

 Thanks in advance
 Leonardo



 -Messaggio originale-
 Da: Ivan Mincik [mailto:[EMAIL PROTECTED]
 Inviato: venerdì 26 settembre 2008 12.12
 A: pmapper-users@lists.sourceforge.net
 Oggetto: Re: [pmapper-users] zoom to features from external application

 In the pmapper's Live Demos page there is an example Extent from feature 
 (countries, Italy), Italian.
 You can use  zoomLayer=countries[EMAIL PROTECTED]@[EMAIL PROTECTED]@1

 Ivan

 On Friday 26 September 2008 11:39, Leonardo L.O. Olivieri wrote:
 Hello,



 I have a database with river information and I have an application web
 used for browser database.



 From this application i  want zoom and highlight one or more features(
 using a shared key)

 on the shapefile (with river)  used in pmapper.



 Is it possible?



 Thanks in advance

 Leonardo



 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


 --
 Mgr. Ivan Minčík
 Gista s.r.o
 tel:. 0907 639 570
 email: [EMAIL PROTECTED]
 http://www.gista.sk, http://demo.gisplan.sk

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] showing coordinates

2008-10-08 Thread Armin Burger
On 08/10/2008 18:05, Rony (PMPG) wrote:
 Hi Armin, hi all,
 
 I would like to change the symbols X  Y, in the left bottom of mpa,  to 
 N  E  symbols when showing the coordinates.
 
 Where is the right place to take the change?
 
 Thanks in advance,
 
 Rony
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 

zoombox.js, search for 'status'

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] showing coordinates

2008-10-08 Thread Armin Burger
where is your file zoombox.js? under /javascript/src/?
maybe it helps if you follow these instructions

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

armin

On 08/10/2008 20:09, Rony (PMPG) wrote:
 Actually,
 
 I did this ... in zoombox.js
 
 (function displayCoordinates())
 ...
 ...
 // Display in DIV over MAP
 $('#xcoord').html('E: ' + px); // + ' deg;';
 $('#ycoord').html('N: ' + py); // + ' deg;';
 
 
 But nothing changes
 Rony
 
 - Original Message - 
 From: Armin Burger [EMAIL PROTECTED]
 To: Rony (PMPG) [EMAIL PROTECTED]
 Cc: Pmapper_users pmapper-users@lists.sourceforge.net
 Sent: Wednesday, October 08, 2008 2:32 PM
 Subject: Re: [pmapper-users] showing coordinates
 
 
 On 08/10/2008 18:05, Rony (PMPG) wrote:
 Hi Armin, hi all,

 I would like to change the symbols X  Y, in the left bottom of mpa, 
 to N  E  symbols when showing the coordinates.

 Where is the right place to take the change?

 Thanks in advance,

 Rony
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's 
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great 
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the 
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

 zoombox.js, search for 'status'

 
 
 
 
 
 
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.173 / Virus Database: 270.7.6/1714 - Release Date: 8/10/2008 
 07:01
 
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] pmapper JOINing database table to layer

2008-09-30 Thread Armin Burger
On 30/09/2008 18:23, Ivan Mincik wrote:
 I am experimenting with joining database table from MS SQL to PostGIS layer. 
 I have working setup of PEAR DB and MDB2. I am using currently MDB2
 
 In mapfile there is RESULT_JOIN mssql://user:[EMAIL 
 PROTECTED]/testgis||[EMAIL PROTECTED]@[EMAIL PROTECTED],Level||gid||0 . 
 Lines RESULT_FIELDS and 
 RESULT_HEADERS are removed to see all attribute columns with original FIELD 
 NAME from identify.
 

I guess you need to define RESULT_FIELDS, otherwise it takes the default 
fields from via Mapscript, and the join is just defined in p.mapper, not 
available in pure Mapscript.

Anyway, 'search' (queryByAttributes) will not have join fields for 
Postgis layers. This is using generic PHP/PG functions instead of 
Mapscript because Mapscript queries for Postgis layers seem still to be 
a bit buggy. And my thinking was that if one uses Postgis one can as 
well use generic Postgres functions for joins...

Armin

 Join is working, but when I try identify I get table with NO field name for 
 joined fields. See: http://www.gista.sk/dl/bugs/pmapper/pmapper_join.png
 
 So I added line error_log($fldName .  :  . $fldValue); to function 
 printFieldValues in incphp/query/query.php and in log there is:
 
 [30-Sep-2008 14:27:32]
 [30-Sep-2008 14:27:35] gid : 2319
 [30-Sep-2008 14:27:35] por_c : 0
 [30-Sep-2008 14:27:35] plocha : 21372.6
 [30-Sep-2008 14:27:35] druh_zelene_string : nespracovaný záznam
 [30-Sep-2008 14:27:35] pokosene : f
 [30-Sep-2008 14:27:35] m_cast : 0
 [30-Sep-2008 14:27:35] ulica : nespracovaný záznam
 [30-Sep-2008 14:27:35] druh_zelene : 0
 [30-Sep-2008 14:27:35] vlastnik : nespracovaný záznam
 [30-Sep-2008 14:27:35] poznamka : nespracovaný záznam
 [30-Sep-2008 14:27:35] ID : 2319
 [30-Sep-2008 14:27:35] Level : 0
 
 Joined fields ID and Level are there ! So why I don't see them in result 
 table ?
 
 Thanks


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] coordinate display

2008-09-14 Thread Armin Burger
On 14/09/2008 07:43, Wirote Laongmanee wrote:
 Dear list,
 I am upgrade pmapper to 3.2 on Windows.
 My coordinate is lat/lon, so I need more digit than round number display at
 bottom page.
 
 Version 3.1, I just config var rfactor = 3 in zoombox.js in
 displaycoordinates(), then it work but this version is not.
 
 Any advice please.
 
 Best regards,
 

for me the rfactor = 3 setting works in 3.2

armin

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] pmapper scale

2008-09-14 Thread Armin Burger
On 14/09/2008 17:05, Victor Sterpu wrote:
 I use pmapper 3.2.
 If I use the measure tool and I create a line of the same line as the 
 scalebar, the results do not match.
 To be precise the scalebar reports that segment should have 10.5 meters.
 The measure tool reports 14 meters.
 Acording to the scale bar the whole map has 30 meters, so 1 pixel dosn't 
 mater so mutch.
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 

enable debugging in config_default.ini:

http://svn.pmapper.net/trac/wiki/FaqDebugging#WhatshouldIdoifp.mapperisnotworkingcorrectly
= 5th bullet

and check the debug output.

armin

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] special characters in search

2008-09-10 Thread Armin Burger
maybe this one here helps:

http://sourceforge.net/mailarchive/forum.php?thread_name=38f711e40808131206s58d797f3kf96d5d4501c3d1fa%40mail.gmail.comforum_name=pmapper-users

armin

 Original-Nachricht 
 Datum: Wed, 10 Sep 2008 14:31:00 +0200
 Von: Robert Walter [EMAIL PROTECTED]
 An: pmapper-users@lists.sourceforge.net
 Betreff: [pmapper-users] special characters in search

 Hi list,
 
 I still have a problem with german special characters in search
 configuration. The encoding of the layer in search.xml is set to ISO-8859-1 
 like the
 encoding of the Shape-File. The browser recognizes the website as UNICODE
 site. All special characters of the gui (legend, ...) are shown correctly.
 When I identify an object of the layer, the special characters in attributes
 are ok. But when I look at the option list in search form, the same
 special characters like ä, ö, ü or ß are shown as � (question mark in a
 rectangle).
 
 Can anybody help?
 
 Greetings
 Robert
 -- 
 GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry
 Passion!
 http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

-- 
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Combined Attribute Search configuration in search.xml

2008-09-10 Thread Armin Burger
Looking at the code it seems that the depending field definition has 
just been implemented for the suggest function, not for a second option 
block.

If you need it you could create a ticket on the p.mapper trac system (I 
can set up an account for you) so this request won't get lost.

Armin



On 10/09/2008 18:37, Hermann Karl wrote:
 Dear List,
 
 I tried to configure a searchitem in search.xml
 It is intended as combined search where
 first the countries search should use option suggest
 followed by the cities search should use option options
 (vice versa the item cities_options_suggest_dbf in sample search.xml)
 
 !-- Sample for ms SHAPE layer search cities1eu (cities1eu.shp)
 option suggest_options.dbf Funktion ???--

 searchitem name=countries_suggest_cities_options_dbf
 description=Countries Suggest Cities Options DBF
 layer type=shape name=cities1eu
 
 field type=s name=ISO2_CODE description=Country
 wildcard=2
 definition type=suggest connectiontype=dbase
 minlength=1 startleft=1
 dbasefile encoding=UTF-8
 searchfield=ISO2_CODE$/countries.dbf/dbasefile
 /definition 
 /field
 
 
field type=s name=NAME description=City wildcard=2
   definition type=options
 connectiontype=dbase sort=asc firstoption=pippo
   dbasefile encoding=UTF-8
 dependfld=ISO2_CODE keyfield=NAME
 showfield=NAME$/cities1eu.dbf/dbasefile
   /definition
   /field
 
 /layer
 /searchitem
 
 Countries suggest works fine but cities options does not list only the
 cities of the previous selected country as options.
 Anyone who knows where the use of the elements keyfield dependfield
 events in this context is documentet.
 
 thanks in advance
 
 Karl
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] error with session_start

2008-07-27 Thread Armin Burger
On 25/07/2008 16:10, Luca Delucchi wrote:
 Hi, I'm a newbye about pmapper and I have a problem when a try to see
 the map, I use pmapper 3.2 on debian lenny; this is the log of error.
 
 Warning: session_start() [function.session-start]:
 open(/home/luca/sess_e76fd8d92d8165e77fd3ae98ad7b1ae6, O_RDWR) failed:
 Permission denied (13) in /var/www/pmapper-dev/map.phtml on line 37
 
 Warning: session_start() [function.session-start]: Cannot send session
 cache limiter - headers already sent (output started
 at /var/www/pmapper-dev/map.phtml:37) in /var/www/pmapper-dev/map.phtml
 on line 37
 
 Warning: Cannot modify header information - headers already sent by
 (output started at /var/www/pmapper-dev/map.phtml:37)
 in /var/www/pmapper-dev/map.phtml on line 58
 
 Warning: Unknown: open(/home/luca/sess_e76fd8d92d8165e77fd3ae98ad7b1ae6,
 O_RDWR) failed: Permission denied (13) in Unknown on line 0
 
 Warning: Unknown: Failed to write session data (files). Please verify
 that the current setting of session.save_path is correct (/home/luca) in
 Unknown on line 0
 
 thank's
 Luca
 

well the log tells you that the server cannot write to the directory 
defined for session files (/home/luca). Modify this php.ini setting to a 
directory where the web server user (www-data in Debian) has write 
permissions.

armin

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] firefox, iexplorer

2008-07-14 Thread Armin Burger
if you'd check your Javascript error log you could see an error

[Break on this error] // ARRAY FOR ANNOTATIONS\n
js_custom.php?PHP... (line 4)

remove it and it should be ok also with FF, if you don't see the  
characters swap the encoding (UTF - Latin1).

armin

On 14/07/2008 23:24, Cesar Raul Villalba wrote:
 I install pmapper 3.2 in www.ecologiasig.misiones.gov.ar with firefox only 
 show upper bar in blue, in iexplorer is ok. help me please
 Cesar R. Villalba
 Ministerio de Ecologia
 Provincia de Misiones
 Argentina
 
 

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] search for...

2008-07-12 Thread Armin Burger
seems there are a bit too many escaping backslashes added. Check your 
php.ini file for

   magic_quotes_gpc
and
   magic_quotes_runtime

and if they're set to On, try to set them to Off and see if the problem 
still appears.

Armin

On 12/07/2008 13:12, Salvator*eL*arosa wrote:
 
 
 pag66 wrote:
 Try to use this 
 metadata
  LAYER_ENCODING UTF-8
 end 
 in your layer definition 
 I think it solve your problem

 
 Thanks for your reply, but it don't work for me!
 
 My pm_debug is:
 
 [12-Jul-2008 15:05:04] P.MAPPER debug info 
 Searcharray in search.php-getSearchParameters() 
  Array
 (
 [nome] = SANT\'ANGELO LE FRATTE
 [mode] = search
 [PHPSESSID] = 2ff4c48f24cec5f8a11633fccc7744d9
 )
 
 [12-Jul-2008 15:05:04] P.MAPPER debug info 
 Parameters for searchArray 
 file: query.php-q_execAttributeQuery 
 
  Array
 (
 [nome] = SANT\'ANGELO LE FRATTE
 [mode] = search
 [PHPSESSID] = 2ff4c48f24cec5f8a11633fccc7744d9
 )
 
 [12-Jul-2008 15:05:04] P.MAPPER debug info 
  P.MAPPER Warning: no UNIQUE field specified for PostGIS table
 'public.comuni_pit'. Trying using OID field...
 [12-Jul-2008 15:05:04] P.MAPPER debug info 
 P.MAPPER-DEBUG: squery.php/dumpPGQueryResults() - SQL Cmd:
  SELECT gid, 
  xmin(box3d(the_geom)), 
  ymin(box3d(the_geom)), 
  xmax(box3d(the_geom)), 
  ymax(box3d(the_geom)), 
  nome,istat 
 FROM public.comuni_pit 
WHERE   nome = 'SANT\\\'ANGELO LE FRATTE' 
LIMIT 301
 
 
 Bye
 
 
 -
 Salvatore Larosa
 GPG: 0xE504BBE2 (FP: D9B2 CA87 81CD 1B91 E24D 3B42 D0F7 FA01 E504 BBE2)


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] how work dynlayer plugin ?

2008-07-09 Thread Armin Burger
On 09/07/2008 17:07, pag66 wrote:
 Hello anyone has used dynlayer plugin i interested in  how this works. What's
 its made for?
 Thanks
 

you first should think about what you want to achieve. Dynlayer (just
working in current dev version) is intended to allow the addition of
dynamic layers (e.g. read from a database) in a generic way. If you do
not need this then don't worry about this 'plugin'. It's now called
'dynlayersample' because it just shows how to use this functionality.
It's intended purely for developers.

armin


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Fw: P.MAPPER-ERROR: plugin directory '.../plugins/transparency' not existing

2008-07-08 Thread Armin Burger
On 08/07/2008 15:03, Lara Perez wrote:
 Hi, Thomas:
 
 Thanks for your reply.
 After all, I've realized I haven't got the jquery-latest.pack downloaded.
 By the moment, it works, but in the error log still appears the plugin 
 transparency dont founded. ¿Can you tell me in wich of all the archives is 
 it defined? I didn't found it.
 Also, when I get the result opf the searh, it is highlighted in cyan, but I 
 rather prefer it in red. ¿Where do I make the changes? Not in config.ini  
 
 ; Highlight color for identify/search zoom in
 ; RGB values, separated with commas
 ;-
 highlightColor = 255, 0, 0
 
 Because it doesn't works.


that's from the config_default.ini file from p.mapper:

; Highlight color for identify/search zoom in
; RGB values, separated with commas
;-
highlightColor = 0, 255, 255

; Map file template used for highlighting query results
; use relative path towards /config/
; if not specified then default highlighting
; is used applying values from highlightColor
;--
hlMapFile = common/highlight.map


so you can either use the simple highlighting (highlightColor) or 
provide all settings in the template map file where you can specify for 
points, lines and polygons how they should be highlighted (e.g. using 
transparency etc).


NOTE: in the current development version this changed to
   tplMapFile = common/template.map
since the map files is used also for other purposes than just highlighting.

armin

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Legend icons

2008-07-08 Thread Armin Burger
/incphp/init/initmap.php, change line line 444 - 446 to

//if ($writeNew == 1) {
// $this-createLegendList();
//}



On 08/07/2008 20:13, Mark wrote:
 Hi all
 
 I would like to disable the legend icons overwriting function, is this 
 easily done?
 
 Many thanks in advance
 
 Mark
 

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Join postgis table

2008-06-25 Thread Armin Burger
On 25/06/2008 18:03, pag66 wrote:
 Hello everyone i wanto to join a posgtres table to a posdtgis table using a
 one to many relation, i mean one geographic point to many register in the
 other table how i could make  this posible ?
 Thanks a lot 
 

you can either create a DB view or define the join in the DATA tag. See 
the FAQ or PostGIS docs for more info.

armin

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Problem with new Javascript

2008-06-25 Thread Armin Burger
every file with '.js' extension under the dirs /javascript/ or 
/config/.../ will be automatically loaded into the application. So just 
place you JS file there and its functions will be available.

armin


On 25/06/2008 16:11, khairul wrote:
 Hello Armin
 
 is it possible to add new javascript to pmapper 3.2?
 i edit the help.phtml and use javascript from http://script.aculo.us/
 i call the javascript from help.phtml.
 the new javascripts i put in another folder, e.g. : myscript
 
 when i click help.phtml from tool menu, i get a white blank page.
 how to resolve this problem?

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Working With Plugins

2008-06-22 Thread Armin Burger
thanks, I added the patch to the SVN.

armin

On 20/06/2008 15:28, Chris Domangue wrote:
 Armin-
 
 Thanks for the quick response... everything seems to work just fine so far!
 
 One small change I had to make in export.shp.php that I wanted to share with 
 everyone...
 
 Line 138
   $defList[] = array_merge(array(substr($name, 0, 10)), $def);
 
 Most of my layers are coming from PostGIS, and any field over 10 characters 
 long causes the php function dbase_create to throw an exception.
 
 Chris
 
 
 
 
   
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] pmapper on HostGIS

2008-06-18 Thread Armin Burger
the prerequisites for p.mapper are PHP 5 and the PHP Mapscript module. 
If Hostgis has this then it will work.

armin

On 18/06/2008 01:28, Eduardo Ross wrote:
 Hi Armin,
 
 We want to move oour project from ms4w to linux. I've seen you have pmapper 
 for debian and ubuntu. Because this is my first approach to linux world I've 
 made a little research and I found hostgis http://www.hostgis.com/linux/ 
 based on slackware which inlcudes all the apps that I need now and in the 
 near future.
 
 Can I use it for pmapper ?
 
 thanks a lot !
 
 
   
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] alpha channel in pdf???

2008-06-10 Thread Armin Burger
On 10/06/2008 19:59, Salvator*eL*arosa wrote:
 I have the following error when trying to print the map in pdf format:FPDF
 error: Alpha channel not supported:
 /home/sam/www/mapserver/tmp/5b17b9796f42b6579f020cb6d071173c121312042709612.pngIn
 my mapfile I have a layer with alpha transparency,I tried to comment but the
 problem does not disappear!How can I fix?
 
 -
 Salvatore Larosa
 GPG: 0xE504BBE2 (FP: D9B2 CA87 81CD 1B91 E24D 3B42 D0F7 FA01 E504 BBE2)

I think it's possible in pm since 3.2 to specify a different image 
format for print in config.ini, something like
   printImgFormat = png24

of course you need to specify this format png24 also in the map file.

armin

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Shift click to add to selection

2008-06-10 Thread Armin Burger
you can add in zoombox.js - doMouseUp(e)


below this
 if (!refmapClick) {
 maction = varform.maction.value;

this part
 if (e.shiftKey) {
 alert(Shift);
 return false;
 } else if (e.ctrlKey) {
 alert(CTRL);
 return false;
 }


or if you want to add it to specify it for a certain button add before


if (maction == 'addToDb') {


You need to specify this maction in mapserver.js for the tools.


armin


On 10/06/2008 02:38, Gabe wrote:
 Hi All,
 
 I have the need to detect shift-clicks and control-clicks on the map.
 
 I have a plugin which allows a user to click on the map and enter info into
 a dialog which is then put into a db along with a spatial object
 representing where they clicked.  This all works fine but now the client
 wants to be able to select multiple objects to record against.
 
 I would like to be able to detect whether or not the user had control or
 shift held down when they clicked.
 
 My BUTTON_start function gets called with an imgxy object but i cant find
 anywhere the state of the keyboard.  Any help would be appreciated
 
 Thanks
 
 Gabe
 
 
 


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Translation of string using language_xx.php affect postgis statement at mapfile

2008-06-09 Thread Armin Burger
Luigi

the problem is related to the LABELITEM tag. Substitute in 
/incphp/initgroups.php line 159

$labelItem = _p($mapLay-labelitem);

with the following

$labelItem = $mapLay-labelitem{0} == @ ? 
_p(substr($mapLay-labelitem, 1)) : $mapLay-labelitem;

The patch is also committed to latest-stable and trunk

e.g. 
http://svn.pmapper.net/trac/browser/pmapper/branches/latest-stable/incphp/initgroups.php

The original idea was to allow the definition of labelitem based on 
fields depending on the language (that should just have happened in the 
case of '@' prefix of the field name).

armin


On 07/06/2008 16:03, Luigi Castro Cardeles wrote:
 good morning list,
 
 i was using languge_br.php for translating string to portuguese brazilian.
 But when the string i want to translate is in DATA definition at mapfile, it
 is translated too.
 for example:
 
 ===mapfile - layer definition===
 
 NAME 'layer1'
 DATA the geom from table using unique gid using srid =
 
 LABELITEM text_local
 CLASS
  NAME text_local
 ...
 ===end of layer definition
 
 
 
 =language_xx.php
 
 $_sl['text_local'] = 'Text Local';
 
 =end of language_xx.php===
 
 
 If i do that, i get the error from php_error.log (error log of php):
 
 -- error message -
 [07-Jun-2008 10:49:05] PHP Warning:  [MapServer Error]: msDrawMap(): Failed
 to draw layer named 'layer1'.
  in /var/www/html/map_application/incphp/map.php on line 304
 [07-Jun-2008 10:49:05] PHP Warning:  [MapServer Error]: prepare_database():
 Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE
 mycursor BINARY CURSOR FOR SELECT Text
 Local::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text
 from table WHERE the_geom  setSRID('BOX3D(717664.90866225
 7535268.333,738185.10733775 7544802.333)'::BOX3D, 29191 )'
 
 Postgresql reports the error as 'ERROR:  column Text Local does not exist
 LINE 1: DECLARE mycursor BINARY CURSOR FOR SELECT Text Local::text,...
 
 -- end of error message --
 
 is this expect or is a bug?
 i think that language_xx.php translated only NAME, DESCRIPTION and similar
 fields and do not translate DATA field.
 


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Query editor and postgis

2008-05-30 Thread Armin Burger
everybody can access the SVN, that's what it is for. Without a
dedicated SVN client one can use the Trac browser, so downloading this
file would be the URL

http://svn.pmapper.net/trac/browser/pmapper/trunk/plugins/common/easyincludes.php?format=txt

simple browsing starts at

http://svn.pmapper.net/trac/browser/pmapper/trunk

armin

On Fri, May 30, 2008 at 9:47 AM, Thomas Raffin [EMAIL PROTECTED] wrote:
 If you are able to acces to the SVN repository, the file needed is
 pmapper/trunk/plugins/common/easyincludes.php.

 Else, I will send it to you.

 pag66 a écrit :
 Hello list
 I check the files and i have a problem when I use the files updates i have
 and error into the query window that say the follow:
 Call to undefined function getPMDir() in
 /var/www/html/sigcotopaxi/plugins/queryeditor/queryeditordlg.php on line 40
 Teh line 40 is the folloe
 $pmDir = getPMDir(queryeditor);
 where is the getPMDIr function?
 If I Comment the line the query window dont show me errors but only appear
 the name of the layer and not the fields like before:(
 I change the files mentionated in Changeset 419 and also in the ticket #4
 but nothing happen
 Help me please thanks



 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] zoomQuery with a value using slashes

2008-05-30 Thread Armin Burger
fiorenontaglio,

the slash '/' is a reserved character for URI's and needs to be encoded, 
otherwise you will get strange results for the interpretation of the 
URI. See eg. here
   http://en.wikipedia.org/wiki/Percent-encoding
for some details of the encoding.

Just define the search part like

[EMAIL PROTECTED]@[EMAIL PROTECTED]@0

and it should work ok.

armin

On 30/05/2008 11:39, [EMAIL PROTECTED] wrote:
 Using pmapper 3.2 on postgis layer
 
 Problem with a zoomQuery string made like this:
  [EMAIL PROTECTED]@1/[EMAIL PROTECTED]@0
 
 It seems the query value variable has got problems with values using slashes. 
 I think misunderstood as a path.
 I turned on the error logging in initmap.php (line 561) and this is what I 
 get:
 
 pratiche = '1/images/cursors/zoomin.cur'
 PHP Fatal error:  [MapServer Error]: setExtent(): Given map extent is invalid.
  in /var/www/pmapper-3.2/incphp/map.php on line 174
 
 
 
 
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Pmapper 3.2.0 hangs

2008-05-30 Thread Armin Burger
update: it *is* your definition of the layer 'Colonias' and you have not 
checked your PHP error log that spits out a Mapserver warning.

armin

On 30/05/2008 20:49, Eduardo Ross wrote:
 Hi,
 
 I have this problem using 3.2.0. When I click on checkboxes for layer 
 selection or when I zoom in or zoom out...the message loafng appears and it 
 didn´t go away and pmapper stops. 
 
 I am using the same layers and map descriptions that I use in pmapper 
 3.1  beta 4 and it works pretty good.
 
 A cowroker told me that the problem is in the dbf files, maybe the data 
 stored or maybe the field names.
 
 please take a quick look at the problem
 http://148.223.69.18/mapa_culiacan_RC1/
 
 To reproduce the beahaviour:
 
 1.- Make a zoom ( maybe it hungs )
 2.- Uncheck Colonias layer
 3.- Repeat the zoom
 
 Any ideas ?
 
 Thanks for your time.
 Great work Armin.
 
 
   
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Zoom to UTM or Lat Long coord

2008-05-28 Thread Armin Burger
you can use the zoom2extent() function, arguments to pass are mainly the 
extent with 4 coordinates separated by a plus (+) sign, like

zoom2extent('', '', 'minx+miny+maxx+maxy', '0')

 From a single point coordinate you need to set a buffer that defines 
the min/max values (4 coordinates) you want to zoom to. From UTM or 
lat/lon you can convert to your map projection with Mapscript functions. 
See the function in the coordinates plugin for sample code.

armin

On 28/05/2008 20:36, Francisco Silva wrote:
 Hi,
 
 I know that it is possible to zoom into a screen point, but is there any 
 way to zoom into a UTM or Lat / Long coord?
 
 What I want was some function like centerMap(Point p).
 
 Anyone was done something like this?
 
 Thanks to all,
 Francisco Silva,
 Portugal



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] tool frame

2008-05-19 Thread Armin Burger
On 19/05/2008 18:03, germana manca wrote:
 Good morning,
 I would like to change the frame of the toolset (zoom in, zoom out,
 etc) as it appears in the main frame of the example code, downloaded
 from the web site. 

don't understand exactly what you mean. The colors? Defined as most 
other things of the layout via CSS. Use a tool like firebug to identify 
the concerned style, and then modify it. You will need some knowledge of 
CSS, though.

I could see different tools (as shown in the
 'gallery' section), in other colors, but I don't know where to get
 them and what I have to change in the pmapper files (maybe in the
 directory incphp?).

defined in /config/.../php_config.php
   - $toolbarTheme = default;

possible values are the dir names under /images/buttons/


 Thank you for your help. I'm a little bit new in approaching and
 applying this application.
 Germana Manca
 


-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] pMapper plugin API?

2008-05-16 Thread Armin Burger
Ruslan

thanks for the files. I will try to have a look on it the coming days.

armin


On 12/05/2008 13:45, [EMAIL PROTECTED] wrote:
 Hi Armin.
 
 
 
 I've made some changes to pmapper to implement some of the function to
 
 allow plugins to interfere to map drawing process.
 
 You can take a look to the attached file, and decide how it can be moved to
 
 stable version of pmapper (also you can find my plugin there, but it is in
 
 pre pre ... alfa stage).
 
 
 
 Thanks,
 
 Ruslan.
 
 
 
 
 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
 Don't miss this year's exciting event. There's still time to save $100. 
 Use priority code J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 
 
 
 
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Accents on legend's pdf print

2008-05-16 Thread Armin Burger
as I mentioned in my mail before: the following is also working

map2unicode = 1
when the map file is NOT in UTF-8 (but e.g. something like LATIN1)

map2unicode = 0
when the map file is in UTF-8 encoding

In both combinations you can use native non-ascii characters in the map 
file.

armin

On 16/05/2008 20:50, Luigi Castro Cardeles wrote:
 the mapfile is in UTF-8.
 using the language files solve the problem :D
 very thanks for your help. use language file is much better than html 
 entities :D
 i was losing so much time with that, thanks :D
 maybe you should put that on the list, if you think that is not much 
 newbie question :D
 
 best regards,
 
 Luigi Castro Cardeles


-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] print pdf error

2008-05-15 Thread Armin Burger
you could try to set the maximum memory usage of a PHP script to a 
higher value in the php.ini for memory_limit.

armin


On 15/05/2008 17:38, [EMAIL PROTECTED] wrote:
 Hi, when i try to print pdf pmapper 3.2 shows this error:
 Fatal error: Allowed memory size of 8388608 bytes exhausted
 (tried to allocate 3322095 bytes) in
 /var/www/mugello/webgis/incphp/print/tcpdf.php on line
 3229...anybody has an idea about this problem??? This error
 comes when on the map there are color ortofoto on  small
 scale; for example: when the map (with color ortofoto) is at
 1:2000 the print pdf is OK, instead when the map (with color
 ortofoto) is at 1:1 the map gives the error.
 
 thanks all,
 
 marco zanieri
 
 -
 This SF.net email is sponsored by: Microsoft 
 Defy all challenges. Microsoft(R) Visual Studio 2008. 
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Accents on legend's pdf print

2008-05-15 Thread Armin Burger
why don't you just use the normal non-ascii characters, without fiddling 
around with HTML entities (since UTF support of all browsers this should 
be a relict of the HTML stone age...)? p.mapper tries to work with most 
type of characters, the PDF print at least works with all Latin 
characters tested so far and also with Cyrillic alphabet. Chinese is not 
working but I guess that's related to the used font in TCPDF.

armin



On 15/05/2008 22:07, Luigi Castro Cardeles wrote:
 Hi list,
 i was trying to put special characters (ç, é etc) on toc and on pdf print.
 To solve that, i use html entities on description (inside mapfile) . that
 change works for html print and toc but for pdf print no good.
 finally i chance pdfprint.php (incphp/print/pdfprint.php) at line 300
 
 original
 -
 // Putput PDF
 $this-Image($icoUrl, $x, $y, $icoW, $icoH);
 $this-SetXY($x + $icoW + 5, $y + 6);
 $this-SetFont($this-defaultFontType, B,
 $this-defaultFontSize);
 
 $grpDescription = $grp-getDescription();
 $this-Cell(0, 0, $grpDescription);
 
 $y += 18;   // y-difference between GROUPS
 -
 
 
 new (yellow)
 
 // Putput PDF
 $this-Image($icoUrl, $x, $y, $icoW, $icoH);
 $this-SetXY($x + $icoW + 5, $y + 6);
 $this-SetFont($this-defaultFontType, B,
 $this-defaultFontSize);
 
 $grpDescription1 = $grp-getDescription();
 $grpDescription =
 html_entity_decode($grpDescription1,ENT_NOQUOTES,'UTF-8');
 $this-Cell(0, 0, $grpDescription);
 
 $y += 18;   // y-difference between GROUPS
 
 
 
 best regards,
 Luigi Castro Cardeles
 -
 This SF.net email is sponsored by: Microsoft 
 Defy all challenges. Microsoft(R) Visual Studio 2008. 
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Help! How develop new application?

2008-05-05 Thread Armin Burger
maybe you should really once start reading the documentations. And I'd 
recommend strongly to read this
  http://svn.pmapper.net/trac/wiki/FaqDebugging
and also this
  http://www.catb.org/%7Eesr/faqs/smart-questions.html

Otherwise I doubt anybody will answer you.

armin 

 Original-Nachricht 
 Datum: Mon, 5 May 2008 09:22:03 +0800
 Von: xiaobao zang [EMAIL PROTECTED]
 An: pmapper-users@lists.sourceforge.net
 Betreff: [pmapper-users] Help! How develop new application?

 Help! How develop new applicatin just like pmapper_demo?
 
 Except to config  config.ini and *.map files ,what I should to do?
 
 Thanks!
 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
 Don't miss this year's exciting event. There's still time to save $100. 
 Use priority code J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] UTF-8 in Excel export

2008-05-04 Thread Armin Burger
Thanks for the hint. I haven't discovered the settings for encoding and 
was thinking the Excel 5 format does not support it. I will modify the 
code in the next days.

armin

On 03/05/2008 00:09, frequens wrote:
 After some fiddling
 
 If you want UTF-8 characters (e.g. pulled out of the UTF-8 database)
 displayed properly in pmapper's export Excel file, you should add:
 
 $this-workbook-setVersion(8);
 after: $this-workbook = new Spreadsheet_Excel_Writer($this-tempFilePath);
 
 and
 
 $worksheet-setInputEncoding('utf-8');
 after: $worksheet = $this-workbook-addWorksheet();
 
 in /plugins/export/export.xls.php
 
 BR
 
 frequens
 
 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
 Don't miss this year's exciting event. There's still time to save $100. 
 Use priority code J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] when 3.3 will realse?

2008-05-04 Thread Armin Burger
On 04/05/2008 11:55, xiaobao zang wrote:
 when 3.3 will realse?


once it will be ready ;-)

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Query results in print output

2008-05-04 Thread Armin Burger
On 01/05/2008 09:53, Guido Magrini wrote:
 Hi All,
 
 I would like to insert the query results in print output, some suggest?
 Which file I have to modify?
 
 Thanks.
 
 Guido
 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
 Don't miss this year's exciting event. There's still time to save $100. 
 Use priority code J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 

For HTML print most code should already be available, either create the 
result HTML using a slightly modified function from pmjson.js and add 
the HTML to the printmap.phtml. Or parse the query result JSON string 
from the session via PHP and do the same. You can use the JS function 
and the PHP code from the export plugin as samples to achieve this. This 
allows also to add it to the PDF print, though it might be a bit more 
difficult (see the pdf export for sample code).

armin

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Add Point of Interest, How to add Chinese character?

2008-04-30 Thread Armin Burger
On 30/04/2008 04:00, xiaobao zang wrote:
 Add Point of Interest,How to add Chinese character?
 It can only use English,Some can help me?
 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
 Don't miss this year's exciting event. There's still time to save $100. 
 Use priority code J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 

Try what happens if you add in /incphp/customlayers.php after around 
line 84 the following line:

$pntClass-label-set(encoding, UTF-8);

Armin

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] water mark

2008-04-29 Thread Armin Burger
On 29/04/2008 18:03, Rony (PMPG) wrote:
 Hi all,
 
 Does anybody know how to generate water mark (images or text) on the images 
 in map view?
 
 Thanks,
 
 Rony
 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
 Don't miss this year's exciting event. There's still time to save $100. 
 Use priority code J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


just add a layer with
STATUS default

to the map file and don't add it in the config.ini. Then it's drawn 
always. This layer can be e.g. a feature layer with an image as symbol 
(AFAIR), and set to higher transparency will make it a watermark.

Details about layer definition might be better asked on the Mapserver 
mailing list.

armin

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Adding mapurl to favorites

2008-04-11 Thread Armin Burger
see

http://msdn2.microsoft.com/en-us/library/ms535926(VS.85).aspx

armin

On Fri, Apr 11, 2008 at 11:14 AM, Geografisches Informationssystem
[EMAIL PROTECTED] wrote:
 Hi list,

  I've got a litte problem.  I use my own function kp for assigning
  functions to keys. So I did with key f. This keypress should use the
  function window.external.AddFavorite with parameter current_maplink.
  Looks like this:
   case 70: // f
 mapURL=current_maplink;
 window.external.AddFavorite(mapURL);
 break;

  If I insert an alert(current_maplink), the url is perfect:
  --
  Microsoft Internet Explorer:-(
  --
  http://10.170.0.20:8080/map.phtml?dg=me=2540014.06687,5506783.62852,255
  9876.77883,5517156.86102language=deconfig=default
  --
  OK
  --

  But in dialog box for adding to favs the url looks like this:
  http--10.170.0.208080-map.phtmldg=me=2540014.06687,5506783.62852,255987
  6.77883,5517156.86102language=deconfig=default

  What happended to the mapurl? (may a nice title for a film or a book:-)

  Greets,

  Guido


  -
  This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
  Don't miss this year's exciting event. There's still time to save $100.
  Use priority code J8TL2D2.
  
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
  ___
  pmapper-users mailing list
  pmapper-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/pmapper-users


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Changing zoom slider position (version 3.2)

2008-04-10 Thread Armin Burger
you have to modify the CSS style for it. Use a tool like Firebug with
Firefox to identify the files that define it, should be in layout.css.

armin

On Thu, Apr 10, 2008 at 2:42 PM, Marcello Benigno
[EMAIL PROTECTED] wrote:
 Hi All,

  How changing the slider to the left position in pmapper v.3.2?

  --
  Marcello Benigno B. de Barros Filho
  Prof. do Curso Superior de Tecnologia em Geoprocessamento - CEFET-PB
  Mestre em Ciências Geodésicas e Tecnologias da Geoinformação - UFPE
  -

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Help! How to add new language support?

2008-04-08 Thread Armin Burger
On 08/04/2008 14:18, xiaobao zang wrote:
 Help! Someone can tell me how to add new language support?
 Such as Simple Chinese ?


use one of the language files under /incphp/locale/ and translate it to 
Chinese. like an example for French

$_sl['Zoom To Layer'] = 'Zoom sur la couche';


the first part 'Zoom To Layer' is the text in the code, the second part 
'Zoom sur la couche' is the part that the user sees. So you just need to 
translate all the parts on the right side of the '=' sign. For Chinese I 
  don't know exactly if UTF-8 is sufficient, I guess at least for the 
simplified version, don't know for the traditional Chinese. You will 
need a text editor that can work on files in UTF-8 encoding, I use 
Scite, available for Win and Linux (you need to set the encoding to UTF 
under 'File - Encoding').

Send me the file and I will add it to the code. I can also create you an 
account for a Web application that lets you update the translations 
online and so newly added text can be easily integrated (e.g. for new 
functionalities or plugins).

armin

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Plugin coordinates

2008-04-02 Thread Armin Burger
did you check your php error log? maybe your projection cannot be
found in the epsg file. then you should get an error like
PHP Fatal error:  [MapServer Error]: msProcessProjection(): no options
found in 'init' file

the plugin is not a fully-featured one, it's mainly intended to show
how to integrate a tool with events etc. into the user-interface. see
the comments in the coordinates.js file for details about this.

armin

On Wed, Apr 2, 2008 at 12:51 PM, Geografisches Informationssystem
[EMAIL PROTECTED] wrote:
 Hi list,
  what do I have to do to use the plugin coordinates. I wrote/enabled
  coordinates in the ini and uncommented the button in php_config.php.
  If I click it, then the mouse-cursor changes and I can click in the map.
  Ok , and now?
  I suggest there would be a popup, which shows me the coordinates in
  other projections, isn't it?
  My proj is EPSG:31466. How do I format it in the file projections  inc?
  Thanks in advance

  Guido


  -
  Check out the new SourceForge.net Marketplace.
  It's the best place to buy or sell services for
  just about anything Open Source.
  http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
  ___
  pmapper-users mailing list
  pmapper-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/pmapper-users


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] 2 little problems with plugin mapSelect

2008-03-21 Thread Armin Burger
I made now some tests and could not reproduce neither of your problems. 
If I define in pmMapSelectSettings
   keepSession:false

and in php.ini session.use-cookies is set to 0 then the default 
groups/layers are correctly activated after changing to another map. You 
can check that also by looking at the source code of the page and the JS 
var PMap.defGroupList.

Also the permanent adding of and ampersand to the end of the config=xyz 
does not happen for me. But I guess there are settings (in PHP? Apache?) 
where the ampersand is added automatically, don't know why. In this case 
your patch works correctly, otherwise it removes the needed ampersand. 
In worst cases one can change the line

window.location = configUrl;
to
window.location = configUrl.replace(//, '');

I will add the possibility to delete all session variables (or just 
specified ones), so this should then work even in case of use_cookies=1.

armin





On 20/03/2008 08:17, Geografisches Informationssystem wrote:
 Hello p.mappers ;-),
 
 I found out in (my) installation 3.2.0 with the plugin mapSelect, that
 at every change of the config an '' is added to the variable searchLoc
 i.e.
 
 1st change it is  http://10.170.0.20:8080/map.phtml?config=lvm;
 2nd it is
 http://10.170.0.20:8080/map.phtml?config=default;
 3rd it is http://10.170.0.20:8080/map.phtml?config=lvm;
 and so on. Doesn't look pretty.
 
 Fixed it with adding the   to the replace statement in line 29 (?):
   configUrl +=
 searchLoc.replace(/config=[a-zA-Z0-9\_]+/,'config=' + $(this).val());
 
 Don't know what side effect this may have. This or a professional
 workaround should be added to the plugins' source;-).
 
 The second problem with the plugin is, that after an change no layers
 are selected. I think that at least the initial layers coming out of the
 config.ini (= variable defGroups ) should be activated by adding
 dg=blabla,blublu to the variable configUrl of the plugin.
 
 Any idea?
 
 Thanx  happy easter
 
 Guido
 
 
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] multiple search

2008-03-21 Thread Armin Burger
I already mentioned that you can check the query string applied on the 
shapefile. If I define the search like

searchitem name=cities_2_fld description=City + Country code
  layer type=shape name=cities1eu
   field type=s name=NAME description=City  wildcard=0 /
   field type=s name=ISO2_CODE description=C Code wildcard=0 /
  /layer
/searchitem


Then I get a debug log (when setting the debug level to 3) as following:

Parameters for searchParams
file: query.php-q_execAttributeQuery
  Array
(
 [layerName] = cities1eu
 [layerType] = shape
 [firstFld] = NAME
 [qStr] = ((  ( [NAME] =~ /(C|c)(A|a)(T|t)(A|a)/ ) ) AND ( 
[ISO2_CODE] =~ /(I|i)(T|t)/ ) )
)


I put a test script to test the result of the query string at
http://svn.pmapper.net/trac/browser/pmapper/trunk/util/test_query_string.php?format=txt

armin

On 21/03/2008 14:51, Stefano Gambini wrote:
 Hi Andre,
 I tried all options: options, suggest and operator...but doesn't work.
 
 In my search.xml i write:
 searchitem name=monumenti_pericolo description=Monumenti
 layer type=shape name=monumenti_pericolo
 field type=s name=tipologia description=Tipo wildcard=0 
 /
 field type=s name=fattibilit description=Classe sismica 
 wildcard=0 /
 /layer
 /searchitem
 and i do get Tipo and Classe sismica as options under Monumenti. I can 
 perform simple queries referred to EITHER Tipo OR Classe sismica BUT i 
 can not do a multiple query which includes Tipo AND Classe sismica (for 
 example i want to highlight only those churches within sismic class=3). 
 Notice that the attributes of Tipo and Classe sismica belong to the 
 tipologia and fattibilit fields of the monumenti_pericolo shapefile. Do 
 i necessarily need a database for my multiple query to work, or can this be 
 achieved with simple shapefile?
 
 Thanks a lot
 Stefano
  
 
 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] printing and exporting problem

2008-03-20 Thread Armin Burger
to 2) this requires PHP v. 5.2.+, or you need to include the PECL
extension 'JSON'

to 1) and 3): Since I do not have a clue if you have modified anything
and what your configs are I cannot say anything.

armin

On Thu, Mar 20, 2008 at 8:54 AM, frequens [EMAIL PROTECTED] wrote:
 Hi all,

  I am building a pmapper 3.2 application and have some problems:

  1. The Print settings dialog widow is empty and log shows:
  PHP Fatal error:  Call to undefined method SimpleXMLElement::getName()
  in /home/www/pmapper/incphp/print/printxml.php on line 166.

  2. Selecting a radio button of the export formats does not provoke
  anything except the log entry:
  PHP Fatal error:  Call to undefined function json_decode() in
  /home/www/pmapper/plugins/export/exportquery.php on line 53

  3. The Zoom to selected function zooms way below the minimum scale
  defined for the layer(s) in the map file. This is annoying, since all
  layers turn off and the graphic floats in the middle of nowhere...
  Is there a way to remedy this?


  Any help would be much appreciated...

  BR

  frequens

  -
  This SF.net email is sponsored by: Microsoft
  Defy all challenges. Microsoft(R) Visual Studio 2008.
  http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
  ___
  pmapper-users mailing list
  pmapper-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/pmapper-users


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] printing and exporting problem

2008-03-20 Thread Armin Burger
  As for 3: as above, it zoomed and outlined (to) the selected shape
  (correctly not drawing any of the layers if min scale was set) even in
  the out of the box pmapper with demodata and no changes to config...

so what should it do in your opinion? Just zoom to the maximum scale
where this layer is still visible? The zoomtoselect function was
something implemented in 20 minutes, so nothing special and one can
deactivate it if not needed (don't remember if the button is enabled
by default). In principal I activated most of possible functions and
leave it to the persons to set up the system to decide what they need
or not.

armin

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] printing and exporting problem

2008-03-20 Thread Armin Burger
for sure there are ways to do it modifying the code, but you will need
to investigate into it.

armin

On Thu, Mar 20, 2008 at 1:22 PM, frequens [EMAIL PROTECTED] wrote:
 As for 1. SimpleXMLElement::getName() was introduced in php 5.1.3, is
  there any way to run an older version of php and have printing
  capabilities succesfully?

  frequens


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] multiple search

2008-03-20 Thread Armin Burger
set wildcard=0 (2 is just for options and suggest). In the debug log
there is the query string used for the query. You can test it using is
as FILTER tag for the layer.

armin

On Thu, Mar 20, 2008 at 3:35 PM, Walter Lorenzetti
[EMAIL PROTECTED] wrote:
 Stefano Gambini ha scritto:
   thanks walter,
   but still is not working. I get the two options Formazione and Eta but
   i get no results when i query the system to find, ex,
   Formazione=Calcare and Eta=Trias. What i'd like to have is a result
   from multiple query on different attributes of a single shapefile
  
  
   http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/
  did you try with field only and the other emptyfor example
  Formazione=Calcare and Eta=   ?




  W


  --
  Please no  .doc, .xls, .ppt, .dwg:
  https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats

  Walter Lorenzetti
  email+jabber: [EMAIL PROTECTED]
  www.faunalia.it
  Cell: (+39) 347-6597931  Tel+Fax: (+39) 0587-213742
  Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy


  -
  This SF.net email is sponsored by: Microsoft
  Defy all challenges. Microsoft(R) Visual Studio 2008.
  http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
  ___
  pmapper-users mailing list
  pmapper-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/pmapper-users


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Problems with firefox 2.0.0

2008-03-19 Thread Armin Burger
yes, it's mainly tested with FF (usually problems appear with IE...)
Try emptying cache and cookies and reload again.

armin


On 19/03/2008 16:47, Rony (PMPG) wrote:
 Hi list,
 
 Sorry for ask again, but i need to solve this issue.
 Does anybody knows if there is a problem using pmapper under firefox 2.0.0.12?
 I can run pmapper 3.2 (final realease) under IE7.
 The south DIV goes to the north place and below that just display a blue 
 screen.
 Any idea?
 
 Thanks,
 Rony
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Problems with firefox 2.0.0

2008-03-19 Thread Armin Burger
you get a lot of JS errors. It should be mainly the 1st that causes all
subsequent ones:

illegal character
[Break on this error] // ARRAY FOR ANNOTATIONS\n
js_custom.php (line 4)

Remove the 'illegal' character (you might need an editor that can work
with UTF) and try again.

and as usual: check all error logs (PHP, JS) before writing to the list.

armin

On 19/03/2008 18:27, Rony (PMPG) wrote:
 Hi Armin,
 
 It´s very strange because 3.1 works fine with IE and FF, but 3.2 (including 
 the pmapper demodata) just works with IE in all the PC's of my intranet, not 
 just in mine.
 Could you please test my application on your computer and report me what 
 happens (IE and FF)?
 
 http://geo.pg.pr.gov.br/pmapper   (my application)
 http://geo.pg.pr.gov.br/pmapper320 (pmapper demodata 3.2)
 http://geo.pg.pr.gov.br/pmapper310   (pmapper demodata 3.1)
 
 Tanks,
 Rony
 
 
 - Original Message - 
 From: Armin Burger [EMAIL PROTECTED]
 To: Rony (PMPG) [EMAIL PROTECTED]
 Cc: Pmapper_users pmapper-users@lists.sourceforge.net
 Sent: Wednesday, March 19, 2008 2:14 PM
 Subject: Re: [pmapper-users] Problems with firefox 2.0.0
 
 
 yes, it's mainly tested with FF (usually problems appear with IE...)
 Try emptying cache and cookies and reload again.

 armin


 On 19/03/2008 16:47, Rony (PMPG) wrote:
 Hi list,

 Sorry for ask again, but i need to solve this issue.
 Does anybody knows if there is a problem using pmapper under firefox 
 2.0.0.12?
 I can run pmapper 3.2 (final realease) under IE7.
 The south DIV goes to the north place and below that just display a 
 blue screen.
 Any idea?

 Thanks,
 Rony
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users




 -- 
 No virus found in this incoming message.
 Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.7/1334 - Release 
 Date: 18/3/2008 20:52


 
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] search.xml

2008-03-18 Thread Armin Burger
check the value of the session var 'PM_SEARCH_CONFIGFILE' and see if it 
corresponds with your config.

armin

On 18/03/2008 09:26, Eugenio Trumpy wrote:
 Hi to all!
 I've got a problem with a pmapper 3.1 project, in particular with search.xml 
 files. 
 I'm using a just one pmapper directory for 8 map in my project.
 I've prepared 8 config directory, inside:
 /var/www/pmapper/config/
 for each directory i've php_config.php and search.xml,
 but i've got the search combo box only in the first map that use
 search.xml inside the default directory in /var/www/pmapper/config/
 I've put the path in the config file, but it doesn't work.
 What is the problem?
  
 Best reguards
 Eugenio
 _
 Gioca a Fantaleague e sfida i tuoi amici sul campo!
 http://fantaleague.it.msn.com/
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Unable to view map while it generates successfully

2008-03-18 Thread Armin Burger
looks like it cannot get size parameters for the reference map. Try to 
write them out to a log file and see what values you get.

armin

On 15/03/2008 17:30, Ruslan A. Bondar wrote:
 Hi all.
 I'm using pmapper-stable downloaded 15 feb 2008.
 PHP version: 5.2.5
 Postgres: 8.2.4
 PostGIS: 1.3.2
 Browser: Firefox and Opera
 mapserver: 5.0.0
 OS: Gentoo linux (both clientserver)
 Link to application: map.rich-logic.com
 
 Problem description: unable to view map, just label: LOADING.
 Steps to reproduce: go to map.rich-logic.com, try to do anything. 
 Way to check if map was generated successfully: take a look at
 map.rich-logic.com/maps/ btw. Images are sorted by name, not by creation
 date, and all images older than 1 hour are deleted by cron job.
 
 Do not pay attention to the reference map.
 
 map file, config files, and any other changed files are attached.
 JavaScript errors: a bunch of them, but all about css (you can take a
 look at your own risc :) )
 
 Errors from php error log:
 
 [15-Mar-2008 19:13:17] PHP Warning: Division by zero
 in /var/www/map.rich-logic.com/htdocs/mapserver/incphp/map.php on line
 280
 Same is for lines 281, 282, 283
 
 Messages in pm_debug.log
 Validation of search.xml file succeeded
 
 Additional information(if it is needed):
 The data was imported to postgis from shapefiles using qgis.
 Unique field is: gid
 Geometry field: the_geom
 
 Thanks,
 Ruslan
 
 
 
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 
 
 
 
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] INTERLEACE=ON

2008-03-06 Thread Armin Burger
I never see any interlacing effect. The map image is *always* requested 
via x_load.php and it is loaded via JS that changes the src tag of the 
map image.

armin

On 06/03/2008 18:25, Ivan Mincik wrote:
 I am in one circle between x_load.php, function function updateMap(murl) from 
 xmlhttp.js and function loadMapImg(mapImgSrc) from pmapper.js.
 I am trying to find the difference between first map image load in pmapper 
 the 
 rest ones.
 When the application is starting first load of map image is loaded using 
 interlacing, others not. This application has same behaviour: 
 http://webgis.cm-mugello.fi.it/webgis1/
 
 Realy need the hit
 
 Thanks 
 Ivan
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Problems with Hyperlinks

2008-03-06 Thread Armin Burger
you can create the required Javascript function 'openHyperlink()' in 
*any* JS file located under /javascript/ or the /config/.../ dir. 
Changing the function under /javascript/src/ will not help, the JS files 
there are not loaded. The release 3.2 and some previous betas use a 
single compressed JS file (pm_cjs.js). The original source files are 
under /javascript/src/.

armin

On 06/03/2008 11:49, Pepe Espuela wrote:
 Thanks Ivan
 I have already included RESULT HYPERLINK , in MAPFILE. 
  The problem is that I do changes in the custom.js even cancelling 
 instructions and the result does not vary, so I guess I am not working on the 
 appropriate file.
 
 Ivan Mincik [EMAIL PROTECTED] escribió: To use hyperlinks You have to have 
 also this in mapfile:
 
  RESULT_HEADERS Name of database field
   RESULT_FIELDS database_field
   RESULT_HYPERLINK database_field || hyperlink
 Then it will appear and You can call it from custom.js. See documentation.
 
 
 
 On Thursday 06 March 2008 10:42, Pepe Espuela wrote:
 Hello to all users p.mapper
  I am completing an application, but I need a couple of things:
  I modified the file custom.js which is located in the directory
 javascript / src / to create hyperlinks, but no modification is taken
 into account. Are there any other file custom.js where change? Where is
 it?

  And secondly

  There is the possibility of implementing it by clicking on an object type
 point  I see a  photograph?
 No, but You can write plugin by yourself.
 
 Ivan
 
 
  Greetings
 alemán a francésalemán a inglésárabe a ingléschino a ingléschino
 (simplificado a tradicional)chino (tradicional a simplificado)coreano a
 inglésespañol a inglésfrancés a alemánfrancés a inglésgriego a
 inglésholandés a inglésinglés a alemáninglés a árabeinglés a chino
 (simplificado)inglés a chino (tradicional)inglés a coreanoinglés a
 españolinglés a francésinglés a griegoinglés a holandésinglés a
 italianoinglés a japonésinglés a portuguésinglés a rusoitaliano a
 inglésjaponés a inglésportugués a inglésruso a inglés [input]


 -

 ¿Con Mascota por primera vez? - Sé un mejor Amigo
 Entra en Yahoo! Respuestas.

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 
 

 -
 
 ¿Con Mascota por primera vez? - Sé un mejor Amigo
 Entra en Yahoo! Respuestas.
  
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] INTERLEACE=ON

2008-03-06 Thread Armin Burger
I have some slight doubts that the images produced via Mapscript are 
really interlaced. At least with standard tools like irfanview or Gimp 
they do not have the tag 'interlaced'. But they have it if I create it 
with Gimp and the interlaced option or if I create the image with 
shp2img. Maybe a bug of Mapscript.

The image is created using saveImage($tmpFileNameAbs, $map); this way 
normally all format options of the map file should be taken into 
account, but this might not be the case.

A good test is also always if the image can be used for PDF printing: if 
it works then the PNG cannot be interlaced since FPDF does not support 
it and you get an error message telling you this.

armin

On 06/03/2008 20:16, Ivan Mincik wrote:
 Yes there is interlacing effect, I can clearly see it when I open the 
 application for the first time. (maybe You have very good internet connection 
 and don't see it. ) You have to close and open browser to see it again.
 ivan
 
 
 On Thursday 06 March 2008 20:06, you wrote:
 I never see any interlacing effect. The map image is *always* requested
 via x_load.php and it is loaded via JS that changes the src tag of the
 map image.

 armin

 On 06/03/2008 18:25, Ivan Mincik wrote:
 I am in one circle between x_load.php, function function updateMap(murl)
 from xmlhttp.js and function loadMapImg(mapImgSrc) from pmapper.js.
 I am trying to find the difference between first map image load in
 pmapper the rest ones.
 When the application is starting first load of map image is loaded using
 interlacing, others not. This application has same behaviour:
 http://webgis.cm-mugello.fi.it/webgis1/

 Realy need the hit

 Thanks
 Ivan

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] auto identify

2008-03-05 Thread Armin Burger
use a tool like Firebug and identify the DOM element for the identify 'window' 
and the CSS that defines the parameters like width/height, then modify them in 
the css file.

armin
 
 Original-Nachricht 
 Datum: Wed, 5 Mar 2008 17:24:19 +
 Von: Stefano Gambini [EMAIL PROTECTED]
 An: pmapper-users@lists.sourceforge.net 
 pmapper-users@lists.sourceforge.net
 Betreff: [pmapper-users] auto identify

 hello,
 how can i change height and width of the Auto Identify window? I have long
 strings of attibutes and need a much wider window than the default one.
 
 thanks
 stefano
 
 PS: thanks for your help. pmapper is really good
 
 _
 Express yourself instantly with MSN Messenger! Download today it's FREE!
 http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! 
http://games.entertainment.web.de/de/entertainment/games/free

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] upgrading error

2008-03-04 Thread Armin Burger
type in the error msProcessProjection(): no system list in Google and 
you will find lot's of hits. All following errors are subsequent ones 
and result from the first.

Not connected to your error, but I'd just recommend using p.mapper 3.2 
even if it's not released as final (due to lack of time to compile 
it...), it for sure has less bugs than 3.1.

armin

On 04/03/2008 20:58, Rony (PMPG) wrote:
 I´m using the basic instalation of pmapper and demo data of pmapper 3.1. Not 
 my own data.
 I´d follow the instructions of quick install, didn´t change anything else.
 
 thanks,
 Rony
 
 
 - Original Message - 
 From: Ivan Mincik [EMAIL PROTECTED]
 To: pmapper-users@lists.sourceforge.net
 Sent: Tuesday, March 04, 2008 4:44 PM
 Subject: Re: [pmapper-users] upgrading error
 
 
 first line is  msProcessProjection(), is your projection for every layer 
 and
 for mapfile OK?
 ivan

 On Tuesday 04 March 2008 20:21, Rony (PMPG) wrote:
 Hi Andre, hi all,

 Here is the error_log.

 [EMAIL PROTECTED] php]# more /var/log/php/error_log
 [04-Mar-2008 16:19:02] PHP Warning:  [MapServer Error]:
 msProcessProjection(): no system list, errno: 20

  in /var/www/html/pmapper/incphp/globals.php on line 58
 [04-Mar-2008 16:19:02] PHP Warning:  Failed to open map file
 /var/www/html/pmapper/config/default/pmapper_demo.map in
 /var/www/html/pmapper/i ncphp/globals.php on line 58

 [04-Mar-2008 16:19:02] PHP Strict Standards:  date() [a
 href='function.date'function.date/a]: It is not safe to rely on the
 system's time zone settings. Please use the date.timezone setting, the TZ
 environment variable or the date_default_timezone_set() function. In case
 you use d any of those methods and you are still getting this warning, 
 you
 most likely misspelled the timezone identifier. We selected 
 'America/Sao_P
 aulo' for 'BRT/-3.0/no DST' instead in
 /var/www/html/pmapper/incphp/common.php on line 213

 [04-Mar-2008 16:19:02] PHP Fatal error:  Call to a member function
 getAllGroupNames() on a non-object in 
 /var/www/html/pmapper/incphp/init/in
 itmap.php on line 107

 Any Idea?

 Thanks,
 Rony
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users



 -- 
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.5.516 / Virus Database: 269.21.4/1310 - Release Date: 4/3/2008 
 08:35


 
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] two issues

2008-03-04 Thread Armin Burger
On 04/03/2008 12:24, Stefano Gambini wrote:
 hi,
 I have these two issues:
 1) shapefiles with length attributes of ex 0.72 meters are displayed in 
 p.mapper as 7.2 e-001. Is there a way to show on p-mapper lenghts and areas 
 in the original formats?

I've never seen this, maybe depends on some PHP settings. The display 
just applies standard Mapscript and PHP functions.

 2) can't switch on layers on start, even if i give them STATUS ON 

STATUS tag has no effect in p.mapper

  and list them as defGroups in config

this however should work, but you don't say what exactly is not working.


 many thanks
 Stefano
 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] SQL query with SHP

2008-03-03 Thread Armin Burger
without any clear description what and at which stage it does not work 
and without the xml file there will not be much of help possible. Set 
the debug level to 3 and see what the debug output produces (description 
see here: http://svn.pmapper.net/trac/wiki/FaqDebugging).

armin

On 03/03/2008 18:11, Jan Jemelka wrote:
 Yes, suggest list that responds on a option list is what I was looking 
 for. Exactly as in mentioned link. I read wiki and trying to use 
 examples listed in, on demo data, but searchitems with combinations of 
 option and suggest doesn't work. Without any error. I tried to download 
 and use latest Development version of pmapper-dev.zip 
 http://www.pmapper.net/dl/pmapper-dev.zip, but also without any success.
 
 Any idea?
 
 Thanks
 
 JJ
 
 
 
 2008/2/27, Armin Burger [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]:
 
 you might want something like available in the demo page below Various
 possibilities for attribute search. Check the 'Cities Options Suggest',
 the corresponding XML file is at
 
 http://www.pmapper.net/demo/p3/config/query/search.xml
 
 I think Andre updated some parts of the wiki to explain some of the
 settings.
 
 armin
 
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Advanced printing

2008-02-23 Thread Armin Burger
There is no advanced printing available in the current version 
(everything that is commented out is not working, it will be removed for 
the final 3.2).

Most HTML tags should work when defined as tags in the xml.

something like
@[Scale]@
means that everything inside the brackets is translated using the _p() 
function.

and available variables are set as $$... (the print.xml contains 
available predefined variables.

armin

On 23/02/2008 11:24, Ivan Mincik wrote:
 Halo,
 Can You give me some advice what is needed to get new Advanced XML based 
 printing working. I am little bit lost in the pdfprint.php and printxml.php 
 variables.
 
 Thanks 
 Ivan
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Pmapper optimization

2008-02-18 Thread Armin Burger
Cristian

since p.mapper is just using standard MapScript functions to render 
geo-data there is nothing special compared to other Mapserver/Mapscript 
applications. So this question should be posted on the MS mailing list, 
or for Postgis layers, the Postgis list.

In general, showing really lots' of features will slow down Postgis more 
than shapefiles. In most cases it makes also no sense to render all 
these features since they are not distinguishable at low scales. So 
playing with MIN/MAXSCALE parameters usually helps most.

As Ivan mentioned, if you need to display 10 thousands of features at 
the same time (for whatever reason) then consider using a second 
simplified geometry field or just use shapefiles. One use case that 
comes into my mind where display of huge amount of data might make sense 
are contour lines.

Adding more Ram and increasing the memory used for Postgres might 
improve speed a bit as well. For lots of layers and all mostly in 
Postgis the connection pooling might gain some speed, don't know though 
if this is implemented for PG.

Armin


On 18/02/2008 16:49, Cristian Rougier wrote:
 Dears, i have a pmapper-3.2-beta2  running in a hostgis linux 4.2 (64 bits)
 The application run with 64 layers ( in a postgis database).
 The server are a dell 2900 ( 2 xeon dual core ) with 4 gb ram , 16 mb video
 ati es1000.
 
 But I see the system slow, in full extent the layer are too slowly to load.
 
 I understand that when less layers are active (or more little are the
 extent) more faster are the system.
 
 But I need to put more layer on this system.
 
 
 I need the best optimization for this, if you please do you know any doc or 
  Say me recommendations for max speed of layers display ?
 
 I will up the shared_buffers of postres database to 500Mb.
 
 The video memory (or adapter) are sensitive? ( for draw pngs? )  
 
 Best regards , I wait your news.
 
 Cristian
 
 
 Tecnología y Programación en Internet. 
 http://www.lainfo.com.mx 
 [EMAIL PROTECTED]
 
 http://www.sistemas-geograficos.com 
 
 Emails muy pesados a: [EMAIL PROTECTED] 
 Tel:(++5255) 8589-1554 
 Movil, Nuevo! : 04455-1770-9888
 
 
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] pmapper behind proxy

2008-02-14 Thread Armin Burger
Why do you then say you're using pmapper v.3.2 dev? This patch has
been applied several months ago by Alessandro Radaelli and is in
3.2dev since then.

armin

On Thu, Feb 14, 2008 at 12:11 PM, zucchiatti [EMAIL PROTECTED] wrote:

  Armin, great!! the code modify has worked well. SQUID allows me to see
  The map with firefox outside my network. Thank you.





  Armin Burger wrote:
  
   I thought this issue had been resolved sending always a non-empty post
   via AJAX. See /javascript/jquery/jquery.pmapper.js with
  $.ajaxSetup( { type: POST, data:dummy=dummy } )
  
   Maybe it could help if the exact request can be identified
  
   I unfortunately cannot test this since I do not have any squid proxy.
   The patch was provided by a user on this list (forgot who...), maybe he
   could come up and explain if it resolved his problem with squid.
  
   armin
  
   On 13/02/2008 10:28, zucchiatti wrote:
   Hi Armin and folks,
  
   I am using pmapper 3.2 dev behind a proxy SQUID. FIREFOX not displaying
   the
   contents of the map. The proxy generates the following errors:
  
   Headers: X-Squid-Error: ERR_INVALID_REQ 0;
   Response: X-With-Requested: XMLHttpRequest;
   Some aspect of the HHTP Request is invalid.
   - Missing or unknow request method
   - Missing URL
   - Missing HTTP Identifier
   - Request is too large
   - Content-Lenght missing for POST or PUT request
  
   The network administrator has verified that the Content-Length is equal
   to 0
   and SQUID cuts the content of the page. With IE explorer map is visible
   and
   also using version 3.1 of pmapper.
  
   How can I solve this problem without reuse the previous version of
   pmapper?
  
   Thanks
  
   -
   This SF.net email is sponsored by: Microsoft
   Defy all challenges. Microsoft(R) Visual Studio 2008.
   http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
   ___
   pmapper-users mailing list
   pmapper-users@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/pmapper-users
  
  

  --
  View this message in context: 
 http://www.nabble.com/pmapper-behind-proxy-tp15452224p15478189.html

 Sent from the pmapper users mailing list archive at Nabble.com.


  -


 This SF.net email is sponsored by: Microsoft
  Defy all challenges. Microsoft(R) Visual Studio 2008.
  http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
  ___
  pmapper-users mailing list
  pmapper-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/pmapper-users


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] pmapper behind proxy

2008-02-13 Thread Armin Burger
I thought this issue had been resolved sending always a non-empty post 
via AJAX. See /javascript/jquery/jquery.pmapper.js with
   $.ajaxSetup( { type: POST, data:dummy=dummy } )

Maybe it could help if the exact request can be identified

I unfortunately cannot test this since I do not have any squid proxy. 
The patch was provided by a user on this list (forgot who...), maybe he 
could come up and explain if it resolved his problem with squid.

armin

On 13/02/2008 10:28, zucchiatti wrote:
 Hi Armin and folks,
 
 I am using pmapper 3.2 dev behind a proxy SQUID. FIREFOX not displaying the
 contents of the map. The proxy generates the following errors:
 
 Headers: X-Squid-Error: ERR_INVALID_REQ 0;
 Response: X-With-Requested: XMLHttpRequest;
 Some aspect of the HHTP Request is invalid.
 - Missing or unknow request method
 - Missing URL
 - Missing HTTP Identifier
 - Request is too large
 - Content-Lenght missing for POST or PUT request
 
 The network administrator has verified that the Content-Length is equal to 0
 and SQUID cuts the content of the page. With IE explorer map is visible and
 also using version 3.1 of pmapper.
 
 How can I solve this problem without reuse the previous version of pmapper?
   
 Thanks

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] suggest

2008-02-13 Thread Armin Burger
This is unfortunately due to using the jQuery suggest plugin that did 
not foresee to have 2 or more suggest fields on a page. I will see for v 
3.3 if and how it can be solved. There is in addition an issue with the 
caching that applies to all suggest fields and makes it useless 
currently using more than 1 suggest. For now - if no one else provides a 
patch - it will remain like it is.

Armin


On 13/02/2008 19:21, [EMAIL PROTECTED] wrote:
 Hi i'm working with pmapper 3.2 beta 4 and i'm using the
 suggest type in search.xml; I noted that if i use 2 fields
 (for the same layer, shape file) in suggest type, when i
 write in the first combo box (the combo box of the first
 field) the suggest list is located under the second combo
 box (the combo box of the second field), i don't know
 why...anybody could help me???
 
 thanks all,
 marco zanieri
 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] debian repository is not accessible

2008-02-01 Thread Armin Burger
should work for direct file access. Directory content listing is not 
possible though.

armin

On 01/02/2008 09:34, Ivan Mincik wrote:
 hi,
 there is Access forbidden at http://www.pmapper.net/dl/debian/
 
 Ivan
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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   >