Yes, that's it. Thanks, Seth!
It was an insidious migration problem. The old way of cloning a layer
($l2 = new layerObj($oMap,$l1);) still works, but ignores the second
parameter. So you get a default new layer, with STATUS OFF. I filled
every member but that. No wonder the layers didn't turn
Hi Jan,
I'm not a PHP MapScript user but you should be able to use:
$l2 = $l1->cloneLayer();
As per the note at the following link - "In the Java & PHP modules this method
is named cloneLayer. "
https://mapserver.org/mapscript/mapscript-api/stub/mapscript.layerObj.html#mapscript.layerObj.clone
Hi,
In previous versions of PHP MapScript a new layer was defined as:
$l2 = new layerObj($oMap,$l1);
$l1 is the base layer from which $l2 is copied.
In MapScript SWIG the second parameter has disappeared. $l2 has to be
cloned from $l1, and then inserted into the map. With PHP-MapScript this
ver-users On
Behalf Of Sven Schroeter via MapServer-users
Sent: Monday, November 13, 2023 10:44 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [MapServer-users] PHP-Mapscript: write imageObj to stdout
Hi Jan,
maybe you need this:
//SWIG
if($mapscriptSwig) {
-Original Message-
From: MapServer-users On Behalf Of
Sven Schroeter via MapServer-users
Sent: Monday, November 13, 2023 10:44 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [MapServer-users] PHP-Mapscript: write imageObj to stdout
Hi Jan,
maybe you need this:
Yes, in php using swig it would be:
$oImg = $this->oMap->draw();
echo $oImg->getBytes()
-Original Message-
From: MapServer-users On Behalf Of
Sven Schroeter via MapServer-users
Sent: Monday, November 13, 2023 10:44 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [MapSer
Hi Jan,
maybe you need this:
//SWIG
if($mapscriptSwig) {
echo msIO_getStdoutBufferBytes();
}else{
echo ms_iogetStdoutBufferBytes();
}
Sven
Am 10.11.2023 um 18:59 schrieb Jan Hartmann via MapServer-users:
Hi,
Hi,
In previous versions of PHP-Mapscript there was a function
ImageObj->saveImage(fn), that wrote an ImageObj to a file on disk. When
fn was empty, the image was sent to stdout. In SWIG-Mapscript, this
function has been replaced by ImageObj->save(fn), but fn cannot be empty
anymore. How
Hi Sven,
Native PHP MapScript is no longer supported (and will be removed for the
MapServer 8.0 release).
Instead you must use SWIG MapScript support, so be sure to set
-DWITH_PHPNG=ON in your cmake command. SWIG >=4 is recommended for this.
You can then follow
Hi,
I am trying to get PHP Mapscript to run stably on a Debian 10 machine.
The installation actually worked fine and everything is running, only
there is an error after each automatic nightly restart of the Apache
server.
After that PHP continues to run, but the Mapscript module does not work
Hi Rob,
More details on the PROJ6 performance implications at
https://www.mapserver.org/development/rfc/ms-rfc-126.html#performance-implications
As Jeff wrote if you can recreate with shp2img or mapserv then it can rule out
MapScript. A minimal MAP file and dataset would then be required to
Yes, I will.
Any additional background information you can share on the adviced PROJ<6
(or PROJ<=6, e.g. the current 6.3.2)
Thanks,
Rob
Op ma 12 okt. 2020 om 19:17 schreef Jeff McKenna <
jmcke...@gatewaygeomatics.com>:
> Hi Rob,
>
> Next I would remove the ECW support/reliance and try to
Hi Rob,
Next I would remove the ECW support/reliance and try to trigger the
error without ECW data (yes with a local mapfile called from shp2img).
Maybe others have ideas.
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
co-founder of FOSS4G
http://gatewaygeo.com/
On
Hi Jeff, all,
Thank you for your thoughts on this. Can you elaborate on the PROJ<6
remark; serious performance hits?
Indeed, I am on the NG (SWIG) MapScript. Trying with shp2img and mapserv
-nh will require to have the equivalent .map file on disk; I will work on
that soon.
Taking a complete
Hi Rob,
I'm not sure what is happening in your case, but make sure that you are
using the recommended PHP SWIG MapScript in your build (-DWITH_PHPNG=1),
as the old PHP MapScript is unmaintained.
Some other thoughts:
- can you trigger this with shp2img at the commandline? (this will
remove
Dear list,
See my previous email; I didn't mention that the map is rendered from ECW.
Maybe that's causing the trouble?
I made some progress in finding a workaround. I configured child processes
in the fpm pool to handle only 1 request:
pm.max_requests = 1
Basically this turns off any
Hi All,
I am running latest MapServer 7.6.1 compiled from source on Ubuntu 20.04
with (also from source):
- proj-7.1.0
- gdal-3.1.2
Using the ppa:ondrej/php repo, I installed the following PHP packages:
php7.4 php7.4-fpm php7.4-dev
Apache/2.4.41 proxies into the FPM over unix socket
Compiling
I figured it out!
I had to adjust my setextent() of course.
$this->map->setextent(-180, -90, 180, 90);
This is for WGS84. The numbers obviously need to be much higher for 3857.
>> ___
>> mapserver-users mailing
>>
Hi. I assume so as well.
I have tried to use for example:
$this->map->setprojection('init=epsg:3857', MS_TRUE);
but it didn't change anything.
That's why I wrote "or do I need to set an option in the layer or map
object?" - I figure I need to tell Mapscript what I am trying to do, but I
couldn't
Hi, I am not using PHP Mapscript, but shouldn't You set the extent to
valid EPSG coordinates for EPSG:3857. IE. Projected bounds:
-20026376.39 -20048966.10
20026376.39 20048966.10
for global coverage.
/Lars S.
Den 2020-09-20 kl. 18:32, skrev magma:
Hi all.
I have used PHP Mapscript for a
Hi all.
I have used PHP Mapscript for a few years to render static images of maps,
from data I have in PostgreSQL/PostGIS. A simplified example of my code
looks like this:
map = ms_newMapObj('');
$this->map->selectOutputFormat('png');
$this->map->imagecolor->setRGB(56, 112, 192);
Hi Jeff,
ooops sorry for not replying to all.
According to the migration guide, this means that I have include the
mapscript.php that I build? i.e.
/usr/local/src/mapserver-7.4.3/build/mapscript/phpng/mapscript.php in every
script that I start right ?
This file still contains dl()
Hi Stefanos,
Your next step is to follow the Migration Guide, and change to the new
syntax for declaring new SWIG MapScript objects (see
https://mapserver.org/MIGRATION_GUIDE.html#mapserver-7-2-to-7-4-migration)
Please always reply-all, or, you can definitely contact me directly for
Hi Stefanos,
If you are trying to compile the new MapScript support through SWIG, for
PHP7, then you should use "–DWITH_PHPNG=ON", as described at
https://mapserver.org/installation/php.html#build-install-the-php-mapscript-module
Hope that helps.
Have a nice weekend,
-jeff
--
Jeff
Hello list,
I am confused about the new php mapcript version that comes with the SWIG
family. I compiled a MapServer 7.4.3 version on my Ubuntu 19.04 server (with
php version 7.2.24) successfully with php and python mapscript.
-DWITH_PYTHON=ON \ -DWITH_PHP=ON \
Hi Sven,
Probably the same issue as here?
https://github.com/mapserver/mapserver/issues/5798
You could try with the new release candidate for MS 7.4 to see if it is now
resolved.
Seth
--
web:http://geographika.co.uk
twitter: @geographika
On Fri, May 10, 2019, at 5:22 PM, Sven Schroeter wrote:
Hi,
sorry for the cross-post, but maybe there's someone here who doesn't
read the ms4w list...
I'm using the new MS4W 4.0.0 and try to build a WMS Wrapper for the new
PHP Mapscript with Swig.
I am currently writing the complete PHP mapscript code from my client so
that it runs with both
Hello Seth,
you are right. I am using PHP MapScript rather than then SWIG bindings.
Actually the question where the setPattern method belongs to was my
first question to the dev List.
http://osgeo-org.1560.x6.nabble.com/setPattern-in-symbolObj-in-PHP-MapScript-td5389111.html
As it is at least
Hi Nicol,
Not sure if this helps but in the Python MapScript bindings the API changed at
some point, and now uses:
symbol.pattern = [0, 1]
https://github.com/mapserver/mapserver/blob/418e15cda5109e3a47c6691567e3e3e62e964187/mapscript/python/tests/cases/symbol_test.py#L135
This however is
Hello,
after looking closer into the source code I was able to resolve the
issue of setting the 'linecap' property. The property expects
constants. It works if you are specifying one of them:
MS_CJC_NONE (0)
MS_CJC_BEVEL (1)
MS_CJC_BUTT (2)
MS_CJC_MITER (3)
MS_CJC_ROUND (4)
MS_CJC_SQUARE (5)
I have only tried using shp2img to test my map file.
I will try running from the PHP command line as well.
One thing that I have noticed is that restarting httpd fixes the problem for
a little while, and then, a while later, the problem crops up again. So I
think it is a httpd/php/mapserver
Hello,
I have huge difficulties to use the styleObj in PHP MapScript
(Mapserver 7.3-dev, PHP 7.1).
I am struggling with the setPattern() method and the linecap property.
If I am using
$styleObj-> setPattern( array( 8.0, 12.0) );
this gets translated to the following MapFile syntax
PATTERN
It fails by your PHP script by commandline, and also in your browser?
That can help narrow down the issue I think (calling 'php myfile.php' at
commandline, and also in browser). I have hit this before.
You can look more into that ob_clean() and its related flush commands
(there are several I
Thanks Jeff!
I tried it out but no joy.
It works at first, but after a while, I occasionally get the older images
again.
樂
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html
___
mapserver-users mailing list
Hi Lisa,
I have had problems like this before. Here is what I did:
- added ob_clean() near end of my PHP scripts to flush out buffer
- saved temp image with rand() in filename, such as:
$file = $oImage->save("ttt".rand().".png", $oMap);
I know it's not fancy, but it has worked for me.
Hello - I have been trying to solve an this issue for about a week now and I
am hoping someone can give me some ideas on how to solve it.
Here is the setup:
Centos 6
Apache 2.2.15
PHP 5.3.3
Mapserver 6.4.3
I have an old website that serves up weather related data. A crontab process
downloads
ot click links or
open attachments unless you know they are safe.
How many bands are in the raster?
From: mapserver-users on behalf of
Moen, Paul T.
Sent: Thursday, December 13, 2018 10:32:44 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] PHP MapScript queryByPoint fails successive
How many bands are in the raster?
From: mapserver-users on behalf of
Moen, Paul T.
Sent: Thursday, December 13, 2018 10:32:44 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] PHP MapScript queryByPoint fails successive query.
I am trying
I am trying to query a raster at 2 points in a single php file using php
mapscript.
1. I create a map object.
2. I get a layer object from my raster
3. I create 2 point objects.
4. I query the raster layer object with queryByPoint using point 1 and it is
successful, except that it
}else{
$this_layer->set('opacity', $my_layeropacity);
}
Greetings
Sven
Von: Carlos Ruiz [mailto:boolean10...@yahoo.com]
Gesendet: Samstag, 9. Dezember 2017 00:58
An: Sven Schroeter
Betreff: Re: [mapserver-users] php mapscript set opacity
Hi Sven,
I guess this happens because o
Hi,
I'm trying to transfer old code from Mapserver 6 to Mapserver 7 and fail to
set the transparency via PHP Mapscript.
my code:
$this_layer->set('opacity', 80); Works with MS 6, not in MS 7 (the layer
is not displayed here)
$this_layer->set('opacity', 100); Works with MS 6 and MS 7
I have
16:42
An: mapserver-users@lists.osgeo.org; Sven Schroeter
Betreff: Re: [mapserver-users] php mapscript problem
Sven,
I haven't worked with Mapscript and IIS. However, I always free the map before
unsetting it on PHP
$oMap->free();
unset($oMap);
Why don't you try this and see what h
Sven,
I haven't worked with Mapscript and IIS. However, I always free the map before
unsetting it on PHP
$oMap->free();unset($oMap);
Why don't you try this and see what happens
On Friday, November 24, 2017, 9:04:16 AM CST, Sven Schroeter
wrote:
Hi,
I write many
Hi,
I write many mapfiles from an application to the file system under Windows
and IIS.
Another script loads this mapfiles and checks if it is the right syntax.
If there is an syntax error in the mapfile I'll get an exeption:
try {
$oMap = ms_newMapobj($mymapfile);
} catch (Exception $e)
Subject: Re: AW: RE: [mapserver-users] php Mapscript queryByAttributes
Sven,
This is a good workarround. It's weird why the IN operator is not working for
Postgres but as Steve wrote, a ticket will be opened.
On Thursday, October 12, 2017, 8:04:46 AM CDT, Sven Schroeter
<schroe...@netgis.d
sage-
From: Sven Schroeter [mailto:schroe...@netgis.de]
Sent: Thursday, October 12, 2017 8:05 AM
To: Lime, Steve D (MNIT) <steve.l...@state.mn.us>; 'Carlos Ruiz'
<boolean10...@yahoo.com>; mapserver-users@lists.osgeo.org
Subject: AW: RE: [mapserver-users] php Mapscript queryByA
on: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us]
Gesendet: Mittwoch, 11. Oktober 2017 23:33
An: Carlos Ruiz; mapserver-users@lists.osgeo.org; Sven Schroeter
Betreff: RE: RE: [mapserver-users] php Mapscript queryByAttributes
Ugh, my bad. At least with the LIKE operator it’s because MapServer doe
2017 4:03 PM
To: mapserver-users@lists.osgeo.org; Sven Schroeter <schroe...@netgis.de>;
Lime, Steve D (MNIT) <steve.l...@state.mn.us>
Subject: Re: RE: [mapserver-users] php Mapscript queryByAttributes
Hey Steve,
> the IN operator works off a delimited list, try queryB
ens
in a list.
queryByAttributes("municipio", "([municipio] LIKE 'G%')", MS_MULTIPLE); //
query error
This is close, it’s a logical expression but you’re comparing a number against
a string. It should bequeryByAttributes("municipio", "(‘[municipio]’ LIKE
'G%'
age-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On
Behalf Of Sven Schroeter
Sent: Wednesday, October 11, 2017 10:46 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] php Mapscript queryByAttributes
Hi,
Old Server: PHP 5.4.36 with MS 6.4.1 (MS4W)
Ne
IKE 'G%')", MS_MULTIPLE); //
query error
This is close, it’s a logical expression but you’re comparing a number against
a string. It should be queryByAttributes("municipio", "(‘[municipio]’ LIKE
'G%')", MS_MULTIPLE);
Steve
From: mapserver-users [mailto:mapserver-users-bo
Hi,
Old Server: PHP 5.4.36 with MS 6.4.1 (MS4W)
New Server: PHP 5.6.31 with MS 7.0.6 (MS4W 3.2.2)
My Test Script:
$qfield = 'gid';
$qstring = "gid IN (1,2,3)";
@$datQuery = $query_layer->queryByAttributes($qfield,$qstring,MS_MULTIPLE);
Works fine on the old Server, on the new Server no result.
On 28/09/17 18:46, Stathis G. Arapostathis wrote:
> Well, actually, I cannot see it :) There is no php_mapscript.so file
> inside that directory
That is what I actually suspected. So either you need to find where
php_mapscript.so HAS been installed, if you think it has, and correct
the php.ini
Well, actually, I cannot see it :) There is no php_mapscript.so file inside
that directory
On Thu, Sep 28, 2017 at 1:15 AM, Lester Caine wrote:
> On 27/09/17 22:59, e.arapostathis wrote:
> > Yes it's the 5.6 version of PhP since my app is not compatible with the
> > latest
On 27/09/17 22:59, e.arapostathis wrote:
> Yes it's the 5.6 version of PhP since my app is not compatible with the
> latest version.
Minor number is important here ... both install and php_mapscript.so
need to be the same minor version.
>>My next step would be to check php can >actually see the
Στάλθηκε από το smartphone Samsung Galaxy.
Αρχικό μήνυμα Από: Lester Caine <les...@lsces.co.uk>
Ημερομηνία: 27/9/17 7:03 μ.μ. (GMT+02:00) Προς:
mapserver-users@lists.osgeo.org Θέμα: Re: [mapserver-users] php-mapscript
installation in Linux
On 27/09/17 16:51, Stathis Arapos
On 27/09/17 16:51, Stathis Arapostathis wrote:
> I am running Apache2 server along with MapServer in an Ubuntu 16.04 LTS.
> However, while I am trying to load an application I am receiving an
> error message which according to the log file is the following:
>
> /"PHP Warning: PHP Startup:
Hello,
I am running Apache2 server along with MapServer in an Ubuntu 16.04 LTS.
However, while I am trying to load an application I am receiving an
error message which according to the log file is the following:
/"PHP Warning: PHP Startup: Unable to load dynamic library
Hi all,
I'm trying to install MapServer version 7.0.6. I want php mapscript so I'm
doing it manually. I've installed two versions of php on my system (Linux Mint
18.1) but I've downgraded to 5.6 since as far as I'm concerned version 7 is
still in development. So everything worked well until I
Hi Carlos, there is actually a ticket filed for that:
https://github.com/mapserver/mapserver/issues/5358
-jeff
On 2017-09-13 3:01 PM, Carlos Ruiz wrote:
Is there a way to handle COMPOSITE through PHP Mapscript ? Documentation
does not show anything.
Thanks in advance
--
Jeff McKenna
Folks,
I get an 'Unable to load dynamic library...undefined symbol:
sapi_globals' with PHP MapScript under PHP 5.6.30 and MapServer 7.0.4
on Travis-CI, Ubuntu 14.04.5 LTS. See the build log:
https://travis-ci.org/dshorthouse/SimpleMappr/builds/226818941.
FWIW, I also receive the following on
ver-users@lists.osgeo.org <mailto:mapserver-users@lists.osgeo.org>>
Subject: [mapserver-users] PHP mapscript createLegendIcon doesn't follow style
maxscaledenom
CAUTION: This email originated from an outside source. Do not click links or
open attachments unless you know they are safe.
I am finding
o.org" <mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] PHP mapscript createLegendIcon doesn't follow style
maxscaledenom
CAUTION: This email originated from an outside source. Do not click links or
open attachments unless you know they are safe.
I am finding that createLe
I am finding that createLegendIcon returns a different legend item than what is
used in the map output when using scaledenom in the style.
Below is a test script that produces what I am talking about.
The script will create 4 images.
map_scale_873.png -> map->draw output with a 873 scaledenom
On 2017-03-30 6:14 AM, Jan Hartmann wrote:
Hi folks,
Perhaps I overlooked something, but I don't see how to define a
composite block within a layer with php-mapscript. In a regular mapfile
it works beautifully (http://mapserver.org/mapfile/composite.html)
Hi Jan, there is already a ticket
Hi folks,
Perhaps I overlooked something, but I don't see how to define a
composite block within a layer with php-mapscript. In a regular mapfile
it works beautifully (http://mapserver.org/mapfile/composite.html)
Regards,
Jan Hartmann
Amsterdam
Hi Sushrut,
thanks for answer. I can try to split the SLD, apply the fragment to the
right layer, and see the performance difference.
Sergio
On 01/16/2017 03:18 PM, Sushrut Shivaswamy wrote:
Hey Sergio,
The definition of mapObject - > applySLD() in the map server
documentation is as
Hi all,
we are using PHP/MapScript 6.4.4 and have a bottleneck on the
$map->applySLD() call, when the SLD is quite big (5440 lines / 72
NamedLayer occurrence).
On my VM the $map->applySLD() call time is about 3.5 sec per request,
and I think the problem is inside mapserver. The computation
you probably need to install the php-dev packages, and/or make sure
the php-config binary is accessible as that is the one providing the
extension dir location
--
thomas
On 26 August 2016 at 10:48, Argyris Margaritis wrote:
> Hi everyone,
>
> I'm trying to follow the
I'll try to see if I can get PHPMapScript to compile with cmake, since I
am "code-sprinting", and file a ticket. I believe I am stuck on this
because I am on Windows (see the many hardcoded unix paths in
FindPHP.cmake). I'll do my best to see if I can stop having to use
custom makes.
If
Hello Argyris,
I package PHPMapScript for Windows users (for the MS4W community), but I
have long faced your same problem. In fact, because of the status of
cmake when trying to build all of the mapscripts, I am forced to
maintain custom makefiles, so that PHP and all other mapscript types
Hi everyone,
I'm trying to follow the installation steps for the PHP version of
MapScript, however I'm a bit confused as many of the guides date back to
php3.
Currently I was using the following docker image for my tests, which was
working fine as it is:
Hi everyone,
Probably a stupid question but I can't figure it out :
I open a Layer through " $map->getLayer() " and I want to remove "
labelitem " and " classitem" parameters.
I tried to set these parameters to NULL " $layer->labelitem = NULL; " or
" $layer->set('labelitem', NULL); " and
Hi,
Thanks for you answer.
I did try " unset($layer->labelitem); " but it didn't work. The layer
keep the previous value of " labelitem " when I "unset" it.
I forgot to tell that I use the Version 6.4.1 of MapScript PHP dll.
---
Jonathan Beliën
On 01.09.2015 13:01, Worth Lutz wrote:
Have you tried
unset($layer->labelitem);
*Worth Lutz*
On 9/1/2015 6:08 AM, Geo-6 wrote:
Hi everyone,
Probably a stupid question but I can't figure it out :
I open a Layer through " $map->getLayer() " and I want to remove "
labelitem " and " classitem" parameters.
I tried to set
Folks,
Using PHP Mapscript it appears that when PostLabelCache is set to '1' for a
label layer this causes the label text not to display.
With a map file this works as expected.
Looking in the mapscript/php source directory there are mutiple '#ifdef
disabled' around the labelcache functions.
Dear list,
i use mapserver 6.4.1 with php Mapscript and i want to build a WMS which deals with Layers from a remote WMS. So i write a php-Script which creates a map object with all parameters.
After building this php-Script at the webserver (/var/www/test) i can access the Service with a
On 2014-09-30 10:02 AM, Stefan Carl wrote:
Dear list,
i use mapserver 6.4.1 with php Mapscript and i want to build a WMS which
deals with Layers from a remote WMS. So i write a php-Script which
creates a map object with all parameters.
After building this php-Script at the webserver
Hello,
I'm having an occasional php mapscript issue where lines with a width
greater than 1 are not being filled. If I set the width to 1 one the issue
does not occur. The link below shows two cases of this happening.
http://www.crh.noaa.gov/images/crh/line_width_issue.png
The example in the
Hello dear developers.
Please could you give some direction for decision segfault problem. I tried
execute php-script only without mapfile:
$map=ms_newMapObjFromString(MAP NAME \WMSRoadrs\ STATUS ON CONFIG
\PROJ_LIB\ \/usr/lib/proj/\ END);
$map-setMetaData(wms_title,Roadrs);
Hello All. Please help me to understand what's wrong.
php mapscript version 6.4.1
request url:
localhost/script.php?LAYERS=roadsSRS=EPSG%3A3857SERVICE=WMSVERSION=1.1.1REQUEST=GetMapFORMAT=image%2FpngBBOX=8562963.8568664,5347815.0968664,8567741.1711336,5352592.4111336WIDTH=500HEIGHT=500
works
I have a web service that use a php wrapper as described here,
http://mapserver.org/fr/ogc/mapscript.html#php-example
except that there is no mapscript, just php code that makes some query to
a database in order to add some parametes to the wms request
This wrapper ends with readfile ($url);
It
Hello,
I am upgrading an application that uses php mapscript to build a parcel tax
report and I am getting the following error: Catchable fatal error: Argument
1 passed to layerObj::getShape() must be an instance of resultObj, integer
given in
On 13-07-11 5:24 PM, Mark Volz wrote:
Hello,
I am upgrading an application that uses php mapscript to build a parcel tax
report and I am getting the following error: Catchable fatal error: Argument 1
passed to layerObj::getShape() must be an instance of resultObj, integer given in
Hello,
I am using PHP MapScript 6.2.0 and trying to execute a query.
Regardless if I am trying a queryByRect or a queryByAttribut I am always
getting the error message:
'The query is not properly defined'
msQueryByRect(): Query error. The query is not properly defined.
msQueryByAttribute():
case that demonstrates the error?
Steve
-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Nicol Hermann
Sent: Wednesday, April 10, 2013 1:36 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] PHP
Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Nicol Hermann
Sent: Wednesday, April 10, 2013 1:36 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] PHP Mapscript query
Hello,
I am using PHP MapScript
I may be wrong, but I don't think the following line in your mapfile
will do anything:
CONFIG MS_DEBUGLEVEL 4
Instead, inside a mapfile I'd suggest using:
DEBUG 4
and then see if you get some log output...
Daniel
On 13-02-18 3:34 PM, Vince Miller wrote:
I recently upgraded my
I recently upgraded my development server and updated all the relevant
software. The only thing that doesn't work is mapserver/php-mapscript.
Here's the particulars:
After Ubuntu server 12.04, postgres 9.1, apache2, and php5 seemingly (since
they work) installed fine, the installation commands
Hi,
The follow code worked for me with previous Mapserver releases, it
currently does not with PHP mapscript 6.2.0 on RHEL6 64bit. Any ideas
what I may be doing wrong? The result is a blank image and I expect to
see a black rectangle!
-- rect.map
MAP
NAME base4326
STATUS ON
SIZE 640 480
William
I cannot say anything for Mac OS in this respect. But at least for Linux
running Apache in the classical pre-fork MPM I did not experience
problems with PHP-MapScript running as an Apache DSO. Also some stress
tests with benchmarking using multiple WMS requests with on MapScript
OWS
William,
As Armin wrote, it seems that using PHP as an Apache DSO with the
pre-fork MPM would be the way to go. I don't remember seeing reports of
issues with that combination in quite a while (I mean several years, so
much that we had forgotten about those issues from the old days).
Daniel
Google to the rescue. So it's a build option for Apache 2.2. It looks like
Apache in OS X (10.6+) uses prefork. So I guess we're good to go on this.
On Nov 20, 2012, at 6:41 PM, William Kyngesburye wrote:
What's this pre-fork MPM?
On Nov 20, 2012, at 2:45 PM, Daniel Morissette wrote:
Hi,
I need help on OGR connectiontype
part of my php script :
for($iLayer=0; $iLayer $gpoMap-numlayers; $iLayer++){
$oLayer = $gpoMap-GetLayer($iLayer);
$numResults = $oLayer-getNumResults();
and my map file :
LAYER
NAME Kota/Kabupaten
GROUP POLYGON
Hello,
Sorry for posting in the wrong section before. Has anyone ever queried a
standalone file geodatabase table that doesn't have any geometry associated
with it? I am able to query feature classes that have points just fine. You
shouldn't have to define an extent or have geometry if you
try GRID-LABELFORMAT-DD instead of GRID-LABELFORMAT-DD in your mapfile.
--
thomas
On Tue, Jul 10, 2012 at 4:27 AM, Jessica Clarke
jessica.cla...@forestrytas.com.au wrote:
Hi Andreas (and others),
Thank you for your assistance.
I have moved past my oracle issues now, but I'm having trouble
Hi,
I am forwarding this from the FreeBSD mailing list. Maybe someone here
has a clue. I have a problem with PHP Mapscript (the graphics/mapserver
package). I suppose the problem is in conjunction with the combination
of lang/php5 (PHP 5.4.6) and Mapserver 6.0.3. Everytime I try to
initiate
Frank Broniewski wrote:
works, and all non-mapscript PHP applications seem to run fine.
So, finally, any tipps to solve this problem are greatly appreceated ...
Frank
It may be worth asking on the PHP lists, but first are you sure that there is
not a problem with 'test.map'? PHP can be a
Hi,
I'm trying to highlight the queried shape, using mapscript.
It doesn't work if I include the querymap in the mapfile
QUERYMAP
STATUS ON
STYLE HILITE
END
and it doesn't work in the php file
$map-querymap-set('style', 2);
Can someone please give me an example of how to do this?
the
Hi Andreas (and others),
Thank you for your assistance.
I have moved past my oracle issues now, but I'm having trouble with Mapserver.
The only error I get is
Error in getString(): Parsing error near (DD):(line 463)
I'll attach my code to help, but I'm not sure why I'm having this issue.
1 - 100 of 263 matches
Mail list logo