[MS4W-Users] version 3.1.0

Björn Danielsson bjorn.danielsson at falubo.se
Wed Oct 7 10:07:34 EDT 2015


Hi,

I have put the Oracle issue to the side for the time being and am trying to 
convert mapscript and mapfile to Mapserver v7.

Several issues here that I don't understand and when scanning the Internet 
for mapserver tags your name popped up on several occasions so perhaps you 
know what is going on.

My old mapserver version in ms4w v3.0.6 is 6.0.3.

Problems concerning LABEL for both LEGEND and SCALEBAR in v7. Labels can't 
be controlled, as a matter of fact you can comment the whole LABEL section 
and a 'default' label with a huge size is inserted into the image anyway. 
Weird!

Another issue is using 'in' in FILTER.

Old style from PHP:
     $filter .= " and [skifte] in ('A','B','C')";  ( part of a larger select 
) 
and then 
     $oLayer->setFilter($filter);
 
As I have understood the documentation the new way should be: " and [skifte] 
in 'A','B','C'. I have tried a number of variations, all turned out wrong.
So how should that little code snippet be correctly written in v7?

/BJDA

-----Original Message-----
From: Jeff McKenna <jmckenna at gatewaygeomatics.com>
To: ms4w-users at lists.ms4w.com
Date: Tue, 6 Oct 2015 09:39:25 -0300
Subject: Re: [MS4W-Users] version 3.1.0

Hi Björn,

I have an old Oracle10 instance so I will do some more testing.
Initially it sounds like php-cgi.exe is missing the oci8 extension, but
mapscript should still load.  I need to do more testing.   I have filed
this as a ticket, and you can add yourself as the CC (after registering
an account) and provide feedback directly there:
http://www.ms4w.com/trac/ticket/26

