User Groups
Up one levelRegional MapServer User Groups are where users congregate to discuss MapServer and other Open Source GIS technologies.
- MapServer-West Users Group by Jeff McKenna — last modified 2005-09-16 15:16
- This is a virtual group of Western North American MapServer users and developers.
- Melbourne Australia MapServer Users Group by Jeff McKenna — last modified 2006-05-02 08:35
- This group meets on the last Wednesday of every month to share the month of adventures using Mapserver and other Open Source Geospatial technologies. For more information contact Shoaib Burq at shoaib@nomad-labs.com.
- Ottawa OSGeo Chapter by Jeff McKenna — last modified 2006-12-06 10:02
- Two groups in Ottawa, Ontario, Canada (the GRASS User Group and the MapServer User Group) merged to create a local OSGeo chapter. The chapter meets once a month in a relaxed setting to discuss Open Source geospatial topics.
- Pine To Prairie - GIS Users Group by Jeff McKenna — last modified 2005-09-19 09:29
- Pine To Prairie is a general Minnesota, South Dakota, North Dakota GIS users group that also discusses Open Source GIS software, including MapServer. For more information contact Wayne Hurley at wayne@wcif.org.
- Twin Cities Mapserver Users Group by David Bitner — last modified 2005-12-06 09:58
- The Twin Cities Mapserver Users Group is a group of Mapserver and other Open Source GIS software users that get together on the third Tuesday of each month in the Minneapolis/St. Paul Minnesota area. For further information contact David Bitner at 612-725-6156.
itemnquery problem
Posted by
raymond
at
2006-11-16 07:03
I use to itemnquery to retrieve the map in which feature matching query is highlighted. I expected one map displayed in the template. However, it appears number of map repeatedly as many as number of matching records. Anyone know I have done wrong?
Thanks & Regards,
Raymodn
Thanks & Regards,
Raymodn
may be...
Posted by
Wakas
at
2008-03-14 06:22
U might be using MS_MULTIPLE in command...Try out with MS_SINGLE in mapscript function.
Mutiple Projections???
Posted by
Chris Cox
at
2006-11-27 16:13
I am new to the MapServer thing, I recently got assigned a project at my work which requires me to display layers in the US and in Spain. I have the two projection codes that I need but can not get the layers in Spain to show up. The ones in the US are working just fine. Any tips or suggestions would be greatly appreciated. you can email me at chriscox.iwi@gamil.com
Weighted Overlay Analysis in Mapserver
Posted by
Rahat Syed
at
2007-01-14 00:28
I want to do weighted overlay analysis with Mapserver. I am new to this field, so don't know how to do that...I have downloaded Mapserver and put my shapefiles into one folder, now I have to convert any vector data
into Raster on the fly and overlay those files according to user input (weight).Can you please tell me the architecture of this web application i.e. How to do weighted overlay anaysis within Mapserver.
into Raster on the fly and overlay those files according to user input (weight).Can you please tell me the architecture of this web application i.e. How to do weighted overlay anaysis within Mapserver.
OSG 05 openmap and eclipse
Posted by
hakim
at
2007-02-16 05:00
does someone has a complete material and source code about the subject OpenMap Basics - Developer Tips That Go A Long Way (openmap and eclipse)presented in the OSG05
thank you
thank you
scale and coordinates
Posted by
Michal Waworek
at
2007-03-01 06:07
i'm new MapServer user and using php map script. i don't know how to set map parameters like scale and center coordinates. only see extent to set, but it's not seem really usefull. can't find also how to get geo coordinates of pixel coordinates at current map settings and pix coordinates from geo coordinates.
If anyone get the message please answer.
Michal Waworek
michal.waworek@pronetto.info
If anyone get the message please answer.
Michal Waworek
michal.waworek@pronetto.info
PHP/Mapscript Class Reference
Posted by
robert
at
2007-05-16 02:12
Classes, properties and methods associated with the PHP/Mapscript module.
here:
http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class
here:
http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class
Mapserver PHP/MapScript Class Reference
Posted by
robert
at
2007-05-16 02:14
Mapserver PHP/MapScript Class Reference here
<a href="http://dl.maptools.org/dl/phpmapscript-class-guide.html">Mapserver PHP/MapScript Class Reference</a>
<a href="http://dl.maptools.org/dl/phpmapscript-class-guide.html">Mapserver PHP/MapScript Class Reference</a>
Indonesia
Posted by
ServMap
at
2007-08-04 11:51
Indonesia has its own mailing list hosted by Yahoogroups. Discussions are in Indonesian language (bahasa Indonesia).
Indonesians, join at mapserver-id-subscribe@yahoogroups.com !
or visit http://groups.yahoo.com/group/mapserver-id
Indonesians, join at mapserver-id-subscribe@yahoogroups.com !
or visit http://groups.yahoo.com/group/mapserver-id
Problem in creating tooltip in IE
Posted by
Amit Kumar Tripathi
at
2007-09-11 09:01
Hi,
I am working on creating tooltips when i hover over a particular point on the map. This seems to work on FIREFOX but does not on IE. After some research i found that the problem is created because we are having:
<input type='image' .......>
and calling onMouseOver from area tag:
<map id="planetmap" name="planetmap"><area HREF="javascript:putValue();" alt="1000 Hi Man this is my permit" title="aaa" coords="0,0,500,500"/></map>
If i change this field to:
<tr onClick="document.forms[0].submit"><img src=...../></tr>
Then it works, but by the second method we are not getting the parameters in the request that we need.
Is there any way to solve this problem? May be this is an IE issue, but working on mapserver so asked here.
A sample code that does not work on IE but does on FIREFOX is here:
<html>
<title>Test Map</title>
<script >
function putValue(){
alert('in value'); }
</script>
<body>
<p>
Click on the sun or on one of the planets to watch it closer:
</p>
<input type='image' src="truck.png"
width="145" height="126"
usemap="#planetmap" />
<map id="planetmap" name="planetmap"><area HREF="javascript:putValue();" alt="1000 Hi Man this is my permit" title="aaa" coords="0,0,500,500"/></map>
</body>
</html>
The code is just for testing purpose. Please help me out in running this code on IE.
I am working on creating tooltips when i hover over a particular point on the map. This seems to work on FIREFOX but does not on IE. After some research i found that the problem is created because we are having:
<input type='image' .......>
and calling onMouseOver from area tag:
<map id="planetmap" name="planetmap"><area HREF="javascript:putValue();" alt="1000 Hi Man this is my permit" title="aaa" coords="0,0,500,500"/></map>
If i change this field to:
<tr onClick="document.forms[0].submit"><img src=...../></tr>
Then it works, but by the second method we are not getting the parameters in the request that we need.
Is there any way to solve this problem? May be this is an IE issue, but working on mapserver so asked here.
A sample code that does not work on IE but does on FIREFOX is here:
<html>
<title>Test Map</title>
<script >
function putValue(){
alert('in value'); }
</script>
<body>
<p>
Click on the sun or on one of the planets to watch it closer:
</p>
<input type='image' src="truck.png"
width="145" height="126"
usemap="#planetmap" />
<map id="planetmap" name="planetmap"><area HREF="javascript:putValue();" alt="1000 Hi Man this is my permit" title="aaa" coords="0,0,500,500"/></map>
</body>
</html>
The code is just for testing purpose. Please help me out in running this code on IE.
Problem in creating tooltip in IE
Posted by
Amit Kumar Tripathi
at
2007-09-11 09:05
sorry i posted wrong code in the last comment,
Here is the correct one having onMouseOver:
<html>
<title>Test Map</title>
<script >
function putValue(){
alert('in value'); }
</script>
<body>
<p>
Click on the sun or on one of the planets to watch it closer:
</p>
<input type='image' src="truck.png"
width="145" height="126"
usemap="#planetmap" />
<map id="planetmap" name="planetmap"><area alt="1000 Hi Man this is my permit" title="aaa" coords="0,0,500,500" onMouseOver="putValue()"/></map>
</body>
</html>
Here is the correct one having onMouseOver:
<html>
<title>Test Map</title>
<script >
function putValue(){
alert('in value'); }
</script>
<body>
<p>
Click on the sun or on one of the planets to watch it closer:
</p>
<input type='image' src="truck.png"
width="145" height="126"
usemap="#planetmap" />
<map id="planetmap" name="planetmap"><area alt="1000 Hi Man this is my permit" title="aaa" coords="0,0,500,500" onMouseOver="putValue()"/></map>
</body>
</html>
shape file problem
Posted by
Amit Kumar Tripathi
at
2007-09-19 09:06
Hi I am using shpadd and shpcreate commands to add shapes to shape file that has polygon type but it always rounds off the input to three decimal places. Is there any way of stopping it do so?
Problem with Mapserver when I install the package ms4w_2.2.6
Posted by
Antonio Araque
at
2007-11-05 12:33
Hello, I have a problem when i installed the package ms4w_2.2.6. Mys applications works perfectly with the version ms4w_1.6 then i was update to the version ms4w_2.2.6 and all my aplicattions reported the same message:
"loadWeb(): Unknown identifier. Parsing error near (C): line 1". My head htlm is the follow:
http://localhost/cgi-bin/mapserv.exe?capa=laguardia&zoomsize=2&map=C%3A%5Cms4w%5CApache%5Chtdocs%5Csigpac%5Csigpac.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fsigpac%2F&map_web_imagepath=C%3A%5Cms4w%5CApache%5Chtdocs%5Csigpac%5Ctmp%5C&map_web_imageurl=%2Fsigpac%2Ftmp%2F&map_web_template=sigpac.html
Is problem of the head html??
Thanks!
Antonio.
"loadWeb(): Unknown identifier. Parsing error near (C): line 1". My head htlm is the follow:
http://localhost/cgi-bin/mapserv.exe?capa=laguardia&zoomsize=2&map=C%3A%5Cms4w%5CApache%5Chtdocs%5Csigpac%5Csigpac.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fsigpac%2F&map_web_imagepath=C%3A%5Cms4w%5CApache%5Chtdocs%5Csigpac%5Ctmp%5C&map_web_imageurl=%2Fsigpac%2Ftmp%2F&map_web_template=sigpac.html
Is problem of the head html??
Thanks!
Antonio.
OGR not working - cannot open .csv data source
Posted by
Toan Tran
at
2007-11-16 13:37
Hi,
I want to use OGR to open data stored in .csv format.
1. My csv data are store here: "/export/home/iscis/WMS-SP_install/apps/sp-wms/admin_tools/data/ReportData"
2. The file is called "geo_code_phu.CSV"
3. I specify the the following layer in the config.map file:
LAYER
CONNECTION "<OGRVRTDataSource><OGRVRTLayer name='IRSS_TEXT'><SrcDataSource>/export/home/iscis/WMS-SP_install/apps/sp-wms/admin_tools/data/ReportData,geo_code_phu.CSV</SrcDataSource><SrcLayer>geo_code_phu.CSV</SrcLayer><GeometryField encoding='PointFromColumns' x='X' y='Y'/><GeometryType>wkbPoint</GeometryType></OGRVRTLayer></OGRVRTDataSource>"
CONNECTIONTYPE OGR
DATA "IRSS_TEXT"
LABELITEM "PHU"
METADATA
"wms_srs" "EPSG:4269"
"wms_title" "IRSS_PHU_NAMES"
END
NAME "IRSS_PHU_NAMES"
PROJECTION
# "init=EPSG:4269"
"init=epsg:26915"
END
SIZEUNITS PIXELS
STATUS ON
TEMPLATE "dummy"
TOLERANCE 3
TOLERANCEUNITS PIXELS
TYPE POINT
UNITS METERS
LABELMAXSCALE 2000000
CLASS
LABEL
SIZE MEDIUM
TYPE BITMAP
BUFFER 0
COLOR 0 0 0
FORCE TRUE
MINDISTANCE -1
MINFEATURESIZE -1
OFFSET 15 15
PARTIALS TRUE
POSITION UC
END
METADATA
END
MAXSCALE 2000000
STYLE
# COLOR 255 0 0
# SIZE 6
# SYMBOL "star"
END
END
END
4. PROBLEM:
I receive the following error on the webpage:
msDrawMap(): Image handling error. Failed to draw layer name 'IRSS_PHU_NAMES'.; msOGRFileOpen(): OGR error. Open fail for OGR connection "<OGRVRTDataSource><OGRVRTLayer name='IRSS_TEXT'><SrcDataSource>/export/home/iscis/WMS-SP_install/apps/sp-wms/admin_tools/data/ReportData,geo_code_phu.CSV</SrcDataSource><SrcLayer>geo_code_phu.CSV</SrcLayer><GeometryField encoding='PointFromColumns' x='X' y='Y'/><GeometryType>wkbPoint</GeometryType></OGRVRTLayer></OGRVRTDataSource>" Failed to open '/export/home/iscis/WMS-SP_install/apps/sp-wms/admin_tools/data/ReportData,geo_code_phu.CSV'
5. When i do a:
# ./ogrinfo /export/home/iscis/WMS-SP_install/apps/sp-wms/admin_tools/data/ReportData/geo_code_phu.CSV
I get...
INFO: Open of `/export/home/iscis/WMS-SP_install/apps/sp-wms/admin_tools/data/ReportData/geo_code_phu.CSV'
using driver `CSV' successful.
1: geo_code_phu (None)
This means OGR is working.
6.
Note that i setup the map server on Solaris 10 system. Is something that I am doing incorrectly (config.map not setup properly)?
Pleas help.
Thanks in advance
Toan
I want to use OGR to open data stored in .csv format.
1. My csv data are store here: "/export/home/iscis/WMS-SP_install/apps/sp-wms/admin_tools/data/ReportData"
2. The file is called "geo_code_phu.CSV"
3. I specify the the following layer in the config.map file:
LAYER
CONNECTION "<OGRVRTDataSource><OGRVRTLayer name='IRSS_TEXT'><SrcDataSource>/export/home/iscis/WMS-SP_install/apps/sp-wms/admin_tools/data/ReportData,geo_code_phu.CSV</SrcDataSource><SrcLayer>geo_code_phu.CSV</SrcLayer><GeometryField encoding='PointFromColumns' x='X' y='Y'/><GeometryType>wkbPoint</GeometryType></OGRVRTLayer></OGRVRTDataSource>"
CONNECTIONTYPE OGR
DATA "IRSS_TEXT"
LABELITEM "PHU"
METADATA
"wms_srs" "EPSG:4269"
"wms_title" "IRSS_PHU_NAMES"
END
NAME "IRSS_PHU_NAMES"
PROJECTION
# "init=EPSG:4269"
"init=epsg:26915"
END
SIZEUNITS PIXELS
STATUS ON
TEMPLATE "dummy"
TOLERANCE 3
TOLERANCEUNITS PIXELS
TYPE POINT
UNITS METERS
LABELMAXSCALE 2000000
CLASS
LABEL
SIZE MEDIUM
TYPE BITMAP
BUFFER 0
COLOR 0 0 0
FORCE TRUE
MINDISTANCE -1
MINFEATURESIZE -1
OFFSET 15 15
PARTIALS TRUE
POSITION UC
END
METADATA
END
MAXSCALE 2000000
STYLE
# COLOR 255 0 0
# SIZE 6
# SYMBOL "star"
END
END
END
4. PROBLEM:
I receive the following error on the webpage:
msDrawMap(): Image handling error. Failed to draw layer name 'IRSS_PHU_NAMES'.; msOGRFileOpen(): OGR error. Open fail for OGR connection "<OGRVRTDataSource><OGRVRTLayer name='IRSS_TEXT'><SrcDataSource>/export/home/iscis/WMS-SP_install/apps/sp-wms/admin_tools/data/ReportData,geo_code_phu.CSV</SrcDataSource><SrcLayer>geo_code_phu.CSV</SrcLayer><GeometryField encoding='PointFromColumns' x='X' y='Y'/><GeometryType>wkbPoint</GeometryType></OGRVRTLayer></OGRVRTDataSource>" Failed to open '/export/home/iscis/WMS-SP_install/apps/sp-wms/admin_tools/data/ReportData,geo_code_phu.CSV'
5. When i do a:
# ./ogrinfo /export/home/iscis/WMS-SP_install/apps/sp-wms/admin_tools/data/ReportData/geo_code_phu.CSV
I get...
INFO: Open of `/export/home/iscis/WMS-SP_install/apps/sp-wms/admin_tools/data/ReportData/geo_code_phu.CSV'
using driver `CSV' successful.
1: geo_code_phu (None)
This means OGR is working.
6.
Note that i setup the map server on Solaris 10 system. Is something that I am doing incorrectly (config.map not setup properly)?
Pleas help.
Thanks in advance
Toan
I encounter a problem in developing mapserver under lunix ,please help me!
Posted by
reecho cd
at
2007-11-22 08:58
I'm developing mapserver under lunix.I installed the apache and fgs in different path.The demo I downloded from the mapserver website runs well,but my code cann't run .
I'm writing the code in windowsXP with php,and I put the code'gmap' under the folder ms4w/app/gmap.In xp enviroment the code runs well,but when I copy the folder 'gmap' to the lunix's apache folder( var/www/gmap ),the code send message "ms_openfile can not open file",It seems that the code doesn't complie the mapserver's dll.
Please forgive my poor English!Hope you can understand my problem and reply it!
Thank you very much!
I'm writing the code in windowsXP with php,and I put the code'gmap' under the folder ms4w/app/gmap.In xp enviroment the code runs well,but when I copy the folder 'gmap' to the lunix's apache folder( var/www/gmap ),the code send message "ms_openfile can not open file",It seems that the code doesn't complie the mapserver's dll.
Please forgive my poor English!Hope you can understand my problem and reply it!
Thank you very much!
Adding text dynamically to shape
Posted by
Daniel Polack
at
2008-02-06 02:53
Hello community,
i will like to add a calculated text value to a shape dynamically, i'm using php-mapscript.
The Map shows the districts shapes correctly, but when i try to iterate the shapes it does not find any.
Any idea will be appreciated.
$layer = @$map->getLayerByName($layerName);
$layer->open();
$status = $layer->whichShapes($map->extent);
if ($status==MS_SUCCESS){
debug("Shapes found in layer $layerName ");
while ($shape = $layer->nextShape()){
debug("shape index ".$shape->index);
}
}else{
debug("No shapes found for $layerName");
}
i will like to add a calculated text value to a shape dynamically, i'm using php-mapscript.
The Map shows the districts shapes correctly, but when i try to iterate the shapes it does not find any.
Any idea will be appreciated.
$layer = @$map->getLayerByName($layerName);
$layer->open();
$status = $layer->whichShapes($map->extent);
if ($status==MS_SUCCESS){
debug("Shapes found in layer $layerName ");
while ($shape = $layer->nextShape()){
debug("shape index ".$shape->index);
}
}else{
debug("No shapes found for $layerName");
}
Query by Attribute:
Posted by
Wakas
at
2008-03-14 06:20
hi all,
i am using PostGreSQL/PostGIS with Mapserver for development. Here i am facing an error from pg server stating:
Error: Argument of AND must be type boolean not an integer.
Though i am using the querybyattribute function of mapscript with given syntax:
@$oLyr->queryByAttribute("<fieldname>","<value to match>","<MS_MULTIPLE/MS_SINGLE>")==MS_SUCCESS
kindly help since fieldname, n value is identified by server n matched.B'cos if unmatched value is passed the error is different..
Thanking u in anticipation..
i am using PostGreSQL/PostGIS with Mapserver for development. Here i am facing an error from pg server stating:
Error: Argument of AND must be type boolean not an integer.
Though i am using the querybyattribute function of mapscript with given syntax:
@$oLyr->queryByAttribute("<fieldname>","<value to match>","<MS_MULTIPLE/MS_SINGLE>")==MS_SUCCESS
kindly help since fieldname, n value is identified by server n matched.B'cos if unmatched value is passed the error is different..
Thanking u in anticipation..
Is there an advantage in using "sortshp" !?
Posted by
Nikolai Nikolov
at
2008-05-12 08:16
The description of sortshp states the following:
“The idea here is that if you know that you need to display a certain attribute classed by a certain value, it will be faster for MapServer to access that value if it is at the beginning of the attribute file.”
However, MapServer has no way of knowing that the SHP files are sorted out, to be able to apply any clever procedure, improving the searching and filtering time. As it stands, it will go in any case through the entire file, shape by shape and do filtering.
Where the speed gain would come from? Is there a way to tell MapServer that the SHP file is sorted?
Thanks for your help!
Nikolai
“The idea here is that if you know that you need to display a certain attribute classed by a certain value, it will be faster for MapServer to access that value if it is at the beginning of the attribute file.”
However, MapServer has no way of knowing that the SHP files are sorted out, to be able to apply any clever procedure, improving the searching and filtering time. As it stands, it will go in any case through the entire file, shape by shape and do filtering.
Where the speed gain would come from? Is there a way to tell MapServer that the SHP file is sorted?
Thanks for your help!
Nikolai




annotation layer problem
i am using flash viewer and having a problem. for the annotation layer an empty .swf file is creaed.