Léonard DUMONT | 11 Dec 13:03 2015
Picon

Re: [Mac OS X] Impossible to load MapScript module with PHP

Ok, thanks for your answer. I thought there could have been another solution, but I'll try to install PHP with homebrew.

Cordialement,

Léonard Dumont

2015-12-11 10:33 GMT+01:00 Ben Madin <ben <at> ausvet.com.au>:
Um, you are correct, the extension has not been compiled to work with the same version of php as you are trying to use.

I can only suggest that you get your php from the same source as your mapscript... (I guess homebrew, but my success there has been limited and conflicted) or compile php yourself, them mapserver with the php-mapscript option set.

You may be up for some pain...! You could also try kyngchaos.com, but I'm not sure if he is still providing a php suitable for what you want. 



On 10 December 2015 at 17:28, Leonard <dumont.leonard <at> gmail.com> wrote:
Hi everyone !

I am a new user trying to use mapserver, and I have some problems... One of
them is that I cannot load the php_mapscript extension. I have PHP 5.6.11
installed with  php-osx.liip.ch <http://php-osx.liip.ch>   and mapscript 6.4
installed with Homebrew, and there seems to be a conflict, since when I run
php I get this warning :

Warning: PHP Startup: MapScript: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match

I added this line to my php.ini file :

extension="/usr/local/opt/mapserver-64/mapscript/php/php_mapscript.so"

Thanks for your help !

Léonard Dumont.



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mac-OS-X-Impossible-to-load-MapScript-module-with-PHP-tp5240669.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



--

Ben Madin
BVMS PhD, MANZCVS

t : +61 8 6102 5535
m : +61 448 887 220
e : ben <at> ausvet.com.au

AusVet Animal Health Services
Western Australia

www.ausvet.com.au

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Leonard | 10 Dec 10:28 2015
Picon

[Mac OS X] Impossible to load MapScript module with PHP

Hi everyone !

I am a new user trying to use mapserver, and I have some problems... One of
them is that I cannot load the php_mapscript extension. I have PHP 5.6.11
installed with  php-osx.liip.ch <http://php-osx.liip.ch>   and mapscript 6.4
installed with Homebrew, and there seems to be a conflict, since when I run
php I get this warning :

Warning: PHP Startup: MapScript: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20131226
These options need to match

I added this line to my php.ini file :

extension="/usr/local/opt/mapserver-64/mapscript/php/php_mapscript.so"

Thanks for your help !

Léonard Dumont.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mac-OS-X-Impossible-to-load-MapScript-module-with-PHP-tp5240669.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Heidi Ochis | 7 Dec 23:17 2015

Color ramps with polygons vs raster

Can you give a polygon file (values 1 - 50) a graduated color ramp using a class expression?

Heidi
Computer Terrain Mapping, Inc
420 21st Ave, Suite 114
Longmont, CO 80501
303-444-1670




_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Berger, Cora | 4 Dec 08:44 2015
Picon

Cascading Legend with selected Style

Hello everybody,
I'm using a WMS as a layer with Mapserver 7. The source WMS is available in 3 different styles. I want my WMS to
display the style called "SW", so I add  	 "wms_style"  "SW" 	to my layers METADATA, which works fine. 
If I try to add a legend to this layer I get problems. 

I tried this

"wms_style"              "SW"
  "wms_style__legendurl_href" "example-url"
  "wms_style__legendurl_width" "531"
  "wms_style__legendurl_height" "769"
  "wms_style__legendurl_format" "image/png" 
  "wms_feature_info_mime_type" "text/html"

And this

  "wms_style"              "SW"
  "wms_style_SW_legendurl_href" "example-url"
  "wms_style_SW_legendurl_width" "531"
  "wms_style_SW_legendurl_height" "769"
  "wms_style_SW_legendurl_format" "image/png" 
  "wms_feature_info_mime_type" "text/html"

Nothing works. The legend gets displayed, if I leave the "wms_style"-tag empty:

"wms_style"              ""
  "wms_style__legendurl_href" "example-url"
  "wms_style__legendurl_width" "531"
  "wms_style__legendurl_height" "769"
  "wms_style__legendurl_format" "image/png" 
  "wms_feature_info_mime_type" "text/html"

But now the mapimage gets displayed with the default-style, which is in color and not in black and white
(SW), as I want it to be. 

The error-message for the 2 examples above is: msWMSLoadGetMapParams(): WMS server error. Style (SW) not
defined on layer.

Any ideas?

Thanks!

                
Cora Berger
                           
- -
Bezirksregierung Köln
Dezernat 74 -  Geodatenzentrum / Geodateninfrastruktur
50606 Köln 
Internet: www.bezreg-koeln.nrw.de

Dienstgebäude: Muffendorfer Str. 19-21, 53177 Bonn
Telefon:   +49 (0) 221 - 147 - 4847
Telefax:   +49 (0) 228 - 180 - 33360 und (digital) 0221 - 147 - 4874
mailto: cora.berger <at> bezreg-koeln.nrw.de
Internet: www.geobasis.nrw.de 
eShop:  www.geoportal.nrw.de

Folgen Sie uns auf Twitter: https://twitter.com/BezRegKoeln

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Stephen Woodbridge | 3 Dec 15:35 2015
Gravatar

Re: [mapserver-dev] pink screen after activating several layers (mapserver version 6.2.0)

Please reply to the list so everyone can benefit from the questions and 
answers and there are a lot of other people that might have input to the 
problem.

On 12/3/2015 5:35 AM, Donald wrote:
> Hi Steve,
>
> I don't believe that it is a problem with open layers. I tested