-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 2015-10-06 4:36 AM, Björn Danielsson wrote:
> Good morning!
> I commented php_oci8_11g.dll in the ini-file as you said and ran phpinfo
> twice, once with the libmap.dll for Oracle and once with the standard
> libmap.dll.
> With the standard libmap.dll MapScript is loaded, but with the
> libmap.dll for Oracle neither oci8 nor MapScript is loaded.
> The only uncommented modules in my ini-file now are php_curl,
> php_fileinfo, php_gd2, php_intl and php_mapscript. The error messages in
> Apaches error.log disappeared when php_mbstring and php_exif were 
commented.
> Mapserv -v shows INPUT=ORACLESPATIAL.
> So it seems to be a php/oracle problem.
> I use oracle instantclient_11_2 while in 3.1.0 the name is oracle12. Is
> that an issue? Oracle versions?
> /BJDA
>
>     -----Original Message-----
>     From: Jeff McKenna <jmckenna at gatewaygeomatics.com>
>     To: ms4w-users at lists.ms4w.com
>     Date: Mon, 5 Oct 2015 12:44:51 -0300
>     Subject: Re: [MS4W-Users] version 3.1.0
>     Do not uncomment anything else (such as php_oci8_11g.dll), instead, do 
a
>     phpinfo() call, and verify that "mapscript" is listed there, and also
>     any other extensions that you need are listed on that page.
>
>     The ini file list of extensions that are commented out do not reflect
>     MS4W, many of those extensions are compiled into php.exe for this 
build.
>
>     Please, don't uncomment anything else, and instead check your 
phpinfo()
>     and see if the extensions you need are loaded already.
>
>     -jeff
>
>
>     --
>     Jeff McKenna
>     MapServer Consulting and Training Services
>     http://www.gatewaygeomatics.com/
>
>
>
>     On 2015-10-05 12:40 PM, Björn Danielsson wrote:
>      > Thanks for answering so soon,
>      > I have done this concerning Oracle.
>      > 1 Swap libmap.dll
>      > 2 uncomment php_oci8_11g.dll in the ini-file. (Why should this
>     extension
>      > be present in the ini-file if it should not be uncommented? )
>      > Result: php_mapscript.dll is not loaded.
>      > If php_oci8_11g.dll is commented -> php_mapscript.dll is loaded.
>     Which
>      > makes me believe that php_oci8_11g.dll has some impact here.
>      > As I tried to say in the mail ( I know I'm getting tired, it is 
pitch
>      > dark outside here now and I am soon crossed eyed ) let's start with
>      > php_mbstring.dll and have that dll included without errors in
>     error.log.
>      > /BJDA
>      >
>      >     -----Original Message-----
>      >     From: Jeff McKenna <jmckenna at gatewaygeomatics.com
>     <mailto:jmckenna%40gatewaygeomatics.com>>
>      >     To: ms4w-users at lists.ms4w.com
>     <mailto:ms4w-users%40lists.ms4w.com>
>      >     Date: Mon, 5 Oct 2015 12:15:18 -0300
>      >     Subject: Re: [MS4W-Users] version 3.1.0
>      >     Hi Björn,
>      >
>      >     Regarding setting up the Oracle plugin for MapServer, please
>     follow the
>      >     steps in your local README, or here:
>      > http://www.ms4w.com/README_INSTALL.html#d-plugins
>      >
>      >     You will notice that there is no mention of
>     "php_oci8_11g.php" in those
>      >     steps to enable the Oracle plugin for MapServer, I am not
>     sure where you
>      >     saw that mentioned for version 3.1.0
>      >
>      >     It could be that you are requesting an enhancement for the
>     PHP build of
>      >     MS4W 3.1.0? It could be that you need a new extension built
>     for PHP? (I
>      >     have no idea yet though) I am not sure what you are
>     requesting, but if
>      >     that is what you need you can always file your enhancements
>     on the
>      >     Tracker at http://www.ms4w.com/trac/
>      >
>      >     I need more information from you first, to understand what
>     you need to
>      >     do.  Are you saying that there is a PHP extension missing?  I
>     am not
>      >     sure.  Maybe just following the steps in the README (only
>     those steps),
>      >     and then test phpmapscript (don't uncomment anything else),
>     does that
>      >     work?  If yes, that's great, PHPMapScript is working on your
>     server.
>      >     Then, I am not sure what you need after that.  Please explain.
>      >
>      >
>      >     -jeff
>      >
>      >
>      >
>      >     --
>      >     Jeff McKenna
>      >     MapServer Consulting and Training Services
>      > http://www.gatewaygeomatics.com/
>      >
>      >
>      >
>      >     On 2015-10-05 11:51 AM, Björn Danielsson wrote:
>      >      > Hi,
>      >      > I am trying to migrate from 3.0.6 to 3.1.1 and have
>     encountered
>      >     issues.
>      >      > It started with Oracle. I swapped libmap.dll as instructed 
and
>      >      > uncommented php_oci8_11g.php in the ini-file ( like for
>     version
>      >     3.0.6 )
>      >      > and restarted Apache. The same Oracle/instantclient_11_2
>     as before.
>      >      > And php_mapserver.dll did not load.
>      >      > I commented php_oci8_11g.php and swapped back libmap.dll.
>      >      > Php_mapserver.dll loaded.
>      >      > A look in error.log showed a lot of -  PHP Warning:  PHP
>     Startup:  in
>      >      > Unknown on line 0:
>      >      > I commented all extensions and started uncomment them one
>     by one from
>      >      > the top. At php_mbstring.dll the errors started to show up 
in
>      >     error.log.
>      >      > Php_mbstring.dll obviously calls modules that do not exist.
>      >      > I stopped testing here. Something seems to be missing. But
>     what?
>      >      > In 3.1.0 the includes in Path does not include 'C:'. I
>     have not
>      >     changed
>      >      > the Path in my computer so the includes start with 
C:\ms4w...
>      >     instead of
>      >      > \ms4w.... That is the only difference between the
>      >     3.0.6-installation and
>      >      > the 3.1.0-installation. I do not believe that this is the
>     issue
>      >     because
>      >      > php_mapscript.dll, php_curl.dll and other dlls are found
>     in /php/ext.
>      >      > This happened in a Windows7 test computer with the plan to 
be
>      >     installed
>      >      > in a prod computer under Windows Server 2012R2.
>      >      > The Mapserver graphics in 3.1.0 looks better than that in
>     3.0.6 so
>      >      > hopefully we can migrate to 3.1.0.
>      >      > I have tried everything my phantasy has come up with and
>     am still
>      >     at loss.
>      >      > Perhaps someone with a broader phantasy then mine knows
>     what is
>      >     going on.
>      >      > On the Internet someone mentioned that PostGis perhaps can
>     be the
>      >      > villain. I don't know.
>      >      > First I would like to get rid of the error messages in
>     error.log and
>      >      > then include php_oci8_11g.dll.
>      >      > /BJDA
>      >      >
>      >      >
>      >
>      >
>      >


_______________________________________________
MS4W-Users mailing list
MS4W-Users at lists.ms4w.com
http://lists.ms4w.com/cgi-bin/mailman/listinfo/ms4w-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ms4w.com/mailman/private/ms4w-users/attachments/20151007/4131ad93/attachment.html>


More information about the MS4W-Users mailing list