[Chameleon] RE: Chameleon Digest, Vol 14, Issue 21

Jacob Delfos jacob.delfos at maunsell.com
Thu May 19 20:22:17 EDT 2005


Gail,

Use a program called "depends.exe", by calling "depends php_mapscript_44.dll" from the commandline. Download it from:

http://www.dependencywalker.com/

it will tell you which dependent DLL is not found (if any).

As to phpinfo, I'm not sure if I know where that script comes from. Doesn't sit in my samples directory. But if you set your mapscript_module in chameleon.xml correctly, it should work if you resolved your dependencies. Bare in mind some DLL's seem to have to sit in the system directory to work (such as gdal).

regards,

Jacob

-----Original Message-----
From: chameleon-bounces at lists.maptools.org [mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Gail
Sent: 19 May 2005 16:32
To: chameleon at lists.maptools.org
Subject: [Chameleon] RE: Chameleon Digest, Vol 14, Issue 21

Hi List

The URL to the sample pages is
http://camber.mc.man.ac.uk/chameleon/samples/index.html

When I run the phpinfo () script from the samples directory I could not see
a mapscript output and when I scrolled to the bottom of the page I found the
error message

PHP Warning: dl(): Unable to load dynamic library
'C:\PHP\extensions\php_mapscript.dll' - The specified module could not be
found. in C:\pathway to chameleon\samples\htdocs\phpinfo.php on line 3

It appears to be looking for php_mapscript.dll when the module I stipulated
in the chameleon.xml file was php_mapscript_44.dll. So to resolve this I
have copied php_mapscript_44.dll in the php/extensions directory and renamed
it php_mapscript.dll and referenced this in the chameleon.xml file rather
than php_mapscript_44.dll. The phpinfo page now has a mapscript output.

Still no map is loading

Would appreciate any ideas of what is causing the problem

Thanks

Gail

-----Original Message-----
From: chameleon-bounces at lists.maptools.org
[mailto:chameleon-bounces at lists.maptools.org] On Behalf Of
chameleon-request at lists.maptools.org
Sent: 17 May 2005 17:00
To: chameleon at lists.maptools.org
Subject: Chameleon Digest, Vol 14, Issue 21

Send Chameleon mailing list submissions to
 chameleon at lists.maptools.org

To subscribe or unsubscribe via the World Wide Web, visit
 http://lists.maptools.org/mailman/listinfo/chameleon
or, via email, send a message with subject or body 'help' to
 chameleon-request at lists.maptools.org

You can reach the person managing the list at
 chameleon-owner at lists.maptools.org

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


Today's Topics:

   1. Locate Widgets Problem (Rajan Man Bajracharya)
   2. Re: LayerLabel (Bart van den Eijnden)
   3. Re: map.search.ch (Bart van den Eijnden)
   4. Re: Re: LayerLabel (Stephan Holl)
   5. RE: PHP Warnings and MapServer Error (Gail)
   6. Re: map.search.ch (Jason Fournier)
   7. Re: PHP Warnings and MapServer Error (Jason Fournier)
   8. js api: run query (Bart van den Eijnden)


----------------------------------------------------------------------

Message: 1
Date: Tue, 17 May 2005 14:25:37 -0700
From: Rajan Man Bajracharya <rbajracharya at icimod.org.np>
Subject: [Chameleon] Locate Widgets Problem
To: chameleon at lists.maptools.org
Message-ID: <5.2.0.9.0.20050517135646.00ad3fe0 at menris1.icimod.org.np>
Content-Type: text/plain; charset="us-ascii"; format=flowed

Dear All,

I am using the latest version of Chameleon. I got stuck creating search 
services to my application.

Actually, I want to locate using "search by attribute" to my input feature 
layers(points). I've tried creating new search service in 
/phpgeocoder/services/ folder. But creating search service itself is not 
clear to me. Anybody got a clue to this? or any documentation for this?

I am wondering how attribute.php are linked to my created layers for class 
definition of search attribute.

I belive Gazetter Service are not meant for application of my type. Where I 
have to find some local point features. It seems I lost the track.
Any help regarding this would be highly appreciated.

Regards,
-rajan.



------------------------------

Message: 2
Date: Tue, 17 May 2005 11:01:28 +0200
From: "Bart van den Eijnden" <BEN at Syncera-ITSolutions.NL>
Subject: [Chameleon] Re: LayerLabel
To: <chameleon at lists.maptools.org>
Message-ID: <s289cf11.081 at syncera.nl>
Content-Type: text/plain; charset=US-ASCII

Hi Stephan,

first of all the widget was written by an ex-colleague of me at Geodan (a
Dutch GIS company).

I think the way the widget operates is, it defines an SLD document and then
applies it to the layer. So you need to adapt the SLD in order for your
changes to work.

I do see font-color in there, but I don't know by head how you can change
the label position using SLD.

$szLabelSLD = "<StyledLayerDescriptor
version='1.0.0'><NamedLayer><Name>$szLayerName</Name><UserStyle><FeatureType
Style><Rule><TextSymbolizer><Label>$this->mszAttribute</Label><Font><CssPara
meter name='font-color'>#000000</CssParameter><CssParameter
name='font-family'>$this->mszFont</CssParameter><CssParameter
name='font-size'>$this->mszFontSize</CssParameter></Font></TextSymbolizer></
Rule></FeatureTypeStyle></UserStyle></NamedLayer></StyledLayerDescriptor>"; 

Maybe another possibility would be to override the values after the SLD has
been set on the layer:

$oAnnoLayer->applysld( $szLabelSLD , $szLayerName ); 

so perform your Mapscript code after this statement.

Hope this helps.

Best regards,
Bart

Bart van den Eijnden
Syncera-ITSolutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl




------------------------------

Message: 3
Date: Tue, 17 May 2005 12:29:29 +0200
From: "Bart van den Eijnden" <BEN at Syncera-ITSolutions.NL>
Subject: Re: [Chameleon] map.search.ch
To: <rbajracharya at icimod.org.np>
Cc: chameleon at lists.maptools.org
Message-ID: <s289e3b5.073 at syncera.nl>
Content-Type: text/plain; charset=US-ASCII

This site is not built with Chameleon and not by me.

I just posted it to the list for inspiration for future Chameleon
development :-)