The point is to load the pink tile in a separate window so you can view 
the error message and see why it failed.

> individually one layer at a time and I could conclude that I got the
> pink screen when a certain amount of activated layers are reached
> regardless of the order. Do you know if mapserver has some configuration
> that restrict the number of layers to render or some configuration about
> memory limit to render the layers ?

No, I do not think this is the case. How many layers are in your mapfile?

-Steve W

> thanks
>
> 2015-12-02 16:28 GMT+00:00 Stephen Woodbridge <woodbri <at> swoodbridge.com
> <mailto:woodbri <at> swoodbridge.com>>:
>
>     On 12/2/2015 11:22 AM, Donald wrote:
>
>         cheers,
>
>         I have several layers that I can activate. When I activate all
>         at once I get
>         a pink screen. If I activate a layer individually by selecting
>         one at a time
>         I still get a pink screen even though some layers are correctly
>         drawn.  I
>         checked the error log and I the last log line I have says
>         "freeing map at
>         0xa022230". To see the map again I have to unselect all layers.
>
>         Any thoughs on how to solve the problem ?
>
>
>     Mostly likely it is only one of some of the layers that are having
>     an issue. So trying, selecting one layer at a time to figure out
>     which layer is causing the problem.
>
>     Also a "pink screen" sounds like you are using OpenLayers and the
>     pink is for a failure to render the image. In FireFox, right click
>     on the pink image and select view image this image or copy the image
>     url and paste it into a new tab/window and you might get an error
>     message that would be helpful.
>
>     -Steve W
>
>     _______________________________________________
>     mapserver-dev mailing list
>     mapserver-dev <at> lists.osgeo.org <mailto:mapserver-dev <at> lists.osgeo.org>
>     http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
>

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Jeff McKenna | 1 Dec 17:24 2015
Gravatar

PHP 7.0.0. experience

Hi everyone,

I saw a brief mention that PHP-7.0.0 release was being tagged today by 
the PHP team; I am not sure if that is true or not, but it made me 
wonder if anyone out there in the MapServer community has tried PHP 7 
(any of the release candidates) and mapscript yet.  Anyone have any 
experience or thoughts?

I am of course keen to upgrade to PHP7 for the MS4W (http://ms4w.com) 
community, and am looking for advice or experience using PHP7.

Thanks everyone,

-jeff

--

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

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Matt McClelland | 1 Dec 10:15 2015

Keeping labels clear of a specific path

Hi All

I am using mapserver 7 to make maps for a hiking website.
I am wanting to keep labels from covering the main hiking path for each map.

Labels such at the park name, waypoint names etc tend to sit over the main track and at times hide the intersections.

I am using a map file and WMS requests to make the maps

Is there a way to kindly ask mapserver to create a label buffer about a particular line feature? (so that no labels are drawn over that line)

thanks 

Matt  :)

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
milad nidal | 1 Dec 02:49 2015
Picon

WMS cascading and Mapcache

Hi,

I have 100 layer for a large area.. I was creating cache (with Mapcache linux) and Mapserver 6.4 (Windows). I’m creating some WMS from layer in Postgis and some from other WMS (cascading from another Mapserver Linux) and everything was correct. Later we started using Mapserver 7 (Linux) and Mapcache Linux. The result is not nice.. We get something like an outline of cascading WMS and this happened only when we do a cache (it is correct when we visualize the cascading WMS for one layer in the browser). I’m using the style "" and "wms_transparent" "true" and "wms_format"            "image/png".

 

Thanks for any help

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
wiltomap | 30 Nov 13:33 2015
Picon
Gravatar

Mapserver: set symbol on lines according to line features length

I need to display arrows alongside to line features. Lines represent water
pipes. The issue I'm facing is that lines are a concatenation of numerous
line features of various lengths. Therefore, symbols are attached to every
line, whatever its length. This makes symbols either overlaying or touching
eachother (as in example below).

<http://osgeo-org.1560.x6.nabble.com/file/n5239136/wpp.png> 

Inside my mapfile, I define the display rules of my symbols in the STYLE
element:

    STYLE
        SYMBOL "wp_arrow"
        GAP -100
        COLOR 255 0 0
        OFFSET -5 -99
        SIZE 6
    END

I would like these rules to apply only to line features being more than 10
meters long (or x map units).

Thanks in advance for help or any advice!

Thomas

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-set-symbol-on-lines-according-to-line-features-length-tp5239136.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
jvenegasperu . | 24 Nov 18:11 2015
Picon

connect to oracle to information alphanumeric

Hi all

in ms4w ver 3 i can connect to oracle
i use php_oci8_11g.dll
all ok


in ms4w 3.1 can not connect to oracle.

i copy php_oci8_11g.dll to php/ext

and activate php_oci8_11g.dll in php.ini

but not connect to oracle.

please help


--
José Mercedes Venegas Acevedo
cel Mov RPM #955853768

mails: jvenegasperu <at> gmail.com
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
rishi | 24 Nov 08:24 2015
Picon

wms

hi all

my wms url is
 http://localhost:8085/cgi-bin/mapserv.exe? map=c://ms4w/apps/webgis/wmssample.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities

when i hit the above url it is downloading the mapserv.exe then i am changing .exe to .txt then i can able to see xml file

but when i am trying to add the above url in qgis, map is not displaying also i am getting error as document is in invalid format.

if i hit the url  http://localhost:8085/cgi-bin/mapserv? map=c://ms4w/apps/webgis/wmssample.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
 
without .exe the it is showing error as The requested URL /cgi-bin/mapserv was not found on this server.

please tell me how to resolve the issue
 

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Gmane