All Questions
7 questions
2
votes
1
answer
260
views
Get values from shapeObj MapScript
I'm using Mapserver 7.4.0-dev and MapScript PHP.
In previous versions of MapServer and MapScript (https://mapserver.org/mapscript/php/index-5.6.html#shapeobj), I could query a shapeObj after its ...
0
votes
1
answer
404
views
PHP MapScript - Query GDB Geodatabase?
I'm trying to use/learn some PHP MapScript on a GDB file and cannot get anything from it.
The PHP below works great if I use countries.sqllite (via countries.map) file I have and shows me an array of ...
3
votes
1
answer
2k
views
How to use PHP MapScript to generate a MapServer Mapfile
I just read from this question that the OP was
using Mapscript and C# to generate and display a Mapfile
I was wondering if it is really possible to use MapScript to generate a Mapfile? And if so, is ...
0
votes
1
answer
836
views
Setting DATA string on LayerObj in MapFile by Using Mapserver's PHP Mapscript
I'm manipulating mapfiles through mapscript. Setting layer attribute values like the opacity works like this:
$layer = $map->getLayer('layername');
//set an attribute value
$layer->set('...
1
vote
1
answer
1k
views
How to set attribute value of layer with PHP MapScript?
How can I set attribute values of a layer object with MapScript?
I'm using MapServer version 5.0.3, the php_mapscript.so lib is loaded in my app context
I have a simple Mapfile:
MAP
SIZE 500 ...
1
vote
1
answer
450
views
Is that possible to use map object ( PHP_MapScript ) instead of map file when using the MapServer?
In my previous code, I am using OpenLayers WMS to load a raster data through MapServer. As you can see, the mapserv.exe calls a local map file to load the raster data. I just heard PHP_MapScript, ...
1
vote
2
answers
1k
views
PHP MapScript get feature / shape by index in layer
I upgraded my MapServer version from 5.6.x to 6.2.0 (yes, big version jump here!) and I am stuck with getting a shapeObj from a layer by simply using its Index (or FID for shapefiles or GID in case of ...