Best regards,
Bart

Bart van den Eijnden
Syncera-ITSolutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl

>>> Rajan Man Bajracharya <rbajracharya at icimod.org.np> 05/17/05 11:59pm >>>
Hi Bart,

Provided link is very impressive. Congratulation! I belive you've used 
mapserver with chameleon version to implement this ?
If so I am wondering how you implemented search capabilities? I am trying 
to develop small application for staff location map on the web. I couldn't 
able to figure out how to implement query by attribute such as by "staff 
name" and locate the feature on the map.

Any help would be highly appreciated.

Thanking you in advance,
rajan.


At 10:19 AM 5/17/2005 +0200, you wrote:
>Hi list,
>
>a very nice GIS DHTML GUI (zoom in with left mouse button, zoom out with 
>right mouse button):
>
>http://map.search.ch/ 
>
>Best regards,
>Bart
>
>Bart van den Eijnden
>Syncera-ITSolutions
>Postbus 270
>2600 AG  DELFT
>
>tel.nr.: 015-7512436
>email: BEN at Syncera-ITSolutions.nl 
>
>
>_______________________________________________
>Chameleon mailing list
>Chameleon at lists.maptools.org 
>http://lists.maptools.org/mailman/listinfo/chameleon 
>
>!DSPAM:4289ab26250581351217386!





------------------------------

Message: 4
Date: Tue, 17 May 2005 12:33:58 +0200
From: Stephan Holl <sholl at gmx.net>
Subject: Re: [Chameleon] Re: LayerLabel
To: "Bart van den Eijnden" <BEN at Syncera-ITSolutions.NL>
Cc: chameleon at lists.maptools.org
Message-ID: <20050517123358.2d7a3c1a at localhost>
Content-Type: text/plain; charset="us-ascii"

Hello Bart, 

On Tue, 17 May 2005 11:01:28 +0200 "Bart van den Eijnden" <BEN at Syncera-
ITSolutions.NL> wrote:

> Hi Stephan,
> 
> first of all the widget was written by an ex-colleague of me at
> Geodan (a Dutch GIS company).

OK, thanks for clearing this.

> 
> I think the way the widget operates is, it defines an SLD document
> and then applies it to the layer. So you need to adapt the SLD in
> order for your changes to work.
> 
> I do see font-color in there, but I don't know by head how you can
> change the label position using SLD.

I changed font-color by hand, but the result was always black...

> 
> $szLabelSLD = "<StyledLayerDescriptor
> version='1.0.0'><NamedLayer><Name>$szLayerName</
> Name><UserStyle><FeatureTypeStyle><Rule><TextSymbolizer><Label>$this-
> Name>>mszAttribute</Label><Font><CssParameter name='font-
> Name>>color'>#000000</CssParameter><CssParameter name='font-family'>
> Name>>$this->mszFont</CssParameter><CssParameter name='font-size'>
> Name>>$this->mszFontSize</CssParameter></Font></TextSymbolizer></
> Name>>Rule></FeatureTypeStyle></UserStyle></NamedLayer></
> Name>>Rule>StyledLayerDescriptor>"; 
> 
> Maybe another possibility would be to override the values after the
> SLD has been set on the layer:
> 
> $oAnnoLayer->applysld( $szLabelSLD , $szLayerName ); 
> 
> so perform your Mapscript code after this statement.

I will do this. 

But where is the definition of the created anotation-layer. When I look
at the resulting mapfile in the session-folder, I cannot find the
mapscript-code which generates the annotation-layer.

Thank you for your help.

Best

 Stephan

-- 
Stephan Holl

Check headers for GnuPG Key!
http://www.gdf-hannover.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :
http://lists.maptools.org/pipermail/chameleon/attachments/20050517/c1980125/
attachment-0001.bin

------------------------------

Message: 5
Date: Tue, 17 May 2005 11:48:25 +0100
From: "Gail" <Gail.Millin at manchester.ac.uk>
Subject: RE: [Chameleon] PHP Warnings and MapServer Error
To: "'Jason Fournier'" <jfournier at dmsolutions.ca>
Cc: chameleon at lists.maptools.org
Message-ID: <200505171052.j4HAqMaV008439 at duke.maptools.org>
Content-Type: text/plain; charset="us-ascii"

Hi Jason,

I had already downloaded proj.4 and it appears to be configured correctly.
No image is showing up but if I right click on the image I get the URL

http://camber.mc.man.ac.uk/chameleon//common//wrapper/drawmap.php?map_sessio
n_mode=1&run_query=0&sid=4289c68731fad&dummy=0.55135400+1116325511&UniqId=11
16325812267525

Should there be two forward slashes "//" before and after common in the URL?
Or has something gone wrong in the chameleon configuration? 

I put the above URL in a browser to see if the map would appear I got the
message

CGI Error

The specified CGI application misbehaved by not returning a complete set of
HTTP headers

Would appreciate any suggestions 

Kind Regards

Gail

-----Original Message-----
From: Jason Fournier [mailto:jfournier at dmsolutions.ca] 
Sent: 16 May 2005 17:34
To: Gail
Cc: chameleon at lists.maptools.org
Subject: Re: [Chameleon] PHP Warnings and MapServer Error

Gail,

MapServer is having trouble finding you proj.4 installation.  Have you
installed it?  If you have you will have to set an ENV Variable.  You can
alternatively set CONFIG PROJ_LIB "path/to/epsg".

Thanks,
Jason



Gail wrote:
> Dear Chameleon Users,
> 
>  
> 
> I have now managed to get the .phtml pages for the samples bringing up 
> the below warning for the first few sample links and for the ROI Widget 
> example, a page with the key of the world is appearing and the logo 
> "Loading Image" also appears although no image gets loaded.
> 
>  
> 
> Does anyone have any pointers for how to resolve the below error?
> 
>  
> 
> PHP Warning: [MapServer Error]: msProcessProjection(): no options found 
> in 'init' file in 
> C:\Inetpub\wwwroot\chameleon\htdocs\common\wrapper\map_session.php on 
> line 215 PHP Warning: Failed to open map file 
> C:\Inetpub\wwwroot\chameleon\samples\htdocs/../map/chameleon.map in 
> C:\Inetpub\wwwroot\chameleon\htdocs\common\wrapper\map_session.php on 
> line 215 PHP Fatal error: Call to a member function on a non-object in 
> c:\Inetpub\wwwroot\chameleon\htdocs\widgets\KeyMap\KeyMap.widget.php on 
> line 197
> 
>  
> 
> I managed to get to this stage by commenting out the doc_root in the 
> php.ini file and setting the cgi.force_redirect to 0.
> 
>  
> 
> Any help I would really appreciate
> 
>  
> 
> Gail
> 
> -------------------------------------------------------------
> Gail Rebecca Millin
> Geodata Interoperability Support Officer
> -------------------------------------------------------------
> MIMAS
> Manchester Computing
> The University of Manchester
> Oxford Road
> Manchester
> M13 9PL
> 
>  
> 
> E-mail: Gail.Millin at manchester.ac.uk <mailto:Gail.Millin at manchester.ac.uk>
> Website: http://www.mimas.ac.uk/spatial
> -------------------------------------------------------------
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon

-- 
________________________
Jason Fournier

DM Solutions Group Inc.
jfournier at dmsolutions.ca
www.dmsolutions.ca
613.565.5056 x18





------------------------------

Message: 6
Date: Tue, 17 May 2005 08:13:13 -0400
From: Jason Fournier <jfournier at dmsolutions.ca>
Subject: Re: [Chameleon] map.search.ch
To: chameleon at lists.maptools.org
Message-ID: <4289DFD9.40003 at dmsolutions.ca>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Bart,

Very nice site ... and quite responsive.  They've done an excellent job.

Jason


Bart van den Eijnden wrote:
> Hi list,
> 
> a very nice GIS DHTML GUI (zoom in with left mouse button, zoom out with
right mouse button):
> 
> http://map.search.ch/
> 
> Best regards,
> Bart
> 
> Bart van den Eijnden
> Syncera-ITSolutions
> Postbus 270
> 2600 AG  DELFT
> 
> tel.nr.: 015-7512436
> email: BEN at Syncera-ITSolutions.nl
> 
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 

-- 
________________________
Jason Fournier

DM Solutions Group Inc.
jfournier at dmsolutions.ca
www.dmsolutions.ca
613.565.5056 x18



------------------------------

Message: 7
Date: Tue, 17 May 2005 08:27:26 -0400
From: Jason Fournier <jfournier at dmsolutions.ca>
Subject: Re: [Chameleon] PHP Warnings and MapServer Error
To: chameleon at lists.maptools.org
Message-ID: <4289E32E.2020605 at dmsolutions.ca>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi Gail,

Double slashes ('//') are ok in URL's.  

I notice your host is visible to the outside world - what is the URL to your
samples?  It would assist in debugging.  If possible please also create a
phpinfo() script and place it in the chameleon/samples/htdocs/ directory.

<?php

dl("php_mapscript.dll");
phpinfo();

?>

Alternatively you could post the relevant results of your phpinfo out put to
the list. We would need to see the General section and the PHP/MapScript
section.

Thanks,
Jason


Gail wrote:
> Hi Jason,
> 
> I had already downloaded proj.4 and it appears to be configured correctly.
> No image is showing up but if I right click on the image I get the URL
> 
>
http://camber.mc.man.ac.uk/chameleon//common//wrapper/drawmap.php?map_sessio
>
n_mode=1&run_query=0&sid=4289c68731fad&dummy=0.55135400+1116325511&UniqId=11
> 16325812267525
> 
> Should there be two forward slashes "//" before and after common in the
URL?
> Or has something gone wrong in the chameleon configuration? 
> 
> I put the above URL in a browser to see if the map would appear I got the
> message
> 
> CGI Error
> 
> The specified CGI application misbehaved by not returning a complete set
of
> HTTP headers
> 
> Would appreciate any suggestions 
> 
> Kind Regards
> 
> Gail
> 
> -----Original Message-----
> From: Jason Fournier [mailto:jfournier at dmsolutions.ca] 
> Sent: 16 May 2005 17:34
> To: Gail
> Cc: chameleon at lists.maptools.org
> Subject: Re: [Chameleon] PHP Warnings and MapServer Error
> 
> Gail,
> 
> MapServer is having trouble finding you proj.4 installation.  Have you
> installed it?  If you have you will have to set an ENV Variable.  You can
> alternatively set CONFIG PROJ_LIB "path/to/epsg".
> 
> Thanks,
> Jason
> 
> 
> 
> Gail wrote:
> 
>>Dear Chameleon Users,
>>
>> 
>>
>>I have now managed to get the .phtml pages for the samples bringing up 
>>the below warning for the first few sample links and for the ROI Widget 
>>example, a page with the key of the world is appearing and the logo 
>>"Loading Image" also appears although no image gets loaded.
>>
>> 
>>
>>Does anyone have any pointers for how to resolve the below error?
>>
>> 
>>
>>PHP Warning: [MapServer Error]: msProcessProjection(): no options found 
>>in 'init' file in 
>>C:\Inetpub\wwwroot\chameleon\htdocs\common\wrapper\map_session.php on 
>>line 215 PHP Warning: Failed to open map file 
>>C:\Inetpub\wwwroot\chameleon\samples\htdocs/../map/chameleon.map in 
>>C:\Inetpub\wwwroot\chameleon\htdocs\common\wrapper\map_session.php on 
>>line 215 PHP Fatal error: Call to a member function on a non-object in 
>>c:\Inetpub\wwwroot\chameleon\htdocs\widgets\KeyMap\KeyMap.widget.php on 
>>line 197
>>
>> 
>>
>>I managed to get to this stage by commenting out the doc_root in the 
>>php.ini file and setting the cgi.force_redirect to 0.
>>
>> 
>>
>>Any help I would really appreciate
>>
>> 
>>
>>Gail
>>
>>-------------------------------------------------------------
>>Gail Rebecca Millin
>>Geodata Interoperability Support Officer
>>-------------------------------------------------------------
>>MIMAS
>>Manchester Computing
>>The University of Manchester
>>Oxford Road
>>Manchester
>>M13 9PL
>>
>> 
>>
>>E-mail: Gail.Millin at manchester.ac.uk <mailto:Gail.Millin at manchester.ac.uk>
>>Website: http://www.mimas.ac.uk/spatial
>>-------------------------------------------------------------
>>
>> 
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Chameleon mailing list
>>Chameleon at lists.maptools.org
>>http://lists.maptools.org/mailman/listinfo/chameleon
> 
> 

-- 
________________________
Jason Fournier

DM Solutions Group Inc.
jfournier at dmsolutions.ca
www.dmsolutions.ca
613.565.5056 x18


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20050520/12914f75/attachment-0001.html


More information about the Chameleon mailing list