The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
33 views

How would i use mapscript with ruby on rails?

I want to use mapscript with rubyonrails how should i start doing this? can anyone point to a good tutorial on mapscript? thanks a lot
0
votes
0answers
29 views

Problem with Mapscript using QGIS 2.6.1 on Mac OS X

I would like to use the RT MapServer Exporter plugin of QGIS. I have Mapserver 6.4 and Python 2.7.11 both installed with Homebrew and Python 2.7.5 installed by default on my Mac. The Mapscript python ...
0
votes
0answers
14 views

Filter expression fails

In mapscript java, when I use it without employing any filter, it works well. But when I use it with a filter, it fails. here is the form of my using the filter: jeo_layer.setFilter(" \"yas=Eosen ...
0
votes
0answers
19 views

Problem on creating dynamic layer with mapscript

I am struggling with creating dynamic layer with mapscript - java. But following code fails as msPostGISLayerWhichShapes(): Query error ... I am not sure if it is better to use a "where clause " or ...
0
votes
1answer
21 views

Change a layer order with mapscript

I'm very new with mapScript, I'm looking to change a layer order with mapScript. My ms_newMapObj is a merge of many mapfile so I don't know the index of the layer I want to move up. I haven't find ...
0
votes
0answers
53 views

MS4W MapServer 7.0 - Filter error after upgrade from 5.6

First of all I need to say that I'm complete new to this. I've been mandates to migrate a web application (written in Python and using PostGRE/PostGis) on a Windows XP box (!!!) to a more recent ...
0
votes
1answer
57 views

Drawing specific layers of mapfile with MapScript?

Is it possible to call a draw on a mapFile with a list of layers to include with mapScript? I have a bunch of layers defined on my mapfile but I don't want to call all of them. I don't use "STATUS ...
0
votes
0answers
7 views

using mapscript.-java-wfs without thread possible?

I am trying to build mapscript.-java-wfs without thread in jboss. How can I do that without using thread ? regards Ahmet
0
votes
0answers
36 views

Installing mapscript

I have installed mapserver in an existing xampp installation (Windows 7) by copying the cgi-bin directory from ms4w to xampp/cgi-bin. Mapserver is running just fine. I'm trying now to install ...
0
votes
0answers
46 views

How To Compile Or Find Php Mapscript (Mapserver) Latest Version For Windows?

I had major performance difficulties with MapServer version 6.0.3 (MS4W 3.0.6) and need latest version of Mapscript but i cant find it for windows. Anybody can help me to find latest compiled ...
0
votes
0answers
75 views

OL3 + Mapsever queryBypoint and tolerance

Mainly my WMS is shown using OpenLayers 3. Most layers have EPSG:4326 input projection (for this coming release). Loading the WMS using OL3+OpenstreetMap I decided to use the global projection as ...
0
votes
0answers
63 views

Mapserver Python Mapscript - Is There An Equivalent to Mapnik's Python Plugin?

I have been developing a sophisticated web mapping app using MapServer in conjunction with the Python MapScript bindings - and it has been working great. However, I am thinking a custom data provider ...
0
votes
0answers
179 views

Learning MapServer Tutorial for C# mapscript (ASP.NET)?

I am learning the MapServer Tutorial for C# mapscript (ASP.NET). Could you tell me how to let the map show on the webpage? I mean how to trough transforming the value between the mapstream.aspx to ...
1
vote
0answers
127 views

python-mapscript on OSX Yosemite

I am keen to try out the mapserver export plugin from QGIS 2.6 This needs python-mapscript which comes from the mapserver package. This can be downloaded from ...
1
vote
1answer
286 views

How do I get Open Layers to set the default view in EPSG:27700

Disclaimer, I'm fairly new to Open Layers, but I'm not new to JavaScript and/or Web Programming :-) Sysnopsis I have an open layers based html page, that I'm trying to use to render a WMS map served ...
1
vote
1answer
100 views

Installing PHP MapScript for MS4W on Windows

I have the following version on my machine. But the MapScript is not installing. Can any one help?
2
votes
0answers
63 views

vector map.png image do not display

im using ms4w on my localserver. this are some codes inside my mymap.map file. MAP etc..... OUTPUTFORMAT NAME pnggd ...
1
vote
0answers
483 views

how to write the code to load tiff image on openlayer.layer.wms using mapserver ms4w

where did i get miss up?! here is my code inside the mapfile.map LAYER NAME "layername" STATUS OFF TYPE RASTER DATA ...
0
votes
2answers
1k views

How do I install PostgreSQL + PostGIS + MapServer + Python-MapScript on Ubuntu 12.04 LTS w/o compiling from source?

This question is similar to the one posted here... How to have PostGIS 2.1 and the Python osgeo library installed together without compiling from source? ...but since I'm new GIS Stack exchange, I ...
2
votes
1answer
475 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 ...
1
vote
1answer
192 views

when to choose mapscript over mapfile or vice versa?

Are there things that can be done with mapscript and not mapfile or vice versa? what are the scenarios to use each one? thanks allot!
0
votes
1answer
763 views

How to install python-mapscript in a virtualenv?

I am on a django project where I want to use the python implementation of the mapserver mapscript library. I was able to install mapserver and python-mapscript from source. However, due to the ...
0
votes
0answers
269 views

Mapscript. Converting pixel coordinate to latitude longitude for postgis

I have a map created with mapscript. It is a 2D (PNG format) that's being shown on a web browser. I want to get the lat/long coordinates whenever the user click on the image, and then save it in my ...
0
votes
1answer
266 views

[mapserver]: layer filtering with layerObj.setFilter()

I'm trying to filter a layer (using mapserver) backed by a Shapefile using layerObj.setFilter() but this doesn't seem to have any effect on the returned tile(s). Sample code: layerObj = ...
0
votes
1answer
382 views

How to set 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 ...
1
vote
1answer
198 views

Is that possible to use map object ( PHP_MapScript ) instead of map file when using the MapServer?

In my previoous code, I am using openlayer WMS to load a raster data through MapServer. As you can see, the mapserv.exe call a local map file to load the raster data. I just heard PHP_MapScript, since ...
0
votes
1answer
20 views

Is there a way to tell the supported input formats of libmap.dll without the associated .exe?

I have only compiled Mapscript_csharp and supporting dlls used in a .NET application - not the executables. Is there a way to tell what input / output formats are supported by these dlls?
1
vote
1answer
598 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 ...
3
votes
2answers
123 views

How to develop a web mapping app to upload, process, and download results?

I would like to make a web mapping application where a user can import their own x-y-z data file, then the application applies filters that I write to it, contours the resulting data, then displays ...
0
votes
1answer
501 views

Why is mapserver layer not showing up in openlayers?

I'm currently setting up a Mapserver/OpenLayers application. My mapscript works fine when i run on mapserver, but my mapserver layer not showing up in openlayers. this is my mapscript "tangsel.map" ...
1
vote
0answers
381 views

php_mapscript.so not present after Mapserver 6.2.0 compilation

I use this to compile mapserver cd /opt/ wget http://download.osgeo.org/mapserver/mapserver-6.2.0.tar.gz tar xvf mapserver-6.2.0.tar.gz cd mapserver-6.2.0 ./configure ...
6
votes
1answer
650 views

Filling a polygon with lines using Postgis

i need to calculate a specific distance in an area. The distance is calculated from parallel lines in a polygon, And i need to find out how many parallel lines (with x meters distance to each other) ...
1
vote
2answers
578 views

Python Mapscript 6.0.1 layer.getShape API

I am attempting to follow the mapscript example described here - http://trac.osgeo.org/mapserver/wiki/RasterQuery but ran into some trouble with s = layer.getShape(result.shapeindex, ...
2
votes
1answer
930 views

How does mapscript queryByShape work?

I am trying to return the results of queryByShape call from a (large) raster file given a user specified polygon. For example, when a user plots the following polygon on an openlayers layer as ...
3
votes
1answer
2k views

C# & Mapscript - Setting Environment Variables At Runtime

I am working on an application that makes use of the c# Mapscript bindings. When I manually set and/or append to the GDAL_DATA, GDAL_DRIVER_PATH, PROJ_LIB, and PATH environment variables - the ...
1
vote
0answers
389 views

MapServer inside WordPress Pages/Posts?

I'd like to put maps inside of a wordpress CMS, but I'm running into troubles with the permalink structure ignoring the maps all together... I have a .htaccess file that will force WordPress to ...
2
votes
1answer
306 views

Mapscript - PostGis Error

I'm doing a spatial query, but I always get an error: "msPOSTGISLayerGetShape(): Query error. msPOSTGISLayerGetShape called on unopened layer (layerinfo = NULL)" This is my code: layerObj ...
2
votes
2answers
1k views

WFS - MapServer - ASP.NET

Nowadays i'm working with Mapcript / Mapserver. I would like to know how to used WFS (Web Feature Service) with ASP.NET. I think i need to use WCF, right? Is there any tutorial or framework? ...
4
votes
1answer
155 views

How to restore default values in Mapserver?

I'm using Mapscript reading a configuration of my map file, so i set some values in my mapObj. But in certain point of my code i need to restore the default values locate in map file. I tried to use ...
3
votes
1answer
462 views

Mapserver - Hide Labels

I'm creating a map with some layers, each one has a label, the problem is that, Mapserver is displaying the labels of bottom layers, so it is mixing all the label. Is it possible to hide label that ...
1
vote
1answer
1k views

Using C# + Mapcript + Openlayers

Nowadays i'm using Mapscript and C# to generate and display a Mapfile, but in this way i need to create manualy the interface, is there any way to use Mapscript + Openlayers?
3
votes
3answers
2k views

Using Mapscript to create a mapfile from scratch

Following a few online tutorials I have seen, I am trying to create a mapfile from scratch using mapscript. However, when I try to create the layer object, I get an error in the init of mapscript.py; ...
4
votes
2answers
776 views

Maturity of Mapserver mapscript C# bindings?

I've been thinking about possibly porting an internal custom GIS application built on top of Python / PyQt / Mapscript / GDAL-OGR / PostGis to C#. I was wondering about the maturity of the C# ...