From subha at gslab.com Wed Apr 1 00:30:46 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Wed, 01 Apr 2009 13:00:46 +0530 Subject: [mapserver-users] Error while getting flash output Message-ID: <49D31826.4090201@gslab.com> Hi All, I am trying to get flash output from mapserver. I have compliled my mapserver 5.2.2 with flash support. But when i request for a layer, I am getting the following error: "loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver SWF, but this driver isn't configured. " This is my url: "http://localhost/cgi-bin/mapserv?MAP=flashlayer.map&TRANSPARENT=true&LAYERS=flashlayer&FORMAT=image%2Fswf&PROJECTION=EPSG%3A4326&REPROJECT=false& UNITS=m&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913& BBOX=4235678.0892222235,859902.5737739494,13628260.123222224,4404134.700666138&WIDTH=1920&HEIGHT=724" Mapfile is as follows:(initial part with projection , extent etc truncated) OUTPUTFORMAT NAME "swf" MIMETYPE "application/x-shockwave-flash" DRIVER "swf" IMAGEMODE PC256 FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" END layer name flashlayer connectiontype postgis connection "user= postgres dbname=flashtable host=localhost" type polygon group world dump true METADATA "RESULT_FIELDS" "__ibp__id" "SWFDUMPATTRIBUTES" "__ibp__id" END template "template.html" projection "init=epsg:4326" end transparency 65 status on data "topology from flashtest using unique id using SRID = -1" classitem "country" class name "INDIA" expression "INDIA" style color 139 242 144 outlinecolor 000 000 000 end end end Can some one please guide me as how to get the output in flash after enabling the support? Thanks a lot for any help. Subha From meenu.monu at gmail.com Wed Apr 1 01:20:08 2009 From: meenu.monu at gmail.com (meenu) Date: Wed, 1 Apr 2009 01:20:08 -0700 (PDT) Subject: [mapserver-users] how can i create mapserver website in VS 2005 (VB) In-Reply-To: <1238508296019-2563124.post@n2.nabble.com> References: <1237726362116-2516841.post@n2.nabble.com> <1238417913592-2557078.post@n2.nabble.com> <1238452692319-2560080.post@n2.nabble.com> <1238478291247-2561308.post@n2.nabble.com> <1238495621680-2562254.post@n2.nabble.com> <1238497332017-2562350.post@n2.nabble.com> <1238508296019-2563124.post@n2.nabble.com> Message-ID: <1238574008006-2567804.post@n2.nabble.com> dear friend,great article...lot of thanks for spending ur valuable time here to share ur brilliant knowledge to us...am beginner in mapserver projects...so lot of questions are raised in my mind...if u dont mind can u help me to clear my points... i downloaded source files(TutorialMapServerSolution.zip,data.zip) and it is working fine for me in vs2005...now TutorialMapServerSolution project is working fine without any problem..i removed apache and ms4w from my machine...that time also TutorialMapServerSolution is working perfect... from this tutorial i understood that 1.not required to install mapserver(ms4w) in server machine if we use mapscript interface...is it correct??? 2.if like that how it is connected with mapserver ?? 3.if we use CGI then is it required to install ms4w in server???? 4.cgi or mapscript which is the better option for creating mapserver website in vs2005??? 5.is it required to run swig.exe in server machine for this mapscript tutorial??? 6.what is the supporting gis data format in mapserver? 7.i have my own gis data created using mapinfo professional...how can i add that data in to this file...is it possible to call mapinfo .mws from this tutorial??? regards and thanks -- View this message in context: http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-tp2516841p2567804.html Sent from the Mapserver - User mailing list archive at Nabble.com. From plieger at knmi.nl Wed Apr 1 02:09:39 2009 From: plieger at knmi.nl (Maarten Plieger) Date: Wed, 01 Apr 2009 09:09:39 +0000 Subject: [mapserver-users] MapServer 5.2.2 GetFeatureInfo returns an error Message-ID: <49D32F53.1000900@knmi.nl> Hi All, We are updating our mapserver services from 5.2.0 to 5.2.2. I have two issues doing this, one with SYMBOLSET and one with TEMPLATE (for queries): - The first is that the SYMBOLSET in my mapfile gives an error: SYMBOLSET "/data1/mapserver/symbols/symbols35.sym" When I do a getcapabilities I get: "msLoadSymbolSet(): Unknown identifier. First token must be SYMBOLSET, this doesn't look like a symbol file" I do not need this symbolset, so I have uncommented it - The second problem is GetFeatureInfo. GetFeatureInfo returns this: Content-type: application/vnd.ogc.se_xml isValidTemplate(): Web application error. Missing magic string, ../InfoQueryTemplates/SCIA_IMAP_L3.html doesn't look like a MapServer template. My template "SCIA_IMAP_L3.html" in the layer looks like this: xVMR_CH4
longitude: [mapx]
latitude: [mapy]
vertical_mixing_ratio_of_methane_in_air: [value_0] ppb
This template is configured in a LAYER object as: TEMPLATE '../InfoQueryTemplates/SCIA_IMAP_L3.html' This is the getfeatureinfo request for 5.2.2: http://geoservices.knmi.nl/cgi-bin/SCIA__CONS_R___IMAP____L3_test_5.2.2.cgi?SERVICE=WMS&REQUEST=GetFeatureInfo&VERSION=1.1.1&SRS=EPSG:4326&LAYERS=SCIA__CONS_R___IMAP____L3__20040101T000000_20040201T000000_0001_CH4&QUERY_LAYERS=SCIA__CONS_R___IMAP____L3__20040101T000000_20040201T000000_0001_CH4&BBOX=-180,-92.22011385199241,180,92.22011385199241&WIDTH=1581&HEIGHT=810&X=361&Y=250&FORMAT=image/gif&INFO_FORMAT=text/html&STYLES=& This used to work well with version 5.2.0: http://geoservices.knmi.nl/cgi-bin/SCIA__CONS_R___IMAP____L3.cgi?SERVICE=WMS&REQUEST=GetFeatureInfo&VERSION=1.1.1&SRS=EPSG:4326&LAYERS=SCIA__CONS_R___IMAP____L3__20040101T000000_20040201T000000_0001_CH4&QUERY_LAYERS=SCIA__CONS_R___IMAP____L3__20040101T000000_20040201T000000_0001_CH4&BBOX=-180,-92.22011385199241,180,92.22011385199241&WIDTH=1581&HEIGHT=810&X=361&Y=250&FORMAT=image/gif&INFO_FORMAT=text/html&STYLES=& Am I doing something wrong? Thanks in advance, Maarten Plieger -- Maarten Plieger KNMI, R&D Information and Observation Technology, De Bilt (t) +31 30 2206330 From pcorti at gmail.com Wed Apr 1 02:26:04 2009 From: pcorti at gmail.com (Paolo Corti) Date: Wed, 1 Apr 2009 02:26:04 -0700 (PDT) Subject: [mapserver-users] how can i create mapserver website in VS 2005 (VB) In-Reply-To: <1238574008006-2567804.post@n2.nabble.com> References: <1237726362116-2516841.post@n2.nabble.com> <1238417913592-2557078.post@n2.nabble.com> <1238452692319-2560080.post@n2.nabble.com> <1238478291247-2561308.post@n2.nabble.com> <1238495621680-2562254.post@n2.nabble.com> <1238497332017-2562350.post@n2.nabble.com> <1238508296019-2563124.post@n2.nabble.com> <1238574008006-2567804.post@n2.nabble.com> Message-ID: <1238577964722-2568044.post@n2.nabble.com> Hi my answer are inline: > 1.not required to install mapserver(ms4w) in server machine if we use > mapscript interface...is it correct??? > 2.if like that how it is connected with mapserver ?? you don't need to use the installer, it is enough that the dll are accessible to your web application, like suggested in the tutorial. Set the path or copy them to the bin folder. If you do the latter you can easily deploy your web application to a production server without need to install mapserver. > 3.if we use CGI then is it required to install ms4w in server???? as suggested above, only the dll are needed > 4.cgi or mapscript which is the better option for creating mapserver website > in vs2005??? if you want a nice API go with mapscript, otherwise you have to work with CGI requests and responses. > 5.is it required to run swig.exe in server machine for this mapscript > tutorial??? No, swig is needed to produce the API binding for the various languages, you don't need it to run mapserver as far as i know. > 6.what is the supporting gis data format ?in mapserver? please refer to the documentation: vector data: http://mapserver.org/input/vector/index.html raster data: http://mapserver.org/input/raster.html anyway being based on GDAL/OGR, whatever format is readable with it should be accessed by MapServer. > 7.i have my own gis data created using mapinfo professional...how can i add > that data in to this file...is it possible to call mapinfo .mws from this > tutorial??? don't know MapInfo, but again please refer to MapServer's documentation: http://mapserver.org/input/vector/mapinfo.html best regards Paolo -- View this message in context: http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-tp2516841p2568044.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From meenu.monu at gmail.com Wed Apr 1 02:48:32 2009 From: meenu.monu at gmail.com (meenu) Date: Wed, 1 Apr 2009 02:48:32 -0700 (PDT) Subject: [mapserver-users] how can i create mapserver website in VS 2005 (VB) In-Reply-To: <1238577964722-2568044.post@n2.nabble.com> References: <1237726362116-2516841.post@n2.nabble.com> <1238417913592-2557078.post@n2.nabble.com> <1238452692319-2560080.post@n2.nabble.com> <1238478291247-2561308.post@n2.nabble.com> <1238495621680-2562254.post@n2.nabble.com> <1238497332017-2562350.post@n2.nabble.com> <1238508296019-2563124.post@n2.nabble.com> <1238574008006-2567804.post@n2.nabble.com> <1238577964722-2568044.post@n2.nabble.com> Message-ID: <1238579312661-2568148.post@n2.nabble.com> dear friend thank u very much for ur detailed reply...i got all ur points...shall i ask one more question...mapserver installation is not required in c: if we use both cgi or mapscript...then y in all mapscript documentaion they are telling to install ms4w and sample application and apache(http://spatialhorizons.com/2007/05/19/mapserver-1-10-minute-tutorial/)???????? -- View this message in context: http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-tp2516841p2568148.html Sent from the Mapserver - User mailing list archive at Nabble.com. From djabex at hotmail.com Wed Apr 1 02:57:51 2009 From: djabex at hotmail.com (=?iso-8859-1?Q?Alberto_Fern=E1ndez_S=E1nchez?=) Date: Wed, 1 Apr 2009 11:57:51 +0200 Subject: [mapserver-users] Insert javascript toolbox in html template (MS4W) Message-ID: Hello friends, I'm trying to insert a toolbox (zoom in, zoom out, pan, full extent,...) in my html template (working with MS4W). I've thinking in mapscript or other. The problem is that I don't know how insert javascript language in my html template. How I can insert javascript? Which is the best library (and easy for me) for this work? How is the code necessary for this labour? For example, i want insert the toolbox for this simple windows visor: ______________________________________________________________________________ Example
# Hear I want to put the toolbar in a new row _______________________________________________________________________________________ Thanks to all _________________________________________________________________ ?Quieres que tus hijos naveguen seguros? Aprende aqu? c?mo con Protecci?n Infantil http://www.protegeatushijos.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Wed Apr 1 03:26:39 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 1 Apr 2009 15:56:39 +0530 Subject: [mapserver-users] how can i create mapserver website in VS 2005 (VB) In-Reply-To: <1238579312661-2568148.post@n2.nabble.com> References: <1237726362116-2516841.post@n2.nabble.com> <1238417913592-2557078.post@n2.nabble.com> <1238452692319-2560080.post@n2.nabble.com> <1238478291247-2561308.post@n2.nabble.com> <1238495621680-2562254.post@n2.nabble.com> <1238497332017-2562350.post@n2.nabble.com> <1238508296019-2563124.post@n2.nabble.com> <1238574008006-2567804.post@n2.nabble.com> <1238577964722-2568044.post@n2.nabble.com> <1238579312661-2568148.post@n2.nabble.com> Message-ID: <001501c9b2b4$59786690$0c6933b0$@com> Hi, If your using VS.net, You will have IIS.You need not bother about Installations and all .One more is your are not working with CGI.is it ? If you are working with any open source webservers like apache tamcat etc.. You need to go through the installation and all.For VS.Net u need only dll. Thanks Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of meenu Sent: Wednesday, April 01, 2009 3:19 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] how can i create mapserver website in VS 2005 (VB) dear friend thank u very much for ur detailed reply...i got all ur points...shall i ask one more question...mapserver installation is not required in c: if we use both cgi or mapscript...then y in all mapscript documentaion they are telling to install ms4w and sample application and apache(http://spatialhorizons.com/2007/05/19/mapserver-1-10-minute-tutorial/ )???????? -- View this message in context: http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29- tp2516841p2568148.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 From meenu.monu at gmail.com Wed Apr 1 04:32:24 2009 From: meenu.monu at gmail.com (meenu) Date: Wed, 1 Apr 2009 04:32:24 -0700 (PDT) Subject: [mapserver-users] how can i create mapserver website in VS 2005 (VB) In-Reply-To: <001501c9b2b4$59786690$0c6933b0$@com> References: <1237726362116-2516841.post@n2.nabble.com> <1238417913592-2557078.post@n2.nabble.com> <1238452692319-2560080.post@n2.nabble.com> <1238478291247-2561308.post@n2.nabble.com> <1238495621680-2562254.post@n2.nabble.com> <1238497332017-2562350.post@n2.nabble.com> <1238508296019-2563124.post@n2.nabble.com> <1238574008006-2567804.post@n2.nabble.com> <1238577964722-2568044.post@n2.nabble.com> <1238579312661-2568148.post@n2.nabble.com> <001501c9b2b4$59786690$0c6933b0$@com> Message-ID: <1238585544230-2568485.post@n2.nabble.com> gr8 help guys ...thanks...... -- View this message in context: http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-tp2516841p2568485.html Sent from the Mapserver - User mailing list archive at Nabble.com. From meenu.monu at gmail.com Wed Apr 1 04:35:09 2009 From: meenu.monu at gmail.com (meenu) Date: Wed, 1 Apr 2009 04:35:09 -0700 (PDT) Subject: [mapserver-users] mapserver with mapinfo gis data file Message-ID: <1238585709205-2568491.post@n2.nabble.com> hi advance thanks to all...i did one website using vs2005 C# using the available project TutorialMapServer...everything is working fine ...based on the available data folder...now my requirement is i have a set of gis data and map done by mapinfo professional...each layer have 4 files(DAT,.ID,.MAP,.TAB),....how can i add this layers in to this application...can anybody help me for this... -- View this message in context: http://n2.nabble.com/mapserver-with-mapinfo-gis-data-file-tp2568491p2568491.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vtammineni at roulacglobal.com Wed Apr 1 04:43:41 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 1 Apr 2009 17:13:41 +0530 Subject: [mapserver-users] mapserver with mapinfo gis data file In-Reply-To: <1238585709205-2568491.post@n2.nabble.com> References: <1238585709205-2568491.post@n2.nabble.com> Message-ID: <002801c9b2bf$1c724bc0$5556e340$@com> Hi, Please refer this url http://mapserver.org/input/vector/mapinfo.html Thanks Venkat, -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of meenu Sent: Wednesday, April 01, 2009 5:05 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] mapserver with mapinfo gis data file hi advance thanks to all...i did one website using vs2005 C# using the available project TutorialMapServer...everything is working fine ...based on the available data folder...now my requirement is i have a set of gis data and map done by mapinfo professional...each layer have 4 files(DAT,.ID,.MAP,.TAB),....how can i add this layers in to this application...can anybody help me for this... -- View this message in context: http://n2.nabble.com/mapserver-with-mapinfo-gis-data-file-tp2568491p2568491. 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 From Jukka.Rahkonen at mmmtike.fi Wed Apr 1 05:22:10 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 1 Apr 2009 15:22:10 +0300 Subject: [mapserver-users] MapServer 5.2.2 GetFeatureInfo returns an error In-Reply-To: <49D32F53.1000900@knmi.nl> References: <49D32F53.1000900@knmi.nl> Message-ID: Hi, Perhaps due to security fixes announced some days ago: From: Steve Lime Date: 2009-03-27 02:40:02 GMT (5 days, 9 hours and 39 minutes ago) "MapServer 5.2.2 and 4.10.4 have been released. (Version 5.4 will contain all of these fixes at the start and a beta 4 release will be available in a day or so.) The releases contain fixes for issues discovered in an audit of the CGI by a 3rd party (tickets #2939, #2941, #2942, #2943 and #2944). The issues are detailed at: http://trac.osgeo.org/mapserver/ticket/2939 http://trac.osgeo.org/mapserver/ticket/2941 http://trac.osgeo.org/mapserver/ticket/2942 http://trac.osgeo.org/mapserver/ticket/2943 http://trac.osgeo.org/mapserver/ticket/2944 Also provided is support for RFC-56 that addresses tightening up the control of access to mapfiles and templates: http://mapserver.org/development/rfc/ms-rfc-56.html" -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Maarten Plieger > L?hetetty: 1. huhtikuuta 2009 12:10 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] MapServer 5.2.2 GetFeatureInfo > returns an error > > Hi All, > We are updating our mapserver services from 5.2.0 to 5.2.2. I > have two issues doing this, one with SYMBOLSET and one with > TEMPLATE (for queries): > > - The first is that the SYMBOLSET in my mapfile gives an error: > SYMBOLSET "/data1/mapserver/symbols/symbols35.sym" > When I do a getcapabilities I get: > "msLoadSymbolSet(): Unknown identifier. First token must be > SYMBOLSET, this doesn't look like a symbol file" > I do not need this symbolset, so I have uncommented it > > - The second problem is GetFeatureInfo. GetFeatureInfo returns this: > Content-type: application/vnd.ogc.se_xml isValidTemplate(): > Web application error. Missing magic string, > ../InfoQueryTemplates/SCIA_IMAP_L3.html doesn't look like a > MapServer template. > > My template "SCIA_IMAP_L3.html" in the layer looks like this: > xVMR_CH4
> longitude: [mapx]
> latitude: [mapy]
> vertical_mixing_ratio_of_methane_in_air: [value_0] ppb
> > This template is configured in a LAYER object as: TEMPLATE > '../InfoQueryTemplates/SCIA_IMAP_L3.html' > > This is the getfeatureinfo request for 5.2.2: > http://geoservices.knmi.nl/cgi-bin/SCIA__CONS_R___IMAP____L3_t > est_5.2.2.cgi?SERVICE=WMS&REQUEST=GetFeatureInfo&VERSION=1.1.1 > &SRS=EPSG:4326&LAYERS=SCIA__CONS_R___IMAP____L3__20040101T0000 > 00_20040201T000000_0001_CH4&QUERY_LAYERS=SCIA__CONS_R___IMAP__ > __L3__20040101T000000_20040201T000000_0001_CH4&BBOX=-180,-92.2 2011385199241,180,92.22011385199241&WIDTH=1581&HEIGHT=810&X=361&Y=> 250&FORMAT=image/gif&INFO_FORMAT=text/html&STYLES=& > This used to work well with version 5.2.0: > http://geoservices.knmi.nl/cgi-bin/SCIA__CONS_R___IMAP____L3.c > gi?SERVICE=WMS&REQUEST=GetFeatureInfo&VERSION=1.1.1&SRS=EPSG:4 > 326&LAYERS=SCIA__CONS_R___IMAP____L3__20040101T000000_20040201 T000000_0001_CH4&QUERY_LAYERS=SCIA__CONS_R___IMAP____L3__> 20040101T000000_20040201T000000_0001_CH4&BBOX=-180,-92.2201138 5199241,180,92.22011385199241&WIDTH=1581&HEIGHT=810&X=361&Y=250> &FORMAT=image/gif&INFO_FORMAT=text/html&STYLES=& > > Am I doing something wrong? > > Thanks in advance, > Maarten Plieger > > > > > -- > Maarten Plieger > KNMI, R&D Information and Observation Technology, De Bilt > (t) +31 30 2206330 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From asle.benoni at gmail.com Wed Apr 1 05:00:24 2009 From: asle.benoni at gmail.com (Asle Benoni) Date: Wed, 1 Apr 2009 14:00:24 +0200 Subject: [mapserver-users] MapServer on OS X - getcababilities no xml output? Message-ID: <27b07930904010500k5ab96dacvfc0d1037448dd09d@mail.gmail.com> Hello, Forgive me if I mix up things here since I am new to MapServer. I have MapServer installed on OS X Server 10.5 and have also some problems with GeoServer and requests . So I wondered if this could have something to do with MapServer. Not really sure. I can show .map in OpenLayers with no problem but am trying to use MapServer as a WFS service. On the OpenLayers and MapFish lists I am recommended to use "new OpenLayers.Layer.WFS ..." instead of "...new OpenLayers.Layer.MapServer". But I am a bit confused. I want to use my .map file in OpenLayers and MapFish. When I use this URL http://localhost/cgi-bin/demo?request=getcapabilities&service=wms&version=1.1.1&map=/Library/WebServer/Documents/Naturkart/kulturminnekart/apps/demo/demowms.map I get a file downloaded "demo.map" with no file type. This is on Windows and from my Mac (demo without the .map extension and fileType:*application/vnd.ogc.wms_xml *). The file is an XML file so when I change the suffix to .xml it works. Is this correct? Is MapServer out-of-the-box a WFS service? /asle -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at statkart.no Wed Apr 1 05:52:10 2009 From: pal.kristensen at statkart.no (paalkr) Date: Wed, 1 Apr 2009 05:52:10 -0700 (PDT) Subject: [mapserver-users] Documentation update In-Reply-To: <1235761579085-2397520.post@n2.nabble.com> References: <1235751624497-2396593.post@n2.nabble.com> <49A81783.6040901@gatewaygeomatics.com> <1235761579085-2397520.post@n2.nabble.com> Message-ID: <1238590330428-2568788.post@n2.nabble.com> Bump P?l Done, http://trac.osgeo.org/mapserver/ticket/2909#preview P?l paalkr wrote: > Hi! > > I would suggest that someone with the right privileges adds the following > the the documentation > > In the LAYER mapfile reference (http://mapserver.org/mapfile/layer.html), > new headline Label directives: > PROCESSING "LABEL_NO_CLIP=True" > > In the Raster Data, Special Processing Directives > (http://mapserver.org/input/raster.html#special-processing-directives) > PROCESSING "OVERSAMPLE_RATIO=[int]" > > Both are quite handy, and information about usage should be easy accessible > in the documentation. > > Regards, > P?l Kristensen Please file any documentation changes you need through the MapServer Issue Tracker, in the "MapServer Documentation" component. Thank you. (otherwise mailing list emails are lost and forgotten) -jeff -- Jeff McKenna FOSS4G 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 -- View this message in context: http://n2.nabble.com/Documentation-update-tp2396593p2568788.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Wed Apr 1 06:43:17 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 01 Apr 2009 09:43:17 -0400 Subject: [mapserver-users] MapServer on OS X - getcababilities no xml output? In-Reply-To: <27b07930904010500k5ab96dacvfc0d1037448dd09d@mail.gmail.com> References: <27b07930904010500k5ab96dacvfc0d1037448dd09d@mail.gmail.com> Message-ID: <49D36F75.7010100@mapgears.com> Asle Benoni wrote: > > When I use this URL > > http://localhost/cgi-bin/demo?request=getcapabilities&service=wms&version=1.1.1&map=/Library/WebServer/Documents/Naturkart/kulturminnekart/apps/demo/demowms.map > > > I get a file downloaded "demo.map" with no file type. This is on Windows > and from my Mac (demo without the .map extension and fileType:* > application/vnd.ogc.wms_xml*). The file is an XML file so when I change > the suffix to .xml it works. Is this correct? > Yes, that's correct, but for WMS, not WFS: application/vnd.ogc.wms_xml is the expected MIME Type for WMS GetCapabilities responses. OGC has moved back to using text/xml in later versions of its specs as those custom MIME Types caused all sorts of trouble with very little benefits. Note that in your example you are using SERVICE=WMS and not WFS, is this really what you wanted? > Is MapServer out-of-the-box a WFS service? Yes and no. Out of the box it will respond to WFS (and WMS) requests, but if your mapfile lacks some configuration information then it may not behave according to spec. See the WMS and WFS server docs for all the details: http://www.mapserver.org/ogc/wms_server.html http://www.mapserver.org/ogc/wfs_server.html Daniel -- Daniel Morissette http://www.mapgears.com/ From yassefa at dmsolutions.ca Wed Apr 1 06:55:22 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 01 Apr 2009 09:55:22 -0400 Subject: [mapserver-users] Error while getting flash output In-Reply-To: <49D31826.4090201@gslab.com> References: <49D31826.4090201@gslab.com> Message-ID: <49D3724A.3060800@dmsolutions.ca> The error message seems to indicate that you did not build MapServer with ming support. Can you do mapserv -v on the command like and check if you have OUTPUT=SWF? Subha Ramakrishnan wrote: > Hi All, > > I am trying to get flash output from mapserver. I have compliled my > mapserver 5.2.2 with flash support. > But when i request for a layer, I am getting the following error: > "loadOutputFormat(): General error message. OUTPUTFORMAT clause > references driver SWF, but this driver isn't configured. " > > This is my url: > "http://localhost/cgi-bin/mapserv?MAP=flashlayer.map&TRANSPARENT=true&LAYERS=flashlayer&FORMAT=image%2Fswf&PROJECTION=EPSG%3A4326&REPROJECT=false& > > UNITS=m&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913& > > BBOX=4235678.0892222235,859902.5737739494,13628260.123222224,4404134.700666138&WIDTH=1920&HEIGHT=724" > > > Mapfile is as follows:(initial part with projection , extent etc truncated) > > OUTPUTFORMAT > NAME "swf" > MIMETYPE "application/x-shockwave-flash" > DRIVER "swf" > IMAGEMODE PC256 > FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" > END > > layer > name flashlayer > connectiontype postgis > connection "user= postgres dbname=flashtable host=localhost" > type polygon > group world > dump true > METADATA > "RESULT_FIELDS" "__ibp__id" > "SWFDUMPATTRIBUTES" "__ibp__id" > END > template "template.html" > projection > "init=epsg:4326" > end > transparency 65 > status on > data "topology from flashtest using unique id using SRID = -1" > classitem "country" > class > name "INDIA" > expression "INDIA" > style > color 139 242 144 > outlinecolor 000 000 000 > end > end > end > > Can some one please guide me as how to get the output in flash after > enabling the support? > > Thanks a lot for any help. > > Subha > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Steve.Lime at dnr.state.mn.us Wed Apr 1 07:25:56 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 01 Apr 2009 09:25:56 -0500 Subject: [mapserver-users] MapServer 5.2.2 GetFeatureInfo returns an error In-Reply-To: References: <49D32F53.1000900@knmi.nl> Message-ID: <49D33323.5157.008F.0@dnr.state.mn.us> Correct, the fixes are easy: 1) for the symbol set, make sure the file is structured like so: SYMBOLSET ...symbols... END 2) for template error, add the magic template string to the top of the file All should be well then. Steve >>> On 4/1/2009 at 7:22 AM, in message , "Rahkonen Jukka" wrote: > Hi, > > Perhaps due to security fixes announced some days ago: > > From: Steve Lime > Date: 2009-03-27 02:40:02 GMT (5 days, 9 hours and 39 minutes ago) > > "MapServer 5.2.2 and 4.10.4 have been released. (Version 5.4 will contain > all of these > fixes at the start and a beta 4 release will be available in a day or so.) > > The releases contain fixes for issues discovered in an audit of the CGI by a > 3rd party > (tickets #2939, #2941, #2942, #2943 and #2944). The issues are detailed at: > > http://trac.osgeo.org/mapserver/ticket/2939 > http://trac.osgeo.org/mapserver/ticket/2941 > http://trac.osgeo.org/mapserver/ticket/2942 > http://trac.osgeo.org/mapserver/ticket/2943 > http://trac.osgeo.org/mapserver/ticket/2944 > > Also provided is support for RFC-56 that addresses tightening up the control > of > access to mapfiles and templates: > > http://mapserver.org/development/rfc/ms-rfc-56.html" > > -Jukka Rahkonen- > > > >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta >> Maarten Plieger >> L?hetetty: 1. huhtikuuta 2009 12:10 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] MapServer 5.2.2 GetFeatureInfo >> returns an error >> >> Hi All, >> We are updating our mapserver services from 5.2.0 to 5.2.2. I >> have two issues doing this, one with SYMBOLSET and one with >> TEMPLATE (for queries): >> >> - The first is that the SYMBOLSET in my mapfile gives an error: >> SYMBOLSET "/data1/mapserver/symbols/symbols35.sym" >> When I do a getcapabilities I get: >> "msLoadSymbolSet(): Unknown identifier. First token must be >> SYMBOLSET, this doesn't look like a symbol file" >> I do not need this symbolset, so I have uncommented it >> >> - The second problem is GetFeatureInfo. GetFeatureInfo returns this: >> Content-type: application/vnd.ogc.se_xml isValidTemplate(): >> Web application error. Missing magic string, >> ../InfoQueryTemplates/SCIA_IMAP_L3.html doesn't look like a >> MapServer template. >> >> My template "SCIA_IMAP_L3.html" in the layer looks like this: >> xVMR_CH4
>> longitude: [mapx]
>> latitude: [mapy]
>> vertical_mixing_ratio_of_methane_in_air: [value_0] ppb
>> >> This template is configured in a LAYER object as: TEMPLATE >> '../InfoQueryTemplates/SCIA_IMAP_L3.html' >> >> This is the getfeatureinfo request for 5.2.2: >> http://geoservices.knmi.nl/cgi-bin/SCIA__CONS_R___IMAP____L3_t >> est_5.2.2.cgi?SERVICE=WMS&REQUEST=GetFeatureInfo&VERSION=1.1.1 >> &SRS=EPSG:4326&LAYERS=SCIA__CONS_R___IMAP____L3__20040101T0000 >> 00_20040201T000000_0001_CH4&QUERY_LAYERS=SCIA__CONS_R___IMAP__ >> __L3__20040101T000000_20040201T000000_0001_CH4&BBOX=-180,-92.2 > 2011385199241,180,92.22011385199241&WIDTH=1581&HEIGHT=810&X=361&Y=> > 250&FORMAT=image/gif&INFO_FORMAT=text/html&STYLES=& >> This used to work well with version 5.2.0: >> http://geoservices.knmi.nl/cgi-bin/SCIA__CONS_R___IMAP____L3.c >> gi?SERVICE=WMS&REQUEST=GetFeatureInfo&VERSION=1.1.1&SRS=EPSG:4 >> 326&LAYERS=SCIA__CONS_R___IMAP____L3__20040101T000000_20040201 > T000000_0001_CH4&QUERY_LAYERS=SCIA__CONS_R___IMAP____L3__> > 20040101T000000_20040201T000000_0001_CH4&BBOX=-180,-92.2201138 > 5199241,180,92.22011385199241&WIDTH=1581&HEIGHT=810&X=361&Y=250> > &FORMAT=image/gif&INFO_FORMAT=text/html&STYLES=& >> >> Am I doing something wrong? >> >> Thanks in advance, >> Maarten Plieger >> >> >> >> >> -- >> Maarten Plieger >> KNMI, R&D Information and Observation Technology, De Bilt >> (t) +31 30 2206330 >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From rpha88 at gmail.com Wed Apr 1 07:29:30 2009 From: rpha88 at gmail.com (rohan phatak) Date: Wed, 1 Apr 2009 19:59:30 +0530 Subject: [mapserver-users] Search Field in GMAP Message-ID: Hello Friends, I am using GMAP an application of mapserver ,in that i want to create an button "search" so that i can find some attributes in the database. Also i want to create buffer when user clicks a point in map from that point a distance 500m which contains hospitals that will be highlighted. so how to proceed these things?? thanks in advance : ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From plieger at knmi.nl Wed Apr 1 07:32:11 2009 From: plieger at knmi.nl (Maarten Plieger) Date: Wed, 01 Apr 2009 14:32:11 +0000 Subject: [mapserver-users] MapServer 5.2.2 GetFeatureInfo returns an error - FIXED In-Reply-To: <49D33323.5157.008F.0@dnr.state.mn.us> References: <49D32F53.1000900@knmi.nl> <49D33323.5157.008F.0@dnr.state.mn.us> Message-ID: <49D37AEB.2030003@knmi.nl> Thank you, it is fixed now. My apologies that I missed this. I added the magic string to all the templates. Is it possible to disable requests which have the server name as layers parameter in a getmap request? Our server is called ADAGUC_WMS_Server. Making a getmap request with this ID results in that all layers inside this service are drawn in the same image, causing a high load. We have many layers in our service. Of course some people want this feature, but we want to disable it. I cannot find out how to do it, I saw that it is possible to disable it for layers which are one level deeper (by using "wms_layer_group"), but not for the first one. The same is questioned before on the mailinglist with subject "[mapserver-users] UMN MapServer - WMS GetCapabilities: Hide element in top layer to prevent loading all layers at once"... The problem is that users should only use the deepest layer names, not the group names, in a getmap request. The website http://www.geopole.org/wms/ does getmap requests with the server name in the layers parameters. This causes a high load because we have layers for each day. Best regards, Maarten Plieger Steve Lime schreef: > Correct, the fixes are easy: > > 1) for the symbol set, make sure the file is structured like so: > > SYMBOLSET > ...symbols... > END > > 2) for template error, add the magic template string to the top of > the file > > All should be well then. > > Steve > > >>>> On 4/1/2009 at 7:22 AM, in message >>>> > , "Rahkonen > Jukka" > wrote: > >> Hi, >> >> Perhaps due to security fixes announced some days ago: >> >> From: Steve Lime >> Date: 2009-03-27 02:40:02 GMT (5 days, 9 hours and 39 minutes ago) >> >> "MapServer 5.2.2 and 4.10.4 have been released. (Version 5.4 will >> > contain > >> all of these >> fixes at the start and a beta 4 release will be available in a day or >> > so.) > >> The releases contain fixes for issues discovered in an audit of the >> > CGI by a > >> 3rd party >> (tickets #2939, #2941, #2942, #2943 and #2944). The issues are >> > detailed at: > >> http://trac.osgeo.org/mapserver/ticket/2939 >> http://trac.osgeo.org/mapserver/ticket/2941 >> http://trac.osgeo.org/mapserver/ticket/2942 >> http://trac.osgeo.org/mapserver/ticket/2943 >> http://trac.osgeo.org/mapserver/ticket/2944 >> >> Also provided is support for RFC-56 that addresses tightening up the >> > control > >> of >> access to mapfiles and templates: >> >> http://mapserver.org/development/rfc/ms-rfc-56.html" >> >> -Jukka Rahkonen- >> >> >> >> >>> -----Alkuper?inen viesti----- >>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta >>> Maarten Plieger >>> L?hetetty: 1. huhtikuuta 2009 12:10 >>> Vastaanottaja: mapserver-users at lists.osgeo.org >>> Aihe: [mapserver-users] MapServer 5.2.2 GetFeatureInfo >>> returns an error >>> >>> Hi All, >>> We are updating our mapserver services from 5.2.0 to 5.2.2. I >>> have two issues doing this, one with SYMBOLSET and one with >>> TEMPLATE (for queries): >>> >>> - The first is that the SYMBOLSET in my mapfile gives an error: >>> SYMBOLSET "/data1/mapserver/symbols/symbols35.sym" >>> When I do a getcapabilities I get: >>> "msLoadSymbolSet(): Unknown identifier. First token must be >>> SYMBOLSET, this doesn't look like a symbol file" >>> I do not need this symbolset, so I have uncommented it >>> >>> - The second problem is GetFeatureInfo. GetFeatureInfo returns >>> > this: > >>> Content-type: application/vnd.ogc.se_xml isValidTemplate(): >>> Web application error. Missing magic string, >>> ../InfoQueryTemplates/SCIA_IMAP_L3.html doesn't look like a >>> MapServer template. >>> >>> My template "SCIA_IMAP_L3.html" in the layer looks like this: >>> xVMR_CH4
>>> longitude: [mapx]
>>> latitude: [mapy]
>>> vertical_mixing_ratio_of_methane_in_air: [value_0] ppb
>>> >>> This template is configured in a LAYER object as: TEMPLATE >>> '../InfoQueryTemplates/SCIA_IMAP_L3.html' >>> >>> This is the getfeatureinfo request for 5.2.2: >>> http://geoservices.knmi.nl/cgi-bin/SCIA__CONS_R___IMAP____L3_t >>> est_5.2.2.cgi?SERVICE=WMS&REQUEST=GetFeatureInfo&VERSION=1.1.1 >>> &SRS=EPSG:4326&LAYERS=SCIA__CONS_R___IMAP____L3__20040101T0000 >>> 00_20040201T000000_0001_CH4&QUERY_LAYERS=SCIA__CONS_R___IMAP__ >>> __L3__20040101T000000_20040201T000000_0001_CH4&BBOX=-180,-92.2 >>> >> 2011385199241,180,92.22011385199241&WIDTH=1581&HEIGHT=810&X=361&Y=> >> 250&FORMAT=image/gif&INFO_FORMAT=text/html&STYLES=& >> >>> This used to work well with version 5.2.0: >>> http://geoservices.knmi.nl/cgi-bin/SCIA__CONS_R___IMAP____L3.c >>> gi?SERVICE=WMS&REQUEST=GetFeatureInfo&VERSION=1.1.1&SRS=EPSG:4 >>> 326&LAYERS=SCIA__CONS_R___IMAP____L3__20040101T000000_20040201 >>> >> T000000_0001_CH4&QUERY_LAYERS=SCIA__CONS_R___IMAP____L3__> >> 20040101T000000_20040201T000000_0001_CH4&BBOX=-180,-92.2201138 >> 5199241,180,92.22011385199241&WIDTH=1581&HEIGHT=810&X=361&Y=250> >> &FORMAT=image/gif&INFO_FORMAT=text/html&STYLES=& >> >>> Am I doing something wrong? >>> >>> Thanks in advance, >>> Maarten Plieger >>> >>> >>> >>> >>> -- >>> Maarten Plieger >>> KNMI, R&D Information and Observation Technology, De Bilt >>> (t) +31 30 2206330 >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -- Maarten Plieger KNMI, R&D Information and Observation Technology, De Bilt (t) +31 30 2206330 From pmoen at nd.gov Wed Apr 1 09:24:59 2009 From: pmoen at nd.gov (Moen, Paul T.) Date: Wed, 1 Apr 2009 11:24:59 -0500 Subject: [mapserver-users] Mapscript shapeObj->toWKt() or ms_shapeObjfromWkt problem. Message-ID: I get a segmentation fault when I run the following simple script with PHP MapScript on Mac OSX 10.5.6 running the latest versions from www.kyngchaos.com #!/usr/local/php5cgi/bin/php -q toWKT(); ?> /Library/WebServer/CGI-Executables/mapserv -v MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE The only output is; Segmentation fault The php version is 5.2.9 and the same thing happens with php versions 5.2.8, 5.2.5. MapServer Version MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 7937 $ $Date: 2008-09-30 07:37:46 -0700 (Tue, 30 Sep 2008) $) Anybody else run into this this error? How do I get more debug information? Thanks, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From Z1568080 at students.niu.edu Wed Apr 1 09:39:52 2009 From: Z1568080 at students.niu.edu (Praveen@123) Date: Wed, 1 Apr 2009 09:39:52 -0700 (PDT) Subject: [mapserver-users] Installation Problem Message-ID: <1238603992650-2570151.post@n2.nabble.com> Hello, I am having problem installing mapserver which is as follows. I have already installed png,freetype and pthreads libraries. configuration with libpng,zlib and freetype was successfull. when i am trying to configure GD the error occured which is listed below for your reference. ** Configuration summary for gd 2.0.35: Support for PNG library: yes Support for JPEG library: no Support for Freetype 2.x library: yes Support for Fontconfig library: no Support for Xpm library: no Support for pthreads: yes configure: creating ./config.status config.status: creating Makefile config.status: creating config/Makefile config.status: creating config/gdlib-config config.status: creating test/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands I have also tried installing the rpm library and it says cannot create transaction lock control and also when i am trying to query the installed rpm libraries with rpm -qa, in that list i can find all the required libraries installed. Kindly help me in this regard. Regards Praveen -- View this message in context: http://n2.nabble.com/Installation-Problem-tp2570151p2570151.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yassefa at dmsolutions.ca Wed Apr 1 10:33:09 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 01 Apr 2009 13:33:09 -0400 Subject: [mapserver-users] Mapscript shapeObj->toWKt() or ms_shapeObjfromWkt problem. In-Reply-To: References: Message-ID: <49D3A555.4040504@dmsolutions.ca> Not helping here but I have tested your script on windows with Mapserver 5.2.2 and 5.4 and the script runs ok. The geos version used in this case is geos 2.2.3. Do you know what version of geos you are using? There was a recent fix done toward geos support in MapServer and the problem from what I remember was occurring with geos 3.1 (Is that correct Tom ?) (http://trac.osgeo.org/mapserver/ticket/2929 Best Regards Moen, Paul T. wrote: > I get a segmentation fault when I run the following simple script with > PHP MapScript on Mac OSX 10.5.6 running the latest versions from > www.kyngchaos.com > > #!/usr/local/php5cgi/bin/php -q > dl('php_mapscript.so'); > $newwkt = 'MULTIPOLYGON(((1207657 478875,1208230 478275,1207452 > 477811,1207043 478520,1207657 478875)))'; > $drawnShp = ms_shapeObjFromWkt($newwkt); > echo $drawnShp->toWKT(); > ?> > > /Library/WebServer/CGI-Executables/mapserv -v > MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > The only output is; > Segmentation fault > > The php version is 5.2.9 and the same thing happens with php versions > 5.2.8, 5.2.5. > > *MapServer Version *MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG > SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > *PHP MapScript Version *($Revision: 7937 $ $Date: 2008-09-30 07:37:46 > -0700 (Tue, 30 Sep 2008) $) > > > Anybody else run into this this error? How do I get more debug information? > > > Thanks, > > Paul > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From pmoen at nd.gov Wed Apr 1 10:59:03 2009 From: pmoen at nd.gov (Moen, Paul T.) Date: Wed, 1 Apr 2009 12:59:03 -0500 Subject: [mapserver-users] Mapscript shapeObj->toWKt() or ms_shapeObjfromWkt problem. In-Reply-To: <49D3A555.4040504@dmsolutions.ca> Message-ID: On 4/1/09 12:33 PM, "Yewondwossen Assefa" wrote: Not helping here but I have tested your script on windows with Mapserver 5.2.2 and 5.4 and the script runs ok. The geos version used in this case is geos 2.2.3. Do you know what version of geos you are using? There was a recent fix done toward geos support in MapServer and the problem from what I remember was occurring with geos 3.1 (Is that correct Tom ?) (http://trac.osgeo.org/mapserver/ticket/2929 Best Regards Moen, Paul T. wrote: > I get a segmentation fault when I run the following simple script with > PHP MapScript on Mac OSX 10.5.6 running the latest versions from > www.kyngchaos.com > > #!/usr/local/php5cgi/bin/php -q > dl('php_mapscript.so'); > $newwkt = 'MULTIPOLYGON(((1207657 478875,1208230 478275,1207452 > 477811,1207043 478520,1207657 478875)))'; > $drawnShp = ms_shapeObjFromWkt($newwkt); > echo $drawnShp->toWKT(); > ?> > > /Library/WebServer/CGI-Executables/mapserv -v > MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > The only output is; > Segmentation fault > > The php version is 5.2.9 and the same thing happens with php versions > 5.2.8, 5.2.5. > > *MapServer Version *MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG > SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > *PHP MapScript Version *($Revision: 7937 $ $Date: 2008-09-30 07:37:46 > -0700 (Tue, 30 Sep 2008) $) > > > Anybody else run into this this error? How do I get more debug information? > > > Thanks, > > Paul > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- Paul T. Moen pmoen at nd.gov 701-328-2434 701-328-3696 (fax) ND State Water Commission -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmoen at nd.gov Wed Apr 1 11:01:25 2009 From: pmoen at nd.gov (Moen, Paul T.) Date: Wed, 1 Apr 2009 13:01:25 -0500 Subject: [mapserver-users] Mapscript shapeObj->toWKt() or ms_shapeObjfromWkt problem. In-Reply-To: Message-ID: I am using Geos 3.1.0. On 4/1/09 12:59 PM, "Paul Moen" wrote: On 4/1/09 12:33 PM, "Yewondwossen Assefa" wrote: Not helping here but I have tested your script on windows with Mapserver 5.2.2 and 5.4 and the script runs ok. The geos version used in this case is geos 2.2.3. Do you know what version of geos you are using? There was a recent fix done toward geos support in MapServer and the problem from what I remember was occurring with geos 3.1 (Is that correct Tom ?) (http://trac.osgeo.org/mapserver/ticket/2929 Best Regards Moen, Paul T. wrote: > I get a segmentation fault when I run the following simple script with > PHP MapScript on Mac OSX 10.5.6 running the latest versions from > www.kyngchaos.com > > #!/usr/local/php5cgi/bin/php -q > dl('php_mapscript.so'); > $newwkt = 'MULTIPOLYGON(((1207657 478875,1208230 478275,1207452 > 477811,1207043 478520,1207657 478875)))'; > $drawnShp = ms_shapeObjFromWkt($newwkt); > echo $drawnShp->toWKT(); > ?> > > /Library/WebServer/CGI-Executables/mapserv -v > MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > The only output is; > Segmentation fault > > The php version is 5.2.9 and the same thing happens with php versions > 5.2.8, 5.2.5. > > *MapServer Version *MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG > SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > *PHP MapScript Version *($Revision: 7937 $ $Date: 2008-09-30 07:37:46 > -0700 (Tue, 30 Sep 2008) $) > > > Anybody else run into this this error? How do I get more debug information? > > > Thanks, > > Paul > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- Paul T. Moen pmoen at nd.gov 701-328-2434 701-328-3696 (fax) ND State Water Commission Paul T. Moen pmoen at nd.gov 701-328-2434 701-328-3696 (fax) ND State Water Commission -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.sirin07 at googlemail.com Wed Apr 1 11:29:17 2009 From: m.sirin07 at googlemail.com (Mehmet) Date: Wed, 1 Apr 2009 20:29:17 +0200 Subject: Fwd: [mapserver-users] WFS Filter with CGI Controls ? In-Reply-To: <55744b1c0903311635k350bb3b6t658b12631c59f528@mail.gmail.com> References: <55744b1c0903291451i63f43af3iaeddadffffe39ff6@mail.gmail.com> <49D104B0.40408@dmsolutions.ca> <55744b1c0903301407x65514a8axb28c094c5f8061ad@mail.gmail.com> <49D210C4.7060608@dmsolutions.ca> <55744b1c0903311635k350bb3b6t658b12631c59f528@mail.gmail.com> Message-ID: <55744b1c0904011129k2165b9bfqceb68a1a93266613@mail.gmail.com> ---------- Forwarded message ---------- From: Mehmet Date: 2009/4/1 Subject: Re: [mapserver-users] WFS Filter with CGI Controls ? To: Yewondwossen Assefa hey, that's an good idea! And it worked for example with EXPRESSION ('[type]' eq 'motorway') thank you kind regards m.sirin 2009/3/31 Yewondwossen Assefa Mehmet, > > One possibility would be to use variable substitution I guess: you can > define your expression in the class with a value that would be replace from > the url (http://mapserver.org/mapfile/variable_sub.html): > > something like this (not tested) > EXPRESSION ("[TYPE]" = "%ms_type%"). You would then set > my_type=residential in the url. > > Best Regards > > Mehmet wrote: > >> Hi, >> >> For example I want to use the Openstreetmap data, more precisely streets. >> And there are attributes like "name", "type", etc. Now I want to display >> some features of "type" for instance by choosing "residential". The question >> is: How to do that via URL and not by employing a client? >> >> kind regards >> >> 2009/3/30 Yewondwossen Assefa > yassefa at dmsolutions.ca>> >> >> Hi There, >> >> I am not sure I understand the question properly? Do you mean >> getting the schema (attributes) of a layer? If that is the case >> there is a DescribeSchema operation on a wfs server. >> >> Best Regards >> >> >> >> Mehmet wrote: >> >> >> >> Hi, using the wfs_filter in a wms/wfs client works without >> problems. But I wonder If can use "wfs_filter" via URL (not for >> getting a XML File by GetFeature..that is I'm not meaning >> &Filter=< >> >> PropertyIsGreaterThan>AREA100 >> ). >> >> It's for showing a dropdown menu in which users can choose what >> type of roads they want to display (the geodata comes from >> openstreetmap). >> Is it possible? >> >> >> >> >> By the way: I just have the Mapserver 4.10 running. >> >> >> >> Thank you >> M.Sirin >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> -- ---------------------------------------------------------------- >> Assefa Yewondwossen >> Software Analyst >> >> Email: assefa at dmsolutions.ca >> http://www.dmsolutions.ca/ >> >> Phone: (613) 565-5056 (ext 14) >> Fax: (613) 565-0925 >> ---------------------------------------------------------------- >> >> >> > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From el.carly at gmail.com Wed Apr 1 12:20:12 2009 From: el.carly at gmail.com (Carlos Cuello) Date: Wed, 1 Apr 2009 16:20:12 -0300 Subject: [mapserver-users] Querying troubles on MapServer/MapScript 5.0.3-3 Message-ID: Hi!, bare with me if my english is not too good...my native language is spanish actually. I'm using pmapper (maybe some of you already know it) with MapScript 5.0.3-3 on a Debian Lenny. And I'm having some troubles with the Search that implements using the Querying of MapServer. I've already posted on pmapper mailing list, and the main developer exchange some pointers with me, told me that he believed was a problem with mapserver and then told me: *"why don't you prepare a simple Mapscript script for the query like the one I sent you together with a test dataset and mention this problem on the mapserver mailing list. If someone wants to analyze this further you could send him the script and dataset"* so here I am...i've already made the test dataset, so if anyone is interested on giving me a hand i could send you the .rar file and you try to execute and told me the results. Because the problem that I'm having is that the query only returns results if the search string is written EXACTLY as it is on the data of the layer...for example if i want to search for a street i must put SAAVEDRA i cannot put Saavedra or saavedra, or no results will be return. If anyone have any tips, ideas or pointers it would be appreciated. Best regards Carlos -------------- next part -------------- An HTML attachment was scrubbed... URL: From iansgis at gmail.com Wed Apr 1 12:30:07 2009 From: iansgis at gmail.com (Ian) Date: Wed, 1 Apr 2009 12:30:07 -0700 Subject: [mapserver-users] Python mapscript install errors Message-ID: <5b61c6c50904011230r4a165440p297a01e930a9d703@mail.gmail.com> I'm installing Python mapscript but keep getting errors. Here is my output: python runalltests.py -v test saving query to a file ... ok simple index query returns one result, even if layer is off ... ok simple point query returns one result, even if layer is off ... ok point query with no results returns NULL ... ok simple point query returns one result ... ok deleting results should not harm the layer ... ok pop a result into the result set ... ok result bounds should equal layer bounds ... ok get the single result member ... ok get all results using list comprehension ... ok denying direct access to layer's resultcache ... ok before a query layer's resultcache should be NULL ... ok string attribute has been renamed to 'text' (bug 852) ... ok testClear (hashtest.ClassMetadataTestCase) ... ok testGetValue (hashtest.ClassMetadataTestCase) ... ok testGetValueWithDefault (hashtest.ClassMetadataTestCase) ... ok testNextKey (hashtest.ClassMetadataTestCase) ... ok testRemoveItem (hashtest.ClassMetadataTestCase) ... ok testUseNonExistentKey (hashtest.ClassMetadataTestCase) ... ok testUseNonExistentKeyWithDefault (hashtest.ClassMetadataTestCase) ... ok testClear (hashtest.HashTableTestCase) ... ok testConstructor (hashtest.HashTableTestCase) ... ok testGetValue (hashtest.HashTableTestCase) ... ok testGetValueWithDefault (hashtest.HashTableTestCase) ... ok testNextKey (hashtest.HashTableTestCase) ... ok testRemoveItem (hashtest.HashTableTestCase) ... ok testUseNonExistentKey (hashtest.HashTableTestCase) ... ok testUseNonExistentKeyWithDefault (hashtest.HashTableTestCase) ... ok testClear (hashtest.LayerMetadataTestCase) ... ok testGetValue (hashtest.LayerMetadataTestCase) ... ok testGetValueWithDefault (hashtest.LayerMetadataTestCase) ... ok testNextKey (hashtest.LayerMetadataTestCase) ... ok testRemoveItem (hashtest.LayerMetadataTestCase) ... ok testUseNonExistentKey (hashtest.LayerMetadataTestCase) ... ok testUseNonExistentKeyWithDefault (hashtest.LayerMetadataTestCase) ... ok testClear (hashtest.WebMetadataTestCase) ... ok testGetValue (hashtest.WebMetadataTestCase) ... ok testGetValueWithDefault (hashtest.WebMetadataTestCase) ... ok testNextKey (hashtest.WebMetadataTestCase) ... ok testRemoveItem (hashtest.WebMetadataTestCase) ... ok testUseNonExistentKey (hashtest.WebMetadataTestCase) ... ok testUseNonExistentKeyWithDefault (hashtest.WebMetadataTestCase) ... ok check attributes of a cloned class ... ok testAlphaTransparentPixmap (classtest.ClassIconTestCase) ... ok testAlphaTransparentPixmapJPG (classtest.ClassIconTestCase) ... ERROR testAlphaTransparentPixmapPNG24 (classtest.ClassIconTestCase) ... ok testIndexedTransparentPixmap (classtest.ClassIconTestCase) ... ok testIndexedTransparentPixmapJPG (classtest.ClassIconTestCase) ... ERROR testConstructorNoArg (classtest.ClassObjTestCase) ... ok testConstructorWithArg (classtest.ClassObjTestCase) ... ok EmptyMapExceptionTestCase.testDrawEmptyMap: drawing an empty map returns proper error ... ok MapConstructorTestCase.testMapConstructorEmptyStringArg: test map constructor with old-style empty string argument ... ok MapConstructorTestCasetest.testMapConstructorEmptyStringArg: map constructor with filename argument ... ok MapConstructorTestCase.testMapConstructorNoArg: test map constructor with no argument ... ok MapExceptionTestCase.testDrawBadData: a bad data descriptor in a layer returns proper error ... ok test the rebinding of a map's extent ... ok MapExtentTestCase.testSetExtent: test the setting of a mapObj's extent ... ok MapExtentTestCase.testSetExtentBadly: test that mapscript raises an error for an invalid mapObj extent ... ok expect fontset file to be 'fonts.txt' ... ok MapLayersTestCase.testMapInsertLayer: test insertion of a new layer at default (last) index ... ok MapLayersTestCase.testMapInsertLayerAtZero: test insertion of a new layer at first index ... ok MapLayersTestCase.testMapInsertLayerBadIndex: expect an exception when index is too large ... ok MapLayersTestCase.testMapInsertLayerDrawingOrder: test affect of insertion of a new layer at index 1 on drawing order ... ok expect an exception on attempt to insert a NULL Layer ... ok removal of highest index (tail) layer ... ok removal of lowest index (0) layer ... ok test affect of layer removal on drawing order ... ok MapMetaDataTestCase.testClassMetaData: class metadata keys are correct values ... ok MapMetaDataTestCase.testFirstKeyAccess: first metadata key is correct value ... ok MapMetaDataTestCase.testInvalidKeyAccess: an invalid map metadata key returns proper error ... ok MapMetaDataTestCase.testLastKeyAccess: last metadata key is correct value ... ok MapMetaDataTestCase.testLayerMetaData: layer metadata keys are correct values ... ok MapMetaDataTestCase.testMapMetaData: map metadata keys are correct values ... ok testESRIWKT (maptest.MapSetWKTTestCase) ... ok testOGCWKT (maptest.MapSetWKTTestCase) ... ok testWellKnownGEOGCS (maptest.MapSetWKTTestCase) ... ok testDefaultSize (maptest.MapSizeTestCase) ... ok testSetSize (maptest.MapSizeTestCase) ... ok an empty map should have fontset filename == None ... ok a color can be initialized with arguments ... ok a color can be initialized with no arguments ... ok invalid hex color string raises proper error ... ok a color can be set using lower case hex ... ok a color can be set using upper case hex ... ok a color can be set using setRGB method ... ok a color can be outputted as hex ... ok raise an error in the case of an undefined color ... ok imageObj constructor works ... ok imageObj with a filename works ... ok imageObj with a filename and a driver works ... ok imageObj with a file stream works ... ok imageObj with a cStringIO works ... ok imageObj with a URL stream works ... ERROR imageObj with an optional driver works ... ok image returns bytes ... ok image writes data to an open filehandle ... ok image writes data to a StringIO instance ... ok test that an image can be saved as a string ... ok create a rect in image units ... ok in image units miny should be greater than maxy ... ok test formatted error message ... ok point is contained (spatially) in rectangle ... ok point is not contained (spatially) in rectangle ... ok a rect can be initialized with arguments ... ok an invalid extent raises proper error (x direction) ... ok an invalid extent raises proper error (y direction) ... ok a rect can be initialized with no args ... ok a rect can be converted into a MS_POLYGON shape ... ok return properly formatted string ... ok __str__ returns properly formatted string ... ok test_getfeature (pgtest.SubSelectNoSRIDTest) ... ERROR test_getfeature (pgtest.SubSelectTest) ... ERROR test_getfeature (pgtest.TableTest) ... ERROR test_getfeature (pgtest.ViewTest) ... ERROR MapCloningTestCase.testClonedLayers: the layers of a cloned map equal the original ... ok MapCloningTestCase.testClonedName: the name of a cloned map equals the original ... ok drawing a cloned map works properly ... ok drawing a cloned map works properly ... ERROR drawing a cloned map works properly ... ok MapCloningTestCase.testSetFontSet: the number of fonts in a cloned map equal original ... ok MapCloningTestCase.testSetSymbolSet: the number of symbols in a cloned map equal original ... ok draw a blue polygon and a red polygon ... ok DrawProgrammedStylesTestCase.testDrawPoints: point drawing with styles works as advertised ... ok a new style can be appended properly ... ok NewStylesTestCase.testAppendNewStyleOldWay: a new style can be appended properly using old method ... ok check attributes of a cloned style ... ok attempt to insert a NULL style should raise error ... ok NewStylesTestCase.testInsertNewStyleAtIndex0: a new style can be inserted ahead of all others ... ok NewStylesTestCase.testInsertStylePastEnd: inserting a style past the end of the list raises the proper error ... ok NewStylesTestCase.testModifyMultipleStyle: multiple styles can be modified ... ok NewStylesTestCase.testRemovePointStyle: a point style can be properly removed ... ok a style can be set with a color tuple ... ok a new style is properly initialized ... ok adding a point to an inline feature works correctly ... ok the number of features in the inline layer is correct ... ok returning the shape from an inline feature works ... ok the number of lines is correct ... ok test shape can be copied ... ok testNullValue (shapetest.ShapeValuesTestCase) ... ok testSetValue (shapetest.ShapeValuesTestCase) ... ok testGetPointWKT (shapetest.ShapeWKTTestCase) ... ok testSetPointWKT (shapetest.ShapeWKTTestCase) ... ok map drawing with multiple threads ... ok mapserver exceptions should be contained to a thread ... ok mapserver exceptions behave with multiple threads ... ok testDrawWMS (threadtest.OWSRequestTestCase) ... ok test that a new output format can be created on-the-fly ... ok test built in JPEG format ... Exception in thread d4: Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/lib/python2.4/threading.py", line 422, in run self.__target(*self.__args, **self.__kwargs) File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py", line 176, in draw_map_wms mo.selectOutputFormat('image/jpeg') File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in selectOutputFormat def selectOutputFormat(*args): return _mapscript.mapObj_selectOutputFormat(*args) MapServerError: setImageType(): General error message. Unable to find IMAGETYPE 'image/jpeg'. Exception in thread d2: Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/lib/python2.4/threading.py", line 422, in run self.__target(*self.__args, **self.__kwargs) File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py", line 176, in draw_map_wms mo.selectOutputFormat('image/jpeg') File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in selectOutputFormat def selectOutputFormat(*args): return _mapscript.mapObj_selectOutputFormat(*args) MapServerError: setImageType(): General error message. Unable to find IMAGETYPE 'image/jpeg'. Exception in thread d1: Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/lib/python2.4/threading.py", line 422, in run self.__target(*self.__args, **self.__kwargs) File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py", line 176, in draw_map_wms mo.selectOutputFormat('image/jpeg') File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in selectOutputFormat def selectOutputFormat(*args): return _mapscript.mapObj_selectOutputFormat(*args) MapServerError: setImageType(): General error message. Unable to find IMAGETYPE 'image/jpeg'. Exception in thread d6: Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/lib/python2.4/threading.py", line 422, in run self.__target(*self.__args, **self.__kwargs) File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py", line 176, in draw_map_wms mo.selectOutputFormat('image/jpeg') File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in selectOutputFormat def selectOutputFormat(*args): return _mapscript.mapObj_selectOutputFormat(*args) MapServerError: setImageType(): General error message. Unable to find IMAGETYPE 'image/jpeg'. Exception in thread d5: Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/lib/python2.4/threading.py", line 422, in run self.__target(*self.__args, **self.__kwargs) File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py", line 176, in draw_map_wms mo.selectOutputFormat('image/jpeg') File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in selectOutputFormat def selectOutputFormat(*args): return _mapscript.mapObj_selectOutputFormat(*args) MapServerError: setImageType(): General error message. Unable to find IMAGETYPE 'image/jpeg'. Exception in thread d3: Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/lib/python2.4/threading.py", line 422, in run self.__target(*self.__args, **self.__kwargs) File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py", line 176, in draw_map_wms mo.selectOutputFormat('image/jpeg') File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in selectOutputFormat def selectOutputFormat(*args): return _mapscript.mapObj_selectOutputFormat(*args) MapServerError: setImageType(): General error message. Unable to find IMAGETYPE 'image/jpeg'. Exception in thread d0: Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/lib/python2.4/threading.py", line 422, in run self.__target(*self.__args, **self.__kwargs) File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py", line 176, in draw_map_wms mo.selectOutputFormat('image/jpeg') File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in selectOutputFormat def selectOutputFormat(*args): return _mapscript.mapObj_selectOutputFormat(*args) MapServerError: setImageType(): General error message. Unable to find IMAGETYPE 'image/jpeg'. ERROR test built in PNG RGB format ... okException in thread d7: Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/lib/python2.4/threading.py", line 422, in run self.__target(*self.__args, **self.__kwargs) File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py", line 176, in draw_map_wms mo.selectOutputFormat('image/jpeg') File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in selectOutputFormat def selectOutputFormat(*args): return _mapscript.mapObj_selectOutputFormat(*args) MapServerError: setImageType(): General error message. Unable to find IMAGETYPE 'image/jpeg'. testRemoveOutputFormat may fail depending on GD options ... okException in thread d9: Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/lib/python2.4/threading.py", line 422, in run self.__target(*self.__args, **self.__kwargs) File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py", line 176, in draw_map_wms mo.selectOutputFormat('image/jpeg') File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in selectOutputFormat def selectOutputFormat(*args): return _mapscript.mapObj_selectOutputFormat(*args) MapServerError: setImageType(): General error message. Unable to find IMAGETYPE 'image/jpeg'. test selection of built-in JPEG formatException in thread d8: Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/lib/python2.4/threading.py", line 422, in run self.__target(*self.__args, **self.__kwargs) File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py", line 176, in draw_map_wms mo.selectOutputFormat('image/jpeg') File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in selectOutputFormat def selectOutputFormat(*args): return _mapscript.mapObj_selectOutputFormat(*args) MapServerError: setImageType(): General error message. Unable to find IMAGETYPE 'image/jpeg'. ... ERROR testOutputFormatConstructor (outputformattest.OutputFormatTestCase) ... ok testCreateUnsupported (outputformattest.UnsupportedFormatTestCase) ... FAIL OWSRequestTestCase.testGetParameter: OWS can get request parameters by index ... ok OWSRequestTestCase.testGetParameterByName: OWS can get request parameters by name ... ok OWSRequestTestCase.testInit: OWS initializer works right ... ok OWSRequestTestCase.testLoadWMSRequest: OWS can load a WMS request ... ok OWSRequestTestCase.testResetParam: OWS can reset parameters by name ... ok adding a point to a line behaves correctly ... ok numpoints is immutable, this should raise error ... FAIL created line has the correct number of points ... ok points in the line share are the same that were input ... ok testSettingFonts (fonttest.FontTestCase) ... ok point can be created with arguments ... ok point can be created with no arguments ... ok return properly formatted string in toString() ... ok return properly formatted string ... ok point can have its x and y reset ... ok point can have its x and y reset (with m value) ... ok point can have its x, y, z reset (with m value) ... ok resetting imagepath doesn't cause segfault ... ok draw using a new symbol added to the fixture ... ok expect getNumSymbols == 2 from test fixture test.map ... ok expect index of 'circle' symbol to be 1 in test fixture symbolset ... ok expect numsymbols == 2 from test fixture test.map ... ok test names of symbols in test fixture's symbolset ... ok add two new symbols to a SymbolSet ... ok new instance of symbolSetObj from symbols.txt ... ok new instance of symbolSetObj should have one symbol ... ok testError (symbolsettest.SymbolSetTestCase) ... ok after removing a symbol, expect numsymbols -= 1 ... ok save a new SymbolSet to disk ... ok test to make sure that no one has hidden ALPHA ... ok testAttributeQuery (layertest.AttributeLayerQueryTestCase) ... ok testAttributeQueryNoResults (layertest.AttributeLayerQueryTestCase) ... ok testLogicalAttributeQuery (layertest.AttributeLayerQueryTestCase) ... ok layer expression can be properly cleared ... ok layer expression can be a compound logical expression ... ok layer expression can be logical expression ... ok layer expression string can be quoted ... ok layer expression can be regular expression ... ok layer expression can be set to string ... ok testExternalClassification (layertest.InlineLayerTestCase) ... ok inserting NULL class should raise an error ... ok insert class at default index ... ok insert class at index 0 ... ok check attributes of a cloned layer ... ok test layer constructor with map argument ... ok test layer constructor with no argument ... ok direct access to a layer's extent works properly ... ok test layer.setExtent() and layer.getExtent() to return preset instead of calculating extents ... ok retrieve the extent of a polygon layer ... ok retrieve the extent of a polygon layer ... ok test resetting a layer's extent ... ok clearing a self.layer's processing directive works ... ok setting a layer's processing directive works ... ok LayerTestCase.testGetLayerOrder: get layer drawing order ... ok LayerTestCase.testLayerConstructorOwnership: newly constructed layer has proper ownership ... ok LayerTestCase.testSetLayerOrder: set layer drawing order ... ok expect visibility ... ok expect false visibility after switching status off ... ok expect false visibility after zooming out beyond maximum ... ok RemoveClassTestCase.testRemoveClass1ClassName: confirm removing the layer's first class reverts the name of the second class ... ok RemoveClassTestCase.testRemoveClass1NumClasses: removing the layer's first class by index leaves one class left ... ok RemoveClassTestCase.testRemoveClass2ClassName: confirm removing the layer's second class reverts the name of the first class ... ok RemoveClassTestCase.testRemoveClass2NumClasses: removing the layer's second class by index leaves one class left ... ok removing first layer reverts it to the second layer's name ... ok removing the first layer by index from the mapfile leaves three ... ok removing of the second layer reverts it to the first layer's name ... ok removing second layer by index from mapfile leaves three layers ... ok testPointQuery (layertest.SpatialLayerQueryTestCase) ... ok testPointQueryNoResults (layertest.SpatialLayerQueryTestCase) ... ok testRectQuery (layertest.SpatialLayerQueryTestCase) ... ok testRectQueryNoResults (layertest.SpatialLayerQueryTestCase) ... ok testShapeQuery (layertest.SpatialLayerQueryTestCase) ... ok testShapeQueryNoResults (layertest.SpatialLayerQueryTestCase) ... ok expect an error rather than segfault when adding an empty shape ... ok Fetch dbf information from shapefile ... ok draw a map using the set image symbol ... ok draw a map using the set image symbol ... ok set image of new symbolObj ... ok set image of new symbolObj ... ok get symbol points as line and test coords ... ok draw a RGBA PNG pixmap on JPEG canvas ... ERROR draw a RGBA PNG pixmap on PNG canvas ... ok add lines of points to an existing symbol ... ok expect success after setting an existing symbol's style ... ok create new instance of symbolObj ... ok create new instance of symbolObj from an image ... ok ZoomPointTestCase.testRecenter: recentering the map with a point returns the same extent ... ok ZoomPointTestCase.testZoomBadExtent: zooming to a bad extent raises proper error ... ok ZoomPointTestCase.testZoomBadSize: zooming to a bad size raises proper error ... ok ZoomPointTestCase.testZoomInPoint: zooming in by a power of 2 returns the proper extent ... ok ZoomPointTestCase.testZoomOutPoint: zooming out by a power of 2 returns the proper extent ... ok ZoomPointTestCase.testZoomOutPointConstrained: zooming out to a constrained extent returns proper extent ... ok ZoomRectangleTestCase.testZoomRectangle: zooming to an extent returns proper map extent ... ok zooming into an invalid extent raises proper error ... ok ZoomRectangleTestCase.testZoomRectangleConstrained: zooming to a constrained extent returns proper extent ... ok ZoomScaleTestCase.testRecenter: recentering map returns proper extent ... ok ZoomScaleTestCase.testZoomInScale: zooming in to a specified scale returns proper extent ... ok ZoomScaleTestCase.testZoomOutPointConstrained: zooming out to a constrained extent returns proper extent ... ok ZoomScaleTestCase.testZoomOutScale: zooming out to a specified scale returns proper extent ... ok ====================================================================== ERROR: testAlphaTransparentPixmapJPG (classtest.ClassIconTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/classtest.py", line 92, in testAlphaTransparentPixmapJPG self.map.selectOutputFormat('JPEG') File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in selectOutputFormat def selectOutputFormat(*args): return _mapscript.mapObj_selectOutputFormat(*args) MapServerError: setImageType(): General error message. Unable to find IMAGETYPE 'JPEG'. ====================================================================== ERROR: testIndexedTransparentPixmapJPG (classtest.ClassIconTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/classtest.py", line 108, in testIndexedTransparentPixmapJPG self.map.selectOutputFormat('JPEG') File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in selectOutputFormat def selectOutputFormat(*args): return _mapscript.mapObj_selectOutputFormat(*args) MapServerError: setImageType(): General error message. Unable to find IMAGETYPE 'JPEG'. ====================================================================== ERROR: imageObj with a URL stream works ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/imagetest.py", line 132, in testConstructorUrlStream imgobj = mapscript.imageObj(url, 'GD/JPEG') File "../../build/lib.linux-i686-2.4/mapscript.py", line 1461, in __init__ this = _mapscript.new_imageObj(*args) MapServerError: msLoadImageGDStream(): GD library error. Unable to initialize image ====================================================================== ERROR: test_getfeature (pgtest.SubSelectNoSRIDTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/pgtest.py", line 119, in test_getfeature self.lo.open() File "../../build/lib.linux-i686-2.4/mapscript.py", line 1164, in open def open(*args): return _mapscript.layerObj_open(*args) MapServerError: msPOSTGISLayerOpen(): Query error. msPOSTGISLayerOpen called but unimplemented! (mapserver not compiled with postgis support) ====================================================================== ERROR: test_getfeature (pgtest.SubSelectTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/pgtest.py", line 100, in test_getfeature self.lo.open() File "../../build/lib.linux-i686-2.4/mapscript.py", line 1164, in open def open(*args): return _mapscript.layerObj_open(*args) MapServerError: msPOSTGISLayerOpen(): Query error. msPOSTGISLayerOpen called but unimplemented! (mapserver not compiled with postgis support) ====================================================================== ERROR: test_getfeature (pgtest.TableTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/pgtest.py", line 64, in test_getfeature self.lo.open() File "../../build/lib.linux-i686-2.4/mapscript.py", line 1164, in open def open(*args): return _mapscript.layerObj_open(*args) MapServerError: msPOSTGISLayerOpen(): Query error. msPOSTGISLayerOpen called but unimplemented! (mapserver not compiled with postgis support) ====================================================================== ERROR: test_getfeature (pgtest.ViewTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/pgtest.py", line 82, in test_getfeature self.lo.open() File "../../build/lib.linux-i686-2.4/mapscript.py", line 1164, in open def open(*args): return _mapscript.layerObj_open(*args) MapServerError: msPOSTGISLayerOpen(): Query error. msPOSTGISLayerOpen called but unimplemented! (mapserver not compiled with postgis support) ====================================================================== ERROR: drawing a cloned map works properly ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/clonetest.py", line 94, in testDrawCloneJPEG self.mapobj_clone.selectOutputFormat('JPEG') File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in selectOutputFormat def selectOutputFormat(*args): return _mapscript.mapObj_selectOutputFormat(*args) MapServerError: setImageType(): General error message. Unable to find IMAGETYPE 'JPEG'. ====================================================================== ERROR: test built in JPEG format ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/outputformattest.py", line 97, in testBuiltInJPEGFormat self.map.selectOutputFormat('JPEG') File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in selectOutputFormat def selectOutputFormat(*args): return _mapscript.mapObj_selectOutputFormat(*args) MapServerError: setImageType(): General error message. Unable to find IMAGETYPE 'JPEG'. ====================================================================== ERROR: test selection of built-in JPEG format ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/outputformattest.py", line 107, in testSelectBuiltInJPEGFormat self.map.selectOutputFormat('JPEG') File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in selectOutputFormat def selectOutputFormat(*args): return _mapscript.mapObj_selectOutputFormat(*args) MapServerError: setImageType(): General error message. Unable to find IMAGETYPE 'JPEG'. ====================================================================== ERROR: draw a RGBA PNG pixmap on JPEG canvas ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/symboltest.py", line 165, in testRGBASymbolInJPEG self.map.setImageType('JPEG') File "../../build/lib.linux-i686-2.4/mapscript.py", line 1360, in setImageType def setImageType(*args): return _mapscript.mapObj_setImageType(*args) MapServerError: setImageType(): General error message. Unable to find IMAGETYPE 'JPEG'. ====================================================================== FAIL: testCreateUnsupported (outputformattest.UnsupportedFormatTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/outputformattest.py", line 117, in testCreateUnsupported 'PDF') AssertionError: MapServerError not raised ====================================================================== FAIL: numpoints is immutable, this should raise error ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/linetest.py", line 71, in testAlterNumPoints self.assertRaises(AttributeError, setattr, self.line, 'numpoints', 3) AssertionError: AttributeError not raised ---------------------------------------------------------------------- Ran 252 tests in 6.520s FAILED (failures=2, errors=11) The documentation mentions making "the appropriate edits" to the test.map file but I'm not clear on what those are. It also looks like lack of jpeg support is causing errors? ./mapserv -v gives: MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thank you, Ian From pmoen at nd.gov Wed Apr 1 13:54:50 2009 From: pmoen at nd.gov (Moen, Paul T.) Date: Wed, 1 Apr 2009 15:54:50 -0500 Subject: [mapserver-users] Mapscript shapeObj->toWKt() or ms_shapeObjfromWkt problem. In-Reply-To: <49D3A555.4040504@dmsolutions.ca> Message-ID: I changed my Geos to version 3.0.3 and the error changed from "Segmentation fault" to "Bus error". I also looked at the ticket Assefa indicated below and am wondering if that was related to the buffer or to the same problem I am having? The script I am having problems does nothing more than create a new shape object from a wkt and then re-output the wkt from the shape object. The object seems to be created fine, because I can get the number of lines with $drawnShp->numlines. I can also create a new shape object with the other shape object constructer as follows and the output works. addXY(1207657,478875); $line->addXY(1208230,478275); $line->addXY(1207452,477811); $line->addXY(1207043,478520); $line->addXY(1207657,478875); $drawnShp->add($line); error_log($drawnShp->numlines); error_log($drawnShp->towkt()); ?> Is this specifically a problem with Geos 3.1 and the function ms_shapeObjFromWkt()? Which version of Mapserver will have the patch in ticket 2929? Thanks, Paul On 4/1/09 12:33 PM, "Yewondwossen Assefa" wrote: Not helping here but I have tested your script on windows with Mapserver 5.2.2 and 5.4 and the script runs ok. The geos version used in this case is geos 2.2.3. Do you know what version of geos you are using? There was a recent fix done toward geos support in MapServer and the problem from what I remember was occurring with geos 3.1 (Is that correct Tom ?) (http://trac.osgeo.org/mapserver/ticket/2929 Best Regards Moen, Paul T. wrote: > I get a segmentation fault when I run the following simple script with > PHP MapScript on Mac OSX 10.5.6 running the latest versions from > www.kyngchaos.com > > #!/usr/local/php5cgi/bin/php -q > dl('php_mapscript.so'); > $newwkt = 'MULTIPOLYGON(((1207657 478875,1208230 478275,1207452 > 477811,1207043 478520,1207657 478875)))'; > $drawnShp = ms_shapeObjFromWkt($newwkt); > echo $drawnShp->toWKT(); > ?> > > /Library/WebServer/CGI-Executables/mapserv -v > MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > The only output is; > Segmentation fault > > The php version is 5.2.9 and the same thing happens with php versions > 5.2.8, 5.2.5. > > *MapServer Version *MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG > SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > *PHP MapScript Version *($Revision: 7937 $ $Date: 2008-09-30 07:37:46 > -0700 (Tue, 30 Sep 2008) $) > > > Anybody else run into this this error? How do I get more debug information? > > > Thanks, > > Paul > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu.inc at gmail.com Wed Apr 1 14:40:31 2009 From: hobu.inc at gmail.com (Howard Butler) Date: Wed, 1 Apr 2009 16:40:31 -0500 Subject: [mapserver-users] MapServer Gallery Message-ID: All, This is a note to let you know that Chris Schmidt developed a new version of the gallery for all of OSGeo instead of one merely for MapServer at the Toronto Sprint earlier this month. It is now open for business, and if you would like to highlight your usage of OSGeo technologies, including MapServer, please add your page to it. http://gallery.osgeo.org Thanks, Howard PS, entries from the old MapServer gallery were not ported over because a number, possibly a majority, were dead. From nagal005 at umn.edu Wed Apr 1 16:42:55 2009 From: nagal005 at umn.edu (new2ms4w) Date: Wed, 1 Apr 2009 16:42:55 -0700 (PDT) Subject: [mapserver-users] display "huge" number of moving objects Message-ID: <1238629375518-2572268.post@n2.nabble.com> Hi All, I used Mapserver along with OpenLayers to generate moving objects and display them on roads in Minnesota map. I was using the OL to show the objects on the map and to move them to the next coordinate. (I update coordinates of point every 1 second.) We want to make this functionality scalable. Right now, if I add more than 1000 objects the map display slows down and the web-browser starts consuming a lot of memory. ( I think this is because of the Javascript code) We want to generate up to 100,000 moving objects onto the map. Can you please suggest me how I go about this. I searched the forum archives and found this useful. From what I can understand from it, I have to migrate to WMS to make this scalable. I have no clue as to what a WMS is. Before reading upon it, I just want to take your opinion if this is the right way to go. Thank you for your time. -Pradeep -- View this message in context: http://n2.nabble.com/display-%22huge%22-number-of-moving-objects-tp2572268p2572268.html Sent from the Mapserver - User mailing list archive at Nabble.com. From AWilliams at rapidmap.com Wed Apr 1 16:41:10 2009 From: AWilliams at rapidmap.com (Andrew Williams) Date: Thu, 2 Apr 2009 10:41:10 +1100 Subject: [mapserver-users] Using the SQL Server 2008 Plugin with a Geography column In-Reply-To: <1238538928048-2565867.post@n2.nabble.com> References: <1238538928048-2565867.post@n2.nabble.com> Message-ID: <29C3A52E0876C94C97BD6443FA96F7337AC9B26900@rms03.rapidmap.local> Joncoign, Just looking for some clarification to your question. I'm no expert but this stuck out when I was looking into SQL 2008. There are two ways to define an object spatially in 2008 one as type geometry and one as geography. Is it possible your calling geometry type instead of a geography type? http://www.microsoft.com/sqlserver/2008/en/us/spatial-data.aspx Might be of interest -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of joncoign Sent: Wednesday, 1 April 2009 9:35 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Using the SQL Server 2008 Plugin with a Geography column Has anyone been able to get the SQL Server 2008 plugin to work against a geography column. I have been using the following DATA Statement DATA "the_geom FROM Types USING UNIQUE ID USING SRID=4326" and get the response, "sys.geometry is incompatible with sys.geography" due to the spatial filter being written by the plugin using geometry. Is there an option to change this? I have been unable to locate any detailed documetation on SQL Server 2008 plugin so if this exists that might help. -- View this message in context: http://n2.nabble.com/Using-the-SQL-Server-2008-Plugin-with-a-Geography-column-tp2565867p2565867.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 From dmorissette at mapgears.com Wed Apr 1 17:45:05 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 01 Apr 2009 20:45:05 -0400 Subject: [mapserver-users] MapServer 5.2.2 GetFeatureInfo returns an error - FIXED In-Reply-To: <49D37AEB.2030003@knmi.nl> References: <49D32F53.1000900@knmi.nl> <49D33323.5157.008F.0@dnr.state.mn.us> <49D37AEB.2030003@knmi.nl> Message-ID: <49D40A91.6040506@mapgears.com> Maarten Plieger wrote: > > Is it possible to disable requests which have the server name as layers > parameter in a getmap request? Our server is called ADAGUC_WMS_Server. > Making a getmap request with this ID results in that all layers inside > this service are drawn in the same image, causing a high load. We have > many layers in our service. Of course some people want this feature, but > we want to disable it. I cannot find out how to do it, There seems to be a default value of "MS" for the map-level NAME param so removing it doesn't work. However I just made a test and setting 'NAME ""' at the top level in the mapfile seems to do what you need. Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at dnr.state.mn.us Wed Apr 1 18:44:20 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 01 Apr 2009 20:44:20 -0500 Subject: [mapserver-users] MapServer 5.4 Beta 4 is now available... Message-ID: <49D3D2240200008F0002275E@co5.dnr.state.mn.us> Greetings all: MapServer 5.4 Beta 4 is now available for download at http://mapserver.org/download.html. This beta includes all the security fixes/improvements made available last week in 5.2.2 and fixes a few bugs found since beta 3. Sorry for the delay in getting this release out the door. The next release should be a release candidate and will be available mid-next week. As always any help in testing the software is greatly appreciated. Findings should be sent to the mapserver-dev (or even just mapserver-users) mailing list. The updated 5.4 release plan can be found at: http://trac.osgeo.org/mapserver/wiki/54ReleasePlan Steve From andy at britishideas.com Wed Apr 1 21:44:01 2009 From: andy at britishideas.com (Andrew Ayre) Date: Wed, 01 Apr 2009 21:44:01 -0700 Subject: [mapserver-users] Mapfile Location for WMS Server Message-ID: <49D44291.2060602@britishideas.com> Hi! I'm setting up a WMS server with mapserver using PostGIS. The mapserver will be a central server providing data to multiple websites. I have mapserv in cgi-bin and nothing in public_html because it isn't needed. Where do I place the map file? I've tried putting it in cgi-bin and public_html and both give the same result when trying to get the WMS capabilities: loadMap(): Web application error. CGI variable "map" is not set. thanks, Andy -- Andy PGP Key ID: 0xDC1B5864 From subha at gslab.com Wed Apr 1 22:54:10 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Thu, 02 Apr 2009 11:24:10 +0530 Subject: [mapserver-users] Error while getting flash output In-Reply-To: <49D3724A.3060800@dmsolutions.ca> References: <49D31826.4090201@gslab.com> <49D3724A.3060800@dmsolutions.ca> Message-ID: <49D45302.1030307@gslab.com> Hi, Sorry for that mistake. I figured out i was using the wrong mapserver without flash support. However, I am still not getting the flash output. I've set the imagetype to "swf" and when I pass "Format=application/x-shockwave-flash" as mention in the MIMEType in the OutputFormat, I get an error saying "msWMSLoadGetMapParams: Image Handling Error.Unsupported output format (application/x-shockwave-flash)." Please let me know if anyone knows the reason or solution for this problem. Thanks a lot for the help. Subha Yewondwossen Assefa wrote: > The error message seems to indicate that you did not build MapServer > with ming support. Can you do mapserv -v on the command like and > check if you have OUTPUT=SWF? > > Subha Ramakrishnan wrote: >> Hi All, >> >> I am trying to get flash output from mapserver. I have compliled my >> mapserver 5.2.2 with flash support. >> But when i request for a layer, I am getting the following error: >> "loadOutputFormat(): General error message. OUTPUTFORMAT clause >> references driver SWF, but this driver isn't configured. " >> >> This is my url: >> "http://localhost/cgi-bin/mapserv?MAP=flashlayer.map&TRANSPARENT=true&LAYERS=flashlayer&FORMAT=image%2Fswf&PROJECTION=EPSG%3A4326&REPROJECT=false& >> >> UNITS=m&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913& >> >> BBOX=4235678.0892222235,859902.5737739494,13628260.123222224,4404134.700666138&WIDTH=1920&HEIGHT=724" >> >> >> Mapfile is as follows:(initial part with projection , extent etc >> truncated) >> >> OUTPUTFORMAT >> NAME "swf" >> MIMETYPE "application/x-shockwave-flash" >> DRIVER "swf" >> IMAGEMODE PC256 >> FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" >> END >> >> layer >> name flashlayer >> connectiontype postgis >> connection "user= postgres dbname=flashtable host=localhost" >> type polygon >> group world >> dump true >> METADATA >> "RESULT_FIELDS" "__ibp__id" >> "SWFDUMPATTRIBUTES" "__ibp__id" >> END >> template "template.html" >> projection >> "init=epsg:4326" >> end >> transparency 65 >> status on >> data "topology from flashtest using unique id using SRID = -1" >> classitem "country" >> class >> name "INDIA" >> expression "INDIA" >> style >> color 139 242 144 >> outlinecolor 000 000 000 >> end >> end >> end >> >> Can some one please guide me as how to get the output in flash after >> enabling the support? >> >> Thanks a lot for any help. >> >> Subha >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > From bea at ixsea.com Thu Apr 2 00:38:36 2009 From: bea at ixsea.com (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Thu, 2 Apr 2009 09:38:36 +0200 Subject: [mapserver-users] Mapfile Location for WMS Server In-Reply-To: <49D44291.2060602@britishideas.com> References: <49D44291.2060602@britishideas.com> Message-ID: <81B8B5E11FE3430EBAC9AEE906FACDCD@ixsea.local> Hi Andrew, You can put the file wherever you want on your file system at the condition that MapServer has the rights to reach it and read it. How did you get this error ? Your request to Mapserver should include a parameter specifying the map to read : http://localhost/mapserver/cgi-bin/mapserv.exe?map=c:\data\mymap.map&... Regards, Beno?t Andrieu bea at ixsea.com benoit.andrieu at gmail.com ----- Original Message ----- From: "Andrew Ayre" To: Sent: Thursday, April 02, 2009 6:44 AM Subject: [mapserver-users] Mapfile Location for WMS Server > Hi! I'm setting up a WMS server with mapserver using PostGIS. The mapserver will be a central server providing data to multiple > websites. > > I have mapserv in cgi-bin and nothing in public_html because it isn't needed. > > Where do I place the map file? I've tried putting it in cgi-bin and public_html and both give the same result when trying to get > the WMS capabilities: > > loadMap(): Web application error. CGI variable "map" is not set. > > thanks, Andy > > -- > Andy > PGP Key ID: 0xDC1B5864 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From meenu.monu at gmail.com Thu Apr 2 01:01:40 2009 From: meenu.monu at gmail.com (meenu) Date: Thu, 2 Apr 2009 01:01:40 -0700 (PDT) Subject: [mapserver-users] mapserver with mapinfo gis data file In-Reply-To: <002801c9b2bf$1c724bc0$5556e340$@com> References: <1238585709205-2568491.post@n2.nabble.com> <002801c9b2bf$1c724bc0$5556e340$@com> Message-ID: <1238659300006-2573915.post@n2.nabble.com> hi friend i added 4 mapinfo files (admin_o.MAP,admin_o.TAB,admin_o.DAT,admin_o.ID ) in to the data folder of TutorialMapServerSolution project...then i added the coding in to the csharptutorial.map file is as follows...no error is getting...but this layer is not showing in to the map...what is the reason behind this any idea???is any other OGR files required to be added in to this project??? LAYER NAME "admin_o" TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "C:\Mapserver(5.2.1)-Mapscript\data\admin_o.TAB" STYLEITEM "AUTO" CLASS NAME "admin_o" END END # Layer with regards -- View this message in context: http://n2.nabble.com/mapserver-with-mapinfo-gis-data-file-tp2568491p2573915.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vtammineni at roulacglobal.com Thu Apr 2 01:34:41 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Thu, 2 Apr 2009 14:04:41 +0530 Subject: [mapserver-users] mapserver with mapinfo gis data file In-Reply-To: <1238659300006-2573915.post@n2.nabble.com> References: <1238585709205-2568491.post@n2.nabble.com> <002801c9b2bf$1c724bc0$5556e340$@com> <1238659300006-2573915.post@n2.nabble.com> Message-ID: <006e01c9b36d$dfd11ac0$9f735040$@com> Hi, Can you debug vs.net application, so that you come to know the error.I think the error is from your connection path.. you have given like "Mapserver(5.2.1)-Mapscript" mapserve may not accept the same path.Please clear with the path. Thanks, Venkat -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of meenu Sent: Thursday, April 02, 2009 1:32 PM To: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] mapserver with mapinfo gis data file hi friend i added 4 mapinfo files (admin_o.MAP,admin_o.TAB,admin_o.DAT,admin_o.ID ) in to the data folder of TutorialMapServerSolution project...then i added the coding in to the csharptutorial.map file is as follows...no error is getting...but this layer is not showing in to the map...what is the reason behind this any idea???is any other OGR files required to be added in to this project??? LAYER NAME "admin_o" TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "C:\Mapserver(5.2.1)-Mapscript\data\admin_o.TAB" STYLEITEM "AUTO" CLASS NAME "admin_o" END END # Layer with regards -- View this message in context: http://n2.nabble.com/mapserver-with-mapinfo-gis-data-file-tp2568491p2573915. 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 From pgiannini at bytewise.it Thu Apr 2 03:37:53 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 2 Apr 2009 12:37:53 +0200 (CEST) Subject: [mapserver-users] display "huge" number of moving objects In-Reply-To: <1238629375518-2572268.post@n2.nabble.com> References: <1238629375518-2572268.post@n2.nabble.com> Message-ID: <48201.89.97.235.106.1238668673.squirrel@localhost.localdomain> Hi Pradeep, I'm not an OL expert, but you are right: adding a huge number of features via javascript is not the right way, because OL is a javascript environment and works locally on browser; managing too much features it charge the local ram. OpenLayer accept wms and mapserver layers (http://www.openlayers.org/dev/examples/). Set up a server and add a OL layer from it. bye ....................pg On Gio, Aprile 2, 2009 01:42, new2ms4w wrote: > > Hi All, > I used Mapserver along with OpenLayers to generate moving objects and > display them on roads in Minnesota map. I was using the OL to show the > objects on the map and to move them to the next coordinate. (I update > coordinates of point every 1 second.) > > We want to make this functionality scalable. Right now, if I add more than > 1000 objects the map display slows down and the web-browser starts > consuming a lot of memory. ( I think this is because of the Javascript > code) > We want to generate up to 100,000 moving objects onto the map. Can you > please suggest me how I go about this. > > I searched the forum archives and found this useful. From what I can > understand from it, I have to migrate to WMS to make this scalable. > > I have no clue as to what a WMS is. Before reading upon it, I just want to > take your opinion if this is the right way to go. > > Thank you for your time. > > -Pradeep > > > -- > View this message in context: > http://n2.nabble.com/display-%22huge%22-number-of-moving-objects-tp2572268p2572268.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 > From meenu.monu at gmail.com Thu Apr 2 04:25:59 2009 From: meenu.monu at gmail.com (meenu) Date: Thu, 2 Apr 2009 04:25:59 -0700 (PDT) Subject: [mapserver-users] mapserver with mapinfo gis data file In-Reply-To: <006e01c9b36d$dfd11ac0$9f735040$@com> References: <1238585709205-2568491.post@n2.nabble.com> <002801c9b2bf$1c724bc0$5556e340$@com> <1238659300006-2573915.post@n2.nabble.com> <006e01c9b36d$dfd11ac0$9f735040$@com> Message-ID: <1238671559566-2574618.post@n2.nabble.com> hi ...this was the problem due to my fault....because i forgot to change the extent value in map file.......now i foundout extent value using ogrinfo.exe....changed extent values in map file...lt is working fine ..thank u so much for ur support....but remember again i will come with my next issues for disturbing my brilliant friends...... regards and thanks meenu -- View this message in context: http://n2.nabble.com/mapserver-with-mapinfo-gis-data-file-tp2568491p2574618.html Sent from the Mapserver - User mailing list archive at Nabble.com. From edmar.moretti at mma.gov.br Thu Apr 2 04:46:22 2009 From: edmar.moretti at mma.gov.br (Edmar Moretti) Date: Thu, 02 Apr 2009 08:46:22 -0300 Subject: [mapserver-users] Mapscript shapeObj->toWKt() or ms_shapeObjfromWkt problem. In-Reply-To: References: Message-ID: <49D4A58E.6090306@mma.gov.br> I had the same problem. The solution was to change the Mapserver, before compiling, to use the "OGR" instead of "GEOS" in the routine generation of WKT Moen, Paul T. escreveu: > I changed my Geos to version 3.0.3 and the error changed from > "Segmentation fault" to "Bus error". > I also looked at the ticket Assefa indicated below and am wondering if > that was related to the buffer or to the same problem I am having? > The script I am having problems does nothing more than create a new > shape object from a wkt and then re-output the wkt from the shape > object. The object seems to be created fine, because I can get the > number of lines with $drawnShp->numlines. I can also create a new > shape object with the other shape object constructer as follows and > the output works. > > dl('php_mapscript.so'); > $drawnShp = ms_newShapeObj(MS_SHAPE_POLYGON); > $line = ms_newLineObj(); > $line->addXY(1207657,478875); > $line->addXY(1208230,478275); > $line->addXY(1207452,477811); > $line->addXY(1207043,478520); > $line->addXY(1207657,478875); > $drawnShp->add($line); > error_log($drawnShp->numlines); > error_log($drawnShp->towkt()); > ?> > > Is this specifically a problem with Geos 3.1 and the function > ms_shapeObjFromWkt()? Which version of Mapserver will have the patch > in ticket 2929? > > Thanks, > > Paul > > On 4/1/09 12:33 PM, "Yewondwossen Assefa" wrote: > > Not helping here but I have tested your script on windows with > Mapserver > 5.2.2 and 5.4 and the script runs ok. The geos version used in this > case is geos 2.2.3. Do you know what version of geos you are using? > There was a recent fix done toward geos support in MapServer and the > problem from what I remember was occurring with geos 3.1 (Is that > correct Tom ?) > > (http://trac.osgeo.org/mapserver/ticket/2929 > > Best Regards > > Moen, Paul T. wrote: > > I get a segmentation fault when I run the following simple script > with > > PHP MapScript on Mac OSX 10.5.6 running the latest versions from > > www.kyngchaos.com > > > > #!/usr/local/php5cgi/bin/php -q > > > dl('php_mapscript.so'); > > $newwkt = 'MULTIPOLYGON(((1207657 478875,1208230 478275,1207452 > > 477811,1207043 478520,1207657 478875)))'; > > $drawnShp = ms_shapeObjFromWkt($newwkt); > > echo $drawnShp->toWKT(); > > ?> > > > > /Library/WebServer/CGI-Executables/mapserv -v > > MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > > SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > > SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > > INPUT=GDAL INPUT=SHAPEFILE > > > > The only output is; > > Segmentation fault > > > > The php version is 5.2.9 and the same thing happens with php versions > > 5.2.8, 5.2.5. > > > > *MapServer Version *MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG > > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ > SUPPORTS=AGG > > SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT > > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > > SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > > INPUT=GDAL INPUT=SHAPEFILE > > *PHP MapScript Version *($Revision: 7937 $ $Date: 2008-09-30 > 07:37:46 > > -0700 (Tue, 30 Sep 2008) $) > > > > > > Anybody else run into this this error? How do I get more debug > information? > > > > > > Thanks, > > > > Paul > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Edmar Moretti CGTI/MMA ?rea de Gest?o de Geotecnologias Gerente de Projetos blog: http://edmarmoretti.blogspot.com/ skype: edmar.moretti -------------- next part -------------- An HTML attachment was scrubbed... URL: From plieger at knmi.nl Thu Apr 2 05:30:39 2009 From: plieger at knmi.nl (Maarten Plieger) Date: Thu, 02 Apr 2009 12:30:39 +0000 Subject: [mapserver-users] MapServer 5.2.2 GetFeatureInfo returns an error - FIXED In-Reply-To: <49D40A91.6040506@mapgears.com> References: <49D32F53.1000900@knmi.nl> <49D33323.5157.008F.0@dnr.state.mn.us> <49D37AEB.2030003@knmi.nl> <49D40A91.6040506@mapgears.com> Message-ID: <49D4AFEF.9080008@knmi.nl> Daniel, This fix works! Now the getcapabilities document lists only a element for groups, indicating that it is a grouping layer. Thanks! Maarten Plieger Daniel Morissette schreef: > Maarten Plieger wrote: >> >> Is it possible to disable requests which have the server name as >> layers parameter in a getmap request? Our server is called >> ADAGUC_WMS_Server. Making a getmap request with this ID results in >> that all layers inside this service are drawn in the same image, >> causing a high load. We have many layers in our service. Of course >> some people want this feature, but we want to disable it. I cannot >> find out how to do it, > > There seems to be a default value of "MS" for the map-level NAME param > so removing it doesn't work. However I just made a test and setting > 'NAME ""' at the top level in the mapfile seems to do what you need. > > Daniel -- Maarten Plieger KNMI, R&D Information and Observation Technology, De Bilt (t) +31 30 2206330 From matej at matnet.net Thu Apr 2 05:29:39 2009 From: matej at matnet.net (Matej) Date: Thu, 2 Apr 2009 14:29:39 +0200 Subject: [mapserver-users] Inserting a line into PostGIS database - MapScript/PHP Message-ID: Hi, I am looking for a way to insert a line into the PostGIS database with the Mapscript/PHP. I already have a table with Linestrings, called 'lines' and I can get the data like 575580.3064233576 167345.10784150157,575768.9779562043 166386.0275495308,576523.6640875911 166197.35601668406,576523.6640875911 166197.35601668406,576523.6640875911 166197.35601668406. I just need a starting point to work, also any documentation about PostGIS / PHP with PostGIS will be much appreciated. Thank you in advance, Matej From schroete at iup.physik.uni-bremen.de Thu Apr 2 05:35:18 2009 From: schroete at iup.physik.uni-bremen.de (Heiko =?iso-8859-1?q?Schr=F6ter?=) Date: Thu, 2 Apr 2009 14:35:18 +0200 Subject: [mapserver-users] Dynamic 'OnMouseOver' Info generation vom PostGIS/Postgres Message-ID: <200904021435.19736.schroete@iup.physik.uni-bremen.de> Hello all, we are displaying satellite measurement geolocations with Mapserver and PostGIS/Postgres underneath. I would like to add a feature (similar to the MapServer:ImagMap stuff) that displays some more info about the point on which the mouse is over inside the map. i.e. geolocation, name of datafile, value or so. These infos can be sourced from the Postgres db. It is ok to just show these infos on the bottom window frame (like the MapServer:ImageMap example). How do i create the html code (javascript or php or whatever needed) with the dynamic content piped back from the Postgres db ? Sorry if this is an obvious question. I did read the ImageMap and Template stuff, but i cannot get grip to the logic when the data are coming from a db. Any pointer to more info or background knowledge deeply apreciated. Thanks. Heiko From lorenzetti at gis3w.it Thu Apr 2 05:49:36 2009 From: lorenzetti at gis3w.it (Walter Lorenzetti) Date: Thu, 02 Apr 2009 14:49:36 +0200 Subject: [mapserver-users] queryByAttribute phpmapscript BUG... Message-ID: <49D4B460.7050900@gis3w.it> Hi all, I've a problem with mapserver 5.0.3... on Ubuntu 8.10... on Ubuntu 8.04 with mapserver 5.0.0 the phpmapscrit method queryByAttribute works fine on shape file with query like this: "[NAME_FIELD]" =~ /(S|s)(T|t)(R|r)(I|i)(N|n)(G|g)/ but with 5.0.3 version... I obstain this in php error_log file: 02-Apr-2009 14:28:08] PHP Warning: [MapServer Error]: msyyparse(): syntax error [02-Apr-2009 14:28:08] PHP Warning: [MapServer Error]: msEvalExpression: Failed to parse expression: ( "Lucca" =~ /(L|l)(U|u)(C|c)(C|c)(A|a)/ ) and I obtain no results... Someone have any odea about? Is a possible bug? Thanks in advance Walter -- Walter Lorenzetti email: lorenzetti at gis3w.it skype: aiki74 Cell: (+39) 347-6597931 Tel+Fax: (+39) 0583 926684 Via di Tofori 123a 55010, Camigliano-S.Gemma Lucca Italy From jncoign at Knology.net Thu Apr 2 07:23:46 2009 From: jncoign at Knology.net (joncoign) Date: Thu, 2 Apr 2009 07:23:46 -0700 (PDT) Subject: [mapserver-users] Using the SQL Server 2008 Plugin with a Geography column In-Reply-To: <29C3A52E0876C94C97BD6443FA96F7337AC9B26900@rms03.rapidmap.local> References: <1238538928048-2565867.post@n2.nabble.com> <29C3A52E0876C94C97BD6443FA96F7337AC9B26900@rms03.rapidmap.local> Message-ID: <1238682226954-2575468.post@n2.nabble.com> To clarify I have a column in SQL 2008 of type geography that I would like to use in map server. I have been able to do this using the OGR ODBC driver. However, when trying to use the Native SQL 2008 driver that has been added to MS4W 2.3.1 I get the error message "sys.geometry is incompatible with sys.geography" when executing the query captured by profiling the database request. It appears as though the SQL 2008 driver either assumes that it will always (and only) be used against geometry columns or there is a configuration setting I that I can use to tell it that the internal datatype is geography and as such builds the WHERE clause using the geomertry type for the bounding box filter. SQL Excerpt: the_geom.STIntersects(Geometry::STGeomFromText('POLYGON(...)') = 1 where in this case the_geom is a Geography column that cannot be used in an STIntersects call with a Geometry object. I am hoping someone can tell me about the configuration option to change this behavior or confirm that it does not exist so we can discuss the possibility of adding such an option. Let me know if you need additional details. There are two ways to define an object spatially in 2008 one as type geometry and one as geography. -- View this message in context: http://n2.nabble.com/Using-the-SQL-Server-2008-Plugin-with-a-Geography-column-tp2565867p2575468.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pal.kristensen at statkart.no Thu Apr 2 07:42:04 2009 From: pal.kristensen at statkart.no (paalkr) Date: Thu, 2 Apr 2009 07:42:04 -0700 (PDT) Subject: [mapserver-users] Layer scale problem with Mercator (EPSG:900913) Message-ID: <1238683324589-2575585.post@n2.nabble.com> Hi! Theres seems like there are some troubles with layers at different scales when requesting a map in EPSG:900913). I have set up the mapfile in EPSG:32633 (WGS84, UTM zone 33), and all the layers are as well sett to be in EPSG:32633. When requesting maps in in UTM zone 31 to 36 the layers switches at the right scales. The scale intervals could be is like this: LAYER 1 MINSCALE 2000000 LAYER 2 MAXSCALE 2000000 MINSCALE 800000 LAYER 3 MAXSCALE 800000 MINSCALE 100000 LAYER 4 MAXSCALE 100000 When requesting a map covering approx the same area (see attached images), different layers are turned on in mapserver (shows as different level of detail in the maps). Is there a workaround for this? I guess that the issue has something to do with how scales are calculated in mapserver. PS! The same issue is present when requesting maps in geographic coordinate systems like EPSG:4326. The maps are generated with WMS GetMap requests. UTM33 Mercator ----- Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/Layer-scale-problem-with-Mercator-%28EPSG%3A900913%29-tp2575585p2575585.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jncoign at Knology.net Thu Apr 2 08:46:45 2009 From: jncoign at Knology.net (joncoign) Date: Thu, 2 Apr 2009 08:46:45 -0700 (PDT) Subject: [mapserver-users] How to access Templating: Map Geometry Variables (or Equivalent) from OGR Connection In-Reply-To: <1238170609107-2545150.post@n2.nabble.com> References: <1238170609107-2545150.post@n2.nabble.com> Message-ID: <1238687205236-2575962.post@n2.nabble.com> I didn't get a response to my previous post so I wanted to rewrite it and attempt to make it more general. We make OGR ODBC requests to SQL Server 2005 with MSSQLSpatial extensions. To get good performance out of this system and to further secure the paramters we have been using stored procedures so we can optimize the queries inside of the database. This results in a connection object that similar to the following: CONNECTIONTYPE OGR CONNECTION " ODBC:MSSQLSPATIALDSN,states EXEC dbo.MappingGetStates %BBOX% " DATA "GDT" We have had good luck using Variable Subsitution from the querystring however, sometimes it would be useful to be able to access additional varaibles from within mapserver such as those defined in the Templating section of the documentation (an alternative method to access equivalent data would be full acceptable). Specifically, it would be nice to have access to [mapext], [minx], [miny], [maxx], [maxy], [rawext], [mapext_latlon], [minlon], [minlat], [maxlon] [maxlat]. To be explicit I am asking is there a way to use these inside of the section of the CONNECTION. Is this functionality currently available and something I have overlooked in the manual or would this fall under the category of a feature request? Looking forward to SQL Server 2008 I think this approach will still have merit as it offers quite a bit of additional flexibility in writing and optimizing the query over what I have been able to achieve thus far with the Native SQL Server 2008 driver. I should stipulate I have only been using the new driver for a couple of weeks so I may not find it as limiting after additional testing. I have a WFS Server layer defined and have recently needed to provide this service in an alternate projection. The Data is in EPSG:4326 and I need the WFS Service to provide it in Spherical Mercator (SM / EPSG:900913). I have this working properly with the layers projection definition and wfs_srs. The problem I have is that previously I was passing the %BBOX% parameter to the database stored procedure using an referencing an ODBC connection. When reprojecting the WFS layer the %BBOX% does not get reprojected so it gets sent to the database in meters as defined in SM. I could reproject this in the Stored Procedure, but my client would prefer I treat their DB as a black box and not make changes. Am I correct in assuming that %BBOX% comes unaltered from the querystring? Is there another variable I can use with Variable substitution to get the BBOX in the data's projection? Or is there a way to reproject %BBOX% variable? It is critical that I can filter the data coming out of the spatial DB before it gets to MapServer for performance reasons. Any help is greatly appreciated. Jon -- View this message in context: http://n2.nabble.com/WFS-Server-Request-w-Reprojection-to-Database-tp2545150p2575962.html Sent from the Mapserver - User mailing list archive at Nabble.com. From andy at britishideas.com Thu Apr 2 09:05:35 2009 From: andy at britishideas.com (Andrew Ayre) Date: Thu, 02 Apr 2009 09:05:35 -0700 Subject: [mapserver-users] Mapfile Location for WMS Server In-Reply-To: <81B8B5E11FE3430EBAC9AEE906FACDCD@ixsea.local> References: <49D44291.2060602@britishideas.com> <81B8B5E11FE3430EBAC9AEE906FACDCD@ixsea.local> Message-ID: <49D4E24F.5000206@britishideas.com> Thanks to everyone that replied - I have it working now. I saw that you can add additional parameters to tile requests, but what confused me is that I didn't know you could add them to the getcapabilities request. Thanks! Andy Beno?t Andrieu wrote: > Hi Andrew, > > You can put the file wherever you want on your file system at the > condition that MapServer has the rights to reach it and read it. > > How did you get this error ? > > Your request to Mapserver should include a parameter specifying the map > to read : > http://localhost/mapserver/cgi-bin/mapserv.exe?map=c:\data\mymap.map&... > > Regards, > > Beno?t Andrieu > bea at ixsea.com > benoit.andrieu at gmail.com > > ----- Original Message ----- From: "Andrew Ayre" > To: > Sent: Thursday, April 02, 2009 6:44 AM > Subject: [mapserver-users] Mapfile Location for WMS Server > > >> Hi! I'm setting up a WMS server with mapserver using PostGIS. The >> mapserver will be a central server providing data to multiple websites. >> >> I have mapserv in cgi-bin and nothing in public_html because it isn't >> needed. >> >> Where do I place the map file? I've tried putting it in cgi-bin and >> public_html and both give the same result when trying to get the WMS >> capabilities: >> >> loadMap(): Web application error. CGI variable "map" is not set. >> >> thanks, Andy >> >> -- >> Andy >> PGP Key ID: 0xDC1B5864 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- Andy PGP Key ID: 0xDC1B5864 From asle.benoni at gmail.com Thu Apr 2 12:00:22 2009 From: asle.benoni at gmail.com (Asle Benoni) Date: Thu, 2 Apr 2009 21:00:22 +0200 Subject: [mapserver-users] MapServer on OS X - getcababilities no xml output? In-Reply-To: <49D36F75.7010100@mapgears.com> References: <27b07930904010500k5ab96dacvfc0d1037448dd09d@mail.gmail.com> <49D36F75.7010100@mapgears.com> Message-ID: <27b07930904021200w60f5ece1mdded92c4f448e8de@mail.gmail.com> Thanks. I tried to change to "service=WFS" and got an XML with some warnings that I think I understood in the MapServer docs links you sent. I have a problem with proxy.cgi in GeoServer not understanding this ContentType. Do you think I could enter a new MIME type in my OS X Servers Apache? How should that look like? Any Idea? 2009/4/1 Daniel Morissette > Asle Benoni wrote: > >> >> When I use this URL >> >> >> http://localhost/cgi-bin/demo?request=getcapabilities&service=wms&version=1.1.1&map=/Library/WebServer/Documents/Naturkart/kulturminnekart/apps/demo/demowms.map< >> http://localhost/cgi-bin/demo?request=getcapabilities&service=wms&version=1.1.1&map=/Library/WebServer/Documents/Naturkart/kulturminnekart/apps/demo/demowms.map >> > >> >> I get a file downloaded "demo.map" with no file type. This is on Windows >> and from my Mac (demo without the .map extension and fileType:* >> application/vnd.ogc.wms_xml*). The file is an XML file so when I change the >> suffix to .xml it works. Is this correct? >> >> > Yes, that's correct, but for WMS, not WFS: application/vnd.ogc.wms_xml is > the expected MIME Type for WMS GetCapabilities responses. OGC has moved back > to using text/xml in later versions of its specs as those custom MIME Types > caused all sorts of trouble with very little benefits. > > Note that in your example you are using SERVICE=WMS and not WFS, is this > really what you wanted? > > Is MapServer out-of-the-box a WFS service? >> > > Yes and no. Out of the box it will respond to WFS (and WMS) requests, but > if your mapfile lacks some configuration information then it may not behave > according to spec. See the WMS and WFS server docs for all the details: > > http://www.mapserver.org/ogc/wms_server.html > http://www.mapserver.org/ogc/wfs_server.html > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Thu Apr 2 13:05:52 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 02 Apr 2009 15:05:52 -0500 Subject: [mapserver-users] Mapscript shapeObj->toWKt() orms_shapeObjfromWkt problem. In-Reply-To: References: <49D3A555.4040504@dmsolutions.ca> Message-ID: <49D4D450.5157.008F.0@dnr.state.mn.us> Will look at getting the patch into 5.4 before the first release candidate. Steve >>> On 4/1/2009 at 3:54 PM, in message , "Moen, Paul T." wrote: > I changed my Geos to version 3.0.3 and the error changed from "Segmentation > fault" to "Bus error". > I also looked at the ticket Assefa indicated below and am wondering if that > was related to the buffer or to the same problem I am having? The script I > am having problems does nothing more than create a new shape object from a > wkt and then re-output the wkt from the shape object. The object seems to be > created fine, because I can get the number of lines with $drawnShp->numlines. > I can also create a new shape object with the other shape object constructer > as follows and the output works. > > dl('php_mapscript.so'); > $drawnShp = ms_newShapeObj(MS_SHAPE_POLYGON); > $line = ms_newLineObj(); > $line->addXY(1207657,478875); > $line->addXY(1208230,478275); > $line->addXY(1207452,477811); > $line->addXY(1207043,478520); > $line->addXY(1207657,478875); > $drawnShp->add($line); > error_log($drawnShp->numlines); > error_log($drawnShp->towkt()); > ?> > > Is this specifically a problem with Geos 3.1 and the function > ms_shapeObjFromWkt()? Which version of Mapserver will have the patch in > ticket 2929? > > Thanks, > > Paul > > On 4/1/09 12:33 PM, "Yewondwossen Assefa" wrote: > > Not helping here but I have tested your script on windows with Mapserver > 5.2.2 and 5.4 and the script runs ok. The geos version used in this > case is geos 2.2.3. Do you know what version of geos you are using? > There was a recent fix done toward geos support in MapServer and the > problem from what I remember was occurring with geos 3.1 (Is that > correct Tom ?) > > (http://trac.osgeo.org/mapserver/ticket/2929 > > Best Regards > > Moen, Paul T. wrote: >> I get a segmentation fault when I run the following simple script with >> PHP MapScript on Mac OSX 10.5.6 running the latest versions from >> www.kyngchaos.com >> >> #!/usr/local/php5cgi/bin/php -q >> > dl('php_mapscript.so'); >> $newwkt = 'MULTIPOLYGON(((1207657 478875,1208230 478275,1207452 >> 477811,1207043 478520,1207657 478875)))'; >> $drawnShp = ms_shapeObjFromWkt($newwkt); >> echo $drawnShp->toWKT(); >> ?> >> >> /Library/WebServer/CGI-Executables/mapserv -v >> MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER >> SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR >> INPUT=GDAL INPUT=SHAPEFILE >> >> The only output is; >> Segmentation fault >> >> The php version is 5.2.9 and the same thing happens with php versions >> 5.2.8, 5.2.5. >> >> *MapServer Version *MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG >> OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG >> SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER >> SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR >> INPUT=GDAL INPUT=SHAPEFILE >> *PHP MapScript Version *($Revision: 7937 $ $Date: 2008-09-30 07:37:46 >> -0700 (Tue, 30 Sep 2008) $) >> >> >> Anybody else run into this this error? How do I get more debug information? >> >> >> Thanks, >> >> Paul >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- From andy at britishideas.com Thu Apr 2 23:08:18 2009 From: andy at britishideas.com (Andrew Ayre) Date: Thu, 02 Apr 2009 23:08:18 -0700 Subject: [mapserver-users] AGG Rendering Message-ID: <49D5A7D2.8060102@britishideas.com> Hi! I can't seem to get AGG to work. Currently my output is not antialiased. Can anyone give me some hints? Thanks! Note that I have built AGG 2.5 with freetype support. Also note that I needed two ./configure --with-postgis=/usr/bin/pg_config --with-wfs --with-proj --with-geos=/usr/bin/geos-config --with-gd=/usr/local/ --with-jpeg --with-ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config --with-agg=/usr/local/src/agg-2.5 --with-freetype MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -Wall C++ compiler: g++ -O2 -fPIC -Wall Debug: Generic NINT: -------------- Renderer Settings --------- zlib support: -DUSE_ZLIB png support: palette rgba png support: jpeg support: iconv support: -DUSE_ICONV AGG support: -DUSE_AGG AGG Freetype support: agg_font_freetype.o Ming(flash) support: PDFLib support: -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: FriBidi support: Curl support: FastCGI support: Threading support: GEOS support: -DUSE_GEOS -------------- Data Format Drivers ------- native tiff support: PostGIS support: -DUSE_POSTGIS EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: WFS Server: -DUSE_WFS_SVR WFS Client: WCS Server: SOS Server: -------------- MapScript ----------------- PHP MapScript: no ./mapserv.cgi -v MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE OUTPUTFORMAT NAME 'AGG_Q' DRIVER AGG/PNG IMAGEMODE RGB FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END This is the error message I get: loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver AGG/PNG, but this driver isn't configured. Andy -- Andy PGP Key ID: 0xDC1B5864 From gregor at hostgis.com Thu Apr 2 23:54:30 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 02 Apr 2009 23:54:30 -0700 Subject: [mapserver-users] AGG Rendering In-Reply-To: <49D5A7D2.8060102@britishideas.com> References: <49D5A7D2.8060102@britishideas.com> Message-ID: <49D5B2A6.8090305@hostgis.com> Andrew Ayre wrote: > Hi! I can't seem to get AGG to work. Currently my output is not > antialiased. Can anyone give me some hints? Thanks! > loadOutputFormat(): General error message. OUTPUTFORMAT clause > references driver AGG/PNG, but this driver isn't configured. That says it all: Your mapserv binary doesn't support PNG. Says so in your mapserv -v line too: note the lack of SUPPORTS=AGG I'd suggest re-running your ./configure and check for the lines where it mentions that it's checking for AGG, cuz something's not right there. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From szekerest at gmail.com Fri Apr 3 02:15:04 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 3 Apr 2009 11:15:04 +0200 Subject: [mapserver-users] Using the SQL Server 2008 Plugin with a Geography column In-Reply-To: <1238682226954-2575468.post@n2.nabble.com> References: <1238538928048-2565867.post@n2.nabble.com> <29C3A52E0876C94C97BD6443FA96F7337AC9B26900@rms03.rapidmap.local> <1238682226954-2575468.post@n2.nabble.com> Message-ID: Hi, The MSSQL 2008 driver only compatible with the Geometry data type at the moment. In case if the Geography data type is used the spatial filter should also be specifyed as Geography which is not the case in the current implementation. You might want to submit a ticket describing the issue and we could probably get it implemented in a future release. Best regards, Tamas 2009/4/2 joncoign > > To clarify I have a column in SQL 2008 of type geography that I would like > to use in map server. I have been able to do this using the OGR ODBC driver. > However, when trying to use the Native SQL 2008 driver that has been added > to MS4W 2.3.1 I get the error message "sys.geometry is incompatible with > sys.geography" when executing the query captured by profiling the database > request. > > It appears as though the SQL 2008 driver either assumes that it will always > (and only) be used against geometry columns or there is a configuration > setting I that I can use to tell it that the internal datatype is geography > and as such builds the WHERE clause using the geomertry type for the > bounding box filter. > > SQL Excerpt: > > the_geom.STIntersects(Geometry::STGeomFromText('POLYGON(...)') = 1 > > where in this case the_geom is a Geography column that cannot be used in an > STIntersects call with a Geometry object. > > I am hoping someone can tell me about the configuration option to change > this behavior or confirm that it does not exist so we can discuss the > possibility of adding such an option. > > Let me know if you need additional details. > > > There are two ways to define an object spatially in 2008 one as type > geometry and one as geography. > > -- > View this message in context: > http://n2.nabble.com/Using-the-SQL-Server-2008-Plugin-with-a-Geography-column-tp2565867p2575468.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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nsavard at mapgears.com Fri Apr 3 04:55:41 2009 From: nsavard at mapgears.com (Normand Savard) Date: Fri, 03 Apr 2009 07:55:41 -0400 Subject: [mapserver-users] Re: [mapserver-dev] MapServer 5.4 Beta 4 is now available... In-Reply-To: <49D3D2240200008F0002275E@co5.dnr.state.mn.us> References: <49D3D2240200008F0002275E@co5.dnr.state.mn.us> Message-ID: <49D5F93D.9060909@mapgears.com> Steve Lime wrote: > Greetings all: MapServer 5.4 Beta 4 is now available for download at http://mapserver.org/download.html. This beta includes all the security fixes/improvements made available last week in 5.2.2 and fixes a few bugs found since beta 3. Sorry for the delay in getting this release out the door. The next release should be a release candidate and will be available mid-next week. As always any help in testing the software is greatly appreciated. Findings should be sent to the mapserver-dev (or even just mapserver-users) mailing list. > > The FGS modules for the beta 4 are available here: http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/modules/ and the self-installer: http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/self-installers/ Norm From Steve.Lime at dnr.state.mn.us Fri Apr 3 07:06:09 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 03 Apr 2009 09:06:09 -0500 Subject: [mapserver-users] Dynamic 'OnMouseOver' Info generation vomPostGIS/Postgres Message-ID: <49D5D1810200008F00022850@co5.dnr.state.mn.us> To do this you need some sort of an observer for the map and an image map is one way to do that. Here's an example: http://www.dnr.state.mn.us/ice_out/index.html In this case the data to be displayed are encoded in the image map produced by MapServer (I used the template mechanism). So, onMouseOver, a function is called to display the data object. You could just as easily wrap an ajax call in that function. You'd need to store a unique ID as part of your image map sufficient so that you can query postgres. Then the function is called you pass the ID and then use that to retrieve the additional data. The image map will work when you have a relatively small number of reasonably spaced features AND you're interface is not particularly interactive. I don't think it's possible to combine an image map with your typical pan/zoom operation. Another solution is create a polling capability in your application and tie it to some sort of an event, such has pausing the mouse for a few seconds. If that event happens you do a spatial query to see if the user is hovering over anything and if so you do something. Here's an example site: http://www.dnr.state.mn.us/waters/csg/index.html If you hold your mouse over one of the points on the map you'll get details about that feature. At each pause a query is done behind the scenes and if something is found a popup is populated. It's kinda chatty but works. Watch the above page in FireBug so see the network communication. OpenLayers has a great hover control to do this sort of thing. You can also use click events, like so: http://www.dnr.state.mn.us/waters/csg/index_copy.html Creating the content to send back will depend on the data. In the above cases I use MapServer templates to build it. You could use your favorite scripting language to do so as well. Hope this helps! Steve >>> Heiko Schr?ter 04/02/09 7:44 AM >>> Hello all, we are displaying satellite measurement geolocations with Mapserver and PostGIS/Postgres underneath. I would like to add a feature (similar to the MapServer:ImagMap stuff) that displays some more info about the point on which the mouse is over inside the map. i.e. geolocation, name of datafile, value or so. These infos can be sourced from the Postgres db. It is ok to just show these infos on the bottom window frame (like the MapServer:ImageMap example). How do i create the html code (javascript or php or whatever needed) with the dynamic content piped back from the Postgres db ? Sorry if this is an obvious question. I did read the ImageMap and Template stuff, but i cannot get grip to the logic when the data are coming from a db. Any pointer to more info or background knowledge deeply apreciated. Thanks. Heiko _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Fri Apr 3 07:38:44 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 03 Apr 2009 09:38:44 -0500 Subject: [mapserver-users] How to access Templating: Map Geometry Variables(or Equivalent) from OGR Connection Message-ID: <49D5D9240200008F00022866@co5.dnr.state.mn.us> This would be a feature request. The runtime subs are done well ahead of the computation of things like map extent. This would be a relatively simple hack and I can show you where in the CGI code to try it out if you'd like. Steve >>> joncoign 04/02/09 10:47 AM >>> I didn't get a response to my previous post so I wanted to rewrite it and attempt to make it more general. We make OGR ODBC requests to SQL Server 2005 with MSSQLSpatial extensions. To get good performance out of this system and to further secure the paramters we have been using stored procedures so we can optimize the queries inside of the database. This results in a connection object that similar to the following: CONNECTIONTYPE OGR CONNECTION " ODBC:MSSQLSPATIALDSN,states EXEC dbo.MappingGetStates %BBOX% " DATA "GDT" We have had good luck using Variable Subsitution from the querystring however, sometimes it would be useful to be able to access additional varaibles from within mapserver such as those defined in the Templating section of the documentation (an alternative method to access equivalent data would be full acceptable). Specifically, it would be nice to have access to [mapext], [minx], [miny], [maxx], [maxy], [rawext], [mapext_latlon], [minlon], [minlat], [maxlon] [maxlat]. To be explicit I am asking is there a way to use these inside of the section of the CONNECTION. Is this functionality currently available and something I have overlooked in the manual or would this fall under the category of a feature request? Looking forward to SQL Server 2008 I think this approach will still have merit as it offers quite a bit of additional flexibility in writing and optimizing the query over what I have been able to achieve thus far with the Native SQL Server 2008 driver. I should stipulate I have only been using the new driver for a couple of weeks so I may not find it as limiting after additional testing. I have a WFS Server layer defined and have recently needed to provide this service in an alternate projection. The Data is in EPSG:4326 and I need the WFS Service to provide it in Spherical Mercator (SM / EPSG:900913). I have this working properly with the layers projection definition and wfs_srs. The problem I have is that previously I was passing the %BBOX% parameter to the database stored procedure using an referencing an ODBC connection. When reprojecting the WFS layer the %BBOX% does not get reprojected so it gets sent to the database in meters as defined in SM. I could reproject this in the Stored Procedure, but my client would prefer I treat their DB as a black box and not make changes. Am I correct in assuming that %BBOX% comes unaltered from the querystring? Is there another variable I can use with Variable substitution to get the BBOX in the data's projection? Or is there a way to reproject %BBOX% variable? It is critical that I can filter the data coming out of the spatial DB before it gets to MapServer for performance reasons. Any help is greatly appreciated. Jon -- View this message in context: http://n2.nabble.com/WFS-Server-Request-w-Reprojection-to-Database-tp2545150p2575962.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 From andy at britishideas.com Fri Apr 3 09:26:38 2009 From: andy at britishideas.com (Andrew Ayre) Date: Fri, 03 Apr 2009 09:26:38 -0700 Subject: [mapserver-users] AGG Rendering In-Reply-To: <49D5B2A6.8090305@hostgis.com> References: <49D5A7D2.8060102@britishideas.com> <49D5B2A6.8090305@hostgis.com> Message-ID: <49D638BE.3080009@britishideas.com> Gregor at HostGIS wrote: > Andrew Ayre wrote: >> Hi! I can't seem to get AGG to work. Currently my output is not >> antialiased. Can anyone give me some hints? Thanks! > >> loadOutputFormat(): General error message. OUTPUTFORMAT clause >> references driver AGG/PNG, but this driver isn't configured. > > That says it all: Your mapserv binary doesn't support PNG. Says so in > your mapserv -v line too: note the lack of SUPPORTS=AGG > > I'd suggest re-running your ./configure and check for the lines where it > mentions that it's checking for AGG, cuz something's not right there. Thanks for the reply Gregor. It seems I had to change the configure file to get it to add AGG support. This is on Debian Etch. Andy -- Andy PGP Key ID: 0xDC1B5864 From andy at britishideas.com Fri Apr 3 09:29:27 2009 From: andy at britishideas.com (Andrew Ayre) Date: Fri, 03 Apr 2009 09:29:27 -0700 Subject: [mapserver-users] AGG Rendering In-Reply-To: <49D5A7D2.8060102@britishideas.com> References: <49D5A7D2.8060102@britishideas.com> Message-ID: <49D63967.6030704@britishideas.com> Thanks to H?vard I now have AGG compiled in. I needed to modify the configure file: AGG_LIB="-L$AGG_LIBDIR -lagg_pic -laggfontfreetype_pic" Now I have SUPPORTS=AGG. Also the error has gone. But the output isn't anti-aliased. Is there something else that I need to add to the map file besides the outputformat section to get it to work? MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I'm using WMS and OpenLayers. thanks, Andy Andrew Ayre wrote: > Hi! I can't seem to get AGG to work. Currently my output is not > antialiased. Can anyone give me some hints? Thanks! > > OUTPUTFORMAT > NAME 'AGG_Q' > DRIVER AGG/PNG > IMAGEMODE RGB > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_DITHER=OFF" > FORMATOPTION "QUANTIZE_COLORS=256" > END -- Andy PGP Key ID: 0xDC1B5864 From Steve.Lime at dnr.state.mn.us Fri Apr 3 09:35:07 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 03 Apr 2009 11:35:07 -0500 Subject: [mapserver-users] Mapscript shapeObj->toWKt() orms_shapeObjfromWkt problem. Message-ID: <49D5F46B0200008F000228A4@co5.dnr.state.mn.us> Just an update, this will be fixed in the upcoming 5.4 release. Steve >>> "Moen, Paul T." 04/01/09 3:55 PM >>> I changed my Geos to version 3.0.3 and the error changed from "Segmentation fault" to "Bus error". I also looked at the ticket Assefa indicated below and am wondering if that was related to the buffer or to the same problem I am having? The script I am having problems does nothing more than create a new shape object from a wkt and then re-output the wkt from the shape object. The object seems to be created fine, because I can get the number of lines with $drawnShp->numlines. I can also create a new shape object with the other shape object constructer as follows and the output works. addXY(1207657,478875); $line->addXY(1208230,478275); $line->addXY(1207452,477811); $line->addXY(1207043,478520); $line->addXY(1207657,478875); $drawnShp->add($line); error_log($drawnShp->numlines); error_log($drawnShp->towkt()); ?> Is this specifically a problem with Geos 3.1 and the function ms_shapeObjFromWkt()? Which version of Mapserver will have the patch in ticket 2929? Thanks, Paul On 4/1/09 12:33 PM, "Yewondwossen Assefa" wrote: Not helping here but I have tested your script on windows with Mapserver 5.2.2 and 5.4 and the script runs ok. The geos version used in this case is geos 2.2.3. Do you know what version of geos you are using? There was a recent fix done toward geos support in MapServer and the problem from what I remember was occurring with geos 3.1 (Is that correct Tom ?) (http://trac.osgeo.org/mapserver/ticket/2929 Best Regards Moen, Paul T. wrote: > I get a segmentation fault when I run the following simple script with > PHP MapScript on Mac OSX 10.5.6 running the latest versions from > www.kyngchaos.com > > #!/usr/local/php5cgi/bin/php -q > dl('php_mapscript.so'); > $newwkt = 'MULTIPOLYGON(((1207657 478875,1208230 478275,1207452 > 477811,1207043 478520,1207657 478875)))'; > $drawnShp = ms_shapeObjFromWkt($newwkt); > echo $drawnShp->toWKT(); > ?> > > /Library/WebServer/CGI-Executables/mapserv -v > MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > The only output is; > Segmentation fault > > The php version is 5.2.9 and the same thing happens with php versions > 5.2.8, 5.2.5. > > *MapServer Version *MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG > SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > *PHP MapScript Version *($Revision: 7937 $ $Date: 2008-09-30 07:37:46 > -0700 (Tue, 30 Sep 2008) $) > > > Anybody else run into this this error? How do I get more debug information? > > > Thanks, > > Paul > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From pauljame at gmail.com Fri Apr 3 11:21:23 2009 From: pauljame at gmail.com (Paul james) Date: Fri, 3 Apr 2009 15:21:23 -0300 Subject: [mapserver-users] setFilter problem (c#) Message-ID: <33fad6880904031121u688bd998o92ce395d66d89738@mail.gmail.com> Hello guys... I got a problem... My code : ---- var _filter = "('[gid]'='10')"; var _layer = _map.MapObj.getLayerByName("X"); var _lC = _layer.clone(); _lC.setFilter(_filter); _lC.name = "Dummy"; _lC.status = 1; _lC.getClass(0).getStyle(0).color.setRGB(0, 250, 250); _lC.getClass(0).getStyle(0).outlinecolor.setRGB(0, 250, 0); _map.MapObj.insertLayer(_lC, _map.MapObj.numlayers-1); .... ----- No error, but the filter layer doest appear... If I took of the filter line, the layer shows up ok... Any idea? []?s -------------- next part -------------- An HTML attachment was scrubbed... URL: From jncoign at Knology.net Fri Apr 3 11:38:06 2009 From: jncoign at Knology.net (joncoign) Date: Fri, 3 Apr 2009 11:38:06 -0700 (PDT) Subject: [mapserver-users] How to access Templating: Map Geometry Variables(or Equivalent) from OGR Connection In-Reply-To: <49D5D9240200008F00022866@co5.dnr.state.mn.us> References: <49D5D9240200008F00022866@co5.dnr.state.mn.us> Message-ID: <1238783886775-2582268.post@n2.nabble.com> I haven't built MapServer before I have been using MS4W builds. However, if you can show me where to make this change I will be happy to get up to speed and work on the change. Jon This would be a feature request. The runtime subs are done well ahead of the computation of things like map extent. This would be a relatively simple hack and I can show you where in the CGI code to try it out if you'd like. Steve -- View this message in context: http://n2.nabble.com/Re%3A-How-to-access-Templating%3A-Map-Geometry-Variables%28or-Equivalent%29-from-OGR-Connection-tp2581092p2582268.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pauljame at gmail.com Fri Apr 3 11:48:55 2009 From: pauljame at gmail.com (Paul james) Date: Fri, 3 Apr 2009 15:48:55 -0300 Subject: [mapserver-users] Re: setFilter problem (c#) In-Reply-To: <33fad6880904031121u688bd998o92ce395d66d89738@mail.gmail.com> References: <33fad6880904031121u688bd998o92ce395d66d89738@mail.gmail.com> Message-ID: <33fad6880904031148q3b91bc0dv409cc3c15232f503@mail.gmail.com> I forgot, my mapserver version 5.2.0 Thanks On Fri, Apr 3, 2009 at 3:21 PM, Paul james wrote: > Hello guys... > I got a problem... > My code : > > ---- > var _filter = "('[gid]'='10')"; > var _layer = _map.MapObj.getLayerByName("X"); > > var _lC = _layer.clone(); > _lC.setFilter(_filter); > _lC.name = "Dummy"; > _lC.status = 1; > _lC.getClass(0).getStyle(0).color.setRGB(0, 250, 250); > _lC.getClass(0).getStyle(0).outlinecolor.setRGB(0, 250, 0); > _map.MapObj.insertLayer(_lC, _map.MapObj.numlayers-1); > .... > ----- > > No error, but the filter layer doest appear... If I took of the filter > line, the layer shows up ok... > > Any idea? > > []?s > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at britishideas.com Fri Apr 3 12:45:31 2009 From: andy at britishideas.com (Andrew Ayre) Date: Fri, 03 Apr 2009 12:45:31 -0700 Subject: [mapserver-users] PIXMAP Positioning Message-ID: <49D6675B.4040300@britishideas.com> Are PIXMAP symbols for points always centered on the point? I want to add thumb tack style markers, like Google Maps, where the entire image should be located above the point. Is this possible? thanks, Andy -- Andy PGP Key ID: 0xDC1B5864 From woodbri at swoodbridge.com Fri Apr 3 14:35:18 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 03 Apr 2009 16:35:18 -0500 Subject: [mapserver-users] PIXMAP Positioning In-Reply-To: <49D6675B.4040300@britishideas.com> References: <49D6675B.4040300@britishideas.com> Message-ID: <49D68116.6020009@swoodbridge.com> Andrew Ayre wrote: > Are PIXMAP symbols for points always centered on the point? I want to > add thumb tack style markers, like Google Maps, where the entire image > should be located above the point. Is this possible? > > thanks, Andy > Type OFFSET x y where x and y are in pixels. -Steve W From gregor at hostgis.com Fri Apr 3 14:06:57 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Fri, 03 Apr 2009 14:06:57 -0700 Subject: [mapserver-users] AGG Rendering In-Reply-To: <49D63967.6030704@britishideas.com> References: <49D5A7D2.8060102@britishideas.com> <49D63967.6030704@britishideas.com> Message-ID: <49D67A71.5040301@hostgis.com> Andrew Ayre wrote: > Now I have SUPPORTS=AGG. Also the error has gone. But the output isn't > anti-aliased. Is there something else that I need to add >> OUTPUTFORMAT >> NAME 'AGG_Q' >> DRIVER AGG/PNG >> IMAGEMODE RGB >> FORMATOPTION "QUANTIZE_FORCE=ON" >> FORMATOPTION "QUANTIZE_DITHER=OFF" >> FORMATOPTION "QUANTIZE_COLORS=256" >> END Have you tried removing those formatoption lines? Seems to me that forcing it to a 256-color palette will mess with AGG's very careful subpixel shading alpha-channel stuff. The paragraph I use is this. OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGBA TRANSPARENT OFF END -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From andy at britishideas.com Fri Apr 3 14:26:37 2009 From: andy at britishideas.com (Andrew Ayre) Date: Fri, 03 Apr 2009 14:26:37 -0700 Subject: [mapserver-users] AGG Rendering In-Reply-To: <49D67A71.5040301@hostgis.com> References: <49D5A7D2.8060102@britishideas.com> <49D63967.6030704@britishideas.com> <49D67A71.5040301@hostgis.com> Message-ID: <49D67F0D.9090009@britishideas.com> Gregor at HostGIS wrote: > Andrew Ayre wrote: >> Now I have SUPPORTS=AGG. Also the error has gone. But the output isn't >> anti-aliased. Is there something else that I need to add > >>> OUTPUTFORMAT >>> NAME 'AGG_Q' >>> DRIVER AGG/PNG >>> IMAGEMODE RGB >>> FORMATOPTION "QUANTIZE_FORCE=ON" >>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>> FORMATOPTION "QUANTIZE_COLORS=256" >>> END > > Have you tried removing those formatoption lines? Seems to me that > forcing it to a 256-color palette will mess with AGG's very careful > subpixel shading alpha-channel stuff. > > The paragraph I use is this. > > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "AGG/PNG" > EXTENSION "png" > IMAGEMODE RGBA > TRANSPARENT OFF > END Thanks Gregor, that worked! Andy -- Andy PGP Key ID: 0xDC1B5864 From andy at britishideas.com Fri Apr 3 14:27:40 2009 From: andy at britishideas.com (Andrew Ayre) Date: Fri, 03 Apr 2009 14:27:40 -0700 Subject: [mapserver-users] PIXMAP Positioning In-Reply-To: <49D68116.6020009@swoodbridge.com> References: <49D6675B.4040300@britishideas.com> <49D68116.6020009@swoodbridge.com> Message-ID: <49D67F4C.3050202@britishideas.com> Stephen Woodbridge wrote: > Andrew Ayre wrote: >> Are PIXMAP symbols for points always centered on the point? I want to >> add thumb tack style markers, like Google Maps, where the entire image >> should be located above the point. Is this possible? >> >> thanks, Andy >> > Type OFFSET x y > where x and y are in pixels. Thanks Steve! Andy -- Andy PGP Key ID: 0xDC1B5864 From m.sirin07 at googlemail.com Fri Apr 3 15:44:03 2009 From: m.sirin07 at googlemail.com (mehmet) Date: Fri, 3 Apr 2009 15:44:03 -0700 (PDT) Subject: [mapserver-users] WFS Layers not visualized and big size? Message-ID: <1238798643435-2583277.post@n2.nabble.com> Hi ! I got a WFS server with two layers inside -nothing special. But now something weird happens: When I try to build them in in a wms/wfs client together they are not shown. If there is only one layer embed in the client it works without any problems. Anybody knows why ? And another strange thing is the size of files (xyz.tmp.gml and xyz.tmp.gfs) which are created in the tmp-folder. The size of them is about 4 - 11MB, and that's why every request lasts a few second (too long I think.. because the data isn't that large). Or is this case normal? (Mapserver: 4.10) thank you kind regards m.sirin -- View this message in context: http://n2.nabble.com/WFS-Layers-not-visualized-and-big-size--tp2583277p2583277.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Fri Apr 3 23:11:44 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 4 Apr 2009 09:11:44 +0300 Subject: [mapserver-users] WFS Layers not visualized and big size? References: <1238798643435-2583277.post@n2.nabble.com> Message-ID: Hi, What client are you using for visualizing? I guess many clients have been designed to handle only one feature type at a time. If GetFeature packet contains features from several featuretypes the client should in any case split them to separate layers before rendering. Big size in not a surprise, files are containing all the coordinates and attribute data in text format. Consider WFS as data transfer system and think again if few seconds per request is long or not with the amount of data you get with your requests. Your client is receiving all the data, both the coordinates and attributes and thus the situation corresponds to downloading the data as shapefiles or something. I don't mean to say that you should be happy with the speed, it may well be extraordinary slow. But WFS is always slower that WMS. For speeding up the system the WFS requests should not be bigger than reasonable (not the whole featuretype if area of interest is just the screen size), no unnecessary attributes should be included with the data, and the client should cache the received data and not ask the server to resend everything again if user is just zooming and panning on the already visited area. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: mehmet L?hetetty: la 4.4.2009 1:44 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WFS Layers not visualized and big size? Hi ! I got a WFS server with two layers inside -nothing special. But now something weird happens: When I try to build them in in a wms/wfs client together they are not shown. If there is only one layer embed in the client it works without any problems. Anybody knows why ? And another strange thing is the size of files (xyz.tmp.gml and xyz.tmp.gfs) which are created in the tmp-folder. The size of them is about 4 - 11MB, and that's why every request lasts a few second (too long I think.. because the data isn't that large). Or is this case normal? (Mapserver: 4.10) thank you kind regards m.sirin -- View this message in context: http://n2.nabble.com/WFS-Layers-not-visualized-and-big-size--tp2583277p2583277.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 From m.sirin07 at googlemail.com Sat Apr 4 01:29:27 2009 From: m.sirin07 at googlemail.com (mehmet) Date: Sat, 4 Apr 2009 01:29:27 -0700 (PDT) Subject: [mapserver-users] WFS Layers not visualized and big size? In-Reply-To: References: <1238798643435-2583277.post@n2.nabble.com> Message-ID: <1238833767894-2584493.post@n2.nabble.com> Hi, I'm using a mapserver 4.10 client for visualizing which contains several layers such as vector (points and lines from a wfs server; some polygons from wms.. both severs are mine) and raster layers. I think in this case the order is important, because only the first layer that appears in the client is visualized. The following layer which is below disappears, but its symbol or color is shown in the legend... -m.sirin Hi, What client are you using for visualizing? I guess many clients have been designed to handle only one feature type at a time. If GetFeature packet contains features from several featuretypes the client should in any case split them to separate layers before rendering. Big size in not a surprise, files are containing all the coordinates and attribute data in text format. Consider WFS as data transfer system and think again if few seconds per request is long or not with the amount of data you get with your requests. Your client is receiving all the data, both the coordinates and attributes and thus the situation corresponds to downloading the data as shapefiles or something. I don't mean to say that you should be happy with the speed, it may well be extraordinary slow. But WFS is always slower that WMS. For speeding up the system the WFS requests should not be bigger than reasonable (not the whole featuretype if area of interest is just the screen size), no unnecessary attributes should be included with the data, and the client should cache the received data and not ask the server to resend everything again if user is just zooming and panning on the already visited area. -Jukka Rahkonen- -- View this message in context: http://n2.nabble.com/WFS-Layers-not-visualized-and-big-size--tp2583277p2584493.html Sent from the Mapserver - User mailing list archive at Nabble.com. From schroete at iup.physik.uni-bremen.de Sat Apr 4 02:16:49 2009 From: schroete at iup.physik.uni-bremen.de (schroete at iup.physik.uni-bremen.de) Date: Sat, 04 Apr 2009 09:16:49 +0000 Subject: [mapserver-users] Dynamic 'OnMouseOver' Info generationvomPostGIS/Postgres In-Reply-To: <49D5D1810200008F00022850@co5.dnr.state.mn.us> Message-ID: Thanks for the info and links. Just the thing i was thinking of. Because of the huge amount of (eventually) data points i think i try the 'chatty' version first. Still tinkering with OpenLayers and changing projection though. Regards Heiko Am 3.4.2009 schrieb "Steve Lime" : >To do this you need some sort of an observer for the map and an image >map is >one way to do that. Here's an example: > > http://www.dnr.state.mn.us/ice_out/index.html > >In this case the data to be displayed are encoded in the image map >produced >by MapServer (I used the template mechanism). So, onMouseOver, a >function >is called to display the data object. You could just as easily wrap an >ajax call >in that function. You'd need to store a unique ID as part of your image >map >sufficient so that you can query postgres. Then the function is called >you >pass the ID and then use that to retrieve the additional data. > >The image map will work when you have a relatively small number of >reasonably >spaced features AND you're interface is not particularly interactive. I >don't >think it's possible to combine an image map with your typical pan/zoom >operation. > >Another solution is create a polling capability in your application and >tie it to >some sort of an event, such has pausing the mouse for a few seconds. If >that >event happens you do a spatial query to see if the user is hovering over >anything >and if so you do something. Here's an example site: > > http://www.dnr.state.mn.us/waters/csg/index.html > >If you hold your mouse over one of the points on the map you'll get >details about >that feature. At each pause a query is done behind the scenes and if >something >is found a popup is populated. It's kinda chatty but works. Watch the >above page >in FireBug so see the network communication. OpenLayers has a great >hover control >to do this sort of thing. You can also use click events, like so: > > http://www.dnr.state.mn.us/waters/csg/index_copy.html > >Creating the content to send back will depend on the data. In the above >cases I use >MapServer templates to build it. You could use your favorite scripting >language to do >so as well. > >Hope this helps! > >Steve > >>>> Heiko Schr??ter 04/02/09 7:44 AM >>>> >Hello all, > >we are displaying satellite measurement geolocations with Mapserver and >PostGIS/Postgres underneath. > >I would like to add a feature (similar to the MapServer:ImagMap stuff) >that >displays some more info about the point on which the mouse is over >inside the >map. i.e. geolocation, name of datafile, value or so. These infos can be > >sourced from the Postgres db. It is ok to just show these infos on the >bottom >window frame (like the MapServer:ImageMap example). > >How do i create the html code (javascript or php or whatever needed) >with the >dynamic content piped back from the Postgres db ? >Sorry if this is an obvious question. I did read the ImageMap and >Template >stuff, but i cannot get grip to the logic when the data are coming from >a db. > >Any pointer to more info or background knowledge deeply apreciated. > >Thanks. >Heiko > > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Sat Apr 4 02:57:37 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 4 Apr 2009 12:57:37 +0300 Subject: [mapserver-users] WFS Layers not visualized and big size? References: <1238798643435-2583277.post@n2.nabble.com> <1238833767894-2584493.post@n2.nabble.com> Message-ID: Hi, Allright, you are using Mapserver for reading from WFS and pushing rendered images out. I thought first that you were using Mapserver as WFS server for some other client. As far as I know WFS layer behaves like any other vector layer and there shouldn't be any special reason that prevents your second layer that comes from external WFS source to show. I guess that you are right with the assumption of layer order. Perhaps the invisible layer gets covered by some other, non-transparent layer. Check that raster layers are under vector layers, and that filled, non-transparent polygon layers do not cover other layers. Mapfile is rendered from top to bottom, thus the first layer in the mapfile goes to the bottom and the following ones are piled on top of that. -Jukka- mehmet wrote: > Hi, > I'm using a mapserver 4.10 client for visualizing which contains several layers such as vector (points > and lines from a wfs server; some polygons from wms.. both severs are mine) and raster layers. > I think in this case the order is important, because only the first layer that appears > in the client is visualized. The following layer which is below disappears, but its symbol or color > is shown in the legend... -m.sirin Hi, What client are you using for visualizing? I guess many clients have been designed to handle only one feature type at a time. If GetFeature packet contains features from several featuretypes the client should in any case split them to separate layers before rendering. Big size in not a surprise, files are containing all the coordinates and attribute data in text format. Consider WFS as data transfer system and think again if few seconds per request is long or not with the amount of data you get with your requests. Your client is receiving all the data, both the coordinates and attributes and thus the situation corresponds to downloading the data as shapefiles or something. I don't mean to say that you should be happy with the speed, it may well be extraordinary slow. But WFS is always slower that WMS. For speeding up the system the WFS requests should not be bigger than reasonable (not the whole featuretype if area of interest is just the screen size), no unnecessary attributes should be included with the data, and the client should cache the received data and not ask the server to resend everything again if user is just zooming and panning on the already visited area. -Jukka Rahkonen- -- View this message in context: http://n2.nabble.com/WFS-Layers-not-visualized-and-big-size--tp2583277p2584493.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 From nagal005 at umn.edu Sat Apr 4 08:53:50 2009 From: nagal005 at umn.edu (new2ms4w) Date: Sat, 4 Apr 2009 08:53:50 -0700 (PDT) Subject: [mapserver-users] label display stops abruptly Message-ID: <1238860430468-2585479.post@n2.nabble.com> Hi, I display some roads on a map along with the names of the roads as labels. The label display has a minor problem. Sometimes the name of the label is only displayed partially. I don't know why. Here is a screen-shot of the problem. I've circled in red where the labels are not displaying properly. ------------------------------------ And the mapfile code which deals with label display is here: LABELCACHE on LABEL TYPE truetype FONT "arial" SIZE 8 OUTLINECOLOR 255 255 255 COLOR 0 0 0 POSITION lc MINDISTANCE 100 MINFEATURESIZE auto ANGLE auto #WRAP \' \' END #end label Can someone tell me what am I missing here. Thanks, Pradeep -- View this message in context: http://n2.nabble.com/label-display-stops-abruptly-tp2585479p2585479.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Sat Apr 4 11:52:49 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 4 Apr 2009 20:52:49 +0200 Subject: [mapserver-users] setFilter problem (c#) In-Reply-To: <33fad6880904031121u688bd998o92ce395d66d89738@mail.gmail.com> References: <33fad6880904031121u688bd998o92ce395d66d89738@mail.gmail.com> Message-ID: Paul, Which data source are you using? It highly depends on the type of the data source how the filter is interpreted by mapserver. Are you sure there are matching features within the extent you have? Best regards, Tamas 2009/4/3 Paul james > Hello guys... > I got a problem... > My code : > > ---- > var _filter = "('[gid]'='10')"; > var _layer = _map.MapObj.getLayerByName("X"); > > var _lC = _layer.clone(); > _lC.setFilter(_filter); > _lC.name = "Dummy"; > _lC.status = 1; > _lC.getClass(0).getStyle(0).color.setRGB(0, 250, 250); > _lC.getClass(0).getStyle(0).outlinecolor.setRGB(0, 250, 0); > _map.MapObj.insertLayer(_lC, _map.MapObj.numlayers-1); > .... > ----- > > No error, but the filter layer doest appear... If I took of the filter > line, the layer shows up ok... > > Any idea? > > []?s > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From meenu.monu at gmail.com Sat Apr 4 21:48:40 2009 From: meenu.monu at gmail.com (meenu) Date: Sat, 4 Apr 2009 21:48:40 -0700 (PDT) Subject: [mapserver-users] mapserver application for "tour planner" module Message-ID: <1238906920777-2587614.post@n2.nabble.com> hi all.. our company is planning to do one "tour planner" project using mapserver in vs2005(c#) for tourism project...for that am asking ur suggestion about ,Is any tourplanner mapserver application source available which is compatable with vs2005(C#) and mapinfo data files. regards meenu -- View this message in context: http://n2.nabble.com/mapserver-application-for-%22tour-planner%22-module-tp2587614p2587614.html Sent from the Mapserver - User mailing list archive at Nabble.com. From meenu.monu at gmail.com Sun Apr 5 05:54:58 2009 From: meenu.monu at gmail.com (meenu) Date: Sun, 5 Apr 2009 05:54:58 -0700 (PDT) Subject: [mapserver-users] visibility of the layer based on zoom extends Message-ID: <1238936098732-2588503.post@n2.nabble.com> hi can anybody help to set the visibility of a layer based on zoom extends..the mapscript for the particular layer i added here as follows... LAYER NAME "n_towns" TYPE POINT CONNECTIONTYPE OGR CONNECTION "n_towns.TAB" STATUS ON LABELITEM "NAME" CLASS SIZE 10 STYLE COLOR 100 100 100 OUTLINECOLOR 0 0 0 SYMBOL "circle" END LABEL COLOR 100 100 100 FONT arial TYPE TRUETYPE SIZE 7 POSITION LC WRAP " " END END END -- View this message in context: http://n2.nabble.com/visibility-of-the-layer-based-on-zoom-extends-tp2588503p2588503.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Sun Apr 5 09:07:43 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sun, 5 Apr 2009 18:07:43 +0200 Subject: [mapserver-users] visibility of the layer based on zoom extends In-Reply-To: <1238936098732-2588503.post@n2.nabble.com> References: <1238936098732-2588503.post@n2.nabble.com> Message-ID: You might want to set MINSCALEDENOM and MAXSCALEDENOM of the LAYER refer to the mapfile documentation for the deatails: http://www.mapserver.org/mapfile/layer.html Best regards, Tamas 2009/4/5 meenu > > hi can anybody help to set the visibility of a layer based on zoom > extends..the mapscript for the particular layer i added here as follows... > > LAYER > NAME "n_towns" > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "n_towns.TAB" > STATUS ON > LABELITEM "NAME" > CLASS > SIZE 10 > STYLE > COLOR 100 100 100 > OUTLINECOLOR 0 0 0 > SYMBOL "circle" > END > LABEL > COLOR 100 100 100 > FONT arial > TYPE TRUETYPE > SIZE 7 > POSITION LC > WRAP " " > END > END > END > > -- > View this message in context: > http://n2.nabble.com/visibility-of-the-layer-based-on-zoom-extends-tp2588503p2588503.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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From meenu.monu at gmail.com Sun Apr 5 21:58:47 2009 From: meenu.monu at gmail.com (meenu) Date: Sun, 5 Apr 2009 21:58:47 -0700 (PDT) Subject: [mapserver-users] some doubts about mapserver website Message-ID: <1238993927664-2591355.post@n2.nabble.com> hi all... can anybody help me to answer some questions about maserver website... i created one mapserver website using c#mapscript in vs2005 with the use of mapinfo .TAB files.....web is loading fine with basic requirements...now i have some doubts... 1.what is the format of gis data which is showing in to the website??? 2.where is the database of gis data??whether the database is data folder of mapinfo or not??? 3.whther mapserver support arabic fonts done by mapinfo?? 4.how this gisdata coming to mapserver website(using mapscript)??is any diagram available in net? regards meenu -- View this message in context: http://n2.nabble.com/some-doubts-about-mapserver-website-tp2591355p2591355.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vtammineni at roulacglobal.com Sun Apr 5 22:11:56 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Mon, 6 Apr 2009 10:41:56 +0530 Subject: [mapserver-users] some doubts about mapserver website In-Reply-To: <1238993927664-2591355.post@n2.nabble.com> References: <1238993927664-2591355.post@n2.nabble.com> Message-ID: <009e01c9b676$36633fc0$a329bf40$@com> HI, 1) Whatever the data data your sending through mapfile ,is converting into image format like png etc.... 2) the image format is gis database.mapfile will take care all.. and data(TAB) will be in your folder only.and if it is database(Postgre/PostGIS).the data will be on the same database. 3)for your third question , I don't have that much knowledge...but as per my knowledge mapserver will support Arabic fonts. 4) yes and mapfile also will do the same functionalities... Thanks Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of meenu Sent: Monday, April 06, 2009 10:29 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] some doubts about mapserver website hi all... can anybody help me to answer some questions about maserver website... i created one mapserver website using c#mapscript in vs2005 with the use of mapinfo .TAB files.....web is loading fine with basic requirements...now i have some doubts... 1.what is the format of gis data which is showing in to the website??? 2.where is the database of gis data??whether the database is data folder of mapinfo or not??? 3.whther mapserver support arabic fonts done by mapinfo?? 4.how this gisdata coming to mapserver website(using mapscript)??is any diagram available in net? regards meenu -- View this message in context: http://n2.nabble.com/some-doubts-about-mapserver-website-tp2591355p2591355.h tml 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 From meenu.monu at gmail.com Sun Apr 5 22:58:39 2009 From: meenu.monu at gmail.com (meenu) Date: Sun, 5 Apr 2009 22:58:39 -0700 (PDT) Subject: [mapserver-users] hiow can i convert mapinfo workspace to mapserver mapfile? Message-ID: <1238997519972-2591481.post@n2.nabble.com> hi all...advance thanks...i downloaded wor2map.zip for converting mapinfo workspace to mapserver map file...but how can i use this wor2map for this convertion...in this folder 3 files is there .MBX,.MB,.DEF...how can use this files for converting my mapinfo files to mapserver mapfle??? ----- Meenu -- View this message in context: http://n2.nabble.com/hiow-can-i-convert-mapinfo-workspace-to-mapserver-mapfile--tp2591481p2591481.html Sent from the Mapserver - User mailing list archive at Nabble.com. From AWilliams at rapidmap.com Sun Apr 5 22:58:08 2009 From: AWilliams at rapidmap.com (Andrew Williams) Date: Mon, 6 Apr 2009 15:58:08 +1000 Subject: [mapserver-users] hiow can i convert mapinfo workspace to mapserver mapfile? In-Reply-To: <1238997519972-2591481.post@n2.nabble.com> References: <1238997519972-2591481.post@n2.nabble.com> Message-ID: <29C3A52E0876C94C97BD6443FA96F7337AC9B269A6@rms03.rapidmap.local> The MBX is a Mapinfo\Mapbasic Executable. If you don't have Mapinfo nothing is going to work. Not knowing the exact methodology behind the code it's hard to know what to do next. You could try just double clicking the MBX and see what happens. I would expect Mapinfo to start and then a dialog asking which Workspace you'd like to convert is located. Alternatively start Mapinfo and go to the Tools menu and select Run Mapbasic Program and then select the wor2map.mbx. This will either create a new menu item or pop up a dialog, again asking where the workspace is you wish to convert. Hope this helps. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of meenu Sent: Monday, 6 April 2009 3:59 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] hiow can i convert mapinfo workspace to mapserver mapfile? hi all...advance thanks...i downloaded wor2map.zip for converting mapinfo workspace to mapserver map file...but how can i use this wor2map for this convertion...in this folder 3 files is there .MBX,.MB,.DEF...how can use this files for converting my mapinfo files to mapserver mapfle??? ----- Meenu -- View this message in context: http://n2.nabble.com/hiow-can-i-convert-mapinfo-workspace-to-mapserver-mapfile--tp2591481p2591481.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 From meenu.monu at gmail.com Sun Apr 5 23:56:17 2009 From: meenu.monu at gmail.com (meenu) Date: Sun, 5 Apr 2009 23:56:17 -0700 (PDT) Subject: [mapserver-users] hiow can i convert mapinfo workspace to mapserver mapfile? In-Reply-To: <29C3A52E0876C94C97BD6443FA96F7337AC9B269A6@rms03.rapidmap.local> References: <1238997519972-2591481.post@n2.nabble.com> <29C3A52E0876C94C97BD6443FA96F7337AC9B269A6@rms03.rapidmap.local> Message-ID: <1239000977204-2591585.post@n2.nabble.com> hi friend i did this method and succeeded...i am facing one problem for allocating font and symbol set from mapinfo...in mapinfo i didnt findout any folder which is containing fonts.txt and shade.sym...how can i solve this problem? FONTSET "..\etc\fonts.txt" SYMBOLSET "..\etc\shade.sym" ----- Meenu -- View this message in context: http://n2.nabble.com/hiow-can-i-convert-mapinfo-workspace-to-mapserver-mapfile--tp2591481p2591585.html Sent from the Mapserver - User mailing list archive at Nabble.com. From meenu.monu at gmail.com Mon Apr 6 00:02:10 2009 From: meenu.monu at gmail.com (meenu) Date: Mon, 6 Apr 2009 00:02:10 -0700 (PDT) Subject: [mapserver-users] hiow can i convert mapinfo workspace to mapserver mapfile? In-Reply-To: <29C3A52E0876C94C97BD6443FA96F7337AC9B269A6@rms03.rapidmap.local> References: <1238997519972-2591481.post@n2.nabble.com> <29C3A52E0876C94C97BD6443FA96F7337AC9B269A6@rms03.rapidmap.local> Message-ID: <1239001330672-2591594.post@n2.nabble.com> hi friend i did this method and succeeded...i am facing one problem for allocating font and symbol set from mapinfo...in mapinfo i didnt findout any folder which is containing fonts.txt and shade.sym...how can i solve this problem? FONTSET "..\etc\fonts.txt" SYMBOLSET "..\etc\shade.sym" ----- Meenu -- View this message in context: http://n2.nabble.com/hiow-can-i-convert-mapinfo-workspace-to-mapserver-mapfile--tp2591481p2591594.html Sent from the Mapserver - User mailing list archive at Nabble.com. From stefan.schwarzer at grid.unep.ch Mon Apr 6 00:03:29 2009 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Mon, 6 Apr 2009 09:03:29 +0200 Subject: [mapserver-users] Query "Unique Values" in Mapfile? Message-ID: <37621A62-40E9-4676-A724-B0E49BEA5FA2@grid.unep.ch> Hi there, is it possible to make mapserver directly detect the "unique values" in a field of the dbf table? I have twenty or more point and polygon shapefiles, each having a column with specific thematic data, such as the "protected area category". But the content of these columns is different. So, defining these classes by hand would consume much time; and defining them dynamically via PHP & SQL, then writing a bit of the mapfile code before launching the whole thing looks a little bit complicated for a relative basic request. Thanks for any hints, Stef From vtammineni at roulacglobal.com Mon Apr 6 00:12:53 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Mon, 6 Apr 2009 12:42:53 +0530 Subject: [mapserver-users] hiow can i convert mapinfo workspace to mapserver mapfile? In-Reply-To: <1239000977204-2591585.post@n2.nabble.com> References: <1238997519972-2591481.post@n2.nabble.com> <29C3A52E0876C94C97BD6443FA96F7337AC9B269A6@rms03.rapidmap.local> <1239000977204-2591585.post@n2.nabble.com> Message-ID: <00a201c9b687$1c152dc0$543f8940$@com> Hi FONTSET "..\etc\fonts.txt" and SYMBOLSET "..\etc\shade.sym" are file formats that you need write in separate. Go through the mapserver url check symbols and fonts .you will get good from there only. Thanks Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of meenu Sent: Monday, April 06, 2009 12:26 PM To: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] hiow can i convert mapinfo workspace to mapserver mapfile? hi friend i did this method and succeeded...i am facing one problem for allocating font and symbol set from mapinfo...in mapinfo i didnt findout any folder which is containing fonts.txt and shade.sym...how can i solve this problem? FONTSET "..\etc\fonts.txt" SYMBOLSET "..\etc\shade.sym" ----- Meenu -- View this message in context: http://n2.nabble.com/hiow-can-i-convert-mapinfo-workspace-to-mapserver-mapfi le--tp2591481p2591585.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 From meenu.monu at gmail.com Mon Apr 6 01:27:41 2009 From: meenu.monu at gmail.com (meenu) Date: Mon, 6 Apr 2009 01:27:41 -0700 (PDT) Subject: [mapserver-users] hiow can i convert mapinfo workspace to mapserver mapfile? In-Reply-To: <00a201c9b687$1c152dc0$543f8940$@com> References: <1238997519972-2591481.post@n2.nabble.com> <29C3A52E0876C94C97BD6443FA96F7337AC9B269A6@rms03.rapidmap.local> <00a201c9b687$1c152dc0$543f8940$@com> Message-ID: <1239006461637-2591881.post@n2.nabble.com> i did...working fine...thanks... ----- Meenu -- View this message in context: http://n2.nabble.com/hiow-can-i-convert-mapinfo-workspace-to-mapserver-mapfile--tp2591481p2591881.html Sent from the Mapserver - User mailing list archive at Nabble.com. From enri at 163.com Mon Apr 6 01:34:11 2009 From: enri at 163.com (enri) Date: Mon, 6 Apr 2009 16:34:11 +0800 (CST) Subject: [mapserver-users] visibility of the layer based on zoom extends In-Reply-To: <1238936098732-2588503.post@n2.nabble.com> References: <1238936098732-2588503.post@n2.nabble.com> Message-ID: <13802626.409071239006851030.JavaMail.coremail@bj163app26.163.com> Hi, I suggest you use MSCompanion to edit your mapfile, it's easy to understand how to control layers and their properties. Enri. ?2009-04-05?meenu ??? > >hi can anybody help to set the visibility of a layer based on zoom extends..the mapscript for the particular layer i added here as follows... > >LAYER > NAME "n_towns" > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "n_towns.TAB" > STATUS ON > LABELITEM "NAME" > CLASS > SIZE 10 > STYLE > COLOR 100 100 100 > OUTLINECOLOR 0 0 0 > SYMBOL "circle" > END > LABEL > COLOR 100 100 100 > FONT arial > TYPE TRUETYPE > SIZE 7 > POSITION LC > WRAP " " > END > END >END > >-- >View this message in context: http://n2.nabble.com/visibility-of-the-layer-based-on-zoom-extends-tp2588503p2588503.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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From enri at 163.com Mon Apr 6 01:21:22 2009 From: enri at 163.com (enri) Date: Mon, 6 Apr 2009 16:21:22 +0800 (CST) Subject: [mapserver-users] About the error "ddddd.ddd is not a valid floating point value" of MSCompanion In-Reply-To: <00a201c9b687$1c152dc0$543f8940$@com> References: <00a201c9b687$1c152dc0$543f8940$@com> <1238997519972-2591481.post@n2.nabble.com> <29C3A52E0876C94C97BD6443FA96F7337AC9B269A6@rms03.rapidmap.local> <1239000977204-2591585.post@n2.nabble.com> Message-ID: <931839.403601239006082207.JavaMail.coremail@bj163app26.163.com> Hi, Some of you perhaps always get errors like "343252.2264458 is not a valid floating point value" when you use MSCompanion to open an existing mapfile. The reason is that mapserver use "." as Decimal Separator, but the system setting of your computer is some other characters, e.g. ",". Before the next version is available, to fix this problem, you have to change your system settings as following: Control Panel -> Locale and Language , please find seetings for numbers, change the Decimal Separator setting from ","(or other) to "." The beta2 of version 1.0 will fix this problem and be available in 1 week. Then restart MSCompanion, the error should not come out again. Regards, Enri. -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroete at iup.physik.uni-bremen.de Mon Apr 6 02:01:54 2009 From: schroete at iup.physik.uni-bremen.de (Heiko =?utf-8?q?Schr=C3=B6ter?=) Date: Mon, 6 Apr 2009 11:01:54 +0200 Subject: [mapserver-users] Layer Object Parameter Substitution from URL using GIS Message-ID: <200904061101.54781.schroete@iup.physik.uni-bremen.de> Hello, when passing a 'FILTER' parameter to be changed with the URL to use GIS requests, mapserv(5.0.3) fails with: loadLayer(): Unknown identifier. Parsing error near (FILTER):(line 1) The call is: http://localhost/cgi-bin/mapserv?MAP=/MapServer/country98/heiko1.map& LAYERS=karte,grid,psc&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap& STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage& FORMAT=image/png& SRS=epsg:4326&BBOX=-180,7.91,-82.08,105.83& WIDTH=256&HEIGHT=256& MAP.LAYER[psc].FILTER='wert=0' (Linebreaks included for readability) When omitting this part: " MAP.LAYER[psc].FILTER='wert=0' " the map is generated fine (without the proper GIS data of course). I did read several comments in the archive and the net about this issue but haven't found a solution to this problem. What do i miss here ? Thanks and Regards Heiko The Mapfile: MAP NAME WELT DEBUG ON STATUS ON #SIZE 647 320 SIZE 800 400 IMAGETYPE PNG24 IMAGECOLOR 240 240 240 SHAPEPATH "data" EXTENT -180 -90 180 90 UNITS DD WEB IMAGEPATH "images" IMAGEURL "images" MINSCALE 50000 MAXSCALE 400000000 METADATA "wms_title" "Example WMS Server" "wms_onlineresource" "http://localhost/cgi-bin/mapserv?map=heiko.map&" "wms_srs" "epsg:4326 epsg:32661 epsg:32761" END END SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME 'star' TYPE VECTOR FILLED TRUE POINTS 0 .375 .35 .375 .5 0 .65 .375 1 .375 .75 .625 .875 1 .5 .75 .125 1 .25 .625 END END PROJECTION "init=epsg:4326" END LAYER NAME "karte" TYPE POLYGON STATUS ON OPACITY 50 DATA "cntry98" METADATA "wms_title" "karte layer" "DESCRIPTION" "Grid" END PROJECTION "init=epsg:4326" END CLASS NAME "karte_color" OUTLINECOLOR 60 60 60 COLOR 100 100 100 SYMBOL 0 END END LAYER NAME "grid" OPACITY 60 METADATA "wms_title" "grid layer" "DESCRIPTION" "Grid" END TYPE LINE STATUS ON PROJECTION "init=epsg:4326" END CLASS NAME "Graticule" COLOR 0 0 0 # Labels comented out for readabilty in the moment # LABEL # COLOR 0 0 0 # #FONT "fritqat" # #TYPE truetype # MINDISTANCE 1000 # SIZE SMALL # POSITION LR # PARTIALS FALSE # BUFFER 5 # OUTLINECOLOR 200 200 200 # END END GRID LABELFORMAT "DD" # LABELFORMAT '%g?' # dec degrees with symbol # MINARCS 1 MAXARCS 1 MININTERVAL 30 MAXINTERVAL 60 # MINSUBDIVIDE 100 MAXSUBDIVIDE 300 # LABELFORMAT ?%7.0f m? # nice if a projected SRS used # MININTERVAL 20000 # MAXSUBDIVIDE 2 END END # Layer LAYER NAME "psc" CONNECTIONTYPE POSTGIS OPACITY 80 STATUS ON METADATA "wms_title" "psc layer" END PROJECTION "init=epsg:4326" END CONNECTION "user=fum password=xyz dbname=foo host=localhost" DATA "geocenter from scia_psc" FILTER "wert=1" TYPE POINT CLASS COLOR 250 10 10 SYMBOL "circle" SIZE 7 END END LAYER CONNECTIONTYPE POSTGIS NAME "nlc" OPACITY 80 STATUS ON METADATA "wms_title" "nlc layer" END PROJECTION "init=epsg:4326" END CONNECTION "user=fum password=xyz dbname=foo host=localhost" DATA "geocenter from scia_nlc" FILTER "wert=1" TYPE POINT CLASS COLOR 10 250 10 SYMBOL "star" SIZE 7 END END LAYER CONNECTIONTYPE POSTGIS NAME "stro3" OPACITY 80 STATUS ON METADATA "wms_title" "stro3 layer" END PROJECTION "init=epsg:4326" END CONNECTION "user=fum password=xyz dbname=foo host=localhost" DATA "geocenter from scia_stro3" FILTER "wert=1" TYPE POINT CLASS COLOR 10 10 250 SYMBOL "circle" SIZE 7 END END END # Ende Map From George.McCown at jjg.com Mon Apr 6 05:26:23 2009 From: George.McCown at jjg.com (McCown, George) Date: Mon, 6 Apr 2009 08:26:23 -0400 Subject: [mapserver-users] When or if OGR can support ESRI file geodatabase? Message-ID: Hey All! Does anyone have the scoop on whether OGR will be supporting ESRI file geodatabase's? George McCown GIS Analyst 1 george.mccown&jjg.com 678.333.0228 (Direct) 678-333-0826 (Fax) Jordan, Jones & Goulding 6801 Governors Lake Parkway, Building 200 Norcross, Ga 30071 www.jjg.com This email and any files transmitted with it are intended solely for the use of the individual and/or entity to whom it is addressed. Unless noted otherwise above, any distribution or copying of this email is strictly prohibited. This email IS NOT a binding agreement on behalf of JJG. If you have received this message in error, please immediately notify the sender and delete this message from your computer. Jordan, Jones and Goulding, Inc., 6801 Governors Lake Pkwy, Norcross, Ga. 30071 www.jjg.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian_gh.popa at romtelecom.ro Mon Apr 6 06:21:30 2009 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Mon, 06 Apr 2009 16:21:30 +0300 Subject: [mapserver-users] displaying LINESTRING elements from shapefiles Message-ID: <49DA01DA.8070403@romtelecom.ro> Hello everybody, I'm trying to display a map generated from openstreetmaps and saved as several shapefile layers. The map was obtained from: http://download.geofabrik.de/osm/europe/ The shapefile "roads.shp" has a data type of "LINESTRING": [root at alarms romania-osm-shp]# ogrinfo -al roads.shp | head -30 INFO: Open of `roads.shp' using driver `ESRI Shapefile' successful. Layer name: roads Geometry: Line String Feature Count: 51469 Extent: (20.379788, 43.653826) - (29.712869, 48.221387) Layer SRS WKT: GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_1984",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT["Degree",0.017453292519943295]] osm_id: Real (16.0) name: String (32.0) type: String (16.0) oneway: Integer (1.0) OGRFeature(roads):0 osm_id (Real) = 1349 name (String) = Bulevardul Mircea Eliade type (String) = tertiary oneway (Integer) = 0 LINESTRING (26.093111799999999 44.469673499999999,26.093683899999998 44.469124899999997,26.094064299999999 44.468571799999999,26.0961094 44.465648600000002) I've tried creating the MAP file with a layer type of LINE/LINESTRING/POLYGON, but the map would not display the layer (however mapserver would generate an image). My version of mapserver is 4.10.3 (fedora core 8). My question is: can I display this data type directly with mapserver, or do I need to convert it to something else? Is my version of mapserver too old to display this data? Thanks. Adrian From Jukka.Rahkonen at mmmtike.fi Mon Apr 6 07:03:03 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 6 Apr 2009 17:03:03 +0300 Subject: [mapserver-users] displaying LINESTRING elements from shapefiles In-Reply-To: <49DA01DA.8070403@romtelecom.ro> References: <49DA01DA.8070403@romtelecom.ro> Message-ID: Hi, This layer shows OSM roads for me from the same shapefiles that you are trying to use. LAYER NAME "OSM_roads" STATUS ON DATA "d:\Data\OSM\roads" TYPE LINE UNITS METERS METADATA "wms_title" "OSM_tiet" END CLASS NAME "roads" OUTLINECOLOR 0 255 0 END PROJECTION "init=epsg:4326" END END Check that EXTENT in your mapfile suits the data. -Jukka Rahkonen- Adrian Popa wrote: > Hello everybody, > > I'm trying to display a map generated from openstreetmaps and > saved as several shapefile layers. The map was obtained from: > http://download.geofabrik.de/osm/europe/ > The shapefile "roads.shp" has a data type of "LINESTRING": > > [root at alarms romania-osm-shp]# ogrinfo -al roads.shp | head -30 > INFO: Open of `roads.shp' > using driver `ESRI Shapefile' successful. > > Layer name: roads > Geometry: Line String > Feature Count: 51469 > Extent: (20.379788, 43.653826) - (29.712869, 48.221387) Layer SRS WKT: > GEOGCS["GCS_WGS_1984", > DATUM["WGS_1984", > SPHEROID["WGS_1984",6378137,298.257223563]], > PRIMEM["Greenwich",0], > UNIT["Degree",0.017453292519943295]] > osm_id: Real (16.0) > name: String (32.0) > type: String (16.0) > oneway: Integer (1.0) > OGRFeature(roads):0 > osm_id (Real) = 1349 > name (String) = Bulevardul Mircea Eliade > type (String) = tertiary > oneway (Integer) = 0 > LINESTRING (26.093111799999999 44.469673499999999,26.093683899999998 > 44.469124899999997,26.094064299999999 44.468571799999999,26.0961094 > 44.465648600000002) > > I've tried creating the MAP file with a layer type of > LINE/LINESTRING/POLYGON, but the map would not display the > layer (however mapserver would generate an image). > > My version of mapserver is 4.10.3 (fedora core 8). > > My question is: can I display this data type directly with > mapserver, or do I need to convert it to something else? Is > my version of mapserver too old to display this data? > > Thanks. > > Adrian > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From szekerest at gmail.com Mon Apr 6 07:07:23 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 6 Apr 2009 16:07:23 +0200 Subject: [mapserver-users] When or if OGR can support ESRI file geodatabase? In-Reply-To: References: Message-ID: George, Did you mean ESRI Personal GeoDatabase? Refer to http://www.gdal.org/ogr/drv_pgeo.html in this topic. Best regards, Tamas 2009/4/6 McCown, George > Hey All! > > > > Does anyone have the scoop on whether OGR will be supporting ESRI file > geodatabase?s? > > > > *George McCown* > GIS Analyst 1 > > *george.mccown&jjg.com* > > 678.333.0228 (Direct) > 678-333-0826 (Fax) > Jordan, Jones & Goulding > 6801 Governors Lake Parkway, Building 200 > Norcross, Ga 30071 > > www.jjg.com > > > > This email and any files transmitted with it are intended solely for the > use of the individual and/or entity to whom it is addressed. Unless noted > otherwise above, any distribution or copying of this email is strictly > prohibited. This email IS NOT a binding agreement on behalf of JJG. If you > have received this message in error, please immediately notify the sender > and delete this message from your computer. > Jordan, Jones and Goulding, Inc., 6801 Governors Lake Pkwy, Norcross, Ga. > 30071 www.jjg.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Mon Apr 6 07:20:44 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 6 Apr 2009 09:20:44 -0500 Subject: [mapserver-users] When or if OGR can support ESRI file geodatabase? In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA377@s-sp22.pca.state.mn.us> Doubtful. I am guessing that he is referring to their newer file geodatabase. http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Types_of_g eodatabases The format is proprietary, but ESRI keeps saying that their intention is to open it. The latest info from them is that it will be available at version 9.4. I am guessing that this is a strategic decision rather than a technical one. Of course, I have seen at least one ESRI File Geodatabase Team member on the FWTools list (on an unrelated topic)... David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Monday, April 06, 2009 9:07 AM To: McCown, George Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] When or if OGR can support ESRI file geodatabase? George, Did you mean ESRI Personal GeoDatabase? Refer to http://www.gdal.org/ogr/drv_pgeo.html in this topic. Best regards, Tamas 2009/4/6 McCown, George Hey All! Does anyone have the scoop on whether OGR will be supporting ESRI file geodatabase's? George McCown GIS Analyst 1 george.mccown&jjg.com 678.333.0228 (Direct) 678-333-0826 (Fax) Jordan, Jones & Goulding 6801 Governors Lake Parkway, Building 200 Norcross, Ga 30071 www.jjg.com This email and any files transmitted with it are intended solely for the use of the individual and/or entity to whom it is addressed. Unless noted otherwise above, any distribution or copying of this email is strictly prohibited. This email IS NOT a binding agreement on behalf of JJG. If you have received this message in error, please immediately notify the sender and delete this message from your computer. Jordan, Jones and Goulding, Inc., 6801 Governors Lake Pkwy, Norcross, Ga. 30071 www.jjg.com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pauljame at gmail.com Mon Apr 6 07:31:12 2009 From: pauljame at gmail.com (Paul james) Date: Mon, 6 Apr 2009 11:31:12 -0300 Subject: [mapserver-users] setFilter problem (c#) In-Reply-To: References: <33fad6880904031121u688bd998o92ce395d66d89738@mail.gmail.com> Message-ID: <33fad6880904060731x64cde364ybabec00692709c80@mail.gmail.com> Hi Tamas! It?s a Postgis layer...And the extent is fine... Any ideia? Thanks On Sat, Apr 4, 2009 at 3:52 PM, Tamas Szekeres wrote: > Paul, > > Which data source are you using? It highly depends on the type of the data > source how the filter is interpreted by mapserver. > Are you sure there are matching features within the extent you have? > > Best regards, > > Tamas > > > > 2009/4/3 Paul james > >> Hello guys... >> I got a problem... >> My code : >> >> ---- >> var _filter = "('[gid]'='10')"; >> var _layer = _map.MapObj.getLayerByName("X"); >> >> var _lC = _layer.clone(); >> _lC.setFilter(_filter); >> _lC.name = "Dummy"; >> _lC.status = 1; >> _lC.getClass(0).getStyle(0).color.setRGB(0, 250, 250); >> _lC.getClass(0).getStyle(0).outlinecolor.setRGB(0, 250, 0); >> _map.MapObj.insertLayer(_lC, _map.MapObj.numlayers-1); >> .... >> ----- >> >> No error, but the filter layer doest appear... If I took of the filter >> line, the layer shows up ok... >> >> Any idea? >> >> []?s >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Mon Apr 6 07:50:26 2009 From: wal3 at mindspring.com (Worth Lutz) Date: Mon, 6 Apr 2009 10:50:26 -0400 Subject: [mapserver-users] PHP mapscript and getResult() Message-ID: <9621C11FBE5A4DB3BCF1FE27C7913C42@Worthlaptop> There is a SWIG mapscript reference to a "layerObj" method "getResults()" returning a resultCacheObj. The resultCacheObj has an attribute "bounds" which is the extent of the results. Is this available in PHP mapscript. It seems to be missing. Worth From szekerest at gmail.com Mon Apr 6 08:11:27 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 6 Apr 2009 17:11:27 +0200 Subject: [mapserver-users] setFilter problem (c#) In-Reply-To: <33fad6880904060731x64cde364ybabec00692709c80@mail.gmail.com> References: <33fad6880904031121u688bd998o92ce395d66d89738@mail.gmail.com> <33fad6880904060731x64cde364ybabec00692709c80@mail.gmail.com> Message-ID: Then the filter is passed directly to the database in the SQL WHERE clause. You might want to enable logging the SQL statements at the server and see what gets executed when the layer is drawn. Best regards, Tamas 2009/4/6 Paul james > Hi Tamas! > It?s a Postgis layer...And the extent is fine... > Any ideia? > > Thanks > > > On Sat, Apr 4, 2009 at 3:52 PM, Tamas Szekeres wrote: > >> Paul, >> >> Which data source are you using? It highly depends on the type of the data >> source how the filter is interpreted by mapserver. >> Are you sure there are matching features within the extent you have? >> >> Best regards, >> >> Tamas >> >> >> >> 2009/4/3 Paul james >> >>> Hello guys... >>> I got a problem... >>> My code : >>> >>> ---- >>> var _filter = "('[gid]'='10')"; >>> var _layer = _map.MapObj.getLayerByName("X"); >>> >>> var _lC = _layer.clone(); >>> _lC.setFilter(_filter); >>> _lC.name = "Dummy"; >>> _lC.status = 1; >>> _lC.getClass(0).getStyle(0).color.setRGB(0, 250, 250); >>> _lC.getClass(0).getStyle(0).outlinecolor.setRGB(0, 250, 0); >>> _map.MapObj.insertLayer(_lC, _map.MapObj.numlayers-1); >>> .... >>> ----- >>> >>> No error, but the filter layer doest appear... If I took of the filter >>> line, the layer shows up ok... >>> >>> Any idea? >>> >>> []?s >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at camptocamp.com Mon Apr 6 09:05:15 2009 From: thomas.bonfort at camptocamp.com (Thomas Bonfort) Date: Mon, 6 Apr 2009 18:05:15 +0200 Subject: [mapserver-users] [announce] Mapfish Studio: online mapfile editor Message-ID: <2922382e0904060905n7b0a3275yf910cf92f82c45be@mail.gmail.com> Hi all, CampToCamp is proud to announce the beta release of the Mapfile Editor of Mapfish Studio. You can demo it here http://dev.mapfish.org/studio/demo after having registered on the site (a username and password will suffice), and/or view a screencast of some of the functionality here http://www.screencast.com/t/BUvqUEMZ . Please post any feedback as to usability issues or bugs (note however that your account on the studio site can be cleared every so often as we upgrade versions - in that case just recreate a new account). Features: * add, remove or reorder layers from data stored on the server or on a postgis database. * thematic mapping (automatic classification of layer data, and/or access to mapserver's expression filtering) * advanced symbology (stroke, fill, pattern, marker symbols, labelling) * (near) live preview - the mapfile is by default ready for WMS * configure a layer for WFS response (select which attributes to return, and eventually rename them) Note that the application is currently only available as a demo. We will provide detailed installation instructions in a second phase once we're ready for a wider audience. The code will be released under an open source license (yet to be decided) We are currently working on extending the capabilities of Studio and the goal is to offer three main components: - A tool to manage the data sources - A tool to manage and edit MapFiles (the current demo) - A tool to generate MapFish sites, with view, edit, search and query capabilities. ( For the adventurous, an up-to-date version of the installation instructions can be found http://dev.mapfish.org/studio/docs in a couple of hours ) Best regards, -- www.camptocamp.com +33 4 79 26 57 97 From pauljame at gmail.com Mon Apr 6 10:00:38 2009 From: pauljame at gmail.com (Paul james) Date: Mon, 6 Apr 2009 14:00:38 -0300 Subject: [mapserver-users] setFilter problem (c#) In-Reply-To: References: <33fad6880904031121u688bd998o92ce395d66d89738@mail.gmail.com> <33fad6880904060731x64cde364ybabec00692709c80@mail.gmail.com> Message-ID: <33fad6880904061000q3f765db0h885a5062aee713c1@mail.gmail.com> Thanks Tamas... I found the problem... The correct filter to postgis is : "(gid='10')" On Mon, Apr 6, 2009 at 12:11 PM, Tamas Szekeres wrote: > Then the filter is passed directly to the database in the SQL WHERE clause. > You might want to enable logging the SQL statements at the server and see > what gets executed when the layer is drawn. > > Best regards, > > Tamas > > > > 2009/4/6 Paul james > > Hi Tamas! >> It?s a Postgis layer...And the extent is fine... >> Any ideia? >> >> Thanks >> >> >> On Sat, Apr 4, 2009 at 3:52 PM, Tamas Szekeres wrote: >> >>> Paul, >>> >>> Which data source are you using? It highly depends on the type of the >>> data source how the filter is interpreted by mapserver. >>> Are you sure there are matching features within the extent you have? >>> >>> Best regards, >>> >>> Tamas >>> >>> >>> >>> 2009/4/3 Paul james >>> >>>> Hello guys... >>>> I got a problem... >>>> My code : >>>> >>>> ---- >>>> var _filter = "('[gid]'='10')"; >>>> var _layer = _map.MapObj.getLayerByName("X"); >>>> >>>> var _lC = _layer.clone(); >>>> _lC.setFilter(_filter); >>>> _lC.name = "Dummy"; >>>> _lC.status = 1; >>>> _lC.getClass(0).getStyle(0).color.setRGB(0, 250, 250); >>>> _lC.getClass(0).getStyle(0).outlinecolor.setRGB(0, 250, 0); >>>> _map.MapObj.insertLayer(_lC, _map.MapObj.numlayers-1); >>>> .... >>>> ----- >>>> >>>> No error, but the filter layer doest appear... If I took of the filter >>>> line, the layer shows up ok... >>>> >>>> Any idea? >>>> >>>> []?s >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Mon Apr 6 09:06:21 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 06 Apr 2009 11:06:21 -0500 Subject: [mapserver-users] label display stops abruptly In-Reply-To: <1238860430468-2585479.post@n2.nabble.com> References: <1238860430468-2585479.post@n2.nabble.com> Message-ID: <49D9E22D.5157.008F.0@dnr.state.mn.us> Hi Pradeep: You didn't attach the graphic, plus we need to know more about the data and MapServer version to do much. Steve >>> On 4/4/2009 at 10:53 AM, in message <1238860430468-2585479.post at n2.nabble.com>, new2ms4w wrote: > Hi, > > I display some roads on a map along with the names of the roads as labels. > The label display has a minor problem. Sometimes the name of the label is > only displayed partially. I don't know why. > > Here is a screen-shot of the problem. I've circled in red where the labels > are not displaying properly. > > > > > ------------------------------------ > And the mapfile code which deals with label display is here: > > LABELCACHE on > LABEL > TYPE truetype > FONT "arial" > SIZE 8 > OUTLINECOLOR 255 255 255 > COLOR 0 0 0 > POSITION lc > MINDISTANCE 100 > MINFEATURESIZE auto > ANGLE auto > #WRAP \' \' > END #end label > > Can someone tell me what am I missing here. > > Thanks, > Pradeep From greenkov at gmail.com Mon Apr 6 10:18:07 2009 From: greenkov at gmail.com (Alexander Petkov) Date: Mon, 6 Apr 2009 11:18:07 -0600 Subject: [mapserver-users] GIF format from legend mode Message-ID: How can I get the legend graphic of a layer in gif format (rather than PNG) using legend mode? WMS getLegendGraphic seems to do the trick with format=image/gif and I am wondering if I can achieve the same in legend mode. I tried with FORMAT=image/gif, as well as a few other variation, but the result is always a PNG graphic, Thanks in advance, Alex From bfraser at geoanalytic.com Mon Apr 6 10:29:53 2009 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 06 Apr 2009 11:29:53 -0600 Subject: [mapserver-users] label display stops abruptly In-Reply-To: <49D9E22D.5157.008F.0@dnr.state.mn.us> References: <1238860430468-2585479.post@n2.nabble.com> <49D9E22D.5157.008F.0@dnr.state.mn.us> Message-ID: <49DA3C11.7080900@geoanalytic.com> Looking at the screen capture (at Nabble http://n2.nabble.com/label-display-stops-abruptly-td2585479.html#a2585479), it could be the classic tile-clipping-labels problem. Is the solution to add PROCESSING "LABEL_NO_CLIP=True" before the LABEL definition? Brent Fraser Steve Lime wrote: > Hi Pradeep: You didn't attach the graphic, plus we need to know more about the data and MapServer > version to do much. > > Steve > >>>> On 4/4/2009 at 10:53 AM, in message <1238860430468-2585479.post at n2.nabble.com>, > new2ms4w wrote: > >> Hi, >> >> I display some roads on a map along with the names of the roads as labels. >> The label display has a minor problem. Sometimes the name of the label is >> only displayed partially. I don't know why. >> >> Here is a screen-shot of the problem. I've circled in red where the labels >> are not displaying properly. >> >> >> >> >> ------------------------------------ >> And the mapfile code which deals with label display is here: >> >> LABELCACHE on >> LABEL >> TYPE truetype >> FONT "arial" >> SIZE 8 >> OUTLINECOLOR 255 255 255 >> COLOR 0 0 0 >> POSITION lc >> MINDISTANCE 100 >> MINFEATURESIZE auto >> ANGLE auto >> #WRAP \' \' >> END #end label >> >> Can someone tell me what am I missing here. >> >> Thanks, >> Pradeep > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at camptocamp.com Mon Apr 6 10:42:52 2009 From: thomas.bonfort at camptocamp.com (Thomas Bonfort) Date: Mon, 6 Apr 2009 19:42:52 +0200 Subject: [mapserver-users] label display stops abruptly In-Reply-To: <49DA3C11.7080900@geoanalytic.com> References: <1238860430468-2585479.post@n2.nabble.com> <49D9E22D.5157.008F.0@dnr.state.mn.us> <49DA3C11.7080900@geoanalytic.com> Message-ID: <2922382e0904061042x4b6b85f2q18f305b7d7799a32@mail.gmail.com> LABEL_NO_CLIP is so that labels aren't repeated on each tile. what you want here is PARTIALS FALSE in each of your label blocks -- thomas On Mon, Apr 6, 2009 at 7:29 PM, Brent Fraser wrote: > Looking at the screen capture (at Nabble > http://n2.nabble.com/label-display-stops-abruptly-td2585479.html#a2585479), > it could be the classic tile-clipping-labels problem. ?Is the solution to > add > ?PROCESSING "LABEL_NO_CLIP=True" > before the LABEL definition? > > Brent Fraser > > > Steve Lime wrote: >> >> Hi Pradeep: You didn't attach the graphic, plus we need to know more about >> the data and MapServer >> version to do much. >> >> Steve >> >>>>> On 4/4/2009 at 10:53 AM, in message >>>>> <1238860430468-2585479.post at n2.nabble.com>, >> >> new2ms4w wrote: >> >>> Hi, >>> >>> I display some roads on a map along with the names of the roads as >>> labels. The label display has a minor problem. Sometimes the name of the >>> label is only displayed partially. I don't know why. >>> >>> Here is a screen-shot of the problem. I've circled in red where the >>> labels are not displaying properly. >>> >>> >>> >>> >>> ------------------------------------ >>> And the mapfile code which deals with label display is here: >>> >>> LABELCACHE on >>> LABEL >>> ? ? ? ?TYPE truetype >>> ? ? ? ?FONT "arial" >>> ? ? ? ?SIZE 8 >>> ? ? ? ?OUTLINECOLOR 255 255 255 >>> ? ? ? ?COLOR 0 0 0 >>> ? ? ? ?POSITION lc >>> ? ? ? ?MINDISTANCE 100 >>> ? ? ? ?MINFEATURESIZE auto >>> ? ? ? ?ANGLE auto >>> ? ? ? ?#WRAP \' \' >>> ?END #end label >>> >>> Can someone tell me what am I missing here. >>> >>> Thanks, >>> Pradeep >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- www.camptocamp.com +33 4 79 26 57 97 From yassefa at dmsolutions.ca Mon Apr 6 10:54:21 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 06 Apr 2009 13:54:21 -0400 Subject: [mapserver-users] PHP mapscript and getResult() In-Reply-To: <9621C11FBE5A4DB3BCF1FE27C7913C42@Worthlaptop> References: <9621C11FBE5A4DB3BCF1FE27C7913C42@Worthlaptop> Message-ID: <49DA41CD.4070402@dmsolutions.ca> Worth Lutz wrote: > There is a SWIG mapscript reference to a "layerObj" method "getResults()" > returning a resultCacheObj. The resultCacheObj has an attribute "bounds" > which is the extent of the results. > > Is this available in PHP mapscript. It seems to be missing. > It is missing in php mapscript. Added a ticket on it and It should be available for the 5.4.1 release: http://trac.osgeo.org/mapserver/ticket/2967 Best Regards > Worth > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Steve.Lime at dnr.state.mn.us Mon Apr 6 10:57:19 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 06 Apr 2009 12:57:19 -0500 Subject: [mapserver-users] Layer Object Parameter Substitution from URLusing GIS In-Reply-To: <200904061101.54781.schroete@iup.physik.uni-bremen.de> References: <200904061101.54781.schroete@iup.physik.uni-bremen.de> Message-ID: <49D9FC2E.5157.008F.0@dnr.state.mn.us> You'll need to use 5.4 to get this functionality. That version add support to allow you to define validation strings to lock down what values can be passed for the variable. Another solution is to consider using runtime substitution to do something similar. That works well if the SQL is pretty much fixed: FILTER 'wert=%myval%' It's also easier to secure. Steve >>> On 4/6/2009 at 4:01 AM, in message <200904061101.54781.schroete at iup.physik.uni-bremen.de>, Heiko Schr?ter wrote: > Hello, > > when passing a 'FILTER' parameter to be changed with the URL to use GIS > requests, mapserv(5.0.3) fails with: > loadLayer(): Unknown identifier. Parsing error near (FILTER):(line 1) > > The call is: > > http://localhost/cgi-bin/mapserv?MAP=/MapServer/country98/heiko1.map& > LAYERS=karte,grid,psc&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap& > STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage& > FORMAT=image/png& > SRS=epsg:4326&BBOX=-180,7.91,-82.08,105.83& > WIDTH=256&HEIGHT=256& > MAP.LAYER[psc].FILTER='wert=0' > (Linebreaks included for readability) > > When omitting this part: " MAP.LAYER[psc].FILTER='wert=0' " the map is > generated fine (without the proper GIS data of course). > > I did read several comments in the archive and the net about this issue but > haven't found a solution to this problem. > What do i miss here ? > > Thanks and Regards > Heiko > > > The Mapfile: > MAP > NAME WELT > DEBUG ON > STATUS ON > #SIZE 647 320 > SIZE 800 400 > IMAGETYPE PNG24 > IMAGECOLOR 240 240 240 > SHAPEPATH "data" > EXTENT -180 -90 180 90 > UNITS DD > WEB > IMAGEPATH "images" > IMAGEURL "images" > MINSCALE 50000 > MAXSCALE 400000000 > METADATA > "wms_title" "Example WMS Server" > "wms_onlineresource" "http://localhost/cgi-bin/mapserv?map=heiko.map&" > "wms_srs" "epsg:4326 epsg:32661 epsg:32761" > END > END > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > SYMBOL > NAME 'star' > TYPE VECTOR > FILLED TRUE > POINTS > 0 .375 > .35 .375 > .5 0 > .65 .375 > 1 .375 > .75 .625 > .875 1 > .5 .75 > .125 1 > .25 .625 > END > END > PROJECTION > "init=epsg:4326" > END > LAYER > NAME "karte" > TYPE POLYGON > STATUS ON > OPACITY 50 > DATA "cntry98" > METADATA > "wms_title" "karte layer" > "DESCRIPTION" "Grid" > END > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "karte_color" > OUTLINECOLOR 60 60 60 > COLOR 100 100 100 > SYMBOL 0 > END > END > LAYER > NAME "grid" > OPACITY 60 > METADATA > "wms_title" "grid layer" > "DESCRIPTION" "Grid" > END > TYPE LINE > STATUS ON > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Graticule" > COLOR 0 0 0 > # Labels comented out for readabilty in the moment > # LABEL > # COLOR 0 0 0 > # #FONT "fritqat" > # #TYPE truetype > # MINDISTANCE 1000 > # SIZE SMALL > # POSITION LR > # PARTIALS FALSE > # BUFFER 5 > # OUTLINECOLOR 200 200 200 > # END > END > GRID > LABELFORMAT "DD" > # LABELFORMAT '%g?' # dec degrees with symbol > # MINARCS 1 > MAXARCS 1 > MININTERVAL 30 > MAXINTERVAL 60 > # MINSUBDIVIDE 100 > MAXSUBDIVIDE 300 > # LABELFORMAT ?%7.0f m? # nice if a projected SRS used > # MININTERVAL 20000 > # MAXSUBDIVIDE 2 > END > END # Layer > > LAYER > NAME "psc" > CONNECTIONTYPE POSTGIS > OPACITY 80 > STATUS ON > METADATA > "wms_title" "psc layer" > END > PROJECTION > "init=epsg:4326" > END > CONNECTION "user=fum password=xyz dbname=foo host=localhost" > DATA "geocenter from scia_psc" > FILTER "wert=1" > TYPE POINT > CLASS > COLOR 250 10 10 > SYMBOL "circle" > SIZE 7 > END > END > LAYER > CONNECTIONTYPE POSTGIS > NAME "nlc" > OPACITY 80 > STATUS ON > METADATA > "wms_title" "nlc layer" > END > PROJECTION > "init=epsg:4326" > END > CONNECTION "user=fum password=xyz dbname=foo host=localhost" > DATA "geocenter from scia_nlc" > FILTER "wert=1" > TYPE POINT > CLASS > COLOR 10 250 10 > SYMBOL "star" > SIZE 7 > END > END > LAYER > CONNECTIONTYPE POSTGIS > NAME "stro3" > OPACITY 80 > STATUS ON > METADATA > "wms_title" "stro3 layer" > END > PROJECTION > "init=epsg:4326" > END > CONNECTION "user=fum password=xyz dbname=foo host=localhost" > DATA "geocenter from scia_stro3" > FILTER "wert=1" > TYPE POINT > CLASS > COLOR 10 10 250 > SYMBOL "circle" > SIZE 7 > END > END > END # Ende Map > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pauljame at gmail.com Mon Apr 6 11:29:00 2009 From: pauljame at gmail.com (Paul james) Date: Mon, 6 Apr 2009 15:29:00 -0300 Subject: [mapserver-users] getExtent(c#) with Postgis data ... Message-ID: <33fad6880904061129x65397b7ew5f4de9a4daeaa0dc@mail.gmail.com> Hello, It seems that getExtent (c#) is not implemented... Any other solution to get extent of a layer using mapscript? Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Mon Apr 6 13:56:25 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 6 Apr 2009 22:56:25 +0200 Subject: [mapserver-users] getExtent(c#) with Postgis data ... In-Reply-To: <33fad6880904061129x65397b7ew5f4de9a4daeaa0dc@mail.gmail.com> References: <33fad6880904061129x65397b7ew5f4de9a4daeaa0dc@mail.gmail.com> Message-ID: Why don't? That function have already been exposed for *layerObj* with the following signature: *public rectObj getExtent(void)* Best regards, Tamas 2009/4/6 Paul james > Hello, It seems that getExtent (c#) is not implemented... > Any other solution to get extent of a layer using mapscript? > > Paul > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pauljame at gmail.com Mon Apr 6 14:18:20 2009 From: pauljame at gmail.com (Paul james) Date: Mon, 6 Apr 2009 18:18:20 -0300 Subject: [mapserver-users] getExtent(c#) with Postgis data ... In-Reply-To: References: <33fad6880904061129x65397b7ew5f4de9a4daeaa0dc@mail.gmail.com> Message-ID: <33fad6880904061418n2d0bb3a3m827d41a668c63f59@mail.gmail.com> All value from getExtent (Postgis layer) is : 3.4028234663852886E+38 Is it a bug? On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres wrote: > Why don't? That function have already been exposed for *layerObj* with the > following signature: > > *public rectObj getExtent(void)* > > Best regards, > > Tamas > > > > 2009/4/6 Paul james > >> Hello, It seems that getExtent (c#) is not implemented... >> Any other solution to get extent of a layer using mapscript? >> >> Paul >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Mon Apr 6 14:22:12 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 6 Apr 2009 23:22:12 +0200 Subject: [mapserver-users] getExtent(c#) with Postgis data ... In-Reply-To: <33fad6880904061418n2d0bb3a3m827d41a668c63f59@mail.gmail.com> References: <33fad6880904061129x65397b7ew5f4de9a4daeaa0dc@mail.gmail.com> <33fad6880904061418n2d0bb3a3m827d41a668c63f59@mail.gmail.com> Message-ID: Paul, Unfortunately this function is not implemented by the MapServer postgis driver, you might want to use the OGR C# API (ie. ogr_csharp.dll) for this purpose. Best regards, Tamas 2009/4/6 Paul james > All value from getExtent (Postgis layer) is : 3.4028234663852886E+38 > > Is it a bug? > > > > On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres wrote: > >> Why don't? That function have already been exposed for *layerObj* with >> the following signature: >> >> *public rectObj getExtent(void)* >> >> Best regards, >> >> Tamas >> >> >> >> 2009/4/6 Paul james >> >>> Hello, It seems that getExtent (c#) is not implemented... >>> Any other solution to get extent of a layer using mapscript? >>> >>> Paul >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pauljame at gmail.com Mon Apr 6 14:24:58 2009 From: pauljame at gmail.com (Paul james) Date: Mon, 6 Apr 2009 18:24:58 -0300 Subject: [mapserver-users] getExtent(c#) with Postgis data ... In-Reply-To: References: <33fad6880904061129x65397b7ew5f4de9a4daeaa0dc@mail.gmail.com> <33fad6880904061418n2d0bb3a3m827d41a668c63f59@mail.gmail.com> Message-ID: <33fad6880904061424gcc0473coa3f03de1a7fc6afd@mail.gmail.com> Where can I find ogr_csharp.dll ? Thanks Tamas! Paul On Mon, Apr 6, 2009 at 6:22 PM, Tamas Szekeres wrote: > Paul, > > Unfortunately this function is not implemented by the MapServer postgis > driver, you might want to use the OGR C# API (ie. ogr_csharp.dll) for this > purpose. > > > Best regards, > > Tamas > > > > 2009/4/6 Paul james > >> All value from getExtent (Postgis layer) is : 3.4028234663852886E+38 >> >> Is it a bug? >> >> >> >> On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres wrote: >> >>> Why don't? That function have already been exposed for *layerObj* with >>> the following signature: >>> >>> *public rectObj getExtent(void)* >>> >>> Best regards, >>> >>> Tamas >>> >>> >>> >>> 2009/4/6 Paul james >>> >>>> Hello, It seems that getExtent (c#) is not implemented... >>>> Any other solution to get extent of a layer using mapscript? >>>> >>>> Paul >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Mon Apr 6 14:30:29 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 6 Apr 2009 23:30:29 +0200 Subject: [mapserver-users] getExtent(c#) with Postgis data ... In-Reply-To: <33fad6880904061424gcc0473coa3f03de1a7fc6afd@mail.gmail.com> References: <33fad6880904061129x65397b7ew5f4de9a4daeaa0dc@mail.gmail.com> <33fad6880904061418n2d0bb3a3m827d41a668c63f59@mail.gmail.com> <33fad6880904061424gcc0473coa3f03de1a7fc6afd@mail.gmail.com> Message-ID: Choose a package with the best match for your compiler and architecture from here: http://vbkto.dyndns.org:1280/sdk/index.html Best regards, Tamas 2009/4/6 Paul james > Where can I find ogr_csharp.dll ? > > Thanks Tamas! > > Paul > > > On Mon, Apr 6, 2009 at 6:22 PM, Tamas Szekeres wrote: > >> Paul, >> >> Unfortunately this function is not implemented by the MapServer postgis >> driver, you might want to use the OGR C# API (ie. ogr_csharp.dll) for this >> purpose. >> >> >> Best regards, >> >> Tamas >> >> >> >> 2009/4/6 Paul james >> >>> All value from getExtent (Postgis layer) is : 3.4028234663852886E+38 >>> >>> Is it a bug? >>> >>> >>> >>> On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres wrote: >>> >>>> Why don't? That function have already been exposed for *layerObj* with >>>> the following signature: >>>> >>>> *public rectObj getExtent(void)* >>>> >>>> Best regards, >>>> >>>> Tamas >>>> >>>> >>>> >>>> 2009/4/6 Paul james >>>> >>>>> Hello, It seems that getExtent (c#) is not implemented... >>>>> Any other solution to get extent of a layer using mapscript? >>>>> >>>>> Paul >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Mon Apr 6 14:52:08 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 6 Apr 2009 23:52:08 +0200 Subject: [mapserver-users] Query "Unique Values" in Mapfile? In-Reply-To: <37621A62-40E9-4676-A724-B0E49BEA5FA2@grid.unep.ch> References: <37621A62-40E9-4676-A724-B0E49BEA5FA2@grid.unep.ch> Message-ID: I'm not aware of any support for this in MapServer, however by using MapScript you could create script to iterate the features and add new classes to a layer on each unique combination. Then you could save the mapfile for further editing if required. Best regards, Tamas 2009/4/6 Stefan Schwarzer > Hi there, > > is it possible to make mapserver directly detect the "unique values" in a > field of the dbf table? I have twenty or more point and polygon shapefiles, > each having a column with specific thematic data, such as the "protected > area category". But the content of these columns is different. So, defining > these classes by hand would consume much time; and defining them dynamically > via PHP & SQL, then writing a bit of the mapfile code before launching the > whole thing looks a little bit complicated for a relative basic request. > > Thanks for any hints, > > Stef > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagal005 at umn.edu Mon Apr 6 21:39:52 2009 From: nagal005 at umn.edu (new2ms4w) Date: Mon, 6 Apr 2009 21:39:52 -0700 (PDT) Subject: [mapserver-users] label display stops abruptly In-Reply-To: <2922382e0904061042x4b6b85f2q18f305b7d7799a32@mail.gmail.com> References: <1238860430468-2585479.post@n2.nabble.com> <49D9E22D.5157.008F.0@dnr.state.mn.us> <49DA3C11.7080900@geoanalytic.com> <2922382e0904061042x4b6b85f2q18f305b7d7799a32@mail.gmail.com> Message-ID: <1239079192140-2597034.post@n2.nabble.com> Hello, I've tried out both the options suggested above and none of them work. If I use OpenLayers.Layer.MapServer.Untiled, then this problem doesn't occur. But ofcourse, I want to have the cool tiling effect. I'm using Mapserver 5.2.1 with OpenLayers. My data consists of only linear features. And the screen capture is here http://n2.nabble.com/file/n2585479/badlabel.jpg Thanks LABEL_NO_CLIP is so that labels aren't repeated on each tile. what you want here is PARTIALS FALSE in each of your label blocks -- thomas -- View this message in context: http://n2.nabble.com/label-display-stops-abruptly-tp2585479p2597034.html Sent from the Mapserver - User mailing list archive at Nabble.com. From adrian_gh.popa at romtelecom.ro Mon Apr 6 21:41:47 2009 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Tue, 07 Apr 2009 07:41:47 +0300 Subject: [mapserver-users] displaying LINESTRING elements from shapefiles In-Reply-To: References: <49DA01DA.8070403@romtelecom.ro> Message-ID: <49DAD98B.9080307@romtelecom.ro> Hello, Thanks for the example - I will look into it. Cheers, Adrian Rahkonen Jukka wrote: > Hi, > > This layer shows OSM roads for me from the same shapefiles that you are > trying to use. > > LAYER > NAME "OSM_roads" > STATUS ON > DATA "d:\Data\OSM\roads" > TYPE LINE > UNITS METERS > METADATA > "wms_title" "OSM_tiet" > END > CLASS > NAME "roads" > OUTLINECOLOR 0 255 0 > END > PROJECTION > "init=epsg:4326" > END > END > > Check that EXTENT in your mapfile suits the data. > > -Jukka Rahkonen- > > > Adrian Popa wrote: > > >> Hello everybody, >> >> I'm trying to display a map generated from openstreetmaps and >> saved as several shapefile layers. The map was obtained from: >> http://download.geofabrik.de/osm/europe/ >> The shapefile "roads.shp" has a data type of "LINESTRING": >> >> [root at alarms romania-osm-shp]# ogrinfo -al roads.shp | head -30 >> INFO: Open of `roads.shp' >> using driver `ESRI Shapefile' successful. >> >> Layer name: roads >> Geometry: Line String >> Feature Count: 51469 >> Extent: (20.379788, 43.653826) - (29.712869, 48.221387) Layer SRS WKT: >> GEOGCS["GCS_WGS_1984", >> DATUM["WGS_1984", >> SPHEROID["WGS_1984",6378137,298.257223563]], >> PRIMEM["Greenwich",0], >> UNIT["Degree",0.017453292519943295]] >> osm_id: Real (16.0) >> name: String (32.0) >> type: String (16.0) >> oneway: Integer (1.0) >> OGRFeature(roads):0 >> osm_id (Real) = 1349 >> name (String) = Bulevardul Mircea Eliade >> type (String) = tertiary >> oneway (Integer) = 0 >> LINESTRING (26.093111799999999 44.469673499999999,26.093683899999998 >> 44.469124899999997,26.094064299999999 44.468571799999999,26.0961094 >> 44.465648600000002) >> >> I've tried creating the MAP file with a layer type of >> LINE/LINESTRING/POLYGON, but the map would not display the >> layer (however mapserver would generate an image). >> >> My version of mapserver is 4.10.3 (fedora core 8). >> >> My question is: can I display this data type directly with >> mapserver, or do I need to convert it to something else? Is >> my version of mapserver too old to display this data? >> >> Thanks. >> >> Adrian >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroete at iup.physik.uni-bremen.de Tue Apr 7 01:02:57 2009 From: schroete at iup.physik.uni-bremen.de (Heiko =?utf-8?q?Schr=C3=B6ter?=) Date: Tue, 7 Apr 2009 10:02:57 +0200 Subject: [mapserver-users] Layer Object Parameter Substitution from URLusing GIS Message-ID: <200904071002.58138.schroete@iup.physik.uni-bremen.de> On Montag, 6. April 2009 19:57:19 you wrote: Thanks very much. Will check that out. Runtime substitution might not be an option since the values are passed from OpenLayer. What i have figured out OL passes the params in the URL. Heiko > You'll need to use 5.4 to get this functionality. That version add > support to allow you to define > validation strings to lock down what values can be passed for the > variable. Another solution is > to consider using runtime substitution to do something similar. That > works well if the SQL is > pretty much fixed: > > FILTER 'wert=%myval%' > > It's also easier to secure. > > Steve > > >>> On 4/6/2009 at 4:01 AM, in message > > <200904061101.54781.schroete at iup.physik.uni-bremen.de>, Heiko Schr?ter > > wrote: > > Hello, > > > > when passing a 'FILTER' parameter to be changed with the URL to use > > GIS > > > requests, mapserv(5.0.3) fails with: > > loadLayer(): Unknown identifier. Parsing error near (FILTER):(line > > 1) > > > The call is: > > > > http://localhost/cgi-bin/mapserv?MAP=/MapServer/country98/heiko1.map& > > > > LAYERS=karte,grid,psc&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap& > > STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage& > > FORMAT=image/png& > > SRS=epsg:4326&BBOX=-180,7.91,-82.08,105.83& > > WIDTH=256&HEIGHT=256& > > MAP.LAYER[psc].FILTER='wert=0' > > (Linebreaks included for readability) > > > > When omitting this part: " MAP.LAYER[psc].FILTER='wert=0' " the map > > is > > > generated fine (without the proper GIS data of course). > > > > I did read several comments in the archive and the net about this > > issue but > > > haven't found a solution to this problem. > > What do i miss here ? > > > > Thanks and Regards > > Heiko > > > > > > The Mapfile: > > MAP > > NAME WELT > > DEBUG ON > > STATUS ON > > #SIZE 647 320 > > SIZE 800 400 > > IMAGETYPE PNG24 > > IMAGECOLOR 240 240 240 > > SHAPEPATH "data" > > EXTENT -180 -90 180 90 > > UNITS DD > > WEB > > IMAGEPATH "images" > > IMAGEURL "images" > > MINSCALE 50000 > > MAXSCALE 400000000 > > METADATA > > "wms_title" "Example WMS Server" > > "wms_onlineresource" > > "http://localhost/cgi-bin/mapserv?map=heiko.map&" > > > "wms_srs" "epsg:4326 epsg:32661 epsg:32761" > > END > > END > > SYMBOL > > NAME 'circle' > > TYPE ELLIPSE > > POINTS 1 1 END > > FILLED TRUE > > END > > SYMBOL > > NAME 'star' > > TYPE VECTOR > > FILLED TRUE > > POINTS > > 0 .375 > > .35 .375 > > .5 0 > > .65 .375 > > 1 .375 > > .75 .625 > > .875 1 > > .5 .75 > > .125 1 > > .25 .625 > > END > > END > > PROJECTION > > "init=epsg:4326" > > END > > LAYER > > NAME "karte" > > TYPE POLYGON > > STATUS ON > > OPACITY 50 > > DATA "cntry98" > > METADATA > > "wms_title" "karte layer" > > "DESCRIPTION" "Grid" > > END > > PROJECTION > > "init=epsg:4326" > > END > > CLASS > > NAME "karte_color" > > OUTLINECOLOR 60 60 60 > > COLOR 100 100 100 > > SYMBOL 0 > > END > > END > > LAYER > > NAME "grid" > > OPACITY 60 > > METADATA > > "wms_title" "grid layer" > > "DESCRIPTION" "Grid" > > END > > TYPE LINE > > STATUS ON > > PROJECTION > > "init=epsg:4326" > > END > > CLASS > > NAME "Graticule" > > COLOR 0 0 0 > > # Labels comented out for readabilty in the moment > > # LABEL > > # COLOR 0 0 0 > > # #FONT "fritqat" > > # #TYPE truetype > > # MINDISTANCE 1000 > > # SIZE SMALL > > # POSITION LR > > # PARTIALS FALSE > > # BUFFER 5 > > # OUTLINECOLOR 200 200 200 > > # END > > END > > GRID > > LABELFORMAT "DD" > > # LABELFORMAT '%g?' # dec degrees with symbol > > # MINARCS 1 > > MAXARCS 1 > > MININTERVAL 30 > > MAXINTERVAL 60 > > # MINSUBDIVIDE 100 > > MAXSUBDIVIDE 300 > > # LABELFORMAT ?%7.0f m? # nice if a projected SRS > > used > > > # MININTERVAL 20000 > > # MAXSUBDIVIDE 2 > > END > > END # Layer > > > > LAYER > > NAME "psc" > > CONNECTIONTYPE POSTGIS > > OPACITY 80 > > STATUS ON > > METADATA > > "wms_title" "psc layer" > > END > > PROJECTION > > "init=epsg:4326" > > END > > CONNECTION "user=fum password=xyz dbname=foo > > host=localhost" > > > DATA "geocenter from scia_psc" > > FILTER "wert=1" > > TYPE POINT > > CLASS > > COLOR 250 10 10 > > SYMBOL "circle" > > SIZE 7 > > END > > END > > LAYER > > CONNECTIONTYPE POSTGIS > > NAME "nlc" > > OPACITY 80 > > STATUS ON > > METADATA > > "wms_title" "nlc layer" > > END > > PROJECTION > > "init=epsg:4326" > > END > > CONNECTION "user=fum password=xyz dbname=foo > > host=localhost" > > > DATA "geocenter from scia_nlc" > > FILTER "wert=1" > > TYPE POINT > > CLASS > > COLOR 10 250 10 > > SYMBOL "star" > > SIZE 7 > > END > > END > > LAYER > > CONNECTIONTYPE POSTGIS > > NAME "stro3" > > OPACITY 80 > > STATUS ON > > METADATA > > "wms_title" "stro3 layer" > > END > > PROJECTION > > "init=epsg:4326" > > END > > CONNECTION "user=fum password=xyz dbname=foo > > host=localhost" > > > DATA "geocenter from scia_stro3" > > FILTER "wert=1" > > TYPE POINT > > CLASS > > COLOR 10 10 250 > > SYMBOL "circle" > > SIZE 7 > > END > > END > > END # Ende Map > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Clement.MONIER at v-trafic.com Tue Apr 7 01:54:54 2009 From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=) Date: Tue, 7 Apr 2009 10:54:54 +0200 Subject: [mapserver-users] Blank map Message-ID: <0B6D7F516315594DBEFE58178D91BD32119ECDA42A@exchangemm.mm.fr> Hi, MapServer returns blank images since I upgraded to MS4W 2.3.1 + mapserver_ms4w-5.4.0-beta4. Though I've followed the upgrade tips and changed my mapfiles : http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060600.html You'll find as attachment a very simple test case (.map + shapefiles). Here's the request that should (and used to) return a map : http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htdocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=layer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SRS=EPSG:4326&BBOX=2.48,48.82,2.50,48.84&WIDTH=512&HEIGHT=512 I suspect a projection issue because the following request (with a world-wide bbox) does display some features (look for a small green point on the left side) : http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htdocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=layer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SRS=EPSG:4326&BBOX=-90,0,90,180&WIDTH=512&HEIGHT=512 Has anything changed inside the Proj4 library ? Thanks for your help Cl?ment -------------- next part -------------- A non-text attachment was scrubbed... Name: sample.zip Type: application/x-zip-compressed Size: 2277 bytes Desc: sample.zip URL: From schroete at iup.physik.uni-bremen.de Tue Apr 7 03:25:11 2009 From: schroete at iup.physik.uni-bremen.de (Heiko =?utf-8?q?Schr=C3=B6ter?=) Date: Tue, 7 Apr 2009 12:25:11 +0200 Subject: [mapserver-users] Layer Object Parameter Substitution from URLusing GIS In-Reply-To: <49D9FC2E.5157.008F.0@dnr.state.mn.us> References: <200904061101.54781.schroete@iup.physik.uni-bremen.de> <49D9FC2E.5157.008F.0@dnr.state.mn.us> Message-ID: <200904071225.11483.schroete@iup.physik.uni-bremen.de> On Montag, 6. April 2009 19:57:19 you wrote: Hello, the error seems to remain in mapserver 5.4: /usr/lib/cgi-bin/mapserv -v MapServer version 5.4.0-beta4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE http://localhost/cgi-bin/mapserv? MAP=/home/schroete/sciadaten/MapServer/country98/heiko1.map& LAYERS=karte,grid,psc&SERVICE=WMS&VERSION=1.1.1& REQUEST=GetMap&STYLES=& FORMAT=image/png&SRS=epsg:4326&BBOX=-180,-90,180,90& WIDTH=600&HEIGHT=300& map.layer[psc].filter='orbitnr=6758' loadLayer(): Unknown identifier. Parsing error near (orbitnr=6758):(line 1) Mapfile as below. The map is ok without the 'map.layer[]...' stuff. Does a kind soul knows howto do the runtime substitution from within OpenLayer (i know it is not the 100% correct list, but maybe someone has hit this before). Regards Heiko > You'll need to use 5.4 to get this functionality. That version add > support to allow you to define > validation strings to lock down what values can be passed for the > variable. Another solution is > to consider using runtime substitution to do something similar. That > works well if the SQL is > pretty much fixed: > > FILTER 'wert=%myval%' > > It's also easier to secure. > > Steve > > >>> On 4/6/2009 at 4:01 AM, in message > > <200904061101.54781.schroete at iup.physik.uni-bremen.de>, Heiko Schr?ter > > wrote: > > Hello, > > > > when passing a 'FILTER' parameter to be changed with the URL to use > > GIS > > > requests, mapserv(5.0.3) fails with: > > loadLayer(): Unknown identifier. Parsing error near (FILTER):(line > > 1) > > > The call is: > > > > http://localhost/cgi-bin/mapserv?MAP=/MapServer/country98/heiko1.map& > > > > LAYERS=karte,grid,psc&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap& > > STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage& > > FORMAT=image/png& > > SRS=epsg:4326&BBOX=-180,7.91,-82.08,105.83& > > WIDTH=256&HEIGHT=256& > > MAP.LAYER[psc].FILTER='wert=0' > > (Linebreaks included for readability) > > > > When omitting this part: " MAP.LAYER[psc].FILTER='wert=0' " the map > > is > > > generated fine (without the proper GIS data of course). > > > > I did read several comments in the archive and the net about this > > issue but > > > haven't found a solution to this problem. > > What do i miss here ? > > > > Thanks and Regards > > Heiko > > > > > > The Mapfile: > > MAP > > NAME WELT > > DEBUG ON > > STATUS ON > > #SIZE 647 320 > > SIZE 800 400 > > IMAGETYPE PNG24 > > IMAGECOLOR 240 240 240 > > SHAPEPATH "data" > > EXTENT -180 -90 180 90 > > UNITS DD > > WEB > > IMAGEPATH "images" > > IMAGEURL "images" > > MINSCALE 50000 > > MAXSCALE 400000000 > > METADATA > > "wms_title" "Example WMS Server" > > "wms_onlineresource" > > "http://localhost/cgi-bin/mapserv?map=heiko.map&" > > > "wms_srs" "epsg:4326 epsg:32661 epsg:32761" > > END > > END > > SYMBOL > > NAME 'circle' > > TYPE ELLIPSE > > POINTS 1 1 END > > FILLED TRUE > > END > > SYMBOL > > NAME 'star' > > TYPE VECTOR > > FILLED TRUE > > POINTS > > 0 .375 > > .35 .375 > > .5 0 > > .65 .375 > > 1 .375 > > .75 .625 > > .875 1 > > .5 .75 > > .125 1 > > .25 .625 > > END > > END > > PROJECTION > > "init=epsg:4326" > > END > > LAYER > > NAME "karte" > > TYPE POLYGON > > STATUS ON > > OPACITY 50 > > DATA "cntry98" > > METADATA > > "wms_title" "karte layer" > > "DESCRIPTION" "Grid" > > END > > PROJECTION > > "init=epsg:4326" > > END > > CLASS > > NAME "karte_color" > > OUTLINECOLOR 60 60 60 > > COLOR 100 100 100 > > SYMBOL 0 > > END > > END > > LAYER > > NAME "grid" > > OPACITY 60 > > METADATA > > "wms_title" "grid layer" > > "DESCRIPTION" "Grid" > > END > > TYPE LINE > > STATUS ON > > PROJECTION > > "init=epsg:4326" > > END > > CLASS > > NAME "Graticule" > > COLOR 0 0 0 > > # Labels comented out for readabilty in the moment > > # LABEL > > # COLOR 0 0 0 > > # #FONT "fritqat" > > # #TYPE truetype > > # MINDISTANCE 1000 > > # SIZE SMALL > > # POSITION LR > > # PARTIALS FALSE > > # BUFFER 5 > > # OUTLINECOLOR 200 200 200 > > # END > > END > > GRID > > LABELFORMAT "DD" > > # LABELFORMAT '%g?' # dec degrees with symbol > > # MINARCS 1 > > MAXARCS 1 > > MININTERVAL 30 > > MAXINTERVAL 60 > > # MINSUBDIVIDE 100 > > MAXSUBDIVIDE 300 > > # LABELFORMAT ?%7.0f m? # nice if a projected SRS > > used > > > # MININTERVAL 20000 > > # MAXSUBDIVIDE 2 > > END > > END # Layer > > > > LAYER > > NAME "psc" > > CONNECTIONTYPE POSTGIS > > OPACITY 80 > > STATUS ON > > METADATA > > "wms_title" "psc layer" > > END > > PROJECTION > > "init=epsg:4326" > > END > > CONNECTION "user=fum password=xyz dbname=foo > > host=localhost" > > > DATA "geocenter from scia_psc" > > FILTER "wert=1" > > TYPE POINT > > CLASS > > COLOR 250 10 10 > > SYMBOL "circle" > > SIZE 7 > > END > > END > > LAYER > > CONNECTIONTYPE POSTGIS > > NAME "nlc" > > OPACITY 80 > > STATUS ON > > METADATA > > "wms_title" "nlc layer" > > END > > PROJECTION > > "init=epsg:4326" > > END > > CONNECTION "user=fum password=xyz dbname=foo > > host=localhost" > > > DATA "geocenter from scia_nlc" > > FILTER "wert=1" > > TYPE POINT > > CLASS > > COLOR 10 250 10 > > SYMBOL "star" > > SIZE 7 > > END > > END > > LAYER > > CONNECTIONTYPE POSTGIS > > NAME "stro3" > > OPACITY 80 > > STATUS ON > > METADATA > > "wms_title" "stro3 layer" > > END > > PROJECTION > > "init=epsg:4326" > > END > > CONNECTION "user=fum password=xyz dbname=foo > > host=localhost" > > > DATA "geocenter from scia_stro3" > > FILTER "wert=1" > > TYPE POINT > > CLASS > > COLOR 10 10 250 > > SYMBOL "circle" > > SIZE 7 > > END > > END > > END # Ende Map > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pauljame at gmail.com Tue Apr 7 06:18:23 2009 From: pauljame at gmail.com (Paul james) Date: Tue, 7 Apr 2009 10:18:23 -0300 Subject: [mapserver-users] getExtent(c#) with Postgis data ... In-Reply-To: References: <33fad6880904061129x65397b7ew5f4de9a4daeaa0dc@mail.gmail.com> <33fad6880904061418n2d0bb3a3m827d41a668c63f59@mail.gmail.com> <33fad6880904061424gcc0473coa3f03de1a7fc6afd@mail.gmail.com> Message-ID: <33fad6880904070618t369b70e1q18f8330478b85adf@mail.gmail.com> Thanks Tamas... But now I?m a little lost... Am I supposed to create a OGR layer? Do you have any sample how to get extent?s layer using OGR? P On Mon, Apr 6, 2009 at 6:30 PM, Tamas Szekeres wrote: > Choose a package with the best match for your compiler and architecture > from here: > http://vbkto.dyndns.org:1280/sdk/index.html > > > Best regards, > > Tamas > > > > 2009/4/6 Paul james > >> Where can I find ogr_csharp.dll ? >> >> Thanks Tamas! >> >> Paul >> >> >> On Mon, Apr 6, 2009 at 6:22 PM, Tamas Szekeres wrote: >> >>> Paul, >>> >>> Unfortunately this function is not implemented by the MapServer postgis >>> driver, you might want to use the OGR C# API (ie. ogr_csharp.dll) for this >>> purpose. >>> >>> >>> Best regards, >>> >>> Tamas >>> >>> >>> >>> 2009/4/6 Paul james >>> >>>> All value from getExtent (Postgis layer) is : 3.4028234663852886E+38 >>>> >>>> Is it a bug? >>>> >>>> >>>> >>>> On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres wrote: >>>> >>>>> Why don't? That function have already been exposed for *layerObj* with >>>>> the following signature: >>>>> >>>>> *public rectObj getExtent(void)* >>>>> >>>>> Best regards, >>>>> >>>>> Tamas >>>>> >>>>> >>>>> >>>>> 2009/4/6 Paul james >>>>> >>>>>> Hello, It seems that getExtent (c#) is not implemented... >>>>>> Any other solution to get extent of a layer using mapscript? >>>>>> >>>>>> Paul >>>>>> >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue Apr 7 06:52:10 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 07 Apr 2009 08:52:10 -0500 Subject: [mapserver-users] Layer Object Parameter Substitution fromURLusing GIS Message-ID: <49DB143B0200008F00022A36@co5.dnr.state.mn.us> Hi Heiko: Two things: 1) There's an error in your URL. The syntax should be something like: map.layer[psc]=FILTER+'orbitnr=6758' but you'd need to escape the ' and = characters in the URL. 2) Setting extra vars in OpenLayers is easy. Something like this would work: myLayer = new OpenLayers.Layer.MapServer( 'stuff', 'http://some.site.com/cgi-bin/mapserv?map=/some/mapfile.map', { layers:'stuff', map_transparent: 'true', somevar: 'somevalue', }, { ratio:1, singleTile:true, transitionEffect:'resize', isBaseLayer:false } ); You can then modify the content of the 'somevar' variable. With code like: myLayer.params.somevar = 'somenewvalue'; This will tag somevar=somenewvalue onto the URL passed to MapServer. Steve >>> Heiko Schr?ter 04/07/09 5:26 AM >>> On Montag, 6. April 2009 19:57:19 you wrote: Hello, the error seems to remain in mapserver 5.4: /usr/lib/cgi-bin/mapserv -v MapServer version 5.4.0-beta4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE http://localhost/cgi-bin/mapserv? MAP=/home/schroete/sciadaten/MapServer/country98/heiko1.map& LAYERS=karte,grid,psc&SERVICE=WMS&VERSION=1.1.1& REQUEST=GetMap&STYLES=& FORMAT=image/png&SRS=epsg:4326&BBOX=-180,-90,180,90& WIDTH=600&HEIGHT=300& map.layer[psc].filter='orbitnr=6758' loadLayer(): Unknown identifier. Parsing error near (orbitnr=6758):(line 1) Mapfile as below. The map is ok without the 'map.layer[]...' stuff. Does a kind soul knows howto do the runtime substitution from within OpenLayer (i know it is not the 100% correct list, but maybe someone has hit this before). Regards Heiko > You'll need to use 5.4 to get this functionality. That version add > support to allow you to define > validation strings to lock down what values can be passed for the > variable. Another solution is > to consider using runtime substitution to do something similar. That > works well if the SQL is > pretty much fixed: > > FILTER 'wert=%myval%' > > It's also easier to secure. > > Steve > > >>> On 4/6/2009 at 4:01 AM, in message > > <200904061101.54781.schroete at iup.physik.uni-bremen.de>, Heiko Schr?ter > > wrote: > > Hello, > > > > when passing a 'FILTER' parameter to be changed with the URL to use > > GIS > > > requests, mapserv(5.0.3) fails with: > > loadLayer(): Unknown identifier. Parsing error near (FILTER):(line > > 1) > > > The call is: > > > > http://localhost/cgi-bin/mapserv?MAP=/MapServer/country98/heiko1.map& > > > > LAYERS=karte,grid,psc&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap& > > STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage& > > FORMAT=image/png& > > SRS=epsg:4326&BBOX=-180,7.91,-82.08,105.83& > > WIDTH=256&HEIGHT=256& > > MAP.LAYER[psc].FILTER='wert=0' > > (Linebreaks included for readability) > > > > When omitting this part: " MAP.LAYER[psc].FILTER='wert=0' " the map > > is > > > generated fine (without the proper GIS data of course). > > > > I did read several comments in the archive and the net about this > > issue but > > > haven't found a solution to this problem. > > What do i miss here ? > > > > Thanks and Regards > > Heiko > > > > > > The Mapfile: > > MAP > > NAME WELT > > DEBUG ON > > STATUS ON > > #SIZE 647 320 > > SIZE 800 400 > > IMAGETYPE PNG24 > > IMAGECOLOR 240 240 240 > > SHAPEPATH "data" > > EXTENT -180 -90 180 90 > > UNITS DD > > WEB > > IMAGEPATH "images" > > IMAGEURL "images" > > MINSCALE 50000 > > MAXSCALE 400000000 > > METADATA > > "wms_title" "Example WMS Server" > > "wms_onlineresource" > > "http://localhost/cgi-bin/mapserv?map=heiko.map&" > > > "wms_srs" "epsg:4326 epsg:32661 epsg:32761" > > END > > END > > SYMBOL > > NAME 'circle' > > TYPE ELLIPSE > > POINTS 1 1 END > > FILLED TRUE > > END > > SYMBOL > > NAME 'star' > > TYPE VECTOR > > FILLED TRUE > > POINTS > > 0 .375 > > .35 .375 > > .5 0 > > .65 .375 > > 1 .375 > > .75 .625 > > .875 1 > > .5 .75 > > .125 1 > > .25 .625 > > END > > END > > PROJECTION > > "init=epsg:4326" > > END > > LAYER > > NAME "karte" > > TYPE POLYGON > > STATUS ON > > OPACITY 50 > > DATA "cntry98" > > METADATA > > "wms_title" "karte layer" > > "DESCRIPTION" "Grid" > > END > > PROJECTION > > "init=epsg:4326" > > END > > CLASS > > NAME "karte_color" > > OUTLINECOLOR 60 60 60 > > COLOR 100 100 100 > > SYMBOL 0 > > END > > END > > LAYER > > NAME "grid" > > OPACITY 60 > > METADATA > > "wms_title" "grid layer" > > "DESCRIPTION" "Grid" > > END > > TYPE LINE > > STATUS ON > > PROJECTION > > "init=epsg:4326" > > END > > CLASS > > NAME "Graticule" > > COLOR 0 0 0 > > # Labels comented out for readabilty in the moment > > # LABEL > > # COLOR 0 0 0 > > # #FONT "fritqat" > > # #TYPE truetype > > # MINDISTANCE 1000 > > # SIZE SMALL > > # POSITION LR > > # PARTIALS FALSE > > # BUFFER 5 > > # OUTLINECOLOR 200 200 200 > > # END > > END > > GRID > > LABELFORMAT "DD" > > # LABELFORMAT '%g?' # dec degrees with symbol > > # MINARCS 1 > > MAXARCS 1 > > MININTERVAL 30 > > MAXINTERVAL 60 > > # MINSUBDIVIDE 100 > > MAXSUBDIVIDE 300 > > # LABELFORMAT ?%7.0f m? # nice if a projected SRS > > used > > > # MININTERVAL 20000 > > # MAXSUBDIVIDE 2 > > END > > END # Layer > > > > LAYER > > NAME "psc" > > CONNECTIONTYPE POSTGIS > > OPACITY 80 > > STATUS ON > > METADATA > > "wms_title" "psc layer" > > END > > PROJECTION > > "init=epsg:4326" > > END > > CONNECTION "user=fum password=xyz dbname=foo > > host=localhost" > > > DATA "geocenter from scia_psc" > > FILTER "wert=1" > > TYPE POINT > > CLASS > > COLOR 250 10 10 > > SYMBOL "circle" > > SIZE 7 > > END > > END > > LAYER > > CONNECTIONTYPE POSTGIS > > NAME "nlc" > > OPACITY 80 > > STATUS ON > > METADATA > > "wms_title" "nlc layer" > > END > > PROJECTION > > "init=epsg:4326" > > END > > CONNECTION "user=fum password=xyz dbname=foo > > host=localhost" > > > DATA "geocenter from scia_nlc" > > FILTER "wert=1" > > TYPE POINT > > CLASS > > COLOR 10 250 10 > > SYMBOL "star" > > SIZE 7 > > END > > END > > LAYER > > CONNECTIONTYPE POSTGIS > > NAME "stro3" > > OPACITY 80 > > STATUS ON > > METADATA > > "wms_title" "stro3 layer" > > END > > PROJECTION > > "init=epsg:4326" > > END > > CONNECTION "user=fum password=xyz dbname=foo > > host=localhost" > > > DATA "geocenter from scia_stro3" > > FILTER "wert=1" > > TYPE POINT > > CLASS > > COLOR 10 10 250 > > SYMBOL "circle" > > SIZE 7 > > END > > END > > END # Ende Map > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From valemunoz at gmail.com Tue Apr 7 08:49:30 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Tue, 7 Apr 2009 11:49:30 -0400 Subject: [mapserver-users] Symbol problem Message-ID: <4b56aefe0904070849o5a70118dm600da7c1adcc3aa0@mail.gmail.com> Hi I have problem with a Symbol, I define some configurations parameters for my labels, this works for labels but not for symbols if you look the image attached the red labels are from the symbol.. I need to display on the map only the symbols of the labels and not symbols with no labels. Layer: LAYER NAME 'centro_urbano_punto' TYPE POINT DATA 'centro_urbano_punto.shp' METADATA 'wms_title' 'centro_urbano_punto' END STATUS DEFAULT MAXSCALE 1988400 TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END LABELITEM 'NAME' CLASS NAME 'centro_urbano_punto' STYLE SYMBOL 'circle' SIZE 3 OUTLINECOLOR 161 189 196 COLOR 0 0 0 END LABEL SIZE 6 TYPE TRUETYPE FONT georgia ANTIALIAS TRUE BUFFER 20 COLOR 110 0 0 OUTLINECOLOR 255 255 255 OUTLINEWIDTH 3 FORCE false MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 2 0 PARTIALS FALSE POSITION AUTO END END END #Circle symbol SYMBOL NAME 'CIRCLE' TYPE ellipse ANTIALIAS TRUE FILLED true POINTS 1 1 END END I attach image help please... RG -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: img_symbol.JPG Type: image/jpeg Size: 7716 bytes Desc: not available URL: From valemunoz at gmail.com Tue Apr 7 10:00:53 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Tue, 7 Apr 2009 13:00:53 -0400 Subject: [mapserver-users] Problem with projection Message-ID: <4b56aefe0904071000s5c2934a7rb7778f34c99f7ac2@mail.gmail.com> HI I think I have problems with my PROJECTION but i do not why.. i have a list of adress with latitude and longitude of them but the point is not in the correct position. please look the image i mark with X where should be Attach image -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: img_proj.JPG Type: image/jpeg Size: 9170 bytes Desc: not available URL: From valemunoz at gmail.com Tue Apr 7 10:02:36 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Tue, 7 Apr 2009 13:02:36 -0400 Subject: [mapserver-users] Re: Problem with projection In-Reply-To: <4b56aefe0904071000s5c2934a7rb7778f34c99f7ac2@mail.gmail.com> References: <4b56aefe0904071000s5c2934a7rb7778f34c99f7ac2@mail.gmail.com> Message-ID: <4b56aefe0904071002i7e87976fg8a141d6a4e9503ef@mail.gmail.com> I am sorry I forget something, my projection is: PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END 2009/4/7 Valeria Mu?oz > HI > > I think I have problems with my PROJECTION but i do not why.. i have a > list of adress with latitude and longitude of them but the point is not in > the correct position. please look the image i mark with X where should be > > > > Attach image > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue Apr 7 11:29:12 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 7 Apr 2009 20:29:12 +0200 Subject: [mapserver-users] getExtent(c#) with Postgis data ... In-Reply-To: <33fad6880904070618t369b70e1q18f8330478b85adf@mail.gmail.com> References: <33fad6880904061129x65397b7ew5f4de9a4daeaa0dc@mail.gmail.com> <33fad6880904061418n2d0bb3a3m827d41a668c63f59@mail.gmail.com> <33fad6880904061424gcc0473coa3f03de1a7fc6afd@mail.gmail.com> <33fad6880904070618t369b70e1q18f8330478b85adf@mail.gmail.com> Message-ID: Paul, You can refer to the ogrinfo C# sample application in the gdal source tree: http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs Best regards, Tamas 2009/4/7 Paul james > Thanks Tamas... > > But now I?m a little lost... Am I supposed to create a OGR layer? > Do you have any sample how to get extent?s layer using OGR? > > P > > > On Mon, Apr 6, 2009 at 6:30 PM, Tamas Szekeres wrote: > >> Choose a package with the best match for your compiler and architecture >> from here: >> http://vbkto.dyndns.org:1280/sdk/index.html >> >> >> Best regards, >> >> Tamas >> >> >> >> 2009/4/6 Paul james >> >>> Where can I find ogr_csharp.dll ? >>> >>> Thanks Tamas! >>> >>> Paul >>> >>> >>> On Mon, Apr 6, 2009 at 6:22 PM, Tamas Szekeres wrote: >>> >>>> Paul, >>>> >>>> Unfortunately this function is not implemented by the MapServer postgis >>>> driver, you might want to use the OGR C# API (ie. ogr_csharp.dll) for this >>>> purpose. >>>> >>>> >>>> Best regards, >>>> >>>> Tamas >>>> >>>> >>>> >>>> 2009/4/6 Paul james >>>> >>>>> All value from getExtent (Postgis layer) is : 3.4028234663852886E+38 >>>>> >>>>> Is it a bug? >>>>> >>>>> >>>>> >>>>> On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres wrote: >>>>> >>>>>> Why don't? That function have already been exposed for *layerObj*with the following signature: >>>>>> >>>>>> *public rectObj getExtent(void)* >>>>>> >>>>>> Best regards, >>>>>> >>>>>> Tamas >>>>>> >>>>>> >>>>>> >>>>>> 2009/4/6 Paul james >>>>>> >>>>>>> Hello, It seems that getExtent (c#) is not implemented... >>>>>>> Any other solution to get extent of a layer using mapscript? >>>>>>> >>>>>>> Paul >>>>>>> >>>>>>> _______________________________________________ >>>>>>> mapserver-users mailing list >>>>>>> mapserver-users at lists.osgeo.org >>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pauljame at gmail.com Tue Apr 7 12:00:18 2009 From: pauljame at gmail.com (Paul james) Date: Tue, 7 Apr 2009 16:00:18 -0300 Subject: [mapserver-users] getExtent(c#) with Postgis data ... In-Reply-To: References: <33fad6880904061129x65397b7ew5f4de9a4daeaa0dc@mail.gmail.com> <33fad6880904061418n2d0bb3a3m827d41a668c63f59@mail.gmail.com> <33fad6880904061424gcc0473coa3f03de1a7fc6afd@mail.gmail.com> <33fad6880904070618t369b70e1q18f8330478b85adf@mail.gmail.com> Message-ID: <33fad6880904071200k42ae4facj52f52183dc541602@mail.gmail.com> Thanks! But I resolved my problem using shapeObj, without OGR... My code: _layer.open(); shapeObj _shape = new shapeObj((int)_layer.type); _layer.getShape(_shape, -1, Convert.ToInt32(__id)); _map.extent.maxx = _shape.bounds.maxx +0.1; _map.extent.maxy = _shape.bounds.maxy + 0.1; _map.extent.minx = _shape.bounds.minx - 0.1; _map.extent.miny = _shape.bounds.miny - 0.1; On Tue, Apr 7, 2009 at 3:29 PM, Tamas Szekeres wrote: > Paul, > > You can refer to the ogrinfo C# sample application in the gdal source tree: > http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs > > Best regards, > > Tamas > > > > 2009/4/7 Paul james > > Thanks Tamas... >> >> But now I?m a little lost... Am I supposed to create a OGR layer? >> Do you have any sample how to get extent?s layer using OGR? >> >> P >> >> >> On Mon, Apr 6, 2009 at 6:30 PM, Tamas Szekeres wrote: >> >>> Choose a package with the best match for your compiler and architecture >>> from here: >>> http://vbkto.dyndns.org:1280/sdk/index.html >>> >>> >>> Best regards, >>> >>> Tamas >>> >>> >>> >>> 2009/4/6 Paul james >>> >>>> Where can I find ogr_csharp.dll ? >>>> >>>> Thanks Tamas! >>>> >>>> Paul >>>> >>>> >>>> On Mon, Apr 6, 2009 at 6:22 PM, Tamas Szekeres wrote: >>>> >>>>> Paul, >>>>> >>>>> Unfortunately this function is not implemented by the MapServer postgis >>>>> driver, you might want to use the OGR C# API (ie. ogr_csharp.dll) for this >>>>> purpose. >>>>> >>>>> >>>>> Best regards, >>>>> >>>>> Tamas >>>>> >>>>> >>>>> >>>>> 2009/4/6 Paul james >>>>> >>>>>> All value from getExtent (Postgis layer) is : 3.4028234663852886E+38 >>>>>> >>>>>> Is it a bug? >>>>>> >>>>>> >>>>>> >>>>>> On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres wrote: >>>>>> >>>>>>> Why don't? That function have already been exposed for *layerObj*with the following signature: >>>>>>> >>>>>>> *public rectObj getExtent(void)* >>>>>>> >>>>>>> Best regards, >>>>>>> >>>>>>> Tamas >>>>>>> >>>>>>> >>>>>>> >>>>>>> 2009/4/6 Paul james >>>>>>> >>>>>>>> Hello, It seems that getExtent (c#) is not implemented... >>>>>>>> Any other solution to get extent of a layer using mapscript? >>>>>>>> >>>>>>>> Paul >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> mapserver-users mailing list >>>>>>>> mapserver-users at lists.osgeo.org >>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matej at matnet.net Tue Apr 7 12:04:50 2009 From: matej at matnet.net (Matej) Date: Tue, 7 Apr 2009 21:04:50 +0200 Subject: [mapserver-users] getExtent(c#) with Postgis data ... In-Reply-To: References: <33fad6880904061129x65397b7ew5f4de9a4daeaa0dc@mail.gmail.com><33fad6880904061418n2d0bb3a3m827d41a668c63f59@mail.gmail.com><33fad6880904061424gcc0473coa3f03de1a7fc6afd@mail.gmail.com><33fad6880904070618t369b70e1q18f8330478b85adf@mail.gmail.com> Message-ID: <7DB8072A0E2E4BAC8F4E9A71767EF9A2@Leeml> Hi, this might not be directly connected but I am planning to build a client desktop app which should be able to connect to the PostGIS db that is running on the remote server and display objects from it / add new etc. Is this possible in C# with fwtools without the need to have the Mapserver running on every client computer? Thanks and sorry for interrupting, Matej ----- Original Message ----- From: Tamas Szekeres To: Paul james Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, April 07, 2009 8:29 PM Subject: Re: [mapserver-users] getExtent(c#) with Postgis data ... Paul, You can refer to the ogrinfo C# sample application in the gdal source tree: http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs Best regards, Tamas 2009/4/7 Paul james Thanks Tamas... But now I?m a little lost... Am I supposed to create a OGR layer? Do you have any sample how to get extent?s layer using OGR? P On Mon, Apr 6, 2009 at 6:30 PM, Tamas Szekeres wrote: Choose a package with the best match for your compiler and architecture from here: http://vbkto.dyndns.org:1280/sdk/index.html Best regards, Tamas 2009/4/6 Paul james Where can I find ogr_csharp.dll ? Thanks Tamas! Paul On Mon, Apr 6, 2009 at 6:22 PM, Tamas Szekeres wrote: Paul, Unfortunately this function is not implemented by the MapServer postgis driver, you might want to use the OGR C# API (ie. ogr_csharp.dll) for this purpose. Best regards, Tamas 2009/4/6 Paul james All value from getExtent (Postgis layer) is : 3.4028234663852886E+38 Is it a bug? On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres wrote: Why don't? That function have already been exposed for layerObj with the following signature: public rectObj getExtent(void) Best regards, Tamas 2009/4/6 Paul james Hello, It seems that getExtent (c#) is not implemented... Any other solution to get extent of a layer using mapscript? Paul _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Joseph4774 at hotmail.com Tue Apr 7 12:07:18 2009 From: Joseph4774 at hotmail.com (Joseph4774) Date: Tue, 7 Apr 2009 12:07:18 -0700 (PDT) Subject: [mapserver-users] problem with truetype fonts. Message-ID: <1239131238474-2600843.post@n2.nabble.com> Hi Everyone, I have problem with location of truetype fonts when I choice outputFormat PDF . It seems that with outputFormat PDF mapserver choices the lower left corner of the bounding box of the glyph and not the center center of the glyph.But everything works correctly when i change the outputFormat to PNG. I attached a folder with three test files to give more information about my problem. one is the true font Iam using for the test the secound one is the png file and the third is hte pdf file. SendToPDFLib.zip I hope i've explained my problem well and iam sorry for my bad English. Iam using csharp_script.dll .net solution and the PDFlib.dll for PDF output. and her is a part of the code that i user to generate pdf file map: mapObj MSMap = new mapObj("mapfile"); outputFormatObj format = new outputFormatObj("pdf", "pdf"); MSMap.setOutputFormat(format); imageObj img = MSMap.drawQuery(); img.save("imgFullPath", null); img.Dispose(); and the test mapfile : MAP NAME TEST STATUS ON SIZE 740 460 EXTENT 693618 6171475 693855 6171703 UNITS METERS FONTSET "/proj/Test/div/font.txt" IMAGETYPE png24 OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" IMAGEMODE RGB EXTENSION "png" END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END WEB # # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root # of the drive where the .MAP file resides. # IMAGEPATH "/output" IMAGEURL "/tmp/" # LOG "/tmp/gmap.log" # METADATA "TITLE" "Informationer p? Kort, Mors? Kommune" END END LAYER GROUP Ledninger NAME Ledning TYPE LINE STATUS ON CONNECTIONTYPE OGR CONNECTION "/proj/test/linie.TAB" #STYLEITEM "AUTO" CLASS NAME ledninger STYLE COLOR 0 0 255 WIDTH 2 END END END LAYER GROUP Knuder NAME Knuder TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "/proj/Test/linie.TAB" CLASS NAME knuder STYLE COLOR 255 0 0 OUTLINECOLOR 255 0 0 #BACKGROUNDCOLOR 0 0 0 SIZE 30 Width 1 SYMBOL "test01" END END END SYMBOL NAME "test01" TYPE TRUETYPE FONT elgraf2009 POSITION CC FILLED false ANTIALIAS true CHARACTER "2" END END MAP -- View this message in context: http://n2.nabble.com/problem-with-truetype-fonts.-tp2600843p2600843.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue Apr 7 13:12:13 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 7 Apr 2009 22:12:13 +0200 Subject: [mapserver-users] getExtent(c#) with Postgis data ... In-Reply-To: <33fad6880904071200k42ae4facj52f52183dc541602@mail.gmail.com> References: <33fad6880904061129x65397b7ew5f4de9a4daeaa0dc@mail.gmail.com> <33fad6880904061418n2d0bb3a3m827d41a668c63f59@mail.gmail.com> <33fad6880904061424gcc0473coa3f03de1a7fc6afd@mail.gmail.com> <33fad6880904070618t369b70e1q18f8330478b85adf@mail.gmail.com> <33fad6880904071200k42ae4facj52f52183dc541602@mail.gmail.com> Message-ID: I tought you were looking for the layer extent not just the extent of a shape. Tamas 2009/4/7 Paul james > Thanks! > But I resolved my problem using shapeObj, without OGR... > My code: > > _layer.open(); > shapeObj _shape = new shapeObj((int)_layer.type); > _layer.getShape(_shape, -1, Convert.ToInt32(__id)); > > _map.extent.maxx = _shape.bounds.maxx +0.1; > _map.extent.maxy = _shape.bounds.maxy + 0.1; > _map.extent.minx = _shape.bounds.minx - 0.1; > _map.extent.miny = _shape.bounds.miny - 0.1; > > > On Tue, Apr 7, 2009 at 3:29 PM, Tamas Szekeres wrote: > >> Paul, >> >> You can refer to the ogrinfo C# sample application in the gdal source >> tree: >> http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs >> >> Best regards, >> >> Tamas >> >> >> >> 2009/4/7 Paul james >> >> Thanks Tamas... >>> >>> But now I?m a little lost... Am I supposed to create a OGR layer? >>> Do you have any sample how to get extent?s layer using OGR? >>> >>> P >>> >>> >>> On Mon, Apr 6, 2009 at 6:30 PM, Tamas Szekeres wrote: >>> >>>> Choose a package with the best match for your compiler and architecture >>>> from here: >>>> http://vbkto.dyndns.org:1280/sdk/index.html >>>> >>>> >>>> Best regards, >>>> >>>> Tamas >>>> >>>> >>>> >>>> 2009/4/6 Paul james >>>> >>>>> Where can I find ogr_csharp.dll ? >>>>> >>>>> Thanks Tamas! >>>>> >>>>> Paul >>>>> >>>>> >>>>> On Mon, Apr 6, 2009 at 6:22 PM, Tamas Szekeres wrote: >>>>> >>>>>> Paul, >>>>>> >>>>>> Unfortunately this function is not implemented by the MapServer >>>>>> postgis driver, you might want to use the OGR C# API (ie. ogr_csharp.dll) >>>>>> for this purpose. >>>>>> >>>>>> >>>>>> Best regards, >>>>>> >>>>>> Tamas >>>>>> >>>>>> >>>>>> >>>>>> 2009/4/6 Paul james >>>>>> >>>>>>> All value from getExtent (Postgis layer) is : 3.4028234663852886E+38 >>>>>>> >>>>>>> Is it a bug? >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres wrote: >>>>>>> >>>>>>>> Why don't? That function have already been exposed for *layerObj*with the following signature: >>>>>>>> >>>>>>>> *public rectObj getExtent(void)* >>>>>>>> >>>>>>>> Best regards, >>>>>>>> >>>>>>>> Tamas >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> 2009/4/6 Paul james >>>>>>>> >>>>>>>>> Hello, It seems that getExtent (c#) is not implemented... >>>>>>>>> Any other solution to get extent of a layer using mapscript? >>>>>>>>> >>>>>>>>> Paul >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> mapserver-users mailing list >>>>>>>>> mapserver-users at lists.osgeo.org >>>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Tue Apr 7 13:16:23 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Tue, 7 Apr 2009 16:16:23 -0400 Subject: [mapserver-users] VALIDATION item Message-ID: Hi When I call mapObj.save(), I see a new tag 'VALIDATION' in layer section of map file. It just contains metadata of layer. There is no mention of this item in the online documentation. What is this item 'VALIDATION'? Is it replacement of METADATA or METADATA will continue to be there. Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue Apr 7 13:17:03 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 7 Apr 2009 22:17:03 +0200 Subject: [mapserver-users] getExtent(c#) with Postgis data ... In-Reply-To: <7DB8072A0E2E4BAC8F4E9A71767EF9A2@Leeml> References: <33fad6880904061129x65397b7ew5f4de9a4daeaa0dc@mail.gmail.com> <33fad6880904061418n2d0bb3a3m827d41a668c63f59@mail.gmail.com> <33fad6880904061424gcc0473coa3f03de1a7fc6afd@mail.gmail.com> <33fad6880904070618t369b70e1q18f8330478b85adf@mail.gmail.com> <7DB8072A0E2E4BAC8F4E9A71767EF9A2@Leeml> Message-ID: Matej Yes it's definitely the case. You application should set a reference to the managed mapscript_csharp.dll assembly and it will implicitly load furher unmanaged dlls to provide the desired functionality. Best regards, Tamas 2009/4/7 Matej > Hi, > > this might not be directly connected but I am planning to build a client > desktop app which should be able to connect to the PostGIS db that is > running on the remote server and display objects from it / add new etc. > > Is this possible in C# with fwtools without the need to have the Mapserver > running on every client computer? > > Thanks and sorry for interrupting, > Matej > > ----- Original Message ----- > *From:* Tamas Szekeres > *To:* Paul james > *Cc:* mapserver-users at lists.osgeo.org > *Sent:* Tuesday, April 07, 2009 8:29 PM > *Subject:* Re: [mapserver-users] getExtent(c#) with Postgis data ... > > Paul, > > You can refer to the ogrinfo C# sample application in the gdal source tree: > http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs > > Best regards, > > Tamas > > > > 2009/4/7 Paul james > >> Thanks Tamas... >> >> But now I?m a little lost... Am I supposed to create a OGR layer? >> Do you have any sample how to get extent?s layer using OGR? >> >> P >> >> >> On Mon, Apr 6, 2009 at 6:30 PM, Tamas Szekeres wrote: >> >>> Choose a package with the best match for your compiler and architecture >>> from here: >>> http://vbkto.dyndns.org:1280/sdk/index.html >>> >>> >>> Best regards, >>> >>> Tamas >>> >>> >>> >>> 2009/4/6 Paul james >>> >>>> Where can I find ogr_csharp.dll ? >>>> >>>> Thanks Tamas! >>>> >>>> Paul >>>> >>>> >>>> On Mon, Apr 6, 2009 at 6:22 PM, Tamas Szekeres wrote: >>>> >>>>> Paul, >>>>> >>>>> Unfortunately this function is not implemented by the MapServer postgis >>>>> driver, you might want to use the OGR C# API (ie. ogr_csharp.dll) for this >>>>> purpose. >>>>> >>>>> >>>>> Best regards, >>>>> >>>>> Tamas >>>>> >>>>> >>>>> >>>>> 2009/4/6 Paul james >>>>> >>>>>> All value from getExtent (Postgis layer) is : 3.4028234663852886E+38 >>>>>> >>>>>> Is it a bug? >>>>>> >>>>>> >>>>>> >>>>>> On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres wrote: >>>>>> >>>>>>> Why don't? That function have already been exposed for *layerObj*with the following signature: >>>>>>> >>>>>>> *public rectObj getExtent(void)* >>>>>>> >>>>>>> Best regards, >>>>>>> >>>>>>> Tamas >>>>>>> >>>>>>> >>>>>>> >>>>>>> 2009/4/6 Paul james >>>>>>> >>>>>>>> Hello, It seems that getExtent (c#) is not implemented... >>>>>>>> Any other solution to get extent of a layer using mapscript? >>>>>>>> >>>>>>>> Paul >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> mapserver-users mailing list >>>>>>>> mapserver-users at lists.osgeo.org >>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > ------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Tue Apr 7 13:27:59 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 07 Apr 2009 16:27:59 -0400 Subject: [mapserver-users] VALIDATION item In-Reply-To: References: Message-ID: <49DBB74F.1070302@mapgears.com> Murty Maganti wrote: > > When I call mapObj.save(), I see a new tag ?VALIDATION? in layer section > of map file. It just contains metadata of layer. There is no mention of > this item in the online documentation. What is this item ?VALIDATION?? > Is it replacement of METADATA or METADATA will continue to be there. > > That's a bug, I just created a ticket for it and will make sure that's fixed in the 5.4.0 release: http://trac.osgeo.org/mapserver/ticket/2970 Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at dnr.state.mn.us Tue Apr 7 13:32:01 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 07 Apr 2009 15:32:01 -0500 Subject: [mapserver-users] VALIDATION item In-Reply-To: References: Message-ID: <49DB71F1.5157.008F.0@dnr.state.mn.us> Oh yeah, documentation, knew I forgot something. The VALIDATION block is intended as a place to collect rules about validating input to MapServer via the CGI. At the moment that is limited to: - mapfile parameters that accept arbitrary strings (e.g. FILTER or EXPRESSION) - qstrings variable for attribute queries The worry was that the METADATA block was being over used. This new block also allows for more concise definitions. RFC 44 on the website demonstrates the syntax. We'll get the error you note fixed for the 1st RC. Steve >>> On 4/7/2009 at 3:16 PM, in message , "Murty Maganti" wrote: > Hi > > > > When I call mapObj.save(), I see a new tag 'VALIDATION' in layer section > of map file. It just contains metadata of layer. There is no mention of > this item in the online documentation. What is this item 'VALIDATION'? > Is it replacement of METADATA or METADATA will continue to be there. > > > > Thanks > > Murty From cjauvin at gmail.com Tue Apr 7 14:23:20 2009 From: cjauvin at gmail.com (Christian Jauvin) Date: Tue, 7 Apr 2009 17:23:20 -0400 Subject: [mapserver-users] Querying type=circle layer Message-ID: Hi, I use Python-Mapscript 5.2 on Windows. I have a layer of type=circle on which I dynamically add features: layer = .. circle_shape = shapeObj(MS_SHAPE_LINE) p1 = pointObj(..) p2 = pointObj(..) line = lineObj() line.add(p1) line.add(p2) circle_shape.add(line) layer.addFeature(circle_shape) Then later I'd like to query that same layer using either queryByPoint() or queryByRect(), and there my problems begin: (1) queryByPoint does not work at all (but the same code I use works for other layers with static content, loaded from a shapefile or PostGIS) (2) queryByRect seems to work, as it returns MS_SUCCESS when there is an overlap, but then it seems that I cannot retrieve the shape I want using the result's shapeindex (I get an error message telling me that it doesn't exist). Am I missing something? Maybe queryByXX work differently with dynamical content layers? Or maybe with type=circle layers? Thanks a lot in advance for any help! Christian From t-zheqxu at microsoft.com Tue Apr 7 22:18:48 2009 From: t-zheqxu at microsoft.com (Jessie Xu) Date: Wed, 8 Apr 2009 13:18:48 +0800 Subject: [mapserver-users] port from Apache to IIS Message-ID: <4E99E618451778408EACEE8DCF03EA8C14ED5DD0BF@AA-EXMSG-C426.southpacific.corp.microsoft.com> I'd like to have mapserver running on IIS 7 and want to know how? I saw an article called 'IIS setup for Mapserver' but it is written in 2005 based on IIS 5. Could someone give me a hand to figure out how to port from Apache to IIS 7? What changes should be made to config files, virtual directories and permissions, etc? Thanks for help! Jessie -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroete at iup.physik.uni-bremen.de Wed Apr 8 00:37:00 2009 From: schroete at iup.physik.uni-bremen.de (Heiko =?utf-8?q?Schr=C3=B6ter?=) Date: Wed, 8 Apr 2009 09:37:00 +0200 Subject: [mapserver-users] Layer Object Parameter Substitution fromURLusing GIS In-Reply-To: <49DB143B0200008F00022A36@co5.dnr.state.mn.us> References: <49DB143B0200008F00022A36@co5.dnr.state.mn.us> Message-ID: <200904080937.00914.schroete@iup.physik.uni-bremen.de> On Dienstag, 7. April 2009 15:52:10 you wrote: Hi Steve, thanks for the clues. I'am probably to dumb for this. Firefox replaces the " with " and mapserv5.4 complains. I've tried brute force backslashes than but that doesn't work either (of course). I've tried than with a little webpage in case that it is a coding (ISO or UTF) problem. But this fails as well. Do you have a working example of what exactly one has to use within the URL? Sorry to bother you again with this. (Since we are using Satellite global mapping, we need to change content and projection on the fly...) The Webpage: Mapserver 5.4 Test link And this is what Firefox does: http://localhost/cgi-bin/mapserv? MAP=/home/schroete/sciadaten/MapServer/country98/heiko1.map& LAYERS=karte,grid,psc&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap& STYLES=&FORMAT=image/png&SRS=epsg:4326&BBOX=-180,-90,180,90& WIDTH=600&HEIGHT=300& map.layer[psc]=FILTER+%22orbitnr&eq;3456%22 (The %22 will be shown as " in the Firefox URL line) Results in: getSymbol(): Symbol definition error. Parsing error near ("):(line 1) It doesn't matter if you escape the = sign or use single qoutes within the Filter string. I'am testing now the OpenLayer approach and will report later. Thanks for your effort. Regards Heiko > Hi Heiko: Two things: > > 1) There's an error in your URL. The syntax should be something like: > > map.layer[psc]=FILTER+'orbitnr=6758' > > but you'd need to escape the ' and = characters in the URL. > > 2) Setting extra vars in OpenLayers is easy. Something like this would > work: > > myLayer = new OpenLayers.Layer.MapServer( > 'stuff', > 'http://some.site.com/cgi-bin/mapserv?map=/some/mapfile.map', > { layers:'stuff', map_transparent: 'true', > somevar: 'somevalue', > }, > { ratio:1, singleTile:true, transitionEffect:'resize', > isBaseLayer:false } > ); > > You can then modify the content of the 'somevar' variable. With code > like: > > myLayer.params.somevar = 'somenewvalue'; > > This will tag somevar=somenewvalue onto the URL passed to MapServer. > > Steve > > >>> Heiko Schr?ter 04/07/09 5:26 AM > > On Montag, 6. April 2009 19:57:19 you wrote: > > Hello, > > the error seems to remain in mapserver 5.4: > > /usr/lib/cgi-bin/mapserv -v > MapServer version 5.4.0-beta4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER > INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE > > http://localhost/cgi-bin/mapserv? > MAP=/home/schroete/sciadaten/MapServer/country98/heiko1.map& > LAYERS=karte,grid,psc&SERVICE=WMS&VERSION=1.1.1& > REQUEST=GetMap&STYLES=& > FORMAT=image/png&SRS=epsg:4326&BBOX=-180,-90,180,90& > WIDTH=600&HEIGHT=300& > map.layer[psc].filter='orbitnr=6758' > > loadLayer(): Unknown identifier. Parsing error near (orbitnr=6758):(line > 1) > > > Mapfile as below. The map is ok without the 'map.layer[]...' stuff. > > Does a kind soul knows howto do the runtime substitution from within > OpenLayer > (i know it is not the 100% correct list, but maybe someone has hit this > before). > > Regards > Heiko > > > You'll need to use 5.4 to get this functionality. That version add > > support to allow you to define > > validation strings to lock down what values can be passed for the > > variable. Another solution is > > to consider using runtime substitution to do something similar. That > > works well if the SQL is > > pretty much fixed: > > > > FILTER 'wert=%myval%' > > > > It's also easier to secure. > > > > Steve > > > > >>> On 4/6/2009 at 4:01 AM, in message > > > > <200904061101.54781.schroete at iup.physik.uni-bremen.de>, Heiko Schr?ter > > > > wrote: > > > Hello, > > > > > > when passing a 'FILTER' parameter to be changed with the URL to use > > > > GIS > > > > > requests, mapserv(5.0.3) fails with: > > > loadLayer(): Unknown identifier. Parsing error near (FILTER):(line > > > > 1) > > > > > The call is: > > http://localhost/cgi-bin/mapserv?MAP=/MapServer/country98/heiko1.map& > > > > LAYERS=karte,grid,psc&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap& > > > STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage& > > > FORMAT=image/png& > > > SRS=epsg:4326&BBOX=-180,7.91,-82.08,105.83& > > > WIDTH=256&HEIGHT=256& > > > MAP.LAYER[psc].FILTER='wert=0' > > > (Linebreaks included for readability) > > > > > > When omitting this part: " MAP.LAYER[psc].FILTER='wert=0' " the > > map > > > is > > > > > generated fine (without the proper GIS data of course). > > > > > > I did read several comments in the archive and the net about this > > > > issue but > > > > > haven't found a solution to this problem. > > > What do i miss here ? > > > > > > Thanks and Regards > > > Heiko > > > > > > > > > The Mapfile: > > > MAP > > > NAME WELT > > > DEBUG ON > > > STATUS ON > > > #SIZE 647 320 > > > SIZE 800 400 > > > IMAGETYPE PNG24 > > > IMAGECOLOR 240 240 240 > > > SHAPEPATH "data" > > > EXTENT -180 -90 180 90 > > > UNITS DD > > > WEB > > > IMAGEPATH "images" > > > IMAGEURL "images" > > > MINSCALE 50000 > > > MAXSCALE 400000000 > > > METADATA > > > "wms_title" "Example WMS Server" > > > "wms_onlineresource" > > > > "http://localhost/cgi-bin/mapserv?map=heiko.map&" > > > > > "wms_srs" "epsg:4326 epsg:32661 epsg:32761" > > > END > > > END > > > SYMBOL > > > NAME 'circle' > > > TYPE ELLIPSE > > > POINTS 1 1 END > > > FILLED TRUE > > > END > > > SYMBOL > > > NAME 'star' > > > TYPE VECTOR > > > FILLED TRUE > > > POINTS > > > 0 .375 > > > .35 .375 > > > .5 0 > > > .65 .375 > > > 1 .375 > > > .75 .625 > > > .875 1 > > > .5 .75 > > > .125 1 > > > .25 .625 > > > END > > > END > > > PROJECTION > > > "init=epsg:4326" > > > END > > > LAYER > > > NAME "karte" > > > TYPE POLYGON > > > STATUS ON > > > OPACITY 50 > > > DATA "cntry98" > > > METADATA > > > "wms_title" "karte layer" > > > "DESCRIPTION" "Grid" > > > END > > > PROJECTION > > > "init=epsg:4326" > > > END > > > CLASS > > > NAME "karte_color" > > > OUTLINECOLOR 60 60 60 > > > COLOR 100 100 100 > > > SYMBOL 0 > > > END > > > END > > > LAYER > > > NAME "grid" > > > OPACITY 60 > > > METADATA > > > "wms_title" "grid layer" > > > "DESCRIPTION" "Grid" > > > END > > > TYPE LINE > > > STATUS ON > > > PROJECTION > > > "init=epsg:4326" > > > END > > > CLASS > > > NAME "Graticule" > > > COLOR 0 0 0 > > > # Labels comented out for readabilty in the moment > > > # LABEL > > > # COLOR 0 0 0 > > > # #FONT "fritqat" > > > # #TYPE truetype > > > # MINDISTANCE 1000 > > > # SIZE SMALL > > > # POSITION LR > > > # PARTIALS FALSE > > > # BUFFER 5 > > > # OUTLINECOLOR 200 200 200 > > > # END > > > END > > > GRID > > > LABELFORMAT "DD" > > > # LABELFORMAT '%g?' # dec degrees with symbol > > > # MINARCS 1 > > > MAXARCS 1 > > > MININTERVAL 30 > > > MAXINTERVAL 60 > > > # MINSUBDIVIDE 100 > > > MAXSUBDIVIDE 300 > > > # LABELFORMAT ?%7.0f m? # nice if a projected SRS > > > > used > > > > > # MININTERVAL 20000 > > > # MAXSUBDIVIDE 2 > > > END > > > END # Layer > > > > > > LAYER > > > NAME "psc" > > > CONNECTIONTYPE POSTGIS > > > OPACITY 80 > > > STATUS ON > > > METADATA > > > "wms_title" "psc layer" > > > END > > > PROJECTION > > > "init=epsg:4326" > > > END > > > CONNECTION "user=fum password=xyz dbname=foo > > > > host=localhost" > > > > > DATA "geocenter from scia_psc" > > > FILTER "wert=1" > > > TYPE POINT > > > CLASS > > > COLOR 250 10 10 > > > SYMBOL "circle" > > > SIZE 7 > > > END > > > END > > > LAYER > > > CONNECTIONTYPE POSTGIS > > > NAME "nlc" > > > OPACITY 80 > > > STATUS ON > > > METADATA > > > "wms_title" "nlc layer" > > > END > > > PROJECTION > > > "init=epsg:4326" > > > END > > > CONNECTION "user=fum password=xyz dbname=foo > > > > host=localhost" > > > > > DATA "geocenter from scia_nlc" > > > FILTER "wert=1" > > > TYPE POINT > > > CLASS > > > COLOR 10 250 10 > > > SYMBOL "star" > > > SIZE 7 > > > END > > > END > > > LAYER > > > CONNECTIONTYPE POSTGIS > > > NAME "stro3" > > > OPACITY 80 > > > STATUS ON > > > METADATA > > > "wms_title" "stro3 layer" > > > END > > > PROJECTION > > > "init=epsg:4326" > > > END > > > CONNECTION "user=fum password=xyz dbname=foo > > > > host=localhost" > > > > > DATA "geocenter from scia_stro3" > > > FILTER "wert=1" > > > TYPE POINT > > > CLASS > > > COLOR 10 10 250 > > > SYMBOL "circle" > > > SIZE 7 > > > END > > > END > > > END # Ende Map > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From akliludin at gmail.com Wed Apr 8 00:53:31 2009 From: akliludin at gmail.com (Aklilu Dinkneh) Date: Wed, 8 Apr 2009 09:53:31 +0200 Subject: [mapserver-users] instalation of map server Message-ID: Dear All I am new user for mapserver i never did something similar before also and i have a problem in the instalation of mapserver. I just followed the steps on the page http://www.mapserver.org/introduction.html#installation-and-requirements but i couldnt manage to complete step 8. and i opened the follder D:\mapserverinstall\apache\cgi-bin there is only one pl file mapserv.exe is not there so do i have to do something in addition to the instalation procedure listed in the above page any one help me please with kind regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From kobben at itc.nl Wed Apr 8 01:12:03 2009 From: kobben at itc.nl (Barend Kobben) Date: Wed, 8 Apr 2009 10:12:03 +0200 Subject: [mapserver-users] port from Apache to IIS In-Reply-To: <4E99E618451778408EACEE8DCF03EA8C14ED5DD0BF@AA-EXMSG-C426.southpacific.corp.microsoft.com> Message-ID: Hi, Thi worked last year for me, but I run IIS6. If not much changed between 6 and 7, it might help you: 0) Get the latest binaries (eg. the MS4W installation or any other) and install 1) Create a virtual directory in IIS pointing to the dir where mapserv.exe resides (eg. when using ms4w it's C:\ms4w\Apache\cgi-bin) and give it an appropriate alias name alias; for instance cgi-bin. 2) Set the execute permissions on this virtual directory to Scripts and Executables 3) Accept the virtual directory 4) Go to Web Service Extensions in the IIS service manager 5) Select Add a new web service extension. On the required files tab, add C:\YourMapserverInstalldir\mapserv.exe 6) Set it to allow 7) Through the security tab of the mapserver install directory, give IIS_WPG (a standard system usergroup) read/write and execute permission on ALL the underlying sub-directories 7a) go to IIS manager 7b) go to the server's "Web Server Extensions" 7c) choose "add a new Web Service Extension..." 7d) name it "mapserver_cgi" or similar, and press "Add.." near the "required files" field. 7e) find the mapserv.exe again (look for CGI's not for dll's!) and press "OK" 7f) set it's status to "Allowed". 8) Restart the "World Wide Web publishing service" in the services section of the administrative tools 9) Test mapserv by running http:\\yourserver\yourmapservaliasdir\mapserv.exe If you get the message "No query information to decode. QUERY_STRING is set, but empty." Mapserver under IIS is ready to go! -- Barend K?bben International Institute for Geo-Information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 08-04-09 07:18, "Jessie Xu" wrote: > I'd like to have mapserver running on IIS 7 and want to know how? I saw an > article called 'IIS setup for Mapserver' but it is written in 2005 based on > IIS 5. Could someone give me a hand to figure out how to port from Apache to > IIS 7? What changes should be made to config files, virtual directories and > permissions, etc? > > Thanks for help! > > Jessie > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From schroete at iup.physik.uni-bremen.de Wed Apr 8 02:02:51 2009 From: schroete at iup.physik.uni-bremen.de (Heiko =?utf-8?q?Schr=C3=B6ter?=) Date: Wed, 8 Apr 2009 11:02:51 +0200 Subject: [mapserver-users] Layer Object Parameter Substitution fromURLusing GIS In-Reply-To: <49DB143B0200008F00022A36@co5.dnr.state.mn.us> References: <49DB143B0200008F00022A36@co5.dnr.state.mn.us> Message-ID: <200904081102.51765.schroete@iup.physik.uni-bremen.de> On Dienstag, 7. April 2009 15:52:10 you wrote: Hello Steve, this seem to fail as well. Funny enough i needed to change the Layernames to uppercase in OpenLayer. But anyway: var kartenstring = "karte,grid,psc"; var somevalue = "FILTER+'orbitnr=4567' "; layer = new OpenLayers.Layer.WMS( "IUP WMS", "http://kahlo1/cgi-bin/mapserv", {map:'/home/schroete/sciadaten/MapServer/country98/heiko1.map', layers: kartenstring, "map.layer[PSC]": somevalue}, {singleTile:true}); The relevant part of the generated URL: ...&LAYERS=karte%2Cgrid%2CPSC&MAP.LAYER%5BPSC%5D=FILTER%2B%27orbitnr%3D4567%27&... I've tried various \' inside somevalue, but that won't change a thing. Backslashing the + sign won't change thing as well. And mapserver fails. The output from DEBUG 5 is as follows: [Wed Apr 8 10:52:31 2009].104328 getSymbol(): Symbol definition error. Parsing error near (+):(line 1) or [Wed Apr 8 10:51:24 2009].324130 loadLayer(): General error message. URL- based FILTER configuration failed pattern validation. Depending on what you have changed in someval. Regards Heiko > 2) Setting extra vars in OpenLayers is easy. Something like this would > work: > > myLayer = new OpenLayers.Layer.MapServer( > 'stuff', > 'http://some.site.com/cgi-bin/mapserv?map=/some/mapfile.map', > { layers:'stuff', map_transparent: 'true', > somevar: 'somevalue', > }, > { ratio:1, singleTile:true, transitionEffect:'resize', > isBaseLayer:false } > ); From cnieman at dmsolutions.ca Wed Apr 8 04:53:36 2009 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Wed, 08 Apr 2009 07:53:36 -0400 Subject: [mapserver-users] Symbol problem In-Reply-To: <4b56aefe0904070849o5a70118dm600da7c1adcc3aa0@mail.gmail.com> References: <4b56aefe0904070849o5a70118dm600da7c1adcc3aa0@mail.gmail.com> Message-ID: <49DC9040.8090102@dmsolutions.ca> Hi, If you use TYPE ANNOTATION instead of TYPE POINT only the symbols for features that get labelled will be drawn. Regards, -- Christy Nieman GIS Technician DM Solutions Group, Inc. Email: cnieman at dmsolutions.ca Web: http://dmsolutions.ca Web: http://research.dmsolutions.ca Valeria Mu?oz wrote: > Hi > I have problem with a Symbol, I define some configurations > parameters for my labels, this works for labels but not for symbols > > if you look the image attached the red labels are from the symbol.. I > need to display on the map only the symbols of the labels and not > symbols with no labels. > > Layer: > > > LAYER > NAME 'centro_urbano_punto' > TYPE POINT > DATA 'centro_urbano_punto.shp' > METADATA > 'wms_title' 'centro_urbano_punto' > END > STATUS DEFAULT > MAXSCALE 1988400 > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > LABELITEM 'NAME' > CLASS > NAME 'centro_urbano_punto' > STYLE > SYMBOL 'circle' > SIZE 3 > OUTLINECOLOR 161 189 196 > COLOR 0 0 0 > > END > LABEL > SIZE 6 > TYPE TRUETYPE > FONT georgia > ANTIALIAS TRUE > BUFFER 20 > COLOR 110 0 0 > OUTLINECOLOR 255 255 255 > OUTLINEWIDTH 3 > > FORCE false > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 2 0 > PARTIALS FALSE > POSITION AUTO > END > END > END > > > > #Circle symbol > SYMBOL > NAME 'CIRCLE' > TYPE ellipse > ANTIALIAS TRUE > FILLED true > POINTS > 1 1 > END > END > > I attach image > > help please... > > RG > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From raymondpendergraph at yahoo.com Wed Apr 8 05:59:17 2009 From: raymondpendergraph at yahoo.com (Ray Pendergraph) Date: Wed, 8 Apr 2009 05:59:17 -0700 (PDT) Subject: [mapserver-users] Gdal seg fault with mapserver on Ubuntu Message-ID: <567580.87710.qm@web53803.mail.re2.yahoo.com> I am having a problem rendering labels to my map. I am running mapserver from ubuntu intrepid packages (none compiled). Kernel is? 2.6.27-7-generic. Since this is obviously a common function I must be doing something wrong in the layer or something in the packages is not meshing. Everything works until I try to do anything with TrueType fonts, but I am not sure why gdal would have anything to do with this. When I try to add a label to a working layer (called 'clpoint'), the client gets a 500. Funny because the mapserver log reports lots of stuff like this for the layer (but no error): 40 2009].797599 msDrawMap(): Layer 6 (clpoint), 0.000s [Wed Apr? 8 08:24:40 2009].797672 msDrawMap(): Drawing Label Cache, 0.000s [Wed Apr? 8 08:24:40 2009].797693 msDrawMap() total time: 0.001s [Wed Apr? 8 08:24:40 2009].803041 msFreeMap(): freeing map at 0x8d21ed8. [Wed Apr? 8 08:24:40 2009].895713 CGI Request 1 on process 29681 [Wed Apr? 8 08:24:40 2009].896030 msWMSLoadGetMapParams(): enabling non-square pixels.[Wed Apr? 8 08:24:40 2009].902272 msDrawMap(): kicking into non-square pixel preserving mode.[Wed Apr? 8 08:24:40 2009].902928 msDrawMap(): Layer 6 (clpoint), 0.001s [Wed Apr? 8 08:24:40 2009].903194 msDrawMap(): Drawing Label Cache, 0.000s [Wed Apr? 8 08:24:40 2009].903236 msDrawMap() total time: 0.001s [Wed Apr? 8 08:24:40 2009].908839 msFreeMap(): freeing map at 0x8971ed8. [Wed Apr? 8 08:24:40 2009].928955 CGI Request 1 on process 29683 but syslog reports a bunch of these: Apr? 8 08:24:40 geoserver kernel: [1017419.869331] mapserv[29680]: segfault at bf41cfec ip b780fd4b sp bf41cfe0 error 6 in libgdal1.5.0.so.1.12.2[b7736000+4df000] Apr? 8 08:24:40 geoserver kernel: [1017419.916239] mapserv[29682]: segfault at bf72fffc ip b7821d56 sp bf730000 error 6 in libgdal1.5.0.so.1.12.2[b7748000+4df000] --The layer in question: ???? LAYER ?????? METADATA ????????? wms_title??? "clpoint" ?????? END ?????? TYPE POINT ?????? STATUS ON ?????? NAME "clpoint" ?????? DATA "../shapes/clpoint/clpoint.shp" ?????? LABELITEM "CLPTLABEL" ?????? LABELCACHE ON ?????? CLASS ???????? STYLE ??????????? COLOR???????????? 213 200 230 ???????? END ???????? LABEL ??????????? TYPE????????????? TRUETYPE ??????????? FONT????????????? "arial" ??????????? SIZE????????????? 8 ??????????? ANGLE???????????? FOLLOW ??????????? COLOR???????????? 25 25 175 ??????????? OUTLINECOLOR????? 255 255 255 ??????????? MINDISTANCE?????? 200 ??????????? PARTIALS????????? FALSE ???????? END ?????? END #This works fine #????? CLASS #???????? STYLE #??????????? SYMBOL "../symbols/historical.png" #??????????? SIZE 20 #???????? END #????? END ?????? JOIN ????????? TABLE "../shapes/clpoint/clpoint.dbf" ????????? NAME "clpoint" ????????? FROM "PolyId" ????????? TO "PolyId" ????????? TYPE ONE-TO-ONE ?????? END ???? END --Mapserver configuration: MapServer version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE --gdlib configuration: # gdlib-config --version 2.0.36 # gdlib-config --libs -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm --Gdal configuration: # gdal-config --libs -L/usr/lib -lgdal1.5.0? (this 1.5.0 seems odd to me) #gdal-config --version 1.5.2 # gdal-config --ogr-enabled yes --The libraries: -rw-r--r-- 1 root root 8817022 2008-07-04 11:08 /usr/lib/libgdal1.5.0.a -rw-r--r-- 1 root root??? 1345 2008-07-04 11:08 /usr/lib/libgdal1.5.0.la lrwxrwxrwx 1 root root????? 22 2009-04-07 16:29 /usr/lib/libgdal1.5.0.so -> libgdal1.5.0.so.1.12.2 lrwxrwxrwx 1 root root????? 22 2009-03-31 12:43 /usr/lib/libgdal1.5.0.so.1 -> libgdal1.5.0.so.1.12.2 -rw-r--r-- 1 root root 5438428 2008-07-04 11:08 /usr/lib/libgdal1.5.0.so.1.12.2 --Things I have checked *The font.list is present and seems to be read (fails with a clearer error when I reference a fake font.). *The font file is a valid true type font and has all permissions. Tried different fonts. *The shape file and the dbf file are readable by other tools and CLPTLABEL in the dbf file has the data I want. Can someone please tell me where I am going wrong (and thank you)? Sorry for the long post. -------------- next part -------------- An HTML attachment was scrubbed... URL: From John.Westwood at port.ac.uk Wed Apr 8 06:02:00 2009 From: John.Westwood at port.ac.uk (John Westwood) Date: Wed, 08 Apr 2009 14:02:00 +0100 Subject: [mapserver-users] Re: Problem with projection Message-ID: <49DCAE580200005300051DBA@stirling.iso.port.ac.uk> Hi There is an spurious " symbol in your PROJECTION definition, I'm not sure if that is significant (probably not). Looking at your picture though, it looks like a datum or ellipsoid mismatch. Is your data in WGS84 or some other datum or ellipsoid? Check out the Wikipedia page: http://en.wikipedia.org/wiki/Geographic_coordinate_system You may also wish to check that OpenLayers is using the same coordinate system as MapServer. Regards John Westwood >>> Valeria Mu?oz 07/04/09 6:04 PM >>> I am sorry I forget something, my projection is: PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END 2009/4/7 Valeria Mu?oz > HI > > I think I have problems with my PROJECTION but i do not why.. i have a > list of adress with latitude and longitude of them but the point is not in > the correct position. please look the image i mark with X where should be > > > > Attach image > From MarkVolz at co.lyon.mn.us Wed Apr 8 06:23:07 2009 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 8 Apr 2009 08:23:07 -0500 Subject: [mapserver-users] RE: port from Apache to IIS In-Reply-To: <20090408090328.0437AE01703@lists.osgeo.org> References: <20090408090328.0437AE01703@lists.osgeo.org> Message-ID: <3D56274B4A7874468F58FADDBFD09801071CD8B2@llmhs02.r8nssis.local> Hello, I am also attempting to port from Apache to IIS. In Apache everything works well. In IIS6 I have the following issues: WMS services do not display, PHP code does not seem to work - which run printing functions and the select by buffer functions. I noticed I am getting 404 and 405 errors. I am running Geomoose over Mapserver 5.2.2 / MS4W 2.3.1 Mark Volz GIS Specialist Lyon County, MN Message: 4 Date: Wed, 8 Apr 2009 10:12:03 +0200 From: Barend Kobben Subject: Re: [mapserver-users] port from Apache to IIS To: Jessie Xu , "mapserver-users at lists.osgeo.org" Message-ID: Content-Type: text/plain; charset="ISO-8859-1" Hi, Thi worked last year for me, but I run IIS6. If not much changed between 6 and 7, it might help you: 0) Get the latest binaries (eg. the MS4W installation or any other) and install 1) Create a virtual directory in IIS pointing to the dir where mapserv.exe resides (eg. when using ms4w it's C:\ms4w\Apache\cgi-bin) and give it an appropriate alias name alias; for instance cgi-bin. 2) Set the execute permissions on this virtual directory to Scripts and Executables 3) Accept the virtual directory 4) Go to Web Service Extensions in the IIS service manager 5) Select Add a new web service extension. On the required files tab, add C:\YourMapserverInstalldir\mapserv.exe 6) Set it to allow 7) Through the security tab of the mapserver install directory, give IIS_WPG (a standard system usergroup) read/write and execute permission on ALL the underlying sub-directories 7a) go to IIS manager 7b) go to the server's "Web Server Extensions" 7c) choose "add a new Web Service Extension..." 7d) name it "mapserver_cgi" or similar, and press "Add.." near the "required files" field. 7e) find the mapserv.exe again (look for CGI's not for dll's!) and press "OK" 7f) set it's status to "Allowed". 8) Restart the "World Wide Web publishing service" in the services section of the administrative tools 9) Test mapserv by running http:\\yourserver\yourmapservaliasdir\mapserv.exe If you get the message "No query information to decode. QUERY_STRING is set, but empty." Mapserver under IIS is ready to go! -- Barend K?bben International Institute for Geo-Information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 08-04-09 07:18, "Jessie Xu" wrote: > I'd like to have mapserver running on IIS 7 and want to know how? I saw an > article called 'IIS setup for Mapserver' but it is written in 2005 based on > IIS 5. Could someone give me a hand to figure out how to port from Apache to > IIS 7? What changes should be made to config files, virtual directories and > permissions, etc? > > Thanks for help! > > Jessie > _______________________________________________ From valemunoz at gmail.com Wed Apr 8 06:35:13 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Wed, 8 Apr 2009 09:35:13 -0400 Subject: [mapserver-users] Re: Problem with projection In-Reply-To: References: <4b56aefe0904071000s5c2934a7rb7778f34c99f7ac2@mail.gmail.com> <4b56aefe0904071002i7e87976fg8a141d6a4e9503ef@mail.gmail.com> Message-ID: <4b56aefe0904080635y443fce5fhd59cf5d202bbe90d@mail.gmail.com> I think you have psychological problems ... you should not be on this list, *This list is for help not to insult* PD: I send the second mail because I did not put the settings defined in my mapfile in the mail before RG *2009/4/7 NN SS * > > *you are much imbeci, besides gross ... > women had to be* > > On Tue, Apr 7, 2009 at 12:02 PM, Valeria Mu?oz wrote: > >> I am sorry I forget something, my projection is: >> >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> 2009/4/7 Valeria Mu?oz >> >>> HI >>> >>> I think I have problems with my PROJECTION but i do not why.. i have a >>> list of adress with latitude and longitude of them but the point is not in >>> the correct position. please look the image i mark with X where should be >>> >>> >>> >>> Attach image >>> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed Apr 8 07:17:34 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 08 Apr 2009 09:17:34 -0500 Subject: [mapserver-users] Layer Object Parameter Substitution fromURLusing GIS Message-ID: <49DC6BAF0200008F00022B21@co5.dnr.state.mn.us> This one answers your previous question about escaping characters. ;-) You need to use the ascii escape sequences in a URL. Anyway, you're running up against the security controls in place in 5.4. Basically you don't want someone setting a filter to just anything. So, you *must* define a validation pattern before MapServer will allow the change. This is done via a VALIDATION block. In your case you'd do something like this in the psc layer: LAYER NAME 'psc' ... VALIDATION filter '^orbitnr=[0-9]{1,5}$' END ... END This says that filter can be set via a URL but only if it matches the pattern above. Guessing based on your sample this says the filter must be of the form "orbitnr=an integer (1 to 5 digits)" so "orbitnr=12345" will work "orbitnr=abcd" will not. You can set a far more general pattern (e.g. '.' matches anything) but I recommend against it. Steve >>> Heiko Schr?ter 04/08/09 4:04 AM >>> On Dienstag, 7. April 2009 15:52:10 you wrote: Hello Steve, this seem to fail as well. Funny enough i needed to change the Layernames to uppercase in OpenLayer. But anyway: var kartenstring = "karte,grid,psc"; var somevalue = "FILTER+'orbitnr=4567' "; layer = new OpenLayers.Layer.WMS( "IUP WMS", "http://kahlo1/cgi-bin/mapserv", {map:'/home/schroete/sciadaten/MapServer/country98/heiko1.map', layers: kartenstring, "map.layer[PSC]": somevalue}, {singleTile:true}); The relevant part of the generated URL: ...&LAYERS=karte%2Cgrid%2CPSC&MAP.LAYER%5BPSC%5D=FILTER%2B%27orbitnr%3D4567%27&... I've tried various \' inside somevalue, but that won't change a thing. Backslashing the + sign won't change thing as well. And mapserver fails. The output from DEBUG 5 is as follows: [Wed Apr 8 10:52:31 2009].104328 getSymbol(): Symbol definition error. Parsing error near (+):(line 1) or [Wed Apr 8 10:51:24 2009].324130 loadLayer(): General error message. URL- based FILTER configuration failed pattern validation. Depending on what you have changed in someval. Regards Heiko > 2) Setting extra vars in OpenLayers is easy. Something like this would > work: > > myLayer = new OpenLayers.Layer.MapServer( > 'stuff', > 'http://some.site.com/cgi-bin/mapserv?map=/some/mapfile.map', > { layers:'stuff', map_transparent: 'true', > somevar: 'somevalue', > }, > { ratio:1, singleTile:true, transitionEffect:'resize', > isBaseLayer:false } > ); From damarmo at gmail.com Wed Apr 8 07:54:30 2009 From: damarmo at gmail.com (David Martinez Morata) Date: Wed, 8 Apr 2009 16:54:30 +0200 Subject: [mapserver-users] Get the query image of a wms layer Message-ID: <9771eb540904080754n3f446a65k8efb28b5a9816df8@mail.gmail.com> Hello. I have a little problem with my WMS server, I have a WMS layer in my openlayers (Mapfish) application, and when I request the map, I show My image in the temp directory of my server but y don't show in the Openlayer Map. Any sugestions? Thanks -- Martinez Morata David Thinking GIS -- Martinez Morata David Thinking GIS -------------- next part -------------- An HTML attachment was scrubbed... URL: From cjauvin at gmail.com Wed Apr 8 08:06:32 2009 From: cjauvin at gmail.com (Christian Jauvin) Date: Wed, 8 Apr 2009 11:06:32 -0400 Subject: [mapserver-users] Re: Querying type=circle layer In-Reply-To: References: Message-ID: I found the answer to my question: You have to manually add a "shapeindex" value for each feature that you add, and it has to start from zero. Christian On Tue, Apr 7, 2009 at 5:23 PM, Christian Jauvin wrote: > Hi, > > I use Python-Mapscript 5.2 on Windows. I have a layer of type=circle > on which I dynamically add features: > > layer = .. > circle_shape = shapeObj(MS_SHAPE_LINE) > p1 = pointObj(..) > p2 = pointObj(..) > line = lineObj() > line.add(p1) > line.add(p2) > circle_shape.add(line) > layer.addFeature(circle_shape) > > Then later I'd like to query that same layer using either > queryByPoint() or queryByRect(), and there my problems begin: > > (1) queryByPoint does not work at all (but the same code I use works > for other layers with static content, loaded from a shapefile or > PostGIS) > > (2) queryByRect seems to work, as it returns MS_SUCCESS when there is > an overlap, but then it seems that I cannot retrieve the shape I want > using the result's shapeindex (I get an error message telling me that > it doesn't exist). > > Am I missing something? Maybe queryByXX work differently with > dynamical content layers? Or maybe with type=circle layers? > > Thanks a lot in advance for any help! > > Christian > From cjauvin at gmail.com Wed Apr 8 08:07:34 2009 From: cjauvin at gmail.com (Christian Jauvin) Date: Wed, 8 Apr 2009 11:07:34 -0400 Subject: [mapserver-users] Re: Querying type=circle layer In-Reply-To: References: Message-ID: Sorry not "shapeindex".. "index" On Wed, Apr 8, 2009 at 11:06 AM, Christian Jauvin wrote: > I found the answer to my question: > > You have to manually add a "shapeindex" value for each feature that > you add, and it has to start from zero. > > Christian > > > On Tue, Apr 7, 2009 at 5:23 PM, Christian Jauvin wrote: >> Hi, >> >> I use Python-Mapscript 5.2 on Windows. I have a layer of type=circle >> on which I dynamically add features: >> >> layer = .. >> circle_shape = shapeObj(MS_SHAPE_LINE) >> p1 = pointObj(..) >> p2 = pointObj(..) >> line = lineObj() >> line.add(p1) >> line.add(p2) >> circle_shape.add(line) >> layer.addFeature(circle_shape) >> >> Then later I'd like to query that same layer using either >> queryByPoint() or queryByRect(), and there my problems begin: >> >> (1) queryByPoint does not work at all (but the same code I use works >> for other layers with static content, loaded from a shapefile or >> PostGIS) >> >> (2) queryByRect seems to work, as it returns MS_SUCCESS when there is >> an overlap, but then it seems that I cannot retrieve the shape I want >> using the result's shapeindex (I get an error message telling me that >> it doesn't exist). >> >> Am I missing something? Maybe queryByXX work differently with >> dynamical content layers? Or maybe with type=circle layers? >> >> Thanks a lot in advance for any help! >> >> Christian >> > From naci0002 at umn.edu Wed Apr 8 09:05:25 2009 From: naci0002 at umn.edu (Perry Nacionales) Date: Wed, 08 Apr 2009 11:05:25 -0500 Subject: [mapserver-users] port from Apache to IIS In-Reply-To: <4E99E618451778408EACEE8DCF03EA8C14ED5DD0BF@AA-EXMSG-C426.southpacific.corp.microsoft.com> References: <4E99E618451778408EACEE8DCF03EA8C14ED5DD0BF@AA-EXMSG-C426.southpacific.corp.microsoft.com> Message-ID: <49DCCB45.3060606@umn.edu> I assume you're talking about this: http://mapserver.org/installation/iis.html Follow that document and you will see there hasn't been that many changes. The IIS manager interface might have changed a little but the permissions is still the same. If you downloaded the MS4W package, there is also additional information available by going through README_INSTALL. -Perry Jessie Xu wrote: > > I?d like to have mapserver running on IIS 7 and want to know how? I > saw an article called ?IIS setup for Mapserver? but it is written in > 2005 based on IIS 5. Could someone give me a hand to figure out how to > port from Apache to IIS 7? What changes should be made to config > files, virtual directories and permissions, etc? > > Thanks for help! > > Jessie > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at dnr.state.mn.us Wed Apr 8 09:30:58 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 08 Apr 2009 11:30:58 -0500 Subject: [mapserver-users] Re: Querying type=circle layer In-Reply-To: References: Message-ID: <49DC8AF2.5157.008F.0@dnr.state.mn.us> Querying isn't supported for circles. It's pretty much a display-only layer type, just like annotation. The reason being that queries work on the core geometry type of the data source and not the LAYER TYPE. There is no circle geometry. Doesn't mean it couldn't be done but it would take work (search routines would have to be written for circles) to do so. Steve >>> On 4/8/2009 at 10:07 AM, in message , Christian Jauvin wrote: > Sorry not "shapeindex".. "index" > > > > On Wed, Apr 8, 2009 at 11:06 AM, Christian Jauvin wrote: >> I found the answer to my question: >> >> You have to manually add a "shapeindex" value for each feature that >> you add, and it has to start from zero. >> >> Christian >> >> >> On Tue, Apr 7, 2009 at 5:23 PM, Christian Jauvin wrote: >>> Hi, >>> >>> I use Python-Mapscript 5.2 on Windows. I have a layer of type=circle >>> on which I dynamically add features: >>> >>> layer = .. >>> circle_shape = shapeObj(MS_SHAPE_LINE) >>> p1 = pointObj(..) >>> p2 = pointObj(..) >>> line = lineObj() >>> line.add(p1) >>> line.add(p2) >>> circle_shape.add(line) >>> layer.addFeature(circle_shape) >>> >>> Then later I'd like to query that same layer using either >>> queryByPoint() or queryByRect(), and there my problems begin: >>> >>> (1) queryByPoint does not work at all (but the same code I use works >>> for other layers with static content, loaded from a shapefile or >>> PostGIS) >>> >>> (2) queryByRect seems to work, as it returns MS_SUCCESS when there is >>> an overlap, but then it seems that I cannot retrieve the shape I want >>> using the result's shapeindex (I get an error message telling me that >>> it doesn't exist). >>> >>> Am I missing something? Maybe queryByXX work differently with >>> dynamical content layers? Or maybe with type=circle layers? >>> >>> Thanks a lot in advance for any help! >>> >>> Christian >>> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From matej at matnet.net Wed Apr 8 12:33:27 2009 From: matej at matnet.net (Matej) Date: Wed, 8 Apr 2009 21:33:27 +0200 Subject: [mapserver-users] getExtent(c#) with Postgis data ... In-Reply-To: References: <33fad6880904061129x65397b7ew5f4de9a4daeaa0dc@mail.gmail.com> <33fad6880904061418n2d0bb3a3m827d41a668c63f59@mail.gmail.com> <33fad6880904061424gcc0473coa3f03de1a7fc6afd@mail.gmail.com> <33fad6880904070618t369b70e1q18f8330478b85adf@mail.gmail.com> <7DB8072A0E2E4BAC8F4E9A71767EF9A2@Leeml> Message-ID: <86E9C0B907D04C6D9B016A3BD7449C4D@Leeml> Tamas, thank you. I have tried using Npgsql and mapscript_csharp and I can successfully connect to the database, but now I suppose I need .map files saved locally to get things working? Actually I am in the middle of choosing whether it is better to use SharpMap or Mapserver's C# libraries for building a desktop app? What are your (and everybody's else's) recommendations and suggestions about it? Thank you very much, Matej ----- Original Message ----- From: Tamas Szekeres To: Matej Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, April 07, 2009 10:17 PM Subject: Re: [mapserver-users] getExtent(c#) with Postgis data ... Matej Yes it's definitely the case. You application should set a reference to the managed mapscript_csharp.dll assembly and it will implicitly load furher unmanaged dlls to provide the desired functionality. Best regards, Tamas 2009/4/7 Matej Hi, this might not be directly connected but I am planning to build a client desktop app which should be able to connect to the PostGIS db that is running on the remote server and display objects from it / add new etc. Is this possible in C# with fwtools without the need to have the Mapserver running on every client computer? Thanks and sorry for interrupting, Matej ----- Original Message ----- From: Tamas Szekeres To: Paul james Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, April 07, 2009 8:29 PM Subject: Re: [mapserver-users] getExtent(c#) with Postgis data ... Paul, You can refer to the ogrinfo C# sample application in the gdal source tree: http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs Best regards, Tamas 2009/4/7 Paul james Thanks Tamas... But now I?m a little lost... Am I supposed to create a OGR layer? Do you have any sample how to get extent?s layer using OGR? P On Mon, Apr 6, 2009 at 6:30 PM, Tamas Szekeres wrote: Choose a package with the best match for your compiler and architecture from here: http://vbkto.dyndns.org:1280/sdk/index.html Best regards, Tamas 2009/4/6 Paul james Where can I find ogr_csharp.dll ? Thanks Tamas! Paul On Mon, Apr 6, 2009 at 6:22 PM, Tamas Szekeres wrote: Paul, Unfortunately this function is not implemented by the MapServer postgis driver, you might want to use the OGR C# API (ie. ogr_csharp.dll) for this purpose. Best regards, Tamas 2009/4/6 Paul james All value from getExtent (Postgis layer) is : 3.4028234663852886E+38 Is it a bug? On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres wrote: Why don't? That function have already been exposed for layerObj with the following signature: public rectObj getExtent(void) Best regards, Tamas 2009/4/6 Paul james Hello, It seems that getExtent (c#) is not implemented... Any other solution to get extent of a layer using mapscript? Paul _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------------------------------------------------------------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pauljame at gmail.com Wed Apr 8 12:47:47 2009 From: pauljame at gmail.com (Paul james) Date: Wed, 8 Apr 2009 16:47:47 -0300 Subject: [mapserver-users] KML for mapscript Map... Message-ID: <33fad6880904081247l62433a48o7e84feb2cd9d1152@mail.gmail.com> Hello... Is it possible to get KML from Mapscript(c#) map? How? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From iansgis at gmail.com Wed Apr 8 13:02:13 2009 From: iansgis at gmail.com (Ian) Date: Wed, 8 Apr 2009 13:02:13 -0700 Subject: [mapserver-users] PHP MapScript inserting extra parameters into .map file Message-ID: <5b61c6c50904081302v1de5d1d1kcd5a644f1e5001d@mail.gmail.com> I'm using PHP MapScript to change layers' DATA parameters as the user selects options in an OpenLayers 2.7/MapServer 5.2 WMS setting. This is working fine however I just noticed that extra undefined/unwanted information is being appended to the map file when my script runs. Specifically: STYLE ANGLE 360 OPACITY 100 SYMBOL 0 END is appended to each CLASS so what was originally: CLASS EXPRESSION ([pixel] >= 155 AND [pixel] < 164) COLOR 28 28 28 END becomes: CLASS EXPRESSION ([pixel] >= 155 AND [pixel] < 164) STYLE ANGLE 360 COLOR 28 28 28 OPACITY 100 SYMBOL 0 END END Is there a way to prevent MapScript from doing this? My script is: getLayerByName($layerPrefix[0]); // Change DATA parameter for layer $layer->set("data", 'path/to/data/' . $layers[$i]); } // Finished editing, save .map file $map->save($mapFile); ?> Thank you, Ian From iansgis at gmail.com Wed Apr 8 13:02:28 2009 From: iansgis at gmail.com (Ian) Date: Wed, 8 Apr 2009 13:02:28 -0700 Subject: [mapserver-users] PHP MapScript inserting extra parameters into .map file Message-ID: <5b61c6c50904081302n5f211797i737c56c2eb370d6f@mail.gmail.com> I'm using PHP MapScript to change layers' DATA parameters as the user selects options in an OpenLayers 2.7/MapServer 5.2 WMS setting. This is working fine however I just noticed that extra undefined/unwanted information is being appended to the map file when my script runs. Specifically: STYLE ANGLE 360 OPACITY 100 SYMBOL 0 END is appended to each CLASS so what was originally: CLASS EXPRESSION ([pixel] >= 155 AND [pixel] < 164) COLOR 28 28 28 END becomes: CLASS EXPRESSION ([pixel] >= 155 AND [pixel] < 164) STYLE ANGLE 360 COLOR 28 28 28 OPACITY 100 SYMBOL 0 END END Is there a way to prevent MapScript from doing this? My script is: getLayerByName($layerPrefix[0]); // Change DATA parameter for layer $layer->set("data", 'path/to/data/' . $layers[$i]); } // Finished editing, save .map file $map->save($mapFile); ?> Thank you, Ian From dmorissette at mapgears.com Wed Apr 8 13:32:25 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 08 Apr 2009 16:32:25 -0400 Subject: [mapserver-users] PHP MapScript inserting extra parameters into .map file In-Reply-To: <5b61c6c50904081302n5f211797i737c56c2eb370d6f@mail.gmail.com> References: <5b61c6c50904081302n5f211797i737c56c2eb370d6f@mail.gmail.com> Message-ID: <49DD09D9.1050009@mapgears.com> Ian wrote: > I'm using PHP MapScript to change layers' DATA parameters as the user > selects options in an OpenLayers 2.7/MapServer 5.2 WMS setting. This > is working fine however I just noticed that extra undefined/unwanted > information is being appended to the map file when my script runs. > Specifically: > > STYLE > ANGLE 360 > OPACITY 100 > SYMBOL 0 > END > I think most of these could be avoided in a future release. Could you please file a enhancement ticket about this? The case of ANGLE 360 is the one that surprised me the most. I checked and it seems that the default was changed from 0 to 360 by Steve in r4253: http://trac.osgeo.org/mapserver/changeset/4253 Steve: do you remember why that change was made? Daniel -- Daniel Morissette http://www.mapgears.com/ From szekerest at gmail.com Wed Apr 8 14:00:44 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 8 Apr 2009 23:00:44 +0200 Subject: [mapserver-users] getExtent(c#) with Postgis data ... In-Reply-To: <86E9C0B907D04C6D9B016A3BD7449C4D@Leeml> References: <33fad6880904061129x65397b7ew5f4de9a4daeaa0dc@mail.gmail.com> <33fad6880904061418n2d0bb3a3m827d41a668c63f59@mail.gmail.com> <33fad6880904061424gcc0473coa3f03de1a7fc6afd@mail.gmail.com> <33fad6880904070618t369b70e1q18f8330478b85adf@mail.gmail.com> <7DB8072A0E2E4BAC8F4E9A71767EF9A2@Leeml> <86E9C0B907D04C6D9B016A3BD7449C4D@Leeml> Message-ID: 2009/4/8 Matej > Tamas, thank you. > > I have tried using Npgsql and mapscript_csharp and I can successfully > connect to the database, but now I suppose I need .map files saved locally > to get things working? > > Not necessarily. You could also build up a map object from scratch and not save it in the filesystem if not required. You could also not save the map image just draw the contents of the imageObj and read the contents directly into a GDI+ bitmap. > Actually I am in the middle of choosing whether it is better to use > SharpMap or Mapserver's C# libraries for building a desktop app? What are > your (and everybody's else's) recommendations and suggestions about it? > I've already used Mapserver's C# libraries to create various .NET desktop applications and it worked pretty well. You might however create an example just to make sure about all the aspects before making the final decision. I'm not sure about SharpMap, isn't that a pure ASP.NET project? Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed Apr 8 14:03:10 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 8 Apr 2009 23:03:10 +0200 Subject: [mapserver-users] KML for mapscript Map... In-Reply-To: <33fad6880904081247l62433a48o7e84feb2cd9d1152@mail.gmail.com> References: <33fad6880904081247l62433a48o7e84feb2cd9d1152@mail.gmail.com> Message-ID: Rendering as KML is not yet supported by MapServer, but these's an outstanding Google SoC project addressing this issue. Best regards, Tamas 2009/4/8 Paul james > Hello... > Is it possible to get KML from Mapscript(c#) map? > > How? > > Thanks! > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pauljame at gmail.com Wed Apr 8 14:07:08 2009 From: pauljame at gmail.com (Paul james) Date: Wed, 8 Apr 2009 18:07:08 -0300 Subject: [mapserver-users] KML for mapscript Map... In-Reply-To: References: <33fad6880904081247l62433a48o7e84feb2cd9d1152@mail.gmail.com> Message-ID: <33fad6880904081407u63ee6adcqe2e5a903705fb18c@mail.gmail.com> Thanks again Tamas ! Could you send me the link ? []?s On Wed, Apr 8, 2009 at 6:03 PM, Tamas Szekeres wrote: > Rendering as KML is not yet supported by MapServer, but these's an > outstanding Google SoC project addressing this issue. > > Best regards, > > Tamas > > > > 2009/4/8 Paul james > >> Hello... >> Is it possible to get KML from Mapscript(c#) map? >> >> How? >> >> Thanks! >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed Apr 8 14:18:03 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 8 Apr 2009 23:18:03 +0200 Subject: [mapserver-users] KML for mapscript Map... In-Reply-To: <33fad6880904081407u63ee6adcqe2e5a903705fb18c@mail.gmail.com> References: <33fad6880904081247l62433a48o7e84feb2cd9d1152@mail.gmail.com> <33fad6880904081407u63ee6adcqe2e5a903705fb18c@mail.gmail.com> Message-ID: I'm not sure whether it's publicly available to review, but here is the link: http://socghop.appspot.com/student_proposal/review/google/gsoc2009/dk/t123862094398 Best regards, Tamas 2009/4/8 Paul james > Thanks again Tamas ! > > Could you send me the link ? > > []?s > > > On Wed, Apr 8, 2009 at 6:03 PM, Tamas Szekeres wrote: > >> Rendering as KML is not yet supported by MapServer, but these's an >> outstanding Google SoC project addressing this issue. >> >> Best regards, >> >> Tamas >> >> >> >> 2009/4/8 Paul james >> >>> Hello... >>> Is it possible to get KML from Mapscript(c#) map? >>> >>> How? >>> >>> Thanks! >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Wed Apr 8 14:25:15 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 8 Apr 2009 16:25:15 -0500 Subject: [mapserver-users] KML for mapscript Map... In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA39D@s-sp22.pca.state.mn.us> I am not sure about c#, but with CGI, you can create a query template for your KML as you want it and then use an nquery to build the kml file. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Wednesday, April 08, 2009 4:03 PM To: Paul james Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] KML for mapscript Map... Rendering as KML is not yet supported by MapServer, but these's an outstanding Google SoC project addressing this issue. Best regards, Tamas 2009/4/8 Paul james Hello... Is it possible to get KML from Mapscript(c#) map? How? Thanks! _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed Apr 8 14:32:46 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 08 Apr 2009 16:32:46 -0500 Subject: [mapserver-users] KML for mapscript Map... In-Reply-To: References: <33fad6880904081247l62433a48o7e84feb2cd9d1152@mail.gmail.com> Message-ID: <49DCD1AF.5157.008F.0@dnr.state.mn.us> While there is not *native* support for KML yet, it is possible to generate it: 1) via templates 2) through straight mapscript (it ain't that complex) by writing your own xml Here's an example of the former: [resultset layer="shor_waspt3_query"] Water Access Points Water Access Points in Minnesota. Supplied by the Minnesota DNR, Division of Trails & Waterways [feature] [shpxy cs="," precision=6 proj="+init=epsg:4326"] [LAKENAME], [COUNTYNAME] County [/feature] [/resultset] You'd have a corresponding output format in your mapfile, like so: OUTPUTFORMAT NAME 'kml' DRIVER 'TEMPLATE' MIMETYPE 'application/vnd.google-earth.kml+xml' FORMATOPTION 'attachement=wap.kml' FORMATOPTION 'FILE=/mytemplates/kml.xml' END and can retrieve features via a normal query, like so: http://maps.dnr.state.mn.us/cgi-bin/mapserv54?map=/usr/local/www/docs_maps/compass/compass_test.map&mode=nquery&qlayer=shor_waspt3_query&qformat=kml This works well for place marks and outlines and you can combine multiple layers (as multiple folders) in one output stream. Steve >>> On 4/8/2009 at 4:03 PM, in message , Tamas Szekeres wrote: > Rendering as KML is not yet supported by MapServer, but these's an > outstanding Google SoC project addressing this issue. > > Best regards, > > Tamas > > > > 2009/4/8 Paul james > >> Hello... >> Is it possible to get KML from Mapscript(c#) map? >> >> How? >> >> Thanks! >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> From Steve.Lime at dnr.state.mn.us Wed Apr 8 14:40:24 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 08 Apr 2009 16:40:24 -0500 Subject: [mapserver-users] PHP MapScript inserting extra parameters into.map file In-Reply-To: <49DD09D9.1050009@mapgears.com> References: <5b61c6c50904081302n5f211797i737c56c2eb370d6f@mail.gmail.com> <49DD09D9.1050009@mapgears.com> Message-ID: <49DCD378.5157.008F.0@dnr.state.mn.us> 2004? Nope, but I would imagine it had to with rendering arcs in GD. Before Thomas added charting support you could (and can still) create a poor-mans pie chart using stacked styles and angles with ellipse symbols. In that world a full circle would be represented by a 360 degree arc. Best guess... Steve >>> On 4/8/2009 at 3:32 PM, in message <49DD09D9.1050009 at mapgears.com>, Daniel Morissette wrote: > Ian wrote: >> I'm using PHP MapScript to change layers' DATA parameters as the user >> selects options in an OpenLayers 2.7/MapServer 5.2 WMS setting. This >> is working fine however I just noticed that extra undefined/unwanted >> information is being appended to the map file when my script runs. >> Specifically: >> >> STYLE >> ANGLE 360 >> OPACITY 100 >> SYMBOL 0 >> END >> > > I think most of these could be avoided in a future release. Could you > please file a enhancement ticket about this? > > The case of ANGLE 360 is the one that surprised me the most. I checked > and it seems that the default was changed from 0 to 360 by Steve in > r4253: http://trac.osgeo.org/mapserver/changeset/4253 > > Steve: do you remember why that change was made? > > Daniel From iansgis at gmail.com Wed Apr 8 14:56:15 2009 From: iansgis at gmail.com (Ian) Date: Wed, 8 Apr 2009 14:56:15 -0700 Subject: [mapserver-users] PHP MapScript inserting extra parameters into.map file In-Reply-To: <49DCD378.5157.008F.0@dnr.state.mn.us> References: <5b61c6c50904081302n5f211797i737c56c2eb370d6f@mail.gmail.com> <49DD09D9.1050009@mapgears.com> <49DCD378.5157.008F.0@dnr.state.mn.us> Message-ID: <5b61c6c50904081456m4bd81c4dwde2011300bee2517@mail.gmail.com> Alright I've filed an enhancement ticket (http://trac.osgeo.org/mapserver/ticket/2975). I still don't understand why it happens though. Is MapScript defining parameters it feels should be there by default? This extra data is wreaking havoc on some other code and I need to stop it from reaching the .map file. Is defining these parameters in my .map file a solution to prevent these extra values from being appended? Thanks, Ian From Steve.Lime at dnr.state.mn.us Wed Apr 8 15:42:27 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 08 Apr 2009 17:42:27 -0500 Subject: [mapserver-users] PHP MapScript inserting extra parameters into.map file In-Reply-To: <5b61c6c50904081456m4bd81c4dwde2011300bee2517@mail.gmail.com> References: <5b61c6c50904081302n5f211797i737c56c2eb370d6f@mail.gmail.com> <49DD09D9.1050009@mapgears.com> <49DCD378.5157.008F.0@dnr.state.mn.us> <5b61c6c50904081456m4bd81c4dwde2011300bee2517@mail.gmail.com> Message-ID: <49DCE203.5157.008F.0@dnr.state.mn.us> All that's happening is MapServer is writing the default values for some of the parameters. The mapfile before and after should be functionally equivalent. Not sure how that would wreak havoc. Your input mapfile is using older syntax (no styles) that the mapfile writer can't/won't produce. So at a minimum you'd see the style block as output. Steve >>> On 4/8/2009 at 4:56 PM, in message <5b61c6c50904081456m4bd81c4dwde2011300bee2517 at mail.gmail.com>, Ian wrote: > Alright I've filed an enhancement ticket > (http://trac.osgeo.org/mapserver/ticket/2975). > > I still don't understand why it happens though. Is MapScript defining > parameters it feels should be there by default? This extra data is > wreaking havoc on some other code and I need to stop it from reaching > the .map file. Is defining these parameters in my .map file a solution > to prevent these extra values from being appended? > > Thanks, > Ian > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Wed Apr 8 17:55:21 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 08 Apr 2009 19:55:21 -0500 Subject: [mapserver-users] MapServer 5.4 Release Candidate 1 Now Available Message-ID: <49DD01290200008F00022BC5@co5.dnr.state.mn.us> Greetings all: MapServer 5.4 Release Candidate 1 is now available for download at http://mapserver.org/download.html. Only a couple of trivial changes were made since the beta 4 release. As always any help in testing the software is greatly appreciated. Findings should be sent to the mapserver-dev (or even just mapserver-users) mailing list. The updated 5.4 release plan can be found at: http://trac.osgeo.org/mapserver/wiki/54ReleasePlan Steve From subha at gslab.com Wed Apr 8 23:10:38 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Thu, 09 Apr 2009 11:40:38 +0530 Subject: [mapserver-users] changing rendered color of layer dynamically? In-Reply-To: <48E9D8A20200008F0001C3F9@co5.dnr.state.mn.us> References: <48E9D8A20200008F0001C3F9@co5.dnr.state.mn.us> Message-ID: <49DD915E.6090103@gslab.com> The solution didn't work for me. This is my url: "http://localhost/cgi-bin/mapserv?MAP=india_states.map&TRANSPARENT=true&LAYERS=india_states&map.layer[india_states].class[ANDHRA%20PRADESH].style[0].color+255+0+0&FORMAT=image%2Fpng& PROJECTION=EPSG%3A4326&REPROJECT=false&UNITS=m&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage &SRS=EPSG%3A900913&BBOX=8305796.970622223,1252337.1900454492,9558141.241822222,2504681.4612454493&WIDTH=256&HEIGHT=256" I get his error: "getSymbol(): Symbol definition error. Parsing error near ([):(line 1) ". Is there anything wrong in my url? Thanks for any help. Subha Steve Lime wrote: > Nikos: There can be more than one style in a class to you'd need the array notation there too: > > &map.layer[oikismoi].class[oikismoi].style[0].color+230+34+35 > > Does that work? > > Steve > > >>>> 10/06/08 8:18 AM >>> >>>> > Hello all, > > I've been scratching my head as to how to change the color that a layer > maybe rendered via a form. My users want to select which color the layers > should be rendered. > > Would appreciate a bit of insite. I'm using FW MS 5.1-dev > > I've tried, according to the docs, using layer and class names as well as > layer and class index and neither work... > > &map.layer[oikismoi].class[oikismoi].style.color+230+34+35 > &map.layer[0].class[0].style.color+230+34+35 > > > In MS 4.something, I used to use "map_layer_0_class_0_color=255+0+0" > successfully > > I've also tried to use something like > > CLASS # layer color change > EXPRESSION '%layer_color%' > style > backgroundcolor 128 128 128 > color 2 2 220 > outlinecolor 150 150 150 > end > END > > to at least statically test a substitution, but fail... > > below is a snip from my mapfile, > > sincerely, > > nikos > > LAYER > debug 5 > classitem "OBJECTID" > data "LANDUNIT_KARDITSA" > footer "LANDUNIT_KARDITSA_footer.html" > group "LANDUNIT_KARDITSA" > header "LANDUNIT_KARDITSA_header.html" > labelcache on > labelitem "OBJECTID" > name "LANDUNIT_KARDITSA" > postlabelcache true > status on > type polygon > OPACITY 70 > # 1 class LANDUNIT_KARDITSA > class > name "KARDITSA" > style > backgroundcolor 128 128 128 > #color 133 234 21 > color 22 200 22 > outlinecolor 50 50 50 > end > template "LANDUNIT_KARDITSA_query.html" > end > end > LAYER > DEBUG 5 > classitem "OBJECTID" > data "oikismoi" > footer "oikismoi_footer.html" > group "oikismoi" > header "oikismoi_header.html" > labelcache on > labelitem "OBJECTID" > name "oikismoi" > postlabelcache true > status on > type polygon > # 1 class oikismoi > class > name "oikismoi" > style > backgroundcolor 0 128 128 > color 22 122 233 > outlinecolor 0 0 0 > end > template "oikismoi_query.html" > end > end > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From schroete at iup.physik.uni-bremen.de Wed Apr 8 23:37:32 2009 From: schroete at iup.physik.uni-bremen.de (Heiko =?utf-8?q?Schr=C3=B6ter?=) Date: Thu, 9 Apr 2009 08:37:32 +0200 Subject: [mapserver-users] Layer Object Parameter Substitution fromURLusing GIS In-Reply-To: <49DC6BAF0200008F00022B21@co5.dnr.state.mn.us> References: <49DC6BAF0200008F00022B21@co5.dnr.state.mn.us> Message-ID: <200904090837.33269.schroete@iup.physik.uni-bremen.de> Hello Steve, Mapserver fails by just scanning the mapfile. Did fetch the 5.4_rc1 and installed it. But same behaviour as with the 5.4_beta. /usr/lib/cgi-bin/mapserv -v MapServer version 5.4.0-rc1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE [Thu Apr 9 08:13:06 2009].548952 loadHashTable(): Unknown identifier. Parsing error near (FILTER):(line 128) [Thu Apr 9 08:13:06 2009].549088 msFreeMap(): freeing map at 0x18c51b0. Did cut and paste your filter suggestion into the Mapfile but same result. I'am back in the office on 15th of April. Thanks for your effort. Regards Heiko > > LAYER > NAME 'psc' > ... > VALIDATION > filter '^orbitnr=[0-9]{1,5}$' > END > ... > END > > > You can set a far more general pattern (e.g. '.' matches anything) but I > recommend against it. The corrected MAPFILE: MAP NAME WELT CONFIG "MS_ERRORFILE" "/tmp/ms_error.txt" DEBUG 5 STATUS ON #SIZE 647 320 SIZE 800 400 IMAGETYPE PNG24 IMAGECOLOR 240 240 240 SHAPEPATH "data" #EXTENT -180 -89.8 180 83.623596 EXTENT -180 -90 180 90 UNITS DD WEB IMAGEPATH "images" IMAGEURL "images" MINSCALE 50000 MAXSCALE 400000000 METADATA "wms_title" "Example WMS Server" "wms_onlineresource" "http://kahlo1/cgi-bin/mapserv?map=heiko1.map&" "wms_srs" "epsg:4326 epsg:32661 epsg:32761 epsg:4308 epsg:3413 epsg:3575 epsg:0815 epsg:0816" END END PROJECTION "init=epsg:4326" END removed not needed layers for readability LAYER NAME "PSC" CONNECTIONTYPE POSTGIS OPACITY 30 STATUS ON METADATA "wms_title" "psc" END PROJECTION "init=epsg:4326" END CONNECTION "user=foo password=fum dbname=fei host=kahlo1" DATA "geocenter from scia_psc" VALIDATION FILTER '.' <--- Line 128 END FILTER "orbitnr=3456" TYPE POINT CLASS COLOR 250 10 10 SYMBOL "circle" SIZE 7 END END # Layer END # Ende Map From adrian_gh.popa at romtelecom.ro Thu Apr 9 01:25:15 2009 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Thu, 09 Apr 2009 11:25:15 +0300 Subject: [mapserver-users] Generating a symbol with a fixed size Message-ID: <49DDB0EB.7000306@romtelecom.ro> Hello everybody, I'm using mapserver v4.10 and I'm trying to display a circle symbol that has a fixed radius (in meters) that shows the coverage area over a map. The main problem is setting the radius so it would change and cover the same area with different zoom levels (more clearly - I want the radius to be 40m independent of the zoom selected). Is it possible to do with mapserver? The data (points) where I want to draw this symbol is available as an ESRI shapefile layer (as POINT data). Thanks in advance, -- --- Adrian Popa NOC Division Network Engineer Divizia Centrul National de Operare Retea Departament Transport IP & Metro Compartiment IP Core & Backbone Phone: +40 21 400 3099 From Steve.Lime at dnr.state.mn.us Thu Apr 9 06:11:43 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 09 Apr 2009 08:11:43 -0500 Subject: [mapserver-users] Layer Object Parameter Substitution fromURLusing GIS Message-ID: <49DDADC00200008F00022BEB@co5.dnr.state.mn.us> Hi Heiko: I'm thinking this is a problem with the snippet I sent you. Because MapServer is tokenizing the content of the VALIDATION block it's sees the word FILTER as a keyword that isn't allow in that block. The fix is to simply quote any validation keys that are keywords so the block becomes: VALIDATION 'filter' '^orbitnr=[0-9]{1,5}$' END I've tested on my end and things are ok. Steve >>> Heiko Schr?ter 04/09/09 1:38 AM >>> Hello Steve, Mapserver fails by just scanning the mapfile. Did fetch the 5.4_rc1 and installed it. But same behaviour as with the 5.4_beta. /usr/lib/cgi-bin/mapserv -v MapServer version 5.4.0-rc1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE [Thu Apr 9 08:13:06 2009].548952 loadHashTable(): Unknown identifier. Parsing error near (FILTER):(line 128) [Thu Apr 9 08:13:06 2009].549088 msFreeMap(): freeing map at 0x18c51b0. Did cut and paste your filter suggestion into the Mapfile but same result. I'am back in the office on 15th of April. Thanks for your effort. Regards Heiko > > LAYER > NAME 'psc' > ... > VALIDATION > filter '^orbitnr=[0-9]{1,5}$' > END > ... > END > > > You can set a far more general pattern (e.g. '.' matches anything) but I > recommend against it. The corrected MAPFILE: MAP NAME WELT CONFIG "MS_ERRORFILE" "/tmp/ms_error.txt" DEBUG 5 STATUS ON #SIZE 647 320 SIZE 800 400 IMAGETYPE PNG24 IMAGECOLOR 240 240 240 SHAPEPATH "data" #EXTENT -180 -89.8 180 83.623596 EXTENT -180 -90 180 90 UNITS DD WEB IMAGEPATH "images" IMAGEURL "images" MINSCALE 50000 MAXSCALE 400000000 METADATA "wms_title" "Example WMS Server" "wms_onlineresource" "http://kahlo1/cgi-bin/mapserv?map=heiko1.map&" "wms_srs" "epsg:4326 epsg:32661 epsg:32761 epsg:4308 epsg:3413 epsg:3575 epsg:0815 epsg:0816" END END PROJECTION "init=epsg:4326" END removed not needed layers for readability LAYER NAME "PSC" CONNECTIONTYPE POSTGIS OPACITY 30 STATUS ON METADATA "wms_title" "psc" END PROJECTION "init=epsg:4326" END CONNECTION "user=foo password=fum dbname=fei host=kahlo1" DATA "geocenter from scia_psc" VALIDATION FILTER '.' <--- Line 128 END FILTER "orbitnr=3456" TYPE POINT CLASS COLOR 250 10 10 SYMBOL "circle" SIZE 7 END END # Layer END # Ende Map From Steve.Lime at dnr.state.mn.us Thu Apr 9 06:56:27 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 09 Apr 2009 08:56:27 -0500 Subject: [mapserver-users] changing rendered color of layer dynamically? Message-ID: <49DDB83B0200008F00022C08@co5.dnr.state.mn.us> Versions 5+ use syntax like: map.layer[india_states].class[ANDHRA%20PRADESH].style[0]=COLOR+255+0+0 There was a typo in my old message. Since you're doing WMS you could/should use SLD. Steve >>> Subha Ramakrishnan 04/09/09 1:02 AM >>> The solution didn't work for me. This is my url: "http://localhost/cgi-bin/mapserv?MAP=india_states.map&TRANSPARENT=true&LAYERS=india_states&map.layer[india_states].class[ANDHRA%20PRADESH].style[0].color+255+0+0&FORMAT=image%2Fpng& PROJECTION=EPSG%3A4326&REPROJECT=false&UNITS=m&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage &SRS=EPSG%3A900913&BBOX=8305796.970622223,1252337.1900454492,9558141.241822222,2504681.4612454493&WIDTH=256&HEIGHT=256" I get his error: "getSymbol(): Symbol definition error. Parsing error near ([):(line 1) ". Is there anything wrong in my url? Thanks for any help. Subha Steve Lime wrote: > Nikos: There can be more than one style in a class to you'd need the array notation there too: > > &map.layer[oikismoi].class[oikismoi].style[0].color+230+34+35 > > Does that work? > > Steve > > >>>> 10/06/08 8:18 AM >>> >>>> > Hello all, > > I've been scratching my head as to how to change the color that a layer > maybe rendered via a form. My users want to select which color the layers > should be rendered. > > Would appreciate a bit of insite. I'm using FW MS 5.1-dev > > I've tried, according to the docs, using layer and class names as well as > layer and class index and neither work... > > &map.layer[oikismoi].class[oikismoi].style.color+230+34+35 > &map.layer[0].class[0].style.color+230+34+35 > > > In MS 4.something, I used to use "map_layer_0_class_0_color=255+0+0" > successfully > > I've also tried to use something like > > CLASS # layer color change > EXPRESSION '%layer_color%' > style > backgroundcolor 128 128 128 > color 2 2 220 > outlinecolor 150 150 150 > end > END > > to at least statically test a substitution, but fail... > > below is a snip from my mapfile, > > sincerely, > > nikos > > LAYER > debug 5 > classitem "OBJECTID" > data "LANDUNIT_KARDITSA" > footer "LANDUNIT_KARDITSA_footer.html" > group "LANDUNIT_KARDITSA" > header "LANDUNIT_KARDITSA_header.html" > labelcache on > labelitem "OBJECTID" > name "LANDUNIT_KARDITSA" > postlabelcache true > status on > type polygon > OPACITY 70 > # 1 class LANDUNIT_KARDITSA > class > name "KARDITSA" > style > backgroundcolor 128 128 128 > #color 133 234 21 > color 22 200 22 > outlinecolor 50 50 50 > end > template "LANDUNIT_KARDITSA_query.html" > end > end > LAYER > DEBUG 5 > classitem "OBJECTID" > data "oikismoi" > footer "oikismoi_footer.html" > group "oikismoi" > header "oikismoi_header.html" > labelcache on > labelitem "OBJECTID" > name "oikismoi" > postlabelcache true > status on > type polygon > # 1 class oikismoi > class > name "oikismoi" > style > backgroundcolor 0 128 128 > color 22 122 233 > outlinecolor 0 0 0 > end > template "oikismoi_query.html" > end > end > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Thu Apr 9 07:01:22 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 09 Apr 2009 09:01:22 -0500 Subject: [mapserver-users] Generating a symbol with a fixed size Message-ID: <49DDB9620200008F00022C1B@co5.dnr.state.mn.us> You can use the CLASS parameter SIZEUNITS to do this. For example: LAYER ... SIZEUNITS METERS CLASS ... SYMBOL 'circle' SIZE 40 END END I think that's right. Steve >>> Adrian Popa 04/09/09 3:26 AM >>> Hello everybody, I'm using mapserver v4.10 and I'm trying to display a circle symbol that has a fixed radius (in meters) that shows the coverage area over a map. The main problem is setting the radius so it would change and cover the same area with different zoom levels (more clearly - I want the radius to be 40m independent of the zoom selected). Is it possible to do with mapserver? The data (points) where I want to draw this symbol is available as an ESRI shapefile layer (as POINT data). Thanks in advance, -- --- Adrian Popa NOC Division Network Engineer Divizia Centrul National de Operare Retea Departament Transport IP & Metro Compartiment IP Core & Backbone Phone: +40 21 400 3099 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfischer at houstoneng.com Thu Apr 9 07:09:24 2009 From: bfischer at houstoneng.com (Fischer, Brian) Date: Thu, 9 Apr 2009 09:09:24 -0500 Subject: [mapserver-users] WFS layer and https Message-ID: <2EF6E1058C047344B4DE0FD141119167DEFA48@hex01.houstonengineeringinc.com> I'm trying to use a WFS that is coming from a SSL (https) server. Is it possible to use a WFS from an https connection? Here is the error I am getting. MapServer Message msDrawMap(): Image handling error. Failed to draw layer named 'obs'. msWFSLayerWhichShapes(): WFS connection error. Got HTTP status -60 downloading WFS layer obs msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 60 (SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed) for https://www.sharedgeo.org/datasets/RRV/maps/noaa/noaa.map?mode=ows&& amp;REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=ob s&BBOX=346334.183773962,5034450.028,903297.375226037,5434570.553 Thanks, Brian Brian Fischer, CFM GIS Project Manager Houston Engineering, Inc. | Leave Nothing to ChanceTM 6901 East Fish Lake Road, Suite 140 Maple Grove, MN 55369 Phone: 763.493.4522 / Fax: 763.493.5572 Email: bfischer at houstoneng.com Website: www.houstoneng.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.smith at usace.army.mil Thu Apr 9 07:30:51 2009 From: michael.smith at usace.army.mil (Michael Smith) Date: Thu, 09 Apr 2009 10:30:51 -0400 Subject: [mapserver-users] WFS layer and https In-Reply-To: <2EF6E1058C047344B4DE0FD141119167DEFA48@hex01.houstonengineeringinc.com> Message-ID: Brian, You need the servers certificate in your cURL certificate directory. Where to put it, I think, depends on your OS. The default in the Unix OS?s is /usr/share/ssl/certs. Mike -- Michael Smith RSGIS Center ERDC - CRREL US Army Corps of Engineers On 4/9/09 10:09 AM, "Fischer, Brian" wrote: > I?m trying to use a WFS that is coming from a SSL (https) server. Is it > possible to use a WFS from an https connection? Here is the error I am > getting. > > > MapServer Message > > > msDrawMap(): Image handling error. Failed to draw layer named 'obs'. > msWFSLayerWhichShapes(): WFS connection error. Got HTTP status -60 downloading > WFS layer obs > msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl > error code 60 (SSL certificate problem, verify that the CA cert is OK. > Details: > error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify > failed) for > https://www.sharedgeo.org/datasets/RRV/maps/noaa/noaa.map?mode=ows&&RE > QUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=obs&BBOX=3 > 46334.183773962,5034450.028,903297.375226037,5434570.553 > > > Thanks, > Brian > > Brian Fischer, CFM > GIS Project Manager > Houston Engineering, Inc. | Leave Nothing to ChanceTM > 6901 East Fish Lake Road, Suite 140 > Maple Grove, MN 55369 > Phone: 763.493.4522 / Fax: 763.493.5572 > Email: bfischer at houstoneng.com > Website: www.houstoneng.com > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at kyngchaos.com Thu Apr 9 08:17:05 2009 From: woklist at kyngchaos.com (William Kyngesburye) Date: Thu, 9 Apr 2009 10:17:05 -0500 Subject: [mapserver-users] MapServer 5.4 Release Candidate 1 Now Available In-Reply-To: <49DD01290200008F00022BC5@co5.dnr.state.mn.us> References: <49DD01290200008F00022BC5@co5.dnr.state.mn.us> Message-ID: <30D6F3E9-B28B-4BE5-9DFA-33F73223A06E@kyngchaos.com> The link on the download page is messed up. I had to go to download.osgeo.org/mapserver to download. On Apr 8, 2009, at 7:55 PM, Steve Lime wrote: > Greetings all: MapServer 5.4 Release Candidate 1 is now available > for download at http://mapserver.org/download.html. Only a couple of > trivial changes were made since the beta 4 release. As always any > help in testing the software is greatly appreciated. Findings should > be sent to the mapserver-dev (or even just mapserver-users) mailing > list. > > The updated 5.4 release plan can be found at: > > http://trac.osgeo.org/mapserver/wiki/54ReleasePlan > > Steve > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- William Kyngesburye http://www.kyngchaos.com/ The equator is so long, it could encircle the earth completely once. From bfischer at houstoneng.com Thu Apr 9 10:00:25 2009 From: bfischer at houstoneng.com (Fischer, Brian) Date: Thu, 9 Apr 2009 12:00:25 -0500 Subject: [mapserver-users] WFS layer and https In-Reply-To: References: <2EF6E1058C047344B4DE0FD141119167DEFA48@hex01.houstonengineeringinc.com> Message-ID: <2EF6E1058C047344B4DE0FD141119167DEFA57@hex01.houstonengineeringinc.com> Thanks Mike. We actually narrowed it down to a problem with MS4W. It appears that MS4W's libcurl does not include the root certificate authority bundle. I'll need to file a bug with MS4W. Thanks again for your help. Brian Fischer Houston Engineering, Inc. Maple Grove, MN (763) 493-4522 From: Michael Smith [mailto:michael.smith at usace.army.mil] Sent: Thursday, April 09, 2009 9:31 AM To: Fischer, Brian; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS layer and https Brian, You need the servers certificate in your cURL certificate directory. Where to put it, I think, depends on your OS. The default in the Unix OS's is /usr/share/ssl/certs. Mike -- Michael Smith RSGIS Center ERDC - CRREL US Army Corps of Engineers On 4/9/09 10:09 AM, "Fischer, Brian" wrote: I'm trying to use a WFS that is coming from a SSL (https) server. Is it possible to use a WFS from an https connection? Here is the error I am getting. MapServer Message msDrawMap(): Image handling error. Failed to draw layer named 'obs'. msWFSLayerWhichShapes(): WFS connection error. Got HTTP status -60 downloading WFS layer obs msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 60 (SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed) for https://www.sharedgeo.org/datasets/RRV/maps/noaa/noaa.map?mode=ows&& amp;REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=ob s&BBOX=346334.183773962,5034450.028,903297.375226037,5434570.553 Thanks, Brian Brian Fischer, CFM GIS Project Manager Houston Engineering, Inc. | Leave Nothing to ChanceTM 6901 East Fish Lake Road, Suite 140 Maple Grove, MN 55369 Phone: 763.493.4522 / Fax: 763.493.5572 Email: bfischer at houstoneng.com Website: www.houstoneng.com ________________________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Thu Apr 9 11:03:12 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 9 Apr 2009 13:03:12 -0500 Subject: [mapserver-users] Highlight Message-ID: Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Thu Apr 9 11:31:36 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 9 Apr 2009 13:31:36 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: References: Message-ID: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit more....after I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users at lists.osgeo.org' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruijgomes at gmail.com Thu Apr 9 11:33:44 2009 From: ruijgomes at gmail.com (Rui Gomes) Date: Thu, 9 Apr 2009 19:33:44 +0100 Subject: [mapserver-users] Help in Fedora Linux Message-ID: <31e2f7000904091133h7b5bbfc5uda7fed1f8e42933@mail.gmail.com> Hi... I build a websig in Linux Ubuntu and now i'm trying to do the same in Linux Fedora but i having a few problems. SELinux is preventing the write of the images in the tmp folder. How i solve this? Thanks -- Rui Gomes From pmoen at nd.gov Thu Apr 9 11:57:19 2009 From: pmoen at nd.gov (Moen, Paul T.) Date: Thu, 9 Apr 2009 13:57:19 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: Message-ID: Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); On 4/9/09 1:31 PM, "Jay Kapalczynski" wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit more....after I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users at lists.osgeo.org' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From iansgis at gmail.com Thu Apr 9 12:02:22 2009 From: iansgis at gmail.com (Ian) Date: Thu, 9 Apr 2009 12:02:22 -0700 Subject: [mapserver-users] PHP MapScript inserting extra parameters into.map file In-Reply-To: <49DCE203.5157.008F.0@dnr.state.mn.us> References: <5b61c6c50904081302n5f211797i737c56c2eb370d6f@mail.gmail.com> <49DD09D9.1050009@mapgears.com> <49DCD378.5157.008F.0@dnr.state.mn.us> <5b61c6c50904081456m4bd81c4dwde2011300bee2517@mail.gmail.com> <49DCE203.5157.008F.0@dnr.state.mn.us> Message-ID: <5b61c6c50904091202w609109a0j1182953d0a7abf9e@mail.gmail.com> The display of the data still works, however the altered .map file is no longer compatible with the OpenLayers wiki print.php code (http://trac.openlayers.org/wiki/Printing). I can't figure out why. My TileCache layers will still print but any layers coming from the PHP MapScript-edited map file no longer work. print.php doesn't throw any errors, the requested tiles all look valid, but the return is "500 Unexpected Error" and "Some unexpected error occurred. Error text was: " with no error text. The relevant bits from my map file: MAP EXTENT -180 -90 180 90 FONTSET "/var/www/html/maps/fontset.txt" IMAGECOLOR 60 100 145 IMAGETYPE png SYMBOLSET "/var/www/html/maps/symbols.sym" SHAPEPATH "data" SIZE 500 500 STATUS ON UNITS DD NAME "My map" OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "INTERLACE=OFF" END PROJECTION "init=epsg:4326" END ... MAP More is being changed by PHP MapScript than I realized, my OUTPUTFORMAT block becomes: OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE "PC256" TRANSPARENT FALSE END The layer that I am dynamically changing starts as: LAYER NAME "arrow" TYPE POLYGON PROJECTION "init=epsg:4326" END METADATA "wms_title" "arrow" END DATA shapefiles/arrow STATUS ON TRANSPARENCY ALPHA CLASS STYLE ANTIALIAS TRUE COLOR 255 0 0 OUTLINECOLOR 0 0 0 END ## Style END ## Class END ## Layer and after PHP MapScript runs looks like: LAYER DATA "shapefiles/arrow" METADATA "wms_title" "arrow" END NAME "arrow" PROJECTION "init=epsg:4326" END STATUS ON OPACITY ALPHA TYPE POLYGON UNITS METERS CLASS STYLE ANGLE 360 ANTIALIAS TRUE COLOR 255 0 0 OPACITY 100 OUTLINECOLOR 0 0 0 SYMBOL 0 END END END PHP MapScript is changing the OUTPUTFORMAT configuration (including deleting the FORMATOPTION "INTERLACE=OFF" parameter I need for TileCache), adding UNITS METERS, STYLE ANGLE 360 OPACITY 100 END to each LAYER, as well as changing TRANSPARENCY ALPHA to OPACITY ALPHA for each LAYER in the map. I realize that the anti-aliasing syntax I am using is deprecated and may change that but I'm going to ask again for what I put in my enhancement request ticket yesterday: Through a flag, configuration, directive, etc for PHP MapScript, enable it to ONLY change the parameters supplied in the script, and not alter/add/remove additional map parameters. Thank you, Ian On Wed, Apr 8, 2009 at 3:42 PM, Steve Lime wrote: > All that's happening is MapServer is writing the default values for some of the parameters. The mapfile > before and after should be functionally equivalent. Not sure how that would wreak havoc. Your input > mapfile is using older syntax (no styles) that the mapfile writer can't/won't produce. So at a minimum > you'd see the style block as output. > > Steve From jkapalczynski at ci.maple-grove.mn.us Thu Apr 9 12:17:35 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 9 Apr 2009 14:17:35 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: References: Message-ID: Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file and have the records returned from the query (database)...what would I have to do next to take those records and run a query to highlight the parcels (PID to PID)? Can all of this be accomplished in the PHP file? Thanks...and sorry for my ignorance... From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 1:57 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); On 4/9/09 1:31 PM, "Jay Kapalczynski" wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit more....after I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users at lists.osgeo.org' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmoen at nd.gov Thu Apr 9 13:14:43 2009 From: pmoen at nd.gov (Moen, Paul T.) Date: Thu, 9 Apr 2009 15:14:43 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: Message-ID: If the database that you are querying has the same attributes as the shape file, you can query the Layer that points to the shape file and display the highlighted results on your map. I know nothing about GeoMOOSE but I know it can be done with php-mapscript. Regardless of what you are using, you need a map file layer for the shape file with the parcels. You will then need to use php-mapscript to query that layer with something like $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); You will then need to create the output image from query using something like $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); I can't give you specifics without knowing how GeoMOOSE works, so the best thing is to look at the documentation for GeoMOOSE if that is what you are using. On 4/9/09 2:17 PM, "Jay Kapalczynski" wrote: Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file and have the records returned from the query (database)...what would I have to do next to take those records and run a query to highlight the parcels (PID to PID)? Can all of this be accomplished in the PHP file? Thanks...and sorry for my ignorance... From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 1:57 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); On 4/9/09 1:31 PM, "Jay Kapalczynski" wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit more....after I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users at lists.osgeo.org ' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks Paul Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Thu Apr 9 13:31:02 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 9 Apr 2009 15:31:02 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: References: Message-ID: Thanks for your response... $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); Is the 1, 2,7,9,23,87 examples of PID values, if so I assume that these can be replaced with variables? Thanks again From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 3:15 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight If the database that you are querying has the same attributes as the shape file, you can query the Layer that points to the shape file and display the highlighted results on your map. I know nothing about GeoMOOSE but I know it can be done with php-mapscript. Regardless of what you are using, you need a map file layer for the shape file with the parcels. You will then need to use php-mapscript to query that layer with something like $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); You will then need to create the output image from query using something like $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); I can't give you specifics without knowing how GeoMOOSE works, so the best thing is to look at the documentation for GeoMOOSE if that is what you are using. On 4/9/09 2:17 PM, "Jay Kapalczynski" wrote: Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file and have the records returned from the query (database)...what would I have to do next to take those records and run a query to highlight the parcels (PID to PID)? Can all of this be accomplished in the PHP file? Thanks...and sorry for my ignorance... From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 1:57 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); On 4/9/09 1:31 PM, "Jay Kapalczynski" wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit more....after I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users at lists.osgeo.org ' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks Paul Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Apr 9 13:34:22 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 9 Apr 2009 15:34:22 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA3A6@s-sp22.pca.state.mn.us> Or a string variable containing a comma-delimited list of the ID numbers that you really want? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, April 09, 2009 3:31 PM To: 'Moen, Paul T.'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Highlight Thanks for your response... $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); Is the 1, 2,7,9,23,87 examples of PID values, if so I assume that these can be replaced with variables? Thanks again From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 3:15 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight If the database that you are querying has the same attributes as the shape file, you can query the Layer that points to the shape file and display the highlighted results on your map. I know nothing about GeoMOOSE but I know it can be done with php-mapscript. Regardless of what you are using, you need a map file layer for the shape file with the parcels. You will then need to use php-mapscript to query that layer with something like $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); You will then need to create the output image from query using something like $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); I can't give you specifics without knowing how GeoMOOSE works, so the best thing is to look at the documentation for GeoMOOSE if that is what you are using. On 4/9/09 2:17 PM, "Jay Kapalczynski" wrote: Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file and have the records returned from the query (database)...what would I have to do next to take those records and run a query to highlight the parcels (PID to PID)? Can all of this be accomplished in the PHP file? Thanks...and sorry for my ignorance... From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 1:57 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); On 4/9/09 1:31 PM, "Jay Kapalczynski" wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit more....after I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users at lists.osgeo.org ' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks Paul Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Thu Apr 9 13:49:10 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 9 Apr 2009 15:49:10 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA3A6@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA3A6@s-sp22.pca.state.mn.us> Message-ID: That's what I was figuring....right now I have some code that is in a while loop building the table from the query... I think maybe here I can build a list of PID values that can be sent to a PHP page Once at the PHP page I can then write code that will highlight the features in the map based off of the Parcels Shapefile... Does that make sense? Is that feasible??? Something like this? THANKS
"; BUILD THE COMMA DELIMITED LIST RIGHT HERE } // end while AFTER ALL HAVE BEEN SELECTED and THE LIST BUILT SEND THE LIST TO ANOTHER PHP PAGE TO HANDLE THE HIGHLIGHTING OF THE FEATURES ?> From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Thursday, April 09, 2009 3:34 PM To: Jay Kapalczynski; Moen, Paul T.; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Highlight Or a string variable containing a comma-delimited list of the ID numbers that you really want? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, April 09, 2009 3:31 PM To: 'Moen, Paul T.'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Highlight Thanks for your response... $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); Is the 1, 2,7,9,23,87 examples of PID values, if so I assume that these can be replaced with variables? Thanks again From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 3:15 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight If the database that you are querying has the same attributes as the shape file, you can query the Layer that points to the shape file and display the highlighted results on your map. I know nothing about GeoMOOSE but I know it can be done with php-mapscript. Regardless of what you are using, you need a map file layer for the shape file with the parcels. You will then need to use php-mapscript to query that layer with something like $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); You will then need to create the output image from query using something like $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); I can't give you specifics without knowing how GeoMOOSE works, so the best thing is to look at the documentation for GeoMOOSE if that is what you are using. On 4/9/09 2:17 PM, "Jay Kapalczynski" wrote: Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file and have the records returned from the query (database)...what would I have to do next to take those records and run a query to highlight the parcels (PID to PID)? Can all of this be accomplished in the PHP file? Thanks...and sorry for my ignorance... From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 1:57 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); On 4/9/09 1:31 PM, "Jay Kapalczynski" wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit more....after I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users at lists.osgeo.org ' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks Paul Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmoen at nd.gov Thu Apr 9 14:13:40 2009 From: pmoen at nd.gov (Moen, Paul T.) Date: Thu, 9 Apr 2009 16:13:40 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: Message-ID: Yes, that looks feasible. On 4/9/09 3:49 PM, "Jay Kapalczynski" wrote: That's what I was figuring....right now I have some code that is in a while loop building the table from the query... I think maybe here I can build a list of PID values that can be sent to a PHP page Once at the PHP page I can then write code that will highlight the features in the map based off of the Parcels Shapefile... Does that make sense? Is that feasible??? Something like this? THANKS "; BUILD THE COMMA DELIMITED LIST RIGHT HERE } // end while AFTER ALL HAVE BEEN SELECTED and THE LIST BUILT SEND THE LIST TO ANOTHER PHP PAGE TO HANDLE THE HIGHLIGHTING OF THE FEATURES ?> From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Thursday, April 09, 2009 3:34 PM To: Jay Kapalczynski; Moen, Paul T.; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Highlight Or a string variable containing a comma-delimited list of the ID numbers that you really want? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, April 09, 2009 3:31 PM To: 'Moen, Paul T.'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Highlight Thanks for your response... $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); Is the 1, 2,7,9,23,87 examples of PID values, if so I assume that these can be replaced with variables? Thanks again From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 3:15 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight If the database that you are querying has the same attributes as the shape file, you can query the Layer that points to the shape file and display the highlighted results on your map. I know nothing about GeoMOOSE but I know it can be done with php-mapscript. Regardless of what you are using, you need a map file layer for the shape file with the parcels. You will then need to use php-mapscript to query that layer with something like $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); You will then need to create the output image from query using something like $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); I can't give you specifics without knowing how GeoMOOSE works, so the best thing is to look at the documentation for GeoMOOSE if that is what you are using. On 4/9/09 2:17 PM, "Jay Kapalczynski" wrote: Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file and have the records returned from the query (database)...what would I have to do next to take those records and run a query to highlight the parcels (PID to PID)? Can all of this be accomplished in the PHP file? Thanks...and sorry for my ignorance... From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 1:57 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); On 4/9/09 1:31 PM, "Jay Kapalczynski" wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit more....after I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users at lists.osgeo.org ' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks Paul Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcacibar at gmail.com Thu Apr 9 16:55:56 2009 From: falcacibar at gmail.com (Felipe Alcacibar) Date: Thu, 9 Apr 2009 19:55:56 -0400 Subject: [mapserver-users] msIO_getStdoutBufferBytes(), gdBuffer in mapscript perl Message-ID: <72e3fc8f0904091655n16847732s6b5e0b14001ddb63@mail.gmail.com> Hi, i'm trying to implement a wms server with a perl api of mapscript but i cannot understand how msIO_getStdoutBufferBytes() work in the docs msIO_getStdoutBufferBytes() function return the binary content of the current output but i cannot see that, when i dump with Data::Dump::Streamer i got: -> $_p_gdBuffer1 = bless( \do { my $v = 152646680 }, '_p_gdBuffer' ); I go to read the sources of the mapscript perl implementation and i found a struct with properties data and size, but i cannot get that i got that when i try to dump data. -> Can't locate object method "data" via package "_p_gdBuffer" at /home/counter/mscacherd/maptest.pl line 36. How it works in perl, how i can get the data from the gdBuffer perl class? Thanks in advice. Greetings Felipe From falcacibar at gmail.com Thu Apr 9 17:00:55 2009 From: falcacibar at gmail.com (Felipe Alcacibar) Date: Thu, 9 Apr 2009 20:00:55 -0400 Subject: [mapserver-users] Re: msIO_getStdoutBufferBytes(), gdBuffer in mapscript perl In-Reply-To: <72e3fc8f0904091655n16847732s6b5e0b14001ddb63@mail.gmail.com> References: <72e3fc8f0904091655n16847732s6b5e0b14001ddb63@mail.gmail.com> Message-ID: <72e3fc8f0904091700ndff3471g7ccead871fae63f0@mail.gmail.com> sorry, i forget that: This is the version i use, i'm on gentoo linux Perl> use mapscript; Perl> print mapscript::msGetVersion(); MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE1 Perl> print mapscript::msGetVersionInt(); 500001 Perl> exit From joel.d.schlagel at usace.army.mil Thu Apr 9 17:16:16 2009 From: joel.d.schlagel at usace.army.mil (Joel D. Schlagel) Date: Thu, 09 Apr 2009 20:16:16 -0400 Subject: [mapserver-users] MapServer & Arctic Sea Ice Cover In-Reply-To: <72e3fc8f0904091655n16847732s6b5e0b14001ddb63@mail.gmail.com> Message-ID: A MapServer web site of interest: US Army Cold Regions Research & Engineering Lab Ice Mass Balance web site. Movement of sea ice is monitored by sensors on buoys and locations are plotted using MapServer. No snazzy interface here - just a lot of interesting data. http://imb.crrel.usace.army.mil/ You can read about the buoys here: http://imb.crrel.usace.army.mil/buoyinst.htm -joel From romero619 at hotmail.com Thu Apr 9 22:16:20 2009 From: romero619 at hotmail.com (P.Romero) Date: Fri, 10 Apr 2009 00:16:20 -0500 Subject: [mapserver-users] error loading php_mapscript.so on apache start Message-ID: I am able to dynamically load php_mapscript.so successfully on apache/fedora (latest versions of everything.). However, trying to load the module at apache startup (by adding it to httpd.conf, "LoadModule.") fails with the following error: Cannot load /etc/httpd/modules/php_mapscript.so into server: /etc/httpd/modules/php_mapscript.so: undefined symbol: convert_to_double I tried placing the module in its default directory (/usr/lib/php/modules), but this also didn't work. Why am I possibly receiving this error? What should I do to correct this, and be able to load php_mapscript when apache starts? Please help, Thanks, P.Romero -------------- next part -------------- An HTML attachment was scrubbed... URL: From project10 at project10.net Thu Apr 9 22:26:41 2009 From: project10 at project10.net (Shawn Gervais) Date: Fri, 10 Apr 2009 00:26:41 -0500 Subject: [mapserver-users] error loading php_mapscript.so on apache start In-Reply-To: References: Message-ID: <49DED891.30908@project10.net> > However, trying to load the module at apache startup (by adding it to > httpd.conf, ?LoadModule??) fails with the following error: That's because php_mapscript.so is not an Apache module, it is a PHP module. If you want to load the php_mapscript module automatically when Apache starts, you need to load it from php.ini -S From romero619 at hotmail.com Thu Apr 9 23:18:56 2009 From: romero619 at hotmail.com (P.Romero) Date: Fri, 10 Apr 2009 01:18:56 -0500 Subject: [mapserver-users] error loading php_mapscript.so on apache start In-Reply-To: <49DED891.30908@project10.net> References: <49DED891.30908@project10.net> Message-ID: Ok, so I added it to php.ini instead, and now Im getting this error: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/php_mapscript.so' - /usr/lib/php/modules/php_mapscript.so: undefined symbol: php_gd_gdImageCopy in Unknown on line 0 Im guessing gd needs to load first. Any ideas on how to fix this? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Shawn Gervais Sent: 2009-04-10 12:27 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] error loading php_mapscript.so on apache start > However, trying to load the module at apache startup (by adding it to > httpd.conf, "LoadModule.") fails with the following error: That's because php_mapscript.so is not an Apache module, it is a PHP module. If you want to load the php_mapscript module automatically when Apache starts, you need to load it from php.ini -S _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From romero619 at hotmail.com Thu Apr 9 23:22:11 2009 From: romero619 at hotmail.com (P.Romero) Date: Fri, 10 Apr 2009 01:22:11 -0500 Subject: [mapserver-users] error loading php_mapscript.so on apache start In-Reply-To: <49DED891.30908@project10.net> References: <49DED891.30908@project10.net> Message-ID: Nevermind, I found the answer: fedora has multiple .ini files that load its php extensions. Adding the 'extension=php_mapscript.so' line to the gd.ini file in '/etc/php.d' directory solved the problem. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Shawn Gervais Sent: 2009-04-10 12:27 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] error loading php_mapscript.so on apache start > However, trying to load the module at apache startup (by adding it to > httpd.conf, "LoadModule.") fails with the following error: That's because php_mapscript.so is not an Apache module, it is a PHP module. If you want to load the php_mapscript module automatically when Apache starts, you need to load it from php.ini -S _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From adrian_gh.popa at romtelecom.ro Thu Apr 9 23:45:19 2009 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Fri, 10 Apr 2009 09:45:19 +0300 Subject: [mapserver-users] Help in Fedora Linux In-Reply-To: <31e2f7000904091133h7b5bbfc5uda7fed1f8e42933@mail.gmail.com> References: <31e2f7000904091133h7b5bbfc5uda7fed1f8e42933@mail.gmail.com> Message-ID: <49DEEAFF.5040004@romtelecom.ro> You could disable selinux by setting: SELINUX=disabled in /etc/sysconfig/selinux and rebooting your system. If you want to use selinux, you will need to create a set of "permissions" to allow mapserver to write to specific directories - but it's beyond my level of expertise... Rui Gomes wrote: > Hi... > > I build a websig in Linux Ubuntu and now i'm trying to do the same in > Linux Fedora but i having a few problems. > SELinux is preventing the write of the images in the tmp folder. > How i solve this? > > Thanks > > > -- --- Adrian Popa NOC Division Network Engineer Divizia Centrul National de Operare Retea Departament Transport IP & Metro Compartiment IP Core & Backbone Phone: +40 21 400 3099 From subha at gslab.com Fri Apr 10 02:02:02 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Fri, 10 Apr 2009 14:32:02 +0530 Subject: [mapserver-users] changing rendered color of layer dynamically? In-Reply-To: <49DDB83B0200008F00022C08@co5.dnr.state.mn.us> References: <49DDB83B0200008F00022C08@co5.dnr.state.mn.us> Message-ID: <49DF0B0A.3030405@gslab.com> Hi Steve, Thanks for the help.It worked fine..:) Subha Steve Lime wrote: > Versions 5+ use syntax like: > > map.layer[india_states].class[ANDHRA%20PRADESH].style[0]=COLOR+255+0+0 > > There was a typo in my old message. Since you're doing WMS you could/should use SLD. > > Steve > > >>>> Subha Ramakrishnan 04/09/09 1:02 AM >>> >>>> > The solution didn't work for me. > This is my url: > "http://localhost/cgi-bin/mapserv?MAP=india_states.map&TRANSPARENT=true&LAYERS=india_states&map.layer[india_states].class[ANDHRA%20PRADESH].style[0].color+255+0+0&FORMAT=image%2Fpng& > PROJECTION=EPSG%3A4326&REPROJECT=false&UNITS=m&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage > &SRS=EPSG%3A900913&BBOX=8305796.970622223,1252337.1900454492,9558141.241822222,2504681.4612454493&WIDTH=256&HEIGHT=256" > > I get his error: "getSymbol(): Symbol definition error. Parsing error > near ([):(line 1) ". > Is there anything wrong in my url? > > Thanks for any help. > > Subha > > Steve Lime wrote: > >> Nikos: There can be more than one style in a class to you'd need the array notation there too: >> >> &map.layer[oikismoi].class[oikismoi].style[0].color+230+34+35 >> >> Does that work? >> >> Steve >> >> >> >>>>> 10/06/08 8:18 AM >>> >>>>> >>>>> >> Hello all, >> >> I've been scratching my head as to how to change the color that a layer >> maybe rendered via a form. My users want to select which color the layers >> should be rendered. >> >> Would appreciate a bit of insite. I'm using FW MS 5.1-dev >> >> I've tried, according to the docs, using layer and class names as well as >> layer and class index and neither work... >> >> &map.layer[oikismoi].class[oikismoi].style.color+230+34+35 >> &map.layer[0].class[0].style.color+230+34+35 >> >> >> In MS 4.something, I used to use "map_layer_0_class_0_color=255+0+0" >> successfully >> >> I've also tried to use something like >> >> CLASS # layer color change >> EXPRESSION '%layer_color%' >> style >> backgroundcolor 128 128 128 >> color 2 2 220 >> outlinecolor 150 150 150 >> end >> END >> >> to at least statically test a substitution, but fail... >> >> below is a snip from my mapfile, >> >> sincerely, >> >> nikos >> >> LAYER >> debug 5 >> classitem "OBJECTID" >> data "LANDUNIT_KARDITSA" >> footer "LANDUNIT_KARDITSA_footer.html" >> group "LANDUNIT_KARDITSA" >> header "LANDUNIT_KARDITSA_header.html" >> labelcache on >> labelitem "OBJECTID" >> name "LANDUNIT_KARDITSA" >> postlabelcache true >> status on >> type polygon >> OPACITY 70 >> # 1 class LANDUNIT_KARDITSA >> class >> name "KARDITSA" >> style >> backgroundcolor 128 128 128 >> #color 133 234 21 >> color 22 200 22 >> outlinecolor 50 50 50 >> end >> template "LANDUNIT_KARDITSA_query.html" >> end >> end >> LAYER >> DEBUG 5 >> classitem "OBJECTID" >> data "oikismoi" >> footer "oikismoi_footer.html" >> group "oikismoi" >> header "oikismoi_header.html" >> labelcache on >> labelitem "OBJECTID" >> name "oikismoi" >> postlabelcache true >> status on >> type polygon >> # 1 class oikismoi >> class >> name "oikismoi" >> style >> backgroundcolor 0 128 128 >> color 22 122 233 >> outlinecolor 0 0 0 >> end >> template "oikismoi_query.html" >> end >> end >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From M.Koch at bridgis.nl Fri Apr 10 02:10:19 2009 From: M.Koch at bridgis.nl (Martin Koch) Date: Fri, 10 Apr 2009 11:10:19 +0200 Subject: [mapserver-users] Mapserver 5.0.3 on Ubuntu 8.10-AMD64 TrueType font problem Message-ID: <1239354619.22154.17.camel@martink> I have cgi-mapserver 5.0.0.3 running on Server 8.04 i386 without any problem. I installed cgi-mapserver 5.0.3 on a Server 8.10-amd64 machine from the Ubuntu repository. The two machines are identical in their installed packages, appart from of course the latter being 8.10 and 64 bits. I used the same mapfiles. Everything works fine appart but when I use TrueType fonts for displaying labels I get a '500 Internal Server Error'. A default bitmap-font works well, but not the truetype font's I refer to in my fontset. I checked all my path's tripple, compared both servers for different right's settings, apache2 settings and installed packages. I reinstalled dependencies as libfreetype6 but still 'no go' with truetype. Anyone have a clue? Thanks for reading, Martin - _____________________________ Martin Koch Teamleider data Bridgis b.v. Sint Walburgkerkpad 3 4001 MG Tiel -------------- next part -------------- An HTML attachment was scrubbed... URL: From boesiii at yahoo.com Fri Apr 10 05:37:19 2009 From: boesiii at yahoo.com (boesiii) Date: Fri, 10 Apr 2009 05:37:19 -0700 (PDT) Subject: [mapserver-users] Can I classify attributes using a wildcard? Message-ID: <1239367039803-2615958.post@n2.nabble.com> I would like classify a road centerline shapefile. The shapefile has a coded attribute representing the type of road (ex. A11, A15, A16, A22, A25). Is there a way I can use a wildcard in my expression (ex. EXPRESSION 'A1*' ) so mapserver will classify all values with a "A1_"? -- View this message in context: http://n2.nabble.com/Can-I-classify-attributes-using-a-wildcard--tp2615958p2615958.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Fri Apr 10 06:41:32 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 10 Apr 2009 09:41:32 -0400 Subject: [mapserver-users] msIO_getStdoutBufferBytes(), gdBuffer in mapscript perl In-Reply-To: <72e3fc8f0904091655n16847732s6b5e0b14001ddb63@mail.gmail.com> References: <72e3fc8f0904091655n16847732s6b5e0b14001ddb63@mail.gmail.com> Message-ID: <49DF4C8C.5030706@mapgears.com> Just a guess since I'm not very familiar with the Perl SWIG stuff, but maybe the patch from this ticket could help? http://trac.osgeo.org/mapserver/ticket/2962 If I'm not mistaken it solves a similar problem with the imageObj.getBytes return value, and I presume the problem you encountered needs a similar solution. Daniel Felipe Alcacibar wrote: > Hi, i'm trying to implement a wms server with a perl api of mapscript > but i cannot understand how msIO_getStdoutBufferBytes() work > in the docs msIO_getStdoutBufferBytes() function return the binary > content of the current output but i cannot see that, when i dump with > Data::Dump::Streamer i got: > > -> $_p_gdBuffer1 = bless( \do { my $v = 152646680 }, '_p_gdBuffer' ); > > > I go to read the sources of the mapscript perl implementation and i > found a struct with properties data and size, but i cannot get that i > got that when i try to dump data. > > -> Can't locate object method "data" via package "_p_gdBuffer" at > /home/counter/mscacherd/maptest.pl line 36. > > > How it works in perl, how i can get the data from the gdBuffer perl class? > > > Thanks in advice. > Greetings > > > Felipe > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Fri Apr 10 06:55:22 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 10 Apr 2009 09:55:22 -0400 Subject: [mapserver-users] Mapserver 5.0.3 on Ubuntu 8.10-AMD64 TrueType font problem In-Reply-To: <1239354619.22154.17.camel@martink> References: <1239354619.22154.17.camel@martink> Message-ID: <49DF4FCA.2070203@mapgears.com> Martin Koch wrote: > > I used the same mapfiles. Everything works fine appart but when > I use TrueType fonts for displaying labels I get a '500 Internal Server > Error'. A default bitmap-font works well, but not the truetype font's I > refer to in my fontset. > > I checked all my path's tripple, compared both servers for different > right's settings, apache2 settings and installed packages. I reinstalled > dependencies as libfreetype6 but still 'no go' with truetype. > I'd say check the paths inside your fontset again. I found and fixed a very similar issue in v5.2 earlier this week, and it was caused by the font file not being found. I would not be surprised if the same issue existed in 5.0 as well: http://trac.osgeo.org/mapserver/ticket/2973 Another hint: set CONFIG MS_ERRORFILE "stderr" in your mapfile and look for any error in the Apache error_log. In the case of the ticket above, the "font not found" error was not trapped properly but it would have showed up in the error_log before the crash (unless stderr buffering would have prevented it from getting to the log file before the crash). Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Fri Apr 10 06:57:34 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 10 Apr 2009 09:57:34 -0400 Subject: [mapserver-users] Can I classify attributes using a wildcard? In-Reply-To: <1239367039803-2615958.post@n2.nabble.com> References: <1239367039803-2615958.post@n2.nabble.com> Message-ID: <49DF504E.4030705@mapgears.com> boesiii wrote: > I would like classify a road centerline shapefile. The shapefile has a coded attribute representing the type of road (ex. A11, A15, A16, A22, A25). Is there a way I can use a wildcard in my expression (ex. EXPRESSION 'A1*' ) so mapserver will classify all values with a "A1_"? Yes, using a REGEX expression would do it. The following expression will match anything starting with A1: EXPRESSION /^A1/ Daniel -- Daniel Morissette http://www.mapgears.com/ From nagal005 at umn.edu Fri Apr 10 07:19:48 2009 From: nagal005 at umn.edu (new2ms4w) Date: Fri, 10 Apr 2009 07:19:48 -0700 (PDT) Subject: [mapserver-users] moving points using wms layer Message-ID: <1239373188396-2616408.post@n2.nabble.com> Hello list, I want to display moving points on a map using a WMS layer. Currently I'm only able to add static points on to the map. Can you tell me how do I get them to move from one (lon, lat) to other. Does Mapserver even support it? One way of doing that could be to refresh the map every few seconds, but it can't work for me. I want the user to keep browsing the map while the points keep moving on a network. Please help me out with this. I've searched the archives a lot, but couldn't find any answer. Thanks -Pradeep PS: Previously, I was doing this using OpenLayers. But OL is not scalable because it works locally on the browser. -- View this message in context: http://n2.nabble.com/moving-points-using-wms-layer-tp2616408p2616408.html Sent from the Mapserver - User mailing list archive at Nabble.com. From fsalas at geocuba.cu Fri Apr 10 03:25:47 2009 From: fsalas at geocuba.cu (fsalas) Date: Fri, 10 Apr 2009 12:25:47 +0200 Subject: [mapserver-users] I Need help to dowload a projects Message-ID: <00d701c9b9c6$cba1c6d0$3698a8c0@mapificacion03> Hi, In this moment I try to development one application web using openlayer and mapserver, i need make a GIS application with menus, Forms, etc. In internet I found an interesting project: "The PHP-Ext Open Source Project" in this url http://php-ext.quimera-solutions.com/?id=download, but I cant?t download this page because it is restricted from my country. do someone know other site which I can download this application? best regards Francisco Salas ___________________________________ Direcci?n de Comunicaciones Grupo Empresarial GEOCUBA Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus ---------------------------------------------------------------------- Engine version: 4.0.1.14 Engine date: 2002/06/25 Definition count: 1831696 Definition date: 2009/04/09 MDAV version: 2.2.8 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tech_dev at wildintellect.com Fri Apr 10 09:39:28 2009 From: tech_dev at wildintellect.com (Alex Mandel) Date: Fri, 10 Apr 2009 09:39:28 -0700 Subject: [mapserver-users] I Need help to dowload a projects In-Reply-To: <00d701c9b9c6$cba1c6d0$3698a8c0@mapificacion03> References: <00d701c9b9c6$cba1c6d0$3698a8c0@mapificacion03> Message-ID: <49DF7640.8040309@wildintellect.com> I don't have exactly the answer you're looking for, but the key component you need is ext which you would get from http://extjs.com/products/extcore/ No idea if they restrict their downloads, Alex fsalas wrote: > Hi, > In this moment I try to development one application web using openlayer and mapserver, i need make a GIS application with menus, Forms, etc. In internet I found an interesting project: > > "The PHP-Ext Open Source Project" in this url http://php-ext.quimera-solutions.com/?id=download, but I cant?t download this page because it is restricted from my country. > > do someone know other site which I can download this application? > > best regards > > Francisco Salas > > > ___________________________________ > Direcci?n de Comunicaciones > Grupo Empresarial GEOCUBA > Este mensaje esta libre de virus. > Revisado por Kaspersky Antivirus > ---------------------------------------------------------------------- > Engine version: 4.0.1.14 > Engine date: 2002/06/25 > Definition count: 1831696 > Definition date: 2009/04/09 > MDAV version: 2.2.8 > > > > From youngkkim at gmail.com Fri Apr 10 09:56:24 2009 From: youngkkim at gmail.com (Young Kim) Date: Fri, 10 Apr 2009 09:56:24 -0700 Subject: [mapserver-users] dot density Message-ID: Hi, I'm trying to do a dot density map using MapServer. example: http://www.flickr.com/photos/stupiddingo/2247196213/ given a polygon, want to fill using dots placed randomly. Tried using carto symbols, but they fill up too orderly. Has anyone attemped this rendering? Thanks. From damarmo at gmail.com Fri Apr 10 10:40:17 2009 From: damarmo at gmail.com (David Martinez Morata) Date: Fri, 10 Apr 2009 19:40:17 +0200 Subject: [mapserver-users] I Need help to dowload a projects In-Reply-To: <49DF7640.8040309@wildintellect.com> References: <00d701c9b9c6$cba1c6d0$3698a8c0@mapificacion03> <49DF7640.8040309@wildintellect.com> Message-ID: <9771eb540904101040w4ce28a26h1fa3e4f625d7891c@mail.gmail.com> Try this, http://trac.mapfish.org/trac/mapfish/wiki It's Ext with openlayers, without php but onli JavaScript 2009/4/10 Alex Mandel > I don't have exactly the answer you're looking for, but the key > component you need is ext which you would get from > http://extjs.com/products/extcore/ > > No idea if they restrict their downloads, > Alex > > fsalas wrote: > > Hi, > > In this moment I try to development one application web using openlayer > and mapserver, i need make a GIS application with menus, Forms, etc. In > internet I found an interesting project: > > > > "The PHP-Ext Open Source Project" in this url > http://php-ext.quimera-solutions.com/?id=download, but I cant?t download > this page because it is restricted from my country. > > > > do someone know other site which I can download this application? > > > > best regards > > > > Francisco Salas > > > > > > ___________________________________ > > Direcci?n de Comunicaciones > > Grupo Empresarial GEOCUBA > > Este mensaje esta libre de virus. > > Revisado por Kaspersky Antivirus > > ---------------------------------------------------------------------- > > Engine version: 4.0.1.14 > > Engine date: 2002/06/25 > > Definition count: 1831696 > > Definition date: 2009/04/09 > > MDAV version: 2.2.8 > > > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Martinez Morata David Thinking GIS -------------- next part -------------- An HTML attachment was scrubbed... URL: From jncoign at Knology.net Fri Apr 10 13:11:05 2009 From: jncoign at Knology.net (joncoign) Date: Fri, 10 Apr 2009 13:11:05 -0700 (PDT) Subject: [mapserver-users] fcgi x64 fault on WFS layer Message-ID: <1239394265623-2618112.post@n2.nabble.com> I have been doing some testing with the 64 bit version of mapserver on Server 2008. I have been getting a fast cgi error on WFS requests using the OGR ODBC driver connecting to a SQL Server 2008 database when the stored procedure called return greater than five columns. I have been building the x64 version of mapserver using the GDAL and MapServer build SDK packages from http://vbkto.dyndns.org:1280/sdk/index.html The code works when compiled to 32bit and errors when compiled to 64 bit. The only change I am making is which visual studio command prompt is launching so the makefile will detect the 32bit or 64bit target. Map files and the database used are the same. The 32bit and 64bit DSN are configured identically. The fault error that shows up in the Application log is: Faulting application mapserv.exe, version 0.0.0.0, time stamp 0x49df83af, faulting module ntdll.dll, version 6.0.6001.18000, time stamp 0x4791adec, exception code 0xc0000005, fault offset 0x0000000000047960, process id 0x644, application start time 0x01c9ba133caa4496. I have also verified the behavior in the compiled x64 binaries from the MSVC2008 (Win64) -stable release. -- View this message in context: http://n2.nabble.com/fcgi-x64-fault-on-WFS-layer-tp2618112p2618112.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jncoign at Knology.net Fri Apr 10 13:15:03 2009 From: jncoign at Knology.net (joncoign) Date: Fri, 10 Apr 2009 13:15:03 -0700 (PDT) Subject: [mapserver-users] How to access Templating: Map Geometry Variables(or Equivalent) from OGR Connection In-Reply-To: <49D5D9240200008F00022866@co5.dnr.state.mn.us> References: <49D5D9240200008F00022866@co5.dnr.state.mn.us> Message-ID: <1239394503183-2618125.post@n2.nabble.com> Steve, I am setup to build mapserver now and have a working dev build. If you can point me to the correct spot in the CGI code to try out substituting the template values to the OGR SrcSQL element I will attempt the change. Jon This would be a feature request. The runtime subs are done well ahead of the computation of things like map extent. This would be a relatively simple hack and I can show you where in the CGI code to try it out if you'd like. Steve >>> joncoign 04/02/09 10:47 AM >>> I didn't get a response to my previous post so I wanted to rewrite it and attempt to make it more general. We make OGR ODBC requests to SQL Server 2005 with MSSQLSpatial extensions. To get good performance out of this system and to further secure the paramters we have been using stored procedures so we can optimize the queries inside of the database. This results in a connection object that similar to the following: CONNECTIONTYPE OGR CONNECTION " ODBC:MSSQLSPATIALDSN,states EXEC dbo.MappingGetStates %BBOX% " DATA "GDT" We have had good luck using Variable Subsitution from the querystring however, sometimes it would be useful to be able to access additional varaibles from within mapserver such as those defined in the Templating section of the documentation (an alternative method to access equivalent data would be full acceptable). Specifically, it would be nice to have access to [mapext], [minx], [miny], [maxx], [maxy], [rawext], [mapext_latlon], [minlon], [minlat], [maxlon] [maxlat]. To be explicit I am asking is there a way to use these inside of the section of the CONNECTION. Is this functionality currently available and something I have overlooked in the manual or would this fall under the category of a feature request? Looking forward to SQL Server 2008 I think this approach will still have merit as it offers quite a bit of additional flexibility in writing and optimizing the query over what I have been able to achieve thus far with the Native SQL Server 2008 driver. I should stipulate I have only been using the new driver for a couple of weeks so I may not find it as limiting after additional testing. I have a WFS Server layer defined and have recently needed to provide this service in an alternate projection. The Data is in EPSG:4326 and I need the WFS Service to provide it in Spherical Mercator (SM / EPSG:900913). I have this working properly with the layers projection definition and wfs_srs. The problem I have is that previously I was passing the %BBOX% parameter to the database stored procedure using an referencing an ODBC connection. When reprojecting the WFS layer the %BBOX% does not get reprojected so it gets sent to the database in meters as defined in SM. I could reproject this in the Stored Procedure, but my client would prefer I treat their DB as a black box and not make changes. Am I correct in assuming that %BBOX% comes unaltered from the querystring? Is there another variable I can use with Variable substitution to get the BBOX in the data's projection? Or is there a way to reproject %BBOX% variable? It is critical that I can filter the data coming out of the spatial DB before it gets to MapServer for performance reasons. Any help is greatly appreciated. Jon -- View this message in context: http://n2.nabble.com/WFS-Server-Request-w-Reprojection-to-Database-tp2545150p2575962.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 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://n2.nabble.com/Re%3A-How-to-access-Templating%3A-Map-Geometry-Variables%28or-Equivalent%29-from-OGR-Connection-tp2581092p2618125.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Fri Apr 10 13:46:48 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 10 Apr 2009 22:46:48 +0200 Subject: [mapserver-users] fcgi x64 fault on WFS layer In-Reply-To: <1239394265623-2618112.post@n2.nabble.com> References: <1239394265623-2618112.post@n2.nabble.com> Message-ID: 2009/4/10 joncoign > > I have been doing some testing with the 64 bit version of mapserver on > Server 2008. I have been getting a fast cgi error on WFS requests using the > OGR ODBC driver connecting to a SQL Server 2008 database when the stored > procedure called return greater than five columns. > > I have been building the x64 version of mapserver using the GDAL and > MapServer build SDK packages from > http://vbkto.dyndns.org:1280/sdk/index.html > > The code works when compiled to 32bit and errors when compiled to 64 bit. > The only change I am making is which visual studio command prompt is > launching so the makefile will detect the 32bit or 64bit target. Map files > and the database used are the same. The 32bit and 64bit DSN are configured > identically. > I assume you're using the x64 version of the SDK when compiling for Win64 by using the Visual Studio x64 command prompt, but make sure all of the binaries in the /bin directory are also deployed along with mapserv.exe. The dll-s in the different packages are not interchangeable because of the different CRT dependencies. Could you provide the steps to setup your test case with your sample URLs so as to reproduce the problem? Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From jncoign at Knology.net Fri Apr 10 14:05:35 2009 From: jncoign at Knology.net (joncoign) Date: Fri, 10 Apr 2009 14:05:35 -0700 (PDT) Subject: [mapserver-users] SQL 2008 Corruption using WFS Layer and OGR ODBC driver Message-ID: <1239397535931-2618307.post@n2.nabble.com> I have been trying to figure out an issue with MapServer failing to render a wfs layer using the OGR ODBC driver connecting to SQL Server 2008 with PROCESSING "CLOSE_CONNECTION=DEFER" using FCGI. I found several reports of this with the plugin for SQL Server 2008 however due to needing to use Geography columns (not supported in the plugin) and stored procedures I have been trying to continue to use the OGR ODBC, but could not find reports of this issue under OGR. The error I am getting is as follows: msWFSGetFeature(): WFS server error. ms_error->code not found msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `Hospital'. SQL statement failed, or returned no layer result: EXEC dbo.MappingGetJNCTest -67.64596191401315,17.434709503474547,-65.17403808598685,18.99999999999999 The only resolution once the problem manifests is to kill the mapserv.exe processes used by fastCGI or to recycle the entire web application (IIS 7). The problem does not occur is I do not specify PROCESSING "CLOSE_CONNECTION=DEFER". I see no unusual activity on SQL Profiler. The issue does not happen when using SQL Serer 2005 with an identical mapfile (only change is the DSN definition). I have also verified that the problem does not occur when using the SQL Server Native Client 10 (which comes with SQL 2008) to connect to a SQL Server 2005 database. Does anyone have any suggestions or any insight if this could be similar to bug that was affecting the SQL 2008 Plugin? -- View this message in context: http://n2.nabble.com/SQL-2008-Corruption-using-WFS-Layer-and-OGR-ODBC-driver-tp2618307p2618307.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jncoign at Knology.net Fri Apr 10 14:35:29 2009 From: jncoign at Knology.net (joncoign) Date: Fri, 10 Apr 2009 14:35:29 -0700 (PDT) Subject: [mapserver-users] fcgi x64 fault on WFS layer In-Reply-To: References: <1239394265623-2618112.post@n2.nabble.com> Message-ID: <1239399329257-2618438.post@n2.nabble.com> I assume you're using the x64 version of the SDK when compiling for Win64 by using the Visual Studio x64 command prompt, but make sure all of the binaries in the /bin directory are also deployed along with mapserv.exe. The dll-s in the different packages are not interchangeable because of the different CRT dependencies. Could you provide the steps to setup your test case with your sample URLs so as to reproduce the problem? Best regards, Tamas _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users I am new to building mapserver so it is possible I made a mistake in my build. To be certain I created a clean folder and rebuilt mapserver using the files extracted from the release-1500-x64-dev.zip file (4/9/2009). I opened the x64 VS prompt and ran nmake gdal nmake ms I then copied all (18) of the dlls files from \release-1500-x64\bin\ to the cgi-bin folder and then copied mapserv.exe from \release-1500-x64\bin\ms\apps to the cgi-bin folder. The only other file in the cgi-bin folder is the web.config file needed to configure fast-cgi on IIS 7 When I run a WFS layer with more than five columns I get: HTTP Error 500.0 - Internal Server Error F:\MapServer\cgi-bin\mapserv.exe - The FastCGI process exited unexpectedly Error Code 0xc0000374 The mapfile layer definition is: LAYER NAME "Hospital" CONNECTIONTYPE OGR CONNECTION " ODBC:Maps,JNCTest EXEC dbo.MappingGetJNCTest %BBOX% ID wkbPoint " DATA "maps_Hospital" DUMP TRUE #PROCESSING "CLOSE_CONNECTION=DEFER" TYPE point METADATA wfs_extent "-180 -90 180 90" gml_featureid "ID" gml_include_items "all" gml_exclude_items "the_geom" END END The stored procedure definition that does not work is: ALTER PROCEDURE [dbo].[MappingGetJNCTest] @X1 float, @Y1 float, @X2 float, @Y2 float AS BEGIN SET NOCOUNT ON; SELECT ID, the_geom.STAsBinary() as the_geom, 'Images/hospital.jpg' As ImgIcon, 15 AS ImgIconX, 15 AS ImgIconY, Name FROM JNCTest END The following works: ALTER PROCEDURE [dbo].[MappingGetJNCTest] @X1 float, @Y1 float, @X2 float, @Y2 float AS BEGIN SET NOCOUNT ON; SELECT ID, the_geom.STAsBinary() as the_geom, 'Images/hospital.jpg' As ImgIcon, 15 AS ImgIconX, 15 AS ImgIconY FROM JNCTest END Note there does not appear to be anything special about the Name field. I have tried reordering columns and reproduced on other procedures that initial worked by adding other constant values as additional columns to exceed a column count of 5. It also does not appear to make any difference if the extra columns are included in the GML (I have removed gml_include_items "all" and tried to output fewer columns with not change). All tests worked on the 32 bit version. The WFS request URL is: http://mapserver/cgi-bin/mapserv.exe?map=f:/mapserver/maps/WFSTest.map&typename=Hospital&maxfeatures=200&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A4326&BBOX=-67.64596191401315,17.434709503474547,-65.17403808598685,18.99999999999999 I do not have an external URL that reproduces the issue. I also have verified this against both a SQL Server 2005 w/msSqlSpatial and SQL Server 2008 database as I initially thought it might be a SQL 2008 issue as I am experiencing several of those. If you see any errors in my build steps please let me know and I will rebuild and repeat my tests. Thanks, Jon -- View this message in context: http://n2.nabble.com/fcgi-x64-fault-on-WFS-layer-tp2618112p2618438.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ruijgomes at gmail.com Fri Apr 10 15:44:39 2009 From: ruijgomes at gmail.com (Rui Gomes) Date: Fri, 10 Apr 2009 23:44:39 +0100 Subject: [mapserver-users] Help in Fedora Linux In-Reply-To: <49DEEAFF.5040004@romtelecom.ro> References: <31e2f7000904091133h7b5bbfc5uda7fed1f8e42933@mail.gmail.com> <49DEEAFF.5040004@romtelecom.ro> Message-ID: <31e2f7000904101544q53046e61r8d46f7d5d7f0163c@mail.gmail.com> Thanks...i disable SELinux and is working fine now. 2009/4/10 Adrian Popa : > You could disable selinux by setting: > SELINUX=disabled > in /etc/sysconfig/selinux and rebooting your system. > > If you want to use selinux, you will need to create a set of "permissions" > to allow mapserver to write to specific directories - but it's beyond my > level of expertise... > > Rui Gomes wrote: >> >> Hi... >> >> I build a websig in Linux Ubuntu and now i'm trying to do the same in >> Linux Fedora but i having a few problems. >> SELinux is preventing the write of the images in the tmp folder. >> How i solve this? >> >> Thanks >> >> >> > > > -- > --- Adrian Popa > NOC Division > Network Engineer > Divizia Centrul National de Operare Retea > Departament Transport IP & Metro > Compartiment IP Core & Backbone > Phone: +40 21 400 3099 > > -- Rui Gomes From Joseph4774 at hotmail.com Sat Apr 11 14:56:00 2009 From: Joseph4774 at hotmail.com (Joseph4774) Date: Sat, 11 Apr 2009 14:56:00 -0700 (PDT) Subject: [mapserver-users] problem with truetype fonts. In-Reply-To: <1239131238474-2600843.post@n2.nabble.com> References: <1239131238474-2600843.post@n2.nabble.com> Message-ID: <1239486960953-2622058.post@n2.nabble.com> Hello again Does no one have an idea as how to solve my problem or is my explanation of the problem not clear enough maybe? Hi Everyone, I have problem with location of truetype fonts when I choice outputFormat PDF . It seems that with outputFormat PDF mapserver choices the lower left corner of the bounding box of the glyph and not the center center of the glyph.But everything works correctly when i change the outputFormat to PNG. I attached a folder with three test files to give more information about my problem. one is the true font Iam using for the test the secound one is the png file and the third is hte pdf file. SendToPDFLib.zip I hope i've explained my problem well and iam sorry for my bad English. Iam using csharp_script.dll .net solution and the PDFlib.dll for PDF output. and her is a part of the code that i user to generate pdf file map: mapObj MSMap = new mapObj("mapfile"); outputFormatObj format = new outputFormatObj("pdf", "pdf"); MSMap.setOutputFormat(format); imageObj img = MSMap.drawQuery(); img.save("imgFullPath", null); img.Dispose(); and the test mapfile : MAP NAME TEST STATUS ON SIZE 740 460 EXTENT 693618 6171475 693855 6171703 UNITS METERS FONTSET "/proj/Test/div/font.txt" IMAGETYPE png24 OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" IMAGEMODE RGB EXTENSION "png" END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END WEB # # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root # of the drive where the .MAP file resides. # IMAGEPATH "/output" IMAGEURL "/tmp/" # LOG "/tmp/gmap.log" # METADATA "TITLE" "Informationer p? Kort, Mors? Kommune" END END LAYER GROUP Ledninger NAME Ledning TYPE LINE STATUS ON CONNECTIONTYPE OGR CONNECTION "/proj/test/linie.TAB" #STYLEITEM "AUTO" CLASS NAME ledninger STYLE COLOR 0 0 255 WIDTH 2 END END END LAYER GROUP Knuder NAME Knuder TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "/proj/Test/linie.TAB" CLASS NAME knuder STYLE COLOR 255 0 0 OUTLINECOLOR 255 0 0 #BACKGROUNDCOLOR 0 0 0 SIZE 30 Width 1 SYMBOL "test01" END END END SYMBOL NAME "test01" TYPE TRUETYPE FONT elgraf2009 POSITION CC FILLED false ANTIALIAS true CHARACTER "2" END END MAP -- View this message in context: http://n2.nabble.com/problem-with-truetype-fonts.-tp2600843p2622058.html Sent from the Mapserver - User mailing list archive at Nabble.com. From enri at 163.com Sun Apr 12 06:58:01 2009 From: enri at 163.com (enri) Date: Sun, 12 Apr 2009 21:58:01 +0800 (CST) Subject: [mapserver-users] Mapfile Editor - MSCompanion version 1.0 beta2 is available Message-ID: <31256226.524851239544681260.JavaMail.coremail@bj163app80.163.com> Hi, After a month since the beta1, MSCompanion version 1.0 beta2 is available now. The main changes include: 1. Add a Processing Detectives builder 2. Add a Expression builder 3. Support Chart Mapping 4. Add forms to set elments of Map->Config 5. Add a menu item of "Zoom to layer", but only valid when SRS of the layer is the same as the Map 6. Highlight the peer part of mapfile when click a layer/class in the contents treeview 7. Fixed the problem of drag-and-drop on Layer Tree 8. Fixed the bug caused by decimal point delimiter 9. Layer title in the Layer Tree can contain space now 10. Re-arranged some of the forms of Layer to be reasonable 11. many other improvements Please visit http://code.google.com/p/mscompanion/ and get it. Regards, Enri -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruijgomes at gmail.com Sun Apr 12 22:08:14 2009 From: ruijgomes at gmail.com (Rui Gomes) Date: Mon, 13 Apr 2009 06:08:14 +0100 Subject: [mapserver-users] ImageMap and empty.html Message-ID: <31e2f7000904122208r3b5617dei9f4572912fa41eef@mail.gmail.com> Hi... I successful create a ImageMap in mapserver using the nquery. When the query returns any value, mapserver go to the empty.html. How i can avoid the empty.html and force mapserver to return my template? It is possible? Thanks...and sorry by my bad English. PS: To solve the problem i create a initialization page for mapserver in the empty.html but is to slow. -- Rui Gomes From gabmessner at gmail.com Mon Apr 13 00:15:07 2009 From: gabmessner at gmail.com (Gabriel Messner) Date: Mon, 13 Apr 2009 09:15:07 +0200 Subject: [mapserver-users] Aspect Raster as Flow lines Message-ID: <1708890c0904130015i52d73dfqc94ae827a58f5d13@mail.gmail.com> I?d wish to display an Aspect Raster layer as flow lines using as SYMBOL an arrow icon with the angle depending on aspect value for eacha CLASS. Is this possible in mapserver? GRASS has this option... Thanks in advance. Gabriel Messner. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bestofmukul at gmail.com Mon Apr 13 08:00:50 2009 From: bestofmukul at gmail.com (Mukul Gupta) Date: Mon, 13 Apr 2009 20:30:50 +0530 Subject: [mapserver-users] Kml to shape file conversion Message-ID: hi.. I'm new to GIS development and undertaking a GIS based application as my college project. I m working on XP Pro environment with ms4w as mapserver. Will you please suggest me some way to convert kml files into shapefiles with all or most of the inherent attributes and labels present. Please suggest any free software for the same( if required ). Thanks in advance. --Mukul Gupta -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at agt.bme.hu Mon Apr 13 08:38:43 2009 From: siki at agt.bme.hu (Siki Zoltan) Date: Mon, 13 Apr 2009 17:38:43 +0200 (CEST) Subject: [mapserver-users] Kml to shape file conversion In-Reply-To: References: Message-ID: Hi, Try ogr2ogr, you can find it in the \ms4w\tools\gdal-ogr. Do not forget to start setenv.bat in \ms4w. Regards, Zoltan On Mon, 13 Apr 2009, Mukul Gupta wrote: > hi.. > I'm new to GIS development and undertaking a GIS based application as my > college project. I m working on XP Pro environment with ms4w as mapserver. > Will you please suggest me some way to convert kml files into shapefiles > with all or most of the inherent attributes and labels present. > Please suggest any free software for the same( if required ). > Thanks in advance. > --Mukul Gupta > From Steve.Lime at dnr.state.mn.us Mon Apr 13 09:28:27 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 13 Apr 2009 11:28:27 -0500 Subject: [mapserver-users] ImageMap and empty.html Message-ID: <49E321DB0200008F00022DD0@co5.dnr.state.mn.us> Where is empty.html coming from? Are you using templates or the imagemap output format? Steve >>> Rui Gomes 04/13/09 12:09 AM >>> Hi... I successful create a ImageMap in mapserver using the nquery. When the query returns any value, mapserver go to the empty.html. How i can avoid the empty.html and force mapserver to return my template? It is possible? Thanks...and sorry by my bad English. PS: To solve the problem i create a initialization page for mapserver in the empty.html but is to slow. -- Rui Gomes _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ruijgomes at gmail.com Mon Apr 13 10:30:44 2009 From: ruijgomes at gmail.com (Rui Gomes) Date: Mon, 13 Apr 2009 18:30:44 +0100 Subject: [mapserver-users] ImageMap and empty.html In-Reply-To: <49E321DB0200008F00022DD0@co5.dnr.state.mn.us> References: <49E321DB0200008F00022DD0@co5.dnr.state.mn.us> Message-ID: <31e2f7000904131030q77297d9t2d0fad5a8a1da465@mail.gmail.com> I do not understand all your questions. The empty.html is the defined by the map file. I am using the headTemplate to define my javascript functions, forms and the begin of the ImageMap, the bodyTemplate to generate the areas and the footTemplate to close ImageMap, body and Html. 2009/4/13 Steve Lime : > Where is empty.html coming from? Are you using templates or the imagemap > output format? > > Steve > >>>> Rui Gomes 04/13/09 12:09 AM >>> > Hi... > > I successful create a ImageMap in mapserver using the nquery. When the > query returns any value, mapserver go to the empty.html. > How i can avoid the empty.html and force mapserver to return my template? > It is possible? > > Thanks...and sorry by my bad English. > > PS: To solve the problem i create a initialization page for mapserver > in the empty.html but is to slow. > -- > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Rui Gomes > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Rui Gomes From nelsonwc7 at hotmail.com Mon Apr 13 10:51:43 2009 From: nelsonwc7 at hotmail.com (Nelson Correia) Date: Mon, 13 Apr 2009 17:51:43 +0000 Subject: [mapserver-users] Elevation-like map Message-ID: Hi, Anyone knows how to make an elevation-like map, like the "terrain" mode in Google Maps. Does MapServer allow to do something like that? I have the "level curves" data of the area that I want to represent, is that enough? Thanks in advance, Nelson Correia _________________________________________________________________ Drag n? drop?Get easy photo sharing with Windows Live? Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Mon Apr 13 11:58:14 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Mon, 13 Apr 2009 11:58:14 -0700 Subject: [mapserver-users] Elevation-like map In-Reply-To: References: Message-ID: <9c2015090904131158u4e9866dvd7980edeb74fc17d@mail.gmail.com> Sure, you can do this with Mapserver. The difficulty lies more in pre-processing the data, than in having Mapserver display it. - Step 1: Get some elevation data. - Step 2: Create a hillshade layer. (I use rel.py with gdal to do this, but you can do it with something else.) - Step 3: Create a hypsometric tint layer of your elevation data. (Note: You can use Mapserver styles to directly read the DEM and style the elevation zones.) - Step 4: Combine the 2 layers with some transparency and you can get something that looks like these - http://lagerratrobe.blogspot.com/2008/10/continuous-vs-discreet-color-elevation.html . Contact me off-list if you want more info. Roger -- On Mon, Apr 13, 2009 at 10:51 AM, Nelson Correia wrote: > Hi, > > Anyone knows how to make an elevation-like map, like the "terrain" mode in > Google Maps. > > Does MapServer allow to do something like that? > > I have the "level curves" data of the area that I want to represent, is > that enough? > > Thanks in advance, > > Nelson Correia > > ------------------------------ > What can you do with the new Windows Live? Find out > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Apr 13 12:39:44 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 13 Apr 2009 15:39:44 -0400 Subject: [mapserver-users] Elevation-like map In-Reply-To: <9c2015090904131158u4e9866dvd7980edeb74fc17d@mail.gmail.com> References: <9c2015090904131158u4e9866dvd7980edeb74fc17d@mail.gmail.com> Message-ID: <49E39500.9050301@gatewaygeomatics.com> > > - Step 2: Create a hillshade layer. (I use rel.py with gdal to do this, > but you can do it with something else.) > A handy toolset is the "DEM Utilities" (http://www.perrygeo.net/wordpress/?p=7), which, if you're a Windows user, are available in MS4W. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From pmoen at nd.gov Mon Apr 13 13:21:51 2009 From: pmoen at nd.gov (Moen, Paul T.) Date: Mon, 13 Apr 2009 15:21:51 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: Message-ID: On 4/13/09 2:25 PM, "Jay Kapalczynski" wrote: I am messing around with this....does any of this map sense? Yes, you have many errors. Check the error logs for php to help debugging with syntax. // THE QUERY HAPPENS BEFORE THIS....JUST SHOWING THAT THE VARAIBLE HOLDING ALL THE PIS VALUES IS BELOW //=============================================================== //=============================================================== // BUILD A COMMAN DELIMITED LIST // if something already in $PIDString, append a comma if (isset($PIDString)) $PIDString .= ','; // Append the new value $PIDString .= $PID; //=============================================================== //=============================================================== } // end while //=============================================================== //=============================================================== $map = ms_newMapObj(/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/select.map); Won't work because it requires a string, so you would need $map = ms_newMapObj('/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/select.map'); $qlayer = $map->$map->getLayerByName(parcels); Won't work because it requires a string and the layer in your mapfile is Parcels, so you would need $qlayer = $map->getLayerByName('Parcels'); $qlayer->queryByAttributes('PID','($PIDString)',MS_MULTIPLE); Won't work because it needs to know how to query for the PID as in $qlayer->queryByAttributes('PID','PID IN ($PIDString)',MS_MULTIPLE); $img = $map->drawQuery(); Should set the output format to jpeg $map->selectOutputFormat('jpeg'); header('Content-Type: image/jpeg'); $img->saveImage(""); Can I then test the jpeg in another window or something... You could set up your php file to accept $_GET variables and pass in the PIDs like below. http://yourserver.com/phpfilename.php?PID=1%2C2%2C3%2C4%2C5, which should give you a png image after making changes above. Is this all that I need code wise? That should give you the basics. You will also need to load the php_mapscript library before any of the above functions will be recognized. Check out http://mapserver.org/mapscript/php/by_example.html. There is an abundance of good documentation on http://mapserver.org. HERE is the select.map file MAP NAME 'all layers' SIZE 800 650 STATUS ON EXTENT 427632.500000 4893613.330000 560300.922104 5015936.680000 UNITS METERS SYMBOLSET 'symbols/symbol.sym' TRANSPARENT TRUE IMAGETYPE PNG QUERYMAP STATUS ON STYLE SELECTED #STYLE HILITE END WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" #EMPTY '../geomoose/query_miss.html' END LAYER # Parcels Polygon Layer NAME 'Parcels' DATA 'parcels/parcels.shp' STATUS ON TYPE POLYGON #TEMPLATE 'parcels/identify_parcels.html' #FILTERITEM 'PID' #FILTER /^%id%/ METADATA qstring_validation_pattern '.' END HEADER 'parcels/select_header.html' TEMPLATE 'parcels/select_parcel.html' FOOTER 'parcels/select_footer.html' TOLERANCE 0 CLASS SYMBOL 'plainline' SIZE 3 COLOR -1 -1 -1 OUTLINECOLOR 255 255 0 END END From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 3:15 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight If the database that you are querying has the same attributes as the shape file, you can query the Layer that points to the shape file and display the highlighted results on your map. I know nothing about GeoMOOSE but I know it can be done with php-mapscript. Regardless of what you are using, you need a map file layer for the shape file with the parcels. You will then need to use php-mapscript to query that layer with something like $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); You will then need to create the output image from query using something like $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); I can't give you specifics without knowing how GeoMOOSE works, so the best thing is to look at the documentation for GeoMOOSE if that is what you are using. On 4/9/09 2:17 PM, "Jay Kapalczynski" wrote: Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file and have the records returned from the query (database)...what would I have to do next to take those records and run a query to highlight the parcels (PID to PID)? Can all of this be accomplished in the PHP file? Thanks...and sorry for my ignorance... From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 1:57 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); On 4/9/09 1:31 PM, "Jay Kapalczynski" wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit more....after I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users at lists.osgeo.org ' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Mon Apr 13 14:28:26 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Mon, 13 Apr 2009 17:28:26 -0400 Subject: [mapserver-users] queryByAttributes on oracle spatial layer Message-ID: Hi I am doing a query on a oracle spatial layers. When I loop through the result set to retrieve field value, using layerObj.getFeature() method, it is terribly slow. What I see from the log files is that a separate database query with unique id column value is fired to oracle for each getFeature call. This will definitely slows down. If I have 10,000 results, then 10,000 database queries are getting fired to retrieve the field values. Is there is a way to avoid this. Is there any setting or API that will prevent so many separate queries fired and retrieve field values with first query itself. Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Mon Apr 13 15:33:39 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 14 Apr 2009 00:33:39 +0200 Subject: [mapserver-users] queryByAttributes on oracle spatial layer In-Reply-To: References: Message-ID: Hi, You've run into the 'one pass query problem' which has an outstanding RFC here: http://mapserver.org/development/rfc/ms-rfc-52.html And it will possibly gets implemented for the 6.0 release. Best regards, Tamas 2009/4/13 Murty Maganti > Hi > > > > I am doing a query on a oracle spatial layers. When I loop through the > result set to retrieve field value, using layerObj.getFeature() method, it > is terribly slow. What I see from the log files is that a separate database > query with unique id column value is fired to oracle for *each* getFeature > call. This will definitely slows down. If I have 10,000 results, then 10,000 > database queries are getting fired to retrieve the field values. Is there is > a way to avoid this. Is there any setting or API that will prevent so many > separate queries fired and retrieve field values with first query itself. > > > > Thanks > > Murty > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From neil at asdf.co.nz Mon Apr 13 15:50:11 2009 From: neil at asdf.co.nz (Neil Fincham) Date: Tue, 14 Apr 2009 10:50:11 +1200 Subject: [mapserver-users] Problem with SDE vs Shapefiles with the abount of results returen (Repost, forgot to add a subject) Message-ID: <001701c9bc8a$337d53d0$9a77fb70$@co.nz> Hi All, I am using ArcGIS 9.2 and MS4W. I have two php_mapscipts, one I use on shapefiles the other I use on SDE (Running on MSSQL 2005), the strange thing is that running on shape files the (Almost) identical scripts behave in different manors. Here are the scipts;- Just so you know;- $ qLayer = the layer to be queried $qField = Field to be Quried $qSelect = The value to be selected getLayerByName($qLayer); // Select the layer //////////////// Shapefile Version if (($layer->querybyAttributes($qField, $qSelect, MS_MULTIPLE)) == MS_SUCCESS) { //////////////// SDE Version if (($layer->querybyAttributes($qField, "(" . $qField . "='" . $qSelect . "')", mapscript.MS_MULTIPLE)) == MS_SUCCESS) { $layer->open(); // If the query was successful open the layer echo $layer->getNumResults(); for ($i=0; $i < $layer->getNumResults(); $i++) { // Loop through the resaults $result = $layer->getResult($i); $shape = $layer->getShape($result->tileindex, $result->shapeindex); if ($i == 0) { // Set the bounds to the first resault returned $MinX = $shape->bounds->minx; $MaxX = $shape->bounds->maxx; $MinY = $shape->bounds->miny; $MaxY = $shape->bounds->maxy; } else { // Loop through the results and "push" out the bounds if ($MinX > $shape->bounds->minx) { $MinX = $shape->bounds->minx; } if ($MaxX < $shape->bounds->maxx) { $MaxX = $shape->bounds->maxx; } if ($MinY > $shape->bounds->miny) { $MinY = $shape->bounds->miny; } if ($MinY < $shape->bounds->maxy) { $MaxY = $shape->bounds->maxy; } } } $layer->close(); // Close the layer } $map->setextent($MinX - $qBuffer, $MinY - $qBuffer, $MaxX + $qBuffer, $MaxY + qBuffer); ?> If I run the shapfile version and there are 20 results it extends the bounds around them BUT if I run the SDE version it finds the first result and uses those extents. I can ( echo $layer->getNumResults() ) to verify that. Am I doing something wrong? Is there a better way of doing this? Thanks Heaps Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: From neil at asdf.co.nz Mon Apr 13 15:47:41 2009 From: neil at asdf.co.nz (Neil Fincham) Date: Tue, 14 Apr 2009 10:47:41 +1200 Subject: [mapserver-users] (no subject) Message-ID: <000c01c9bc89$da94b510$8fbe1f30$@co.nz> Hi All, I am using ArcGIS 9.2 and MS4W. I have two php_mapscipts, one I use on shapefiles the other I use on SDE (Running on MSSQL 2005), the strange thing is that running on shape files the (Almost) identical scripts behave in different manors. Here are the scipts;- Just so you know;- $ qLayer = the layer to be queried $qField = Field to be Quried $qSelect = The value to be selected getLayerByName($qLayer); // Select the layer //////////////// Shapefile Version if (($layer->querybyAttributes($qField, $qSelect, MS_MULTIPLE)) == MS_SUCCESS) { //////////////// SDE Version if (($layer->querybyAttributes($qField, "(" . $qField . "='" . $qSelect . "')", mapscript.MS_MULTIPLE)) == MS_SUCCESS) { $layer->open(); // If the query was successful open the layer echo $layer->getNumResults(); for ($i=0; $i < $layer->getNumResults(); $i++) { // Loop through the resaults $result = $layer->getResult($i); $shape = $layer->getShape($result->tileindex, $result->shapeindex); if ($i == 0) { // Set the bounds to the first resault returned $MinX = $shape->bounds->minx; $MaxX = $shape->bounds->maxx; $MinY = $shape->bounds->miny; $MaxY = $shape->bounds->maxy; } else { // Loop through the results and "push" out the bounds if ($MinX > $shape->bounds->minx) { $MinX = $shape->bounds->minx; } if ($MaxX < $shape->bounds->maxx) { $MaxX = $shape->bounds->maxx; } if ($MinY > $shape->bounds->miny) { $MinY = $shape->bounds->miny; } if ($MinY < $shape->bounds->maxy) { $MaxY = $shape->bounds->maxy; } } } $layer->close(); // Close the layer } $map->setextent($MinX - $qBuffer, $MinY - $qBuffer, $MaxX + $qBuffer, $MaxY + qBuffer); ?> If I run the shapfile version and there are 20 results it extends the bounds around them BUT if I run the SDE version it finds the first result and uses those extents. I can ( echo $layer->getNumResults() ) to verify that. Am I doing something wrong? Is there a better way of doing this? Thanks Heaps Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: From geotux06 at gmail.com Mon Apr 13 18:43:33 2009 From: geotux06 at gmail.com (GeoTux) Date: Mon, 13 Apr 2009 20:43:33 -0500 Subject: [mapserver-users] UMN MapServer information as client Message-ID: <9ed809d0904131843sa2d5b9eia6db495cb9a75947@mail.gmail.com> Hi, we are GeoTux team and we'll publish a second version of a *Thin web mapping clients comparison* [1]. We want you to validate the following data which help us to have more accurate information about UMN MapServer as client: - *License:* MIT Style - *Origin country:* USA - *Origin organization*: University of Minnesota - *Documentation*: - Languages: English - Formats: HTML; PDF - Levels: Users; Developers - *OSGeo support:* Yes - *The project is built on:* C/C++ - *API language:* PHP; Python; Perl; Ruby; Java; .NET - *GeoServices support:* WMS; WFS - *Require privative plug-ins?:* No - *Include metadata component:* No - *Mailing lists:* Yes* (Users, Developers; Announce) * One mailing list in german language. Thanks in advance. GeoTux team. ---- [1] http://geotux.tuxfamily.org/index.php?option=com_myblog&show=comparaciF3n-de-clientes-ligeros-para-sig.html&Itemid=59&lang=en -- ----------- |\__ (:>__)( |/ Soluciones Geoinform?ticas Libres http://geotux.tuxfamily.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Mon Apr 13 19:50:50 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 13 Apr 2009 22:50:50 -0400 Subject: [mapserver-users] UMN MapServer information as client In-Reply-To: <9ed809d0904131843sa2d5b9eia6db495cb9a75947@mail.gmail.com> References: <9ed809d0904131843sa2d5b9eia6db495cb9a75947@mail.gmail.com> Message-ID: <49E3FA0A.4080904@pobox.com> GeoTux wrote: > * *GeoServices support:* WMS; WFS I would add WCS (Web Coverage Service) and SOS (Sensor Observation Service) to this list. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From romero619 at hotmail.com Mon Apr 13 20:57:31 2009 From: romero619 at hotmail.com (P.Romero) Date: Mon, 13 Apr 2009 22:57:31 -0500 Subject: [mapserver-users] ogr/mysql layer & imagemap template using php mapscript? Message-ID: Ive asked this question several times already, but have never received a useful response. If there are any php-mapscript experts reading this, please help... Im trying to create an imagemap based on an html template and a "points" layer, which uses an ogr/mysql connection to query a database table and retrieve a set of points. It's based on a combination of the following two examples: http://mapserver.org/input/vector/mysql.html?highlight=ovf http://mapserver.org/output/imagemaps.html?highlight=imagemap As described in the 2nd example, I can access successfully access my imagemap html& png output using a url like the following: http://myurl/cgi-bin/mapserv?map=myfile.map&mode=nquery&searchmap=true The problem is that I want to use php-mapscript, instead of using the cgi-bin url. The main reasons for this are to be able to post-process the raw imagemap html code & control how & when the html and the png image are sent back to the user's browser. I tried doing this: //Read & draw the map file $map = ms_newMapObj("myMapFile.map"); $img=$map->draw(); //pass the resulting map png's url back //to the html template through $tmparray variable $tmparray["img_url"] = $img->saveWebImage(); //Process the query template $html=$map->processquerytemplate($tmparray); //Now, echo or process the raw html as necessary echo $html; This almost seemed to work. The 'processquerytemplate()' function *did* return the imagemap html, but the actual data points from my layer were absent in the html; i.e., there were no 'area' tags in the imagemap code, so the imagemap was empty. However, my layer WAS correctly executing the mysql/ogr data query & drawing my points, as the points WERE visible in the png output. So the basic question is: How do I go about correctly processing the template using php-mapscript, so that the data from my points layer will be included in the imagemap html? I hope this is the info you'll need to help figure this out. Please let me know if you have questions, or if I need to include more details. Thanks again, P.Romero From snaperski at gmail.com Mon Apr 13 23:07:20 2009 From: snaperski at gmail.com (Raivo Alla) Date: Tue, 14 Apr 2009 09:07:20 +0300 Subject: [mapserver-users] geotrasnform in MapServer 5.4 Message-ID: <49dc012b0904132307t3ecad29emf4ea13521bb6da99@mail.gmail.com> Hi, I could'nt get working my code that implements GEOMETRYTRANSFORM functionality. I have shapefile layer that contains line features, so I want describe starting points as follows: STYLE COLOR 20 20 20 GEOMETRYTRANSFORM "start([shape])" SIZE 5 END But GetCapabilities gives me an error: loadStyle(): Unknown identifier. Parsing error near (GEOMETRYTRANSFORM):(line 305) Mapserver compilation shows up like that: MapServer version 5.4.0-rc1 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I would be very pleased if someone could help me out:) Sincerely, Raivo Alla From thomas.bonfort at gmail.com Mon Apr 13 23:12:31 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 14 Apr 2009 08:12:31 +0200 Subject: [mapserver-users] geotrasnform in MapServer 5.4 In-Reply-To: <49dc012b0904132307t3ecad29emf4ea13521bb6da99@mail.gmail.com> References: <49dc012b0904132307t3ecad29emf4ea13521bb6da99@mail.gmail.com> Message-ID: the keyword is GEOMTRANSFORM best regards, thomas On Tue, Apr 14, 2009 at 08:07, Raivo Alla wrote: > Hi, > > I could'nt get working my code that implements GEOMETRYTRANSFORM functionality. > I have shapefile layer that contains line features, so I want describe > starting points as follows: > ? ? ? ? ? ? ? ?STYLE > ? ? ? ? ? ? ? ? ?COLOR 20 20 20 > ? ? ? ? ? ? ? ? ?GEOMETRYTRANSFORM "start([shape])" > ? ? ? ? ? ? ? ? ?SIZE 5 > ? ? ? ? ? ? ? ?END > But GetCapabilities gives me ?an error: > loadStyle(): Unknown identifier. Parsing error near > (GEOMETRYTRANSFORM):(line 305) > > Mapserver compilation shows up like that: > MapServer version 5.4.0-rc1 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT > SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > I would be very pleased if someone could help me out:) > > Sincerely, > Raivo Alla > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Clement.MONIER at v-trafic.com Tue Apr 14 01:26:26 2009 From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=) Date: Tue, 14 Apr 2009 10:26:26 +0200 Subject: [mapserver-users] TR: Blank map Message-ID: <0B6D7F516315594DBEFE58178D91BD32119ECDA6B1@exchangemm.mm.fr> This issue (see below) is still active with MS 5.4 rc1. Can anyone help me ? Thanks Clement -----Message d'origine----- De?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Cl?ment MONIER Envoy??: mardi 7 avril 2009 10:55 ??: mapserver-users at lists.osgeo.org Objet?: [mapserver-users] Blank map Hi, MapServer returns blank images since I upgraded to MS4W 2.3.1 + mapserver_ms4w-5.4.0-beta4. Though I've followed the upgrade tips and changed my mapfiles : http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060600.html You'll find as attachment a very simple test case (.map + shapefiles). Here's the request that should (and used to) return a map : http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htdocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=layer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SRS=EPSG:4326&BBOX=2.48,48.82,2.50,48.84&WIDTH=512&HEIGHT=512 I suspect a projection issue because the following request (with a world-wide bbox) does display some features (look for a small green point on the left side) : http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htdocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=layer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SRS=EPSG:4326&BBOX=-90,0,90,180&WIDTH=512&HEIGHT=512 Has anything changed inside the Proj4 library ? Thanks for your help Cl?ment -------------- next part -------------- A non-text attachment was scrubbed... Name: sample.zip Type: application/x-zip-compressed Size: 2277 bytes Desc: sample.zip URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ATT00001.txt URL: From Jukka.Rahkonen at mmmtike.fi Tue Apr 14 02:35:18 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 14 Apr 2009 12:35:18 +0300 Subject: [mapserver-users] TR: Blank map In-Reply-To: <0B6D7F516315594DBEFE58178D91BD32119ECDA6B1@exchangemm.mm.fr> References: <0B6D7F516315594DBEFE58178D91BD32119ECDA6B1@exchangemm.mm.fr> Message-ID: Hi, Any possibility that it could have something to do with WMS version 1.3 that flipped the coordinate axis order? Did you also previously use WMS 1.3? -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Cl?ment MONIER > L?hetetty: 14. huhtikuuta 2009 11:26 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] TR: Blank map > > This issue (see below) is still active with MS 5.4 rc1. > Can anyone help me ? > > Thanks > > Clement > > > -----Message d'origine----- > De?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] De la part > de Cl?ment MONIER Envoy??: mardi 7 avril 2009 10:55 ??: > mapserver-users at lists.osgeo.org Objet?: [mapserver-users] Blank map > > Hi, > > MapServer returns blank images since I upgraded to MS4W 2.3.1 > + mapserver_ms4w-5.4.0-beta4. > Though I've followed the upgrade tips and changed my mapfiles : > http://lists.osgeo.org/pipermail/mapserver-users/2009-March/06 > 0600.html > > You'll find as attachment a very simple test case (.map + shapefiles). > > Here's the request that should (and used to) return a map : > http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htd > ocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=l > ayer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SR > S=EPSG:4326&BBOX=2.48,48.82,2.50,48.84&WIDTH=512&HEIGHT=512 > > I suspect a projection issue because the following request > (with a world-wide bbox) does display some features (look for > a small green point on the left side) : > http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htd > ocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=l > ayer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SR > S=EPSG:4326&BBOX=-90,0,90,180&WIDTH=512&HEIGHT=512 > > Has anything changed inside the Proj4 library ? > > Thanks for your help > > Cl?ment > From mark.balman at gmail.com Tue Apr 14 02:58:14 2009 From: mark.balman at gmail.com (mark balman) Date: Tue, 14 Apr 2009 10:58:14 +0100 Subject: [mapserver-users] Adding a wms layer Message-ID: <39f1dcdf0904140258h4e904c2ey28ff043efdc29160@mail.gmail.com> Hi all I amtrying to add a wms layer into my application but cannot seem to figure this out. I would like to use the OnEarth layer from NASA. Can anyone point me in the right direction? Many thanks Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.teske at web.de Tue Apr 14 03:13:59 2009 From: daniel.teske at web.de (teeschke) Date: Tue, 14 Apr 2009 03:13:59 -0700 (PDT) Subject: [mapserver-users] Mapfile Editor - MSCompanion version 1.0 beta2 is available In-Reply-To: <31256226.524851239544681260.JavaMail.coremail@bj163app80.163.com> References: <31256226.524851239544681260.JavaMail.coremail@bj163app80.163.com> Message-ID: <1239704039227-2632347.post@n2.nabble.com> Hi Enri sounds realy cool! But when I doubleclick the MSCompanion.exe I receive Errors. One of them is "Exception EReadError in module MSCompanion.exe" as 000266F. Error reating RichEdit1.Lines.Strings: RichEdit line insertion error." thx, Tee -- View this message in context: http://n2.nabble.com/Mapfile-Editor---MSCompanion-version-1.0-beta2-is-available-tp2624234p2632347.html Sent from the Mapserver - User mailing list archive at Nabble.com. From paulborodaev at gmail.com Tue Apr 14 03:19:40 2009 From: paulborodaev at gmail.com (BrainDrain) Date: Tue, 14 Apr 2009 03:19:40 -0700 (PDT) Subject: [mapserver-users] cgi output is not cached on client??? please help! Message-ID: <1239704380514-2632363.post@n2.nabble.com> Why mapserver cgi output is not cached on client? If image has the SAME url it will be re-requested every time when I start a new instance of webapp. When I'm using my own httphandler (with map.draw() inside or webClient.DownloadData(url_to_mapservcgi)) I'm turning on caching with: response.StatusCode = 200; response.Cache.VaryByParams["*"] = true; response.Cache.SetExpires(DateTime.Now.AddDays(14)); response.Cache.SetCacheability(HttpCacheability.Private); and it works as expected but pure cgi requests are not cached ON CLIENT - how it can be possible? -- View this message in context: http://n2.nabble.com/cgi-output-is-not-cached-on-client----please-help%21-tp2632363p2632363.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pgiannini at bytewise.it Tue Apr 14 03:40:58 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Tue, 14 Apr 2009 12:40:58 +0200 Subject: [mapserver-users] Adding a wms layer In-Reply-To: <39f1dcdf0904140258h4e904c2ey28ff043efdc29160@mail.gmail.com> References: <39f1dcdf0904140258h4e904c2ey28ff043efdc29160@mail.gmail.com> Message-ID: <49E4683A.3030109@bytewise.it> Are you trying this: http://mapserver.org/ogc/wms_client.html by me it works well bye .................................pg mark balman ha scritto: > Hi all > > I amtrying to add a wms layer into my application but cannot seem to figure > this out. I would like to use the OnEarth layer from NASA. Can anyone point > me in the right direction? > > Many thanks > > Mark > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E From bestofmukul at gmail.com Tue Apr 14 04:11:52 2009 From: bestofmukul at gmail.com (Mukul Gupta) Date: Tue, 14 Apr 2009 16:41:52 +0530 Subject: [mapserver-users] missing dll problem!!! Message-ID: Hi I tried running ogr2ogr.exe but a error message comes that application failed to start because gdal16.dll is missing.Although when I cross checked it, the dll is present in Apache\cgi-bin folder. Tell me what to do with it. --Mukul -------------- next part -------------- An HTML attachment was scrubbed... URL: From bestofmukul at gmail.com Tue Apr 14 04:13:07 2009 From: bestofmukul at gmail.com (Mukul Gupta) Date: Tue, 14 Apr 2009 16:43:07 +0530 Subject: [mapserver-users] Missing dll problem!!! Message-ID: Hi I tried running ogr2ogr.exe but a error message comes that application failed to start because gdal16.dll is missing.Although when I cross checked it, the dll is present in Apache\cgi-bin folder. Tell me what to do with it. --Mukul -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Apr 14 04:24:41 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 14 Apr 2009 14:24:41 +0300 Subject: [mapserver-users] missing dll problem!!! In-Reply-To: References: Message-ID: Hi, Open the command window and run setenv.bat from \ms4w\ directory first. I suppose you are using ms4w. If not, the cure is the same, that is, set the paths correctly. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Mukul Gupta L?hetetty: 14. huhtikuuta 2009 14:12 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] missing dll problem!!! Hi I tried running ogr2ogr.exe but a error message comes that application failed to start because gdal16.dll is missing.Although when I cross checked it, the dll is present in Apache\cgi-bin folder. Tell me what to do with it. --Mukul -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Tue Apr 14 04:40:46 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 14 Apr 2009 07:40:46 -0400 Subject: [mapserver-users] Adding a wms layer In-Reply-To: <39f1dcdf0904140258h4e904c2ey28ff043efdc29160@mail.gmail.com> References: <39f1dcdf0904140258h4e904c2ey28ff043efdc29160@mail.gmail.com> Message-ID: <200904140740.46996.aboudreault@mapgears.com> Hi Mark, You can check this page to figure out how to add a wms layer: http://mapserver.org/ogc/wms_client.html Regards, Alan On April 14, 2009 05:58:14 am mark balman wrote: > Hi all > > I amtrying to add a wms layer into my application but cannot seem to figure > this out. I would like to use the OnEarth layer from NASA. Can anyone point > me in the right direction? > > Many thanks > > Mark -- -- Alan Boudreault Mapgears http://www.mapgears.com From paulborodaev at gmail.com Tue Apr 14 05:31:05 2009 From: paulborodaev at gmail.com (BrainDrain) Date: Tue, 14 Apr 2009 05:31:05 -0700 (PDT) Subject: [mapserver-users] cgi output is not cached on client??? please help! In-Reply-To: <1239704380514-2632363.post@n2.nabble.com> References: <1239704380514-2632363.post@n2.nabble.com> Message-ID: <1239712265945-2632807.post@n2.nabble.com> I've added "http_max_age" "1209600" #2 weeks in seconds in map file web section to enable cahing it works when I use pure cgi, but doesn't work when i'm redirecting to cgi from my http handler this is strange for me... Why mapserver cgi output is not cached on client? If image has the SAME url it will be re-requested every time when I start a new instance of webapp. When I'm using my own httphandler (with map.draw() inside or webClient.DownloadData(url_to_mapservcgi)) I'm turning on caching with: response.StatusCode = 200; response.Cache.VaryByParams["*"] = true; response.Cache.SetExpires(DateTime.Now.AddDays(14)); response.Cache.SetCacheability(HttpCacheability.Private); and it works as expected but pure cgi requests are not cached ON CLIENT - how it can be possible? -- View this message in context: http://n2.nabble.com/cgi-output-is-not-cached-on-client----please-help%21-tp2632363p2632807.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Clement.MONIER at v-trafic.com Tue Apr 14 05:33:47 2009 From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=) Date: Tue, 14 Apr 2009 14:33:47 +0200 Subject: [mapserver-users] TR: Blank map In-Reply-To: References: <0B6D7F516315594DBEFE58178D91BD32119ECDA6B1@exchangemm.mm.fr> Message-ID: <0B6D7F516315594DBEFE58178D91BD3231363A4DEB@exchangemm.mm.fr> Thanks for your answer Jukka. I did always use "VERSION=1.3.0" in my WMS request and encountered no problem with it until now. But I've read this and I got scared : http://mapserver.org/development/rfc/ms-rfc-30.html#coordinate-systems-and-axis-orientation Though I've tried to enter bbox parameter with lat/lon or lon/lat formats, it didn't change anything. Update : I got a correct map using shp2img. Any help or lead would be appreciated Thanks a lot -----Message d'origine----- De?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Rahkonen Jukka Envoy??: mardi 14 avril 2009 11:35 ??: Cl?ment MONIER; mapserver-users at lists.osgeo.org Objet?: Re: [mapserver-users] TR: Blank map Hi, Any possibility that it could have something to do with WMS version 1.3 that flipped the coordinate axis order? Did you also previously use WMS 1.3? -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Cl?ment MONIER > L?hetetty: 14. huhtikuuta 2009 11:26 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] TR: Blank map > > This issue (see below) is still active with MS 5.4 rc1. > Can anyone help me ? > > Thanks > > Clement > > > -----Message d'origine----- > De?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] De la part > de Cl?ment MONIER Envoy??: mardi 7 avril 2009 10:55 ??: > mapserver-users at lists.osgeo.org Objet?: [mapserver-users] Blank map > > Hi, > > MapServer returns blank images since I upgraded to MS4W 2.3.1 > + mapserver_ms4w-5.4.0-beta4. > Though I've followed the upgrade tips and changed my mapfiles : > http://lists.osgeo.org/pipermail/mapserver-users/2009-March/06 > 0600.html > > You'll find as attachment a very simple test case (.map + shapefiles). > > Here's the request that should (and used to) return a map : > http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htd > ocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=l > ayer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SR > S=EPSG:4326&BBOX=2.48,48.82,2.50,48.84&WIDTH=512&HEIGHT=512 > > I suspect a projection issue because the following request > (with a world-wide bbox) does display some features (look for > a small green point on the left side) : > http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htd > ocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=l > ayer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SR > S=EPSG:4326&BBOX=-90,0,90,180&WIDTH=512&HEIGHT=512 > > Has anything changed inside the Proj4 library ? > > Thanks for your help > > Cl?ment > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Tue Apr 14 05:51:07 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 14 Apr 2009 15:51:07 +0300 Subject: [mapserver-users] TR: Blank map In-Reply-To: <0B6D7F516315594DBEFE58178D91BD3231363A4DEB@exchangemm.mm.fr> References: <0B6D7F516315594DBEFE58178D91BD32119ECDA6B1@exchangemm.mm.fr> <0B6D7F516315594DBEFE58178D91BD3231363A4DEB@exchangemm.mm.fr> Message-ID: Hi, Sorry, I fear I cannot say much more than try to make the test as simple as possible in the beginning and if something happens to work, complicate things thereafter. Shp2imp is an excellent start. What might be more simple in the WMS request is using &FORMAT=image/png and WMS version 1.1.1. Leave out the backgroundcolor and transparent. Check with ogr2ogr that the bounding box in the request is OK and that there for sure are some data inside the bounding box. I guess you have already checked that there are no active minscale/maxscale settings hiding data at some scales. -Jukka- > -----Alkuper?inen viesti----- > L?hett?j?: Cl?ment MONIER [mailto:Clement.MONIER at v-trafic.com] > L?hetetty: 14. huhtikuuta 2009 15:34 > Vastaanottaja: Rahkonen Jukka; mapserver-users at lists.osgeo.org > Aihe: RE: [mapserver-users] TR: Blank map > > Thanks for your answer Jukka. > I did always use "VERSION=1.3.0" in my WMS request and > encountered no problem with it until now. > > But I've read this and I got scared : > http://mapserver.org/development/rfc/ms-rfc-30.html#coordinate > -systems-and-axis-orientation > > Though I've tried to enter bbox parameter with lat/lon or > lon/lat formats, it didn't change anything. > > Update : I got a correct map using shp2img. > > Any help or lead would be appreciated > > Thanks a lot > > -----Message d'origine----- > De?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] De la part > de Rahkonen Jukka Envoy??: mardi 14 avril 2009 11:35 ??: > Cl?ment MONIER; mapserver-users at lists.osgeo.org Objet?: Re: > [mapserver-users] TR: Blank map > > Hi, > > Any possibility that it could have something to do with WMS > version 1.3 that flipped the coordinate axis order? Did you > also previously use WMS 1.3? > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Cl?ment > > MONIER > > L?hetetty: 14. huhtikuuta 2009 11:26 > > Vastaanottaja: mapserver-users at lists.osgeo.org > > Aihe: [mapserver-users] TR: Blank map > > > > This issue (see below) is still active with MS 5.4 rc1. > > Can anyone help me ? > > > > Thanks > > > > Clement > > > > > > -----Message d'origine----- > > De?: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] De la part > de Cl?ment > > MONIER Envoy??: mardi 7 avril 2009 10:55 ??: > > mapserver-users at lists.osgeo.org Objet?: [mapserver-users] Blank map > > > > Hi, > > > > MapServer returns blank images since I upgraded to MS4W 2.3.1 > > + mapserver_ms4w-5.4.0-beta4. > > Though I've followed the upgrade tips and changed my mapfiles : > > http://lists.osgeo.org/pipermail/mapserver-users/2009-March/06 > > 0600.html > > > > You'll find as attachment a very simple test case (.map + > shapefiles). > > > > Here's the request that should (and used to) return a map : > > http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htd > > ocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=l > > ayer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SR > > S=EPSG:4326&BBOX=2.48,48.82,2.50,48.84&WIDTH=512&HEIGHT=512 > > > > I suspect a projection issue because the following request (with a > > world-wide bbox) does display some features (look for a small green > > point on the left side) : > > http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htd > > ocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=l > > ayer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SR > > S=EPSG:4326&BBOX=-90,0,90,180&WIDTH=512&HEIGHT=512 > > > > Has anything changed inside the Proj4 library ? > > > > Thanks for your help > > > > Cl?ment > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From paulborodaev at gmail.com Tue Apr 14 06:13:45 2009 From: paulborodaev at gmail.com (BrainDrain) Date: Tue, 14 Apr 2009 06:13:45 -0700 (PDT) Subject: [mapserver-users] cgi output is not cached on client??? please help! In-Reply-To: <1239712265945-2632807.post@n2.nabble.com> References: <1239704380514-2632363.post@n2.nabble.com> <1239712265945-2632807.post@n2.nabble.com> Message-ID: <1239714825993-2633002.post@n2.nabble.com> It seems (visually, but I'm not sure) that response.Redirect(url, false) helps I dont know why I've added "http_max_age" "1209600" #2 weeks in seconds in map file web section to enable cahing it works when I use pure cgi, but doesn't work when i'm redirecting to cgi from my http handler this is strange for me... Why mapserver cgi output is not cached on client? If image has the SAME url it will be re-requested every time when I start a new instance of webapp. When I'm using my own httphandler (with map.draw() inside or webClient.DownloadData(url_to_mapservcgi)) I'm turning on caching with: response.StatusCode = 200; response.Cache.VaryByParams["*"] = true; response.Cache.SetExpires(DateTime.Now.AddDays(14)); response.Cache.SetCacheability(HttpCacheability.Private); and it works as expected but pure cgi requests are not cached ON CLIENT - how it can be possible? -- View this message in context: http://n2.nabble.com/cgi-output-is-not-cached-on-client----please-help%21-tp2632363p2633002.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yassefa at dmsolutions.ca Tue Apr 14 06:19:36 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 14 Apr 2009 09:19:36 -0400 Subject: [mapserver-users] TR: Blank map In-Reply-To: <0B6D7F516315594DBEFE58178D91BD3231363A4DEB@exchangemm.mm.fr> References: <0B6D7F516315594DBEFE58178D91BD32119ECDA6B1@exchangemm.mm.fr> <0B6D7F516315594DBEFE58178D91BD3231363A4DEB@exchangemm.mm.fr> Message-ID: <49E48D68.4070903@dmsolutions.ca> Hi There, You should be able to get the result entering something like: LAYERS=layer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&CRS=CRS:84&BBOX=2.48,48.82,2.50,48.84&WIDTH=512&HEIGHT=512 or &VERSION=1.3.0&LAYERS=layer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&CRS=EPSG:4326&BBOX=48.8,2.48,48.84,2.50&WIDTH=512&HEIGHT=512 I have also opened a bug on the fact that using SRS instead of CRS should throw an exception (http://trac.osgeo.org/mapserver/ticket/2979). I will correct that for the 5.4.1. release. Let me know. Best Regards, Cl?ment MONIER wrote: > Thanks for your answer Jukka. > I did always use "VERSION=1.3.0" in my WMS request and encountered no problem with it until now. > > But I've read this and I got scared : > http://mapserver.org/development/rfc/ms-rfc-30.html#coordinate-systems-and-axis-orientation > > Though I've tried to enter bbox parameter with lat/lon or lon/lat formats, it didn't change anything. > > Update : I got a correct map using shp2img. > > Any help or lead would be appreciated > > Thanks a lot > > -----Message d'origine----- > De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Rahkonen Jukka > Envoy? : mardi 14 avril 2009 11:35 > ? : Cl?ment MONIER; mapserver-users at lists.osgeo.org > Objet : Re: [mapserver-users] TR: Blank map > > Hi, > > Any possibility that it could have something to do with WMS version 1.3 that flipped the coordinate axis order? Did you also previously use WMS 1.3? > > -Jukka Rahkonen- > >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta >> Cl?ment MONIER >> L?hetetty: 14. huhtikuuta 2009 11:26 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] TR: Blank map >> >> This issue (see below) is still active with MS 5.4 rc1. >> Can anyone help me ? >> >> Thanks >> >> Clement >> >> >> -----Message d'origine----- >> De : mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] De la part >> de Cl?ment MONIER Envoy? : mardi 7 avril 2009 10:55 ? : >> mapserver-users at lists.osgeo.org Objet : [mapserver-users] Blank map >> >> Hi, >> >> MapServer returns blank images since I upgraded to MS4W 2.3.1 >> + mapserver_ms4w-5.4.0-beta4. >> Though I've followed the upgrade tips and changed my mapfiles : >> http://lists.osgeo.org/pipermail/mapserver-users/2009-March/06 >> 0600.html >> >> You'll find as attachment a very simple test case (.map + shapefiles). >> >> Here's the request that should (and used to) return a map : >> http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htd >> ocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=l >> ayer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SR >> S=EPSG:4326&BBOX=2.48,48.82,2.50,48.84&WIDTH=512&HEIGHT=512 >> >> I suspect a projection issue because the following request >> (with a world-wide bbox) does display some features (look for >> a small green point on the left side) : >> http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htd >> ocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=l >> ayer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SR >> S=EPSG:4326&BBOX=-90,0,90,180&WIDTH=512&HEIGHT=512 >> >> Has anything changed inside the Proj4 library ? >> >> Thanks for your help >> >> Cl?ment >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From enri at 163.com Tue Apr 14 06:39:04 2009 From: enri at 163.com (enri) Date: Tue, 14 Apr 2009 21:39:04 +0800 (CST) Subject: [mapserver-users] Mapfile Editor - MSCompanion version 1.0 beta2 is available In-Reply-To: <1239704039227-2632347.post@n2.nabble.com> References: <1239704039227-2632347.post@n2.nabble.com> <31256226.524851239544681260.JavaMail.coremail@bj163app80.163.com> Message-ID: <5345817.1083501239716344716.JavaMail.coremail@bj163app88.163.com> Hi, Could you please tell me the version details of your OS? By the way maybe this link can help you: http://www.lavasoftsupport.com/lofiversion/index.php/t240.html Regards, Enri. ?2009-04-14?teeschke ??? > >Hi Enri > >sounds realy cool! >But when I doubleclick the MSCompanion.exe I receive Errors. One of them is >"Exception EReadError in module MSCompanion.exe" as 000266F. Error reating RichEdit1.Lines.Strings: RichEdit line insertion error." > >thx, Tee >-- >View this message in context: http://n2.nabble.com/Mapfile-Editor---MSCompanion-version-1.0-beta2-is-available-tp2624234p2632347.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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nelsonwc7 at hotmail.com Tue Apr 14 07:01:12 2009 From: nelsonwc7 at hotmail.com (Nelson Correia) Date: Tue, 14 Apr 2009 14:01:12 +0000 Subject: [mapserver-users] Elevation-like map In-Reply-To: <49E39500.9050301@gatewaygeomatics.com> References: <9c2015090904131158u4e9866dvd7980edeb74fc17d@mail.gmail.com> <49E39500.9050301@gatewaygeomatics.com> Message-ID: Hi, Thanks for the quick answers. Do you know how can I convert a shapefile to a suitable format for those apps (either rel.py or DEM utilities)? I've searched the documentation, but I didn't find that info. Thanks, Nelson Correia > Date: Mon, 13 Apr 2009 15:39:44 -0400 > From: jmckenna at gatewaygeomatics.com > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Elevation-like map > > > > > > - Step 2: Create a hillshade layer. (I use rel.py with gdal to do this, > > but you can do it with something else.) > > > > A handy toolset is the "DEM Utilities" > (http://www.perrygeo.net/wordpress/?p=7), which, if you're a Windows > user, are available in MS4W. > > -jeff > > > > -- > Jeff McKenna > FOSS4G 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 _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From nelsonwc7 at hotmail.com Tue Apr 14 07:04:33 2009 From: nelsonwc7 at hotmail.com (Nelson Correia) Date: Tue, 14 Apr 2009 14:04:33 +0000 Subject: [mapserver-users] Mapfile Editor - MSCompanion version 1.0 beta2 is available In-Reply-To: <5345817.1083501239716344716.JavaMail.coremail@bj163app88.163.com> References: <1239704039227-2632347.post@n2.nabble.com> <31256226.524851239544681260.JavaMail.coremail@bj163app80.163.com> <5345817.1083501239716344716.JavaMail.coremail@bj163app88.163.com> Message-ID: Hi, I've tested both beta 1 and beta 2 on Windows Server 2008 64bit, but I was unable to run them properly. It always give an error: in beta 2 it is an error like the one below and in beta 1 a different error when loading my map file. Currently I am using the alpha 3 version, which is the latest one that I am able to run on my system. Nelson Correia Date: Tue, 14 Apr 2009 21:39:04 +0800 From: enri at 163.com To: mapserver-users at lists.osgeo.org Subject: Re:Re: [mapserver-users] Mapfile Editor - MSCompanion version 1.0 beta2 is available Hi, Could you please tell me the version details of your OS? By the way maybe this link can help you: http://www.lavasoftsupport.com/lofiversion/index.php/t240.html Regards, Enri. ?2009-04-14?teeschke ??? > >Hi Enri > >sounds realy cool! >But when I doubleclick the MSCompanion.exe I receive Errors. One of them is >"Exception EReadError in module MSCompanion.exe" as 000266F. Error reating RichEdit1.Lines.Strings: RichEdit line insertion error." > >thx, Tee >-- >View this message in context: http://n2.nabble.com/Mapfile-Editor---MSCompanion-version-1.0-beta2-is-available-tp2624234p2632347.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 ????????????????? _________________________________________________________________ Show them the way! Add maps and directions to your party invites. http://www.microsoft.com/windows/windowslive/products/events.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From Clement.MONIER at v-trafic.com Tue Apr 14 07:33:17 2009 From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=) Date: Tue, 14 Apr 2009 16:33:17 +0200 Subject: [mapserver-users] TR: Blank map In-Reply-To: <49E48D68.4070903@dmsolutions.ca> References: <0B6D7F516315594DBEFE58178D91BD32119ECDA6B1@exchangemm.mm.fr> <0B6D7F516315594DBEFE58178D91BD3231363A4DEB@exchangemm.mm.fr> <49E48D68.4070903@dmsolutions.ca> Message-ID: <0B6D7F516315594DBEFE58178D91BD3231363A4E04@exchangemm.mm.fr> Thanks for answering. I've already tried your second option (lon/lat order switch) but it didn't change anything (blank map) The second request leads to : "WMS server error. Unsupported SRS namespace (only EPSG and AUTO currently supported)." Clement -----Message d'origine----- De?: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] Envoy??: mardi 14 avril 2009 15:20 ??: Cl?ment MONIER Cc?: mapserver-users at lists.osgeo.org Objet?: Re: [mapserver-users] TR: Blank map Hi There, You should be able to get the result entering something like: LAYERS=layer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&CRS=CRS:84&BBOX=2.48,48.82,2.50,48.84&WIDTH=512&HEIGHT=512 or &VERSION=1.3.0&LAYERS=layer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&CRS=EPSG:4326&BBOX=48.8,2.48,48.84,2.50&WIDTH=512&HEIGHT=512 I have also opened a bug on the fact that using SRS instead of CRS should throw an exception (http://trac.osgeo.org/mapserver/ticket/2979). I will correct that for the 5.4.1. release. Let me know. Best Regards, Cl?ment MONIER wrote: > Thanks for your answer Jukka. > I did always use "VERSION=1.3.0" in my WMS request and encountered no problem with it until now. > > But I've read this and I got scared : > http://mapserver.org/development/rfc/ms-rfc-30.html#coordinate-systems-and-axis-orientation > > Though I've tried to enter bbox parameter with lat/lon or lon/lat formats, it didn't change anything. > > Update : I got a correct map using shp2img. > > Any help or lead would be appreciated > > Thanks a lot > > -----Message d'origine----- > De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Rahkonen Jukka > Envoy? : mardi 14 avril 2009 11:35 > ? : Cl?ment MONIER; mapserver-users at lists.osgeo.org > Objet : Re: [mapserver-users] TR: Blank map > > Hi, > > Any possibility that it could have something to do with WMS version 1.3 that flipped the coordinate axis order? Did you also previously use WMS 1.3? > > -Jukka Rahkonen- > >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta >> Cl?ment MONIER >> L?hetetty: 14. huhtikuuta 2009 11:26 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] TR: Blank map >> >> This issue (see below) is still active with MS 5.4 rc1. >> Can anyone help me ? >> >> Thanks >> >> Clement >> >> >> -----Message d'origine----- >> De : mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] De la part >> de Cl?ment MONIER Envoy? : mardi 7 avril 2009 10:55 ? : >> mapserver-users at lists.osgeo.org Objet : [mapserver-users] Blank map >> >> Hi, >> >> MapServer returns blank images since I upgraded to MS4W 2.3.1 >> + mapserver_ms4w-5.4.0-beta4. >> Though I've followed the upgrade tips and changed my mapfiles : >> http://lists.osgeo.org/pipermail/mapserver-users/2009-March/06 >> 0600.html >> >> You'll find as attachment a very simple test case (.map + shapefiles). >> >> Here's the request that should (and used to) return a map : >> http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htd >> ocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=l >> ayer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SR >> S=EPSG:4326&BBOX=2.48,48.82,2.50,48.84&WIDTH=512&HEIGHT=512 >> >> I suspect a projection issue because the following request >> (with a world-wide bbox) does display some features (look for >> a small green point on the left side) : >> http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htd >> ocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=l >> ayer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SR >> S=EPSG:4326&BBOX=-90,0,90,180&WIDTH=512&HEIGHT=512 >> >> Has anything changed inside the Proj4 library ? >> >> Thanks for your help >> >> Cl?ment >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Clement.MONIER at v-trafic.com Tue Apr 14 07:47:39 2009 From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=) Date: Tue, 14 Apr 2009 16:47:39 +0200 Subject: [mapserver-users] TR: Blank map In-Reply-To: <49E48D68.4070903@dmsolutions.ca> References: <0B6D7F516315594DBEFE58178D91BD32119ECDA6B1@exchangemm.mm.fr> <0B6D7F516315594DBEFE58178D91BD3231363A4DEB@exchangemm.mm.fr> <49E48D68.4070903@dmsolutions.ca> Message-ID: <0B6D7F516315594DBEFE58178D91BD3231363A4E0B@exchangemm.mm.fr> Sorry, your second option is working well indeed. Following to http://mapserver.org/development/rfc/ms-rfc-30.html#coordinate-systems-and-axis-orientation Long/lat must be inverted The map is displayed correctly but I think that it will lead to a lot of confusion ! -----Message d'origine----- De?: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] Envoy??: mardi 14 avril 2009 15:20 ??: Cl?ment MONIER Cc?: mapserver-users at lists.osgeo.org Objet?: Re: [mapserver-users] TR: Blank map Hi There, You should be able to get the result entering something like: LAYERS=layer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&CRS=CRS:84&BBOX=2.48,48.82,2.50,48.84&WIDTH=512&HEIGHT=512 or &VERSION=1.3.0&LAYERS=layer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&CRS=EPSG:4326&BBOX=48.8,2.48,48.84,2.50&WIDTH=512&HEIGHT=512 I have also opened a bug on the fact that using SRS instead of CRS should throw an exception (http://trac.osgeo.org/mapserver/ticket/2979). I will correct that for the 5.4.1. release. Let me know. Best Regards, Cl?ment MONIER wrote: > Thanks for your answer Jukka. > I did always use "VERSION=1.3.0" in my WMS request and encountered no problem with it until now. > > But I've read this and I got scared : > http://mapserver.org/development/rfc/ms-rfc-30.html#coordinate-systems-and-axis-orientation > > Though I've tried to enter bbox parameter with lat/lon or lon/lat formats, it didn't change anything. > > Update : I got a correct map using shp2img. > > Any help or lead would be appreciated > > Thanks a lot > > -----Message d'origine----- > De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Rahkonen Jukka > Envoy? : mardi 14 avril 2009 11:35 > ? : Cl?ment MONIER; mapserver-users at lists.osgeo.org > Objet : Re: [mapserver-users] TR: Blank map > > Hi, > > Any possibility that it could have something to do with WMS version 1.3 that flipped the coordinate axis order? Did you also previously use WMS 1.3? > > -Jukka Rahkonen- > >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta >> Cl?ment MONIER >> L?hetetty: 14. huhtikuuta 2009 11:26 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] TR: Blank map >> >> This issue (see below) is still active with MS 5.4 rc1. >> Can anyone help me ? >> >> Thanks >> >> Clement >> >> >> -----Message d'origine----- >> De : mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] De la part >> de Cl?ment MONIER Envoy? : mardi 7 avril 2009 10:55 ? : >> mapserver-users at lists.osgeo.org Objet : [mapserver-users] Blank map >> >> Hi, >> >> MapServer returns blank images since I upgraded to MS4W 2.3.1 >> + mapserver_ms4w-5.4.0-beta4. >> Though I've followed the upgrade tips and changed my mapfiles : >> http://lists.osgeo.org/pipermail/mapserver-users/2009-March/06 >> 0600.html >> >> You'll find as attachment a very simple test case (.map + shapefiles). >> >> Here's the request that should (and used to) return a map : >> http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htd >> ocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=l >> ayer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SR >> S=EPSG:4326&BBOX=2.48,48.82,2.50,48.84&WIDTH=512&HEIGHT=512 >> >> I suspect a projection issue because the following request >> (with a world-wide bbox) does display some features (look for >> a small green point on the left side) : >> http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htd >> ocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=l >> ayer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SR >> S=EPSG:4326&BBOX=-90,0,90,180&WIDTH=512&HEIGHT=512 >> >> Has anything changed inside the Proj4 library ? >> >> Thanks for your help >> >> Cl?ment >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From yassefa at dmsolutions.ca Tue Apr 14 08:11:06 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 14 Apr 2009 11:11:06 -0400 Subject: [mapserver-users] TR: Blank map In-Reply-To: <0B6D7F516315594DBEFE58178D91BD3231363A4E0B@exchangemm.mm.fr> References: <0B6D7F516315594DBEFE58178D91BD32119ECDA6B1@exchangemm.mm.fr> <0B6D7F516315594DBEFE58178D91BD3231363A4DEB@exchangemm.mm.fr> <49E48D68.4070903@dmsolutions.ca> <0B6D7F516315594DBEFE58178D91BD3231363A4E0B@exchangemm.mm.fr> Message-ID: <49E4A78A.7080601@dmsolutions.ca> Cl?ment MONIER wrote: > Sorry, your second option is working well indeed. > great. > Following to > http://mapserver.org/development/rfc/ms-rfc-30.html#coordinate-systems-and-axis-orientation > Long/lat must be inverted > > The map is displayed correctly but > I think that it will lead to a lot of confusion ! > confusion? you must be kidding :) I agree with you that the axis inversion might lead to confusion since It is not the way we are used to work but the specs are defined as such. Note also that there is some initial doc at the http://mapserver.org/ogc/wms_server.html#wms-1-3-0-support and any text, examples you might want to add to ease up the confusion is welcome. Best Regards, > > -----Message d'origine----- > De : Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] > Envoy? : mardi 14 avril 2009 15:20 > ? : Cl?ment MONIER > Cc : mapserver-users at lists.osgeo.org > Objet : Re: [mapserver-users] TR: Blank map > > Hi There, > > You should be able to get the result entering something like: > LAYERS=layer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&CRS=CRS:84&BBOX=2.48,48.82,2.50,48.84&WIDTH=512&HEIGHT=512 > > or > > > &VERSION=1.3.0&LAYERS=layer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&CRS=EPSG:4326&BBOX=48.8,2.48,48.84,2.50&WIDTH=512&HEIGHT=512 > > > I have also opened a bug on the fact that using SRS instead of CRS > should throw an exception (http://trac.osgeo.org/mapserver/ticket/2979). > I will correct that for the 5.4.1. release. > > Let me know. > > Best Regards, > > > Cl?ment MONIER wrote: >> Thanks for your answer Jukka. >> I did always use "VERSION=1.3.0" in my WMS request and encountered no problem with it until now. >> >> But I've read this and I got scared : >> http://mapserver.org/development/rfc/ms-rfc-30.html#coordinate-systems-and-axis-orientation >> >> Though I've tried to enter bbox parameter with lat/lon or lon/lat formats, it didn't change anything. >> >> Update : I got a correct map using shp2img. >> >> Any help or lead would be appreciated >> >> Thanks a lot >> >> -----Message d'origine----- >> De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Rahkonen Jukka >> Envoy? : mardi 14 avril 2009 11:35 >> ? : Cl?ment MONIER; mapserver-users at lists.osgeo.org >> Objet : Re: [mapserver-users] TR: Blank map >> >> Hi, >> >> Any possibility that it could have something to do with WMS version 1.3 that flipped the coordinate axis order? Did you also previously use WMS 1.3? >> >> -Jukka Rahkonen- >> >>> -----Alkuper?inen viesti----- >>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta >>> Cl?ment MONIER >>> L?hetetty: 14. huhtikuuta 2009 11:26 >>> Vastaanottaja: mapserver-users at lists.osgeo.org >>> Aihe: [mapserver-users] TR: Blank map >>> >>> This issue (see below) is still active with MS 5.4 rc1. >>> Can anyone help me ? >>> >>> Thanks >>> >>> Clement >>> >>> >>> -----Message d'origine----- >>> De : mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] De la part >>> de Cl?ment MONIER Envoy? : mardi 7 avril 2009 10:55 ? : >>> mapserver-users at lists.osgeo.org Objet : [mapserver-users] Blank map >>> >>> Hi, >>> >>> MapServer returns blank images since I upgraded to MS4W 2.3.1 >>> + mapserver_ms4w-5.4.0-beta4. >>> Though I've followed the upgrade tips and changed my mapfiles : >>> http://lists.osgeo.org/pipermail/mapserver-users/2009-March/06 >>> 0600.html >>> >>> You'll find as attachment a very simple test case (.map + shapefiles). >>> >>> Here's the request that should (and used to) return a map : >>> http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htd >>> ocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=l >>> ayer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SR >>> S=EPSG:4326&BBOX=2.48,48.82,2.50,48.84&WIDTH=512&HEIGHT=512 >>> >>> I suspect a projection issue because the following request >>> (with a world-wide bbox) does display some features (look for >>> a small green point on the left side) : >>> http://localhost/cgi-bin/mapserv.exe?MAP=C:\ms4w\apps\gmap\htd >>> ocs\test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=l >>> ayer1&STYLES=&FORMAT=agga&BGCOLOR=0xFFFFFF&TRANSPARENT=True&SR >>> S=EPSG:4326&BBOX=-90,0,90,180&WIDTH=512&HEIGHT=512 >>> >>> Has anything changed inside the Proj4 library ? >>> >>> Thanks for your help >>> >>> Cl?ment >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From pmoen at nd.gov Tue Apr 14 09:07:11 2009 From: pmoen at nd.gov (Moen, Paul T.) Date: Tue, 14 Apr 2009 11:07:11 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: Message-ID: On 4/14/09 9:30 AM, "Jay Kapalczynski" wrote: Thanks for the help and response....I think I am getting closer... I set up another php page...this page is getting the PID values sent to it via a session, I am using frames in this page It was the only way I could get the queries to work, the table to build...etc You can see the "session" code below...I echo it and all the correct PIDs are displayed so I know that I have passed to correctly. I added your code example... Note: the PID string is a comma delimited string of PID values I am pointing the frame to the PHP page and I get this, but no image. So part of my code is working.... String:0711922340036,0711922340038,0711922340039 Are your PIDs strings? If so, you will need your PIDs to have quotes around them when you query. $qlayer->queryByAttributes("PID","PID IN ('0711922340036','0711922340038','0711922340039')",MS_MULTIPLE); Note the double quotes. But that's it....there is no jpeg... Again I am very green to this....this is my first attempt to actually return an image... here... I tried to add this : for my reference library for the ms_newMapObj but I get errors... So I went back to the GeoMOOSE libraries...(As see below) No errors but no image dl('php_mapscript.so'); I am going to try and post this on their site but help is hard to find... Anyone else out here on the MapServer page mess around with GeoMOOSE... THANK YOU MOEN for your help it is very appreciated.. selectOutputFormat('jpeg'); This should be before the draw. $qlayer = $map->$map->getLayerByName('parcels'); You have $map twice here. Should be $qlayer =$map->getLayerByName('parcels'); $test = $qlayer->queryByAttributes('PID','PID IN ($PIDString)',MS_MULTIPLE); Assign above to variable so you can compare it with MS_SUCCESS if($test == MS_SUCCESS) and check your error log for errors. $img = $map->drawQuery(); //header('Content-Type: image/jpeg'); //$img->saveImage(""); You don't need the 2 prior lines if you are saving the image to a file and loading it via an image tag like you are below. $image_url=$img->saveWebImage(); ?> Displaying a map > From: Moen, Paul T. [mailto:pmoen at nd.gov] Sent: Monday, April 13, 2009 3:22 PM To: Jay Kapalczynski Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight On 4/13/09 2:25 PM, "Jay Kapalczynski" wrote: I am messing around with this....does any of this map sense? Yes, you have many errors. Check the error logs for php to help debugging with syntax. // THE QUERY HAPPENS BEFORE THIS....JUST SHOWING THAT THE VARAIBLE HOLDING ALL THE PIS VALUES IS BELOW //=============================================================== //=============================================================== // BUILD A COMMAN DELIMITED LIST // if something already in $PIDString, append a comma if (isset($PIDString)) $PIDString .= ','; // Append the new value $PIDString .= $PID; //=============================================================== //=============================================================== } // end while //=============================================================== //=============================================================== $map = ms_newMapObj(/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/select.map); Won't work because it requires a string, so you would need $map = ms_newMapObj('/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/select.map'); $qlayer = $map->$map->getLayerByName(parcels); Won't work because it requires a string and the layer in your mapfile is Parcels, so you would need $qlayer = $map->getLayerByName('Parcels'); $qlayer->queryByAttributes('PID','($PIDString)',MS_MULTIPLE); Won't work because it needs to know how to query for the PID as in $qlayer->queryByAttributes('PID','PID IN ($PIDString)',MS_MULTIPLE); $img = $map->drawQuery(); Should set the output format to jpeg $map->selectOutputFormat('jpeg'); header('Content-Type: image/jpeg'); $img->saveImage(""); Can I then test the jpeg in another window or something... You could set up your php file to accept $_GET variables and pass in the PIDs like below. http://yourserver.com/phpfilename.php?PID=1%2C2%2C3%2C4%2C5, which should give you a png image after making changes above. Is this all that I need code wise? That should give you the basics. You will also need to load the php_mapscript library before any of the above functions will be recognized. Check out http://mapserver.org/mapscript/php/by_example.html. There is an abundance of good documentation on http://mapserver.org. HERE is the select.map file MAP NAME 'all layers' SIZE 800 650 STATUS ON EXTENT 427632.500000 4893613.330000 560300.922104 5015936.680000 UNITS METERS SYMBOLSET 'symbols/symbol.sym' TRANSPARENT TRUE IMAGETYPE PNG QUERYMAP STATUS ON STYLE SELECTED #STYLE HILITE END WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" #EMPTY '../geomoose/query_miss.html' END LAYER # Parcels Polygon Layer NAME 'Parcels' DATA 'parcels/parcels.shp' STATUS ON TYPE POLYGON #TEMPLATE 'parcels/identify_parcels.html' #FILTERITEM 'PID' #FILTER /^%id%/ METADATA qstring_validation_pattern '.' END HEADER 'parcels/select_header.html' TEMPLATE 'parcels/select_parcel.html' FOOTER 'parcels/select_footer.html' TOLERANCE 0 CLASS SYMBOL 'plainline' SIZE 3 COLOR -1 -1 -1 OUTLINECOLOR 255 255 0 END END From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 3:15 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight If the database that you are querying has the same attributes as the shape file, you can query the Layer that points to the shape file and display the highlighted results on your map. I know nothing about GeoMOOSE but I know it can be done with php-mapscript. Regardless of what you are using, you need a map file layer for the shape file with the parcels. You will then need to use php-mapscript to query that layer with something like $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); You will then need to create the output image from query using something like $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); I can't give you specifics without knowing how GeoMOOSE works, so the best thing is to look at the documentation for GeoMOOSE if that is what you are using. On 4/9/09 2:17 PM, "Jay Kapalczynski" wrote: Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file and have the records returned from the query (database)...what would I have to do next to take those records and run a query to highlight the parcels (PID to PID)? Can all of this be accomplished in the PHP file? Thanks...and sorry for my ignorance... From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 1:57 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); On 4/9/09 1:31 PM, "Jay Kapalczynski" wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit more....after I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users at lists.osgeo.org ' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From bestofmukul at gmail.com Tue Apr 14 09:46:04 2009 From: bestofmukul at gmail.com (Mukul Gupta) Date: Tue, 14 Apr 2009 22:16:04 +0530 Subject: [mapserver-users] php problem Message-ID: Hi I'm new to this mapserver thing and working on a PHP based GIS application for my collg project. When I run the php script for ms4w it is showing the error that *Fatal error*: Call to undefined function ms_newMapObj() in * C:\ms4w\Apache\htdocs\phpms_hello.php* on line *9 *Cant figure out wat's happening because php is working fine( I checked with phpinfo() program) Help me out!!! --Mukul* * -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Apr 14 09:57:34 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 14 Apr 2009 12:57:34 -0400 Subject: [mapserver-users] php problem In-Reply-To: References: Message-ID: <49E4C07E.7010901@gatewaygeomatics.com> Mukul Gupta wrote: > Hi > I'm new to this mapserver thing and working on a PHP based GIS > application for my collg project. When I run the php script for ms4w it > is showing the error that > *Fatal error*: Call to undefined function ms_newMapObj() in > *C:\ms4w\Apache\htdocs\phpms_hello.php* on line *9 > *Cant figure out wat's happening because php is working fine( I checked > with phpinfo() program) > Help me out!!! > Hello, My guess is that your PHP script does not include the dl() function to load the MapScript library. For a small working script see: /ms4w/Apache/htdocs/quickmap.php -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From jkapalczynski at ci.maple-grove.mn.us Mon Apr 13 09:17:48 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Mon, 13 Apr 2009 11:17:48 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: References: Message-ID: So say I have a Database that I am querying... I get the results back with a PID number (unique) This number exists in the Parcels Shapefile so I can go after that field. I have a map file that is set up for the Parcels, but this is just there to draw the Parcels... I assume that I would have to modify this one for this to work? I am just a bit confused on how to get this to work... When I run the code that creates the Table below I want the parcels to also highlight in the map.... Attached is my code that I am using to get the resulting PID Values, build the table, and populate the last frame showing the Comma Delimited String. I just don't know how to apply that to my map? I attached my code from my PHP page which I hope that someone can at least put their eyes on... Towards to bottom you will see highlighted in RED the code that I am building a comma delimited string to populate a variable with all the PID numbers... I assume that I would not need the comma delimited string as I could place the highlighting code inside the while loop to get the parcels highlighted... I don't really know... Any thoughts? Thanks This inside the while loop???? $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); $qlayer->queryByAttributes('PID','PID IN (MY COMMA DELIMITED STRING VARIABLE')',MS_MULTIPLE); $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); [cid:image001.jpg at 01C9BC29.7A1ECE10] From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 3:15 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight If the database that you are querying has the same attributes as the shape file, you can query the Layer that points to the shape file and display the highlighted results on your map. I know nothing about GeoMOOSE but I know it can be done with php-mapscript. Regardless of what you are using, you need a map file layer for the shape file with the parcels. You will then need to use php-mapscript to query that layer with something like $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); You will then need to create the output image from query using something like $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); I can't give you specifics without knowing how GeoMOOSE works, so the best thing is to look at the documentation for GeoMOOSE if that is what you are using. On 4/9/09 2:17 PM, "Jay Kapalczynski" wrote: Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file and have the records returned from the query (database)...what would I have to do next to take those records and run a query to highlight the parcels (PID to PID)? Can all of this be accomplished in the PHP file? Thanks...and sorry for my ignorance... From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 1:57 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); On 4/9/09 1:31 PM, "Jay Kapalczynski" wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit more....after I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users at lists.osgeo.org ' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks Paul Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 73984 bytes Desc: image001.jpg URL: From jkapalczynski at ci.maple-grove.mn.us Mon Apr 13 09:19:38 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Mon, 13 Apr 2009 11:19:38 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: References: Message-ID: FORGOT MY CODE THANKS From: Jay Kapalczynski Sent: Monday, April 13, 2009 11:18 AM To: 'Moen, Paul T.'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Highlight So say I have a Database that I am querying... I get the results back with a PID number (unique) This number exists in the Parcels Shapefile so I can go after that field. I have a map file that is set up for the Parcels, but this is just there to draw the Parcels... I assume that I would have to modify this one for this to work? I am just a bit confused on how to get this to work... When I run the code that creates the Table below I want the parcels to also highlight in the map.... Attached is my code that I am using to get the resulting PID Values, build the table, and populate the last frame showing the Comma Delimited String. I just don't know how to apply that to my map? I attached my code from my PHP page which I hope that someone can at least put their eyes on... Towards to bottom you will see highlighted in RED the code that I am building a comma delimited string to populate a variable with all the PID numbers... I assume that I would not need the comma delimited string as I could place the highlighting code inside the while loop to get the parcels highlighted... I don't really know... Any thoughts? Thanks This inside the while loop???? $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); $qlayer->queryByAttributes('PID','PID IN (MY COMMA DELIMITED STRING VARIABLE')',MS_MULTIPLE); $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); [cid:image001.jpg at 01C9BC29.BB89C8A0] From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 3:15 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight If the database that you are querying has the same attributes as the shape file, you can query the Layer that points to the shape file and display the highlighted results on your map. I know nothing about GeoMOOSE but I know it can be done with php-mapscript. Regardless of what you are using, you need a map file layer for the shape file with the parcels. You will then need to use php-mapscript to query that layer with something like $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); You will then need to create the output image from query using something like $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); I can't give you specifics without knowing how GeoMOOSE works, so the best thing is to look at the documentation for GeoMOOSE if that is what you are using. On 4/9/09 2:17 PM, "Jay Kapalczynski" wrote: Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file and have the records returned from the query (database)...what would I have to do next to take those records and run a query to highlight the parcels (PID to PID)? Can all of this be accomplished in the PHP file? Thanks...and sorry for my ignorance... From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 1:57 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); On 4/9/09 1:31 PM, "Jay Kapalczynski" wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit more....after I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users at lists.osgeo.org ' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks Paul Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 73984 bytes Desc: image001.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Query.doc Type: application/msword Size: 35840 bytes Desc: Query.doc URL: From jkapalczynski at ci.maple-grove.mn.us Mon Apr 13 13:07:31 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Mon, 13 Apr 2009 15:07:31 -0500 Subject: FW: [mapserver-users] RE: Highlight Message-ID: FORGOT MY CODE THANKS So say I have a Database that I am querying... I get the results back with a PID number (unique) This number exists in the Parcels Shapefile so I can go after that field. I have a map file that is set up for the Parcels, but this is just there to draw the Parcels... I assume that I would have to modify this one for this to work? I am just a bit confused on how to get this to work... When I run the code that creates the Table below I want the parcels to also highlight in the map.... Attached is my code that I am using to get the resulting PID Values, build the table, and populate the last frame showing the Comma Delimited String. I just don't know how to apply that to my map? I attached my code from my PHP page which I hope that someone can at least put their eyes on... Towards to bottom you will see highlighted in RED the code that I am building a comma delimited string to populate a variable with all the PID numbers... I assume that I would not need the comma delimited string as I could place the highlighting code inside the while loop to get the parcels highlighted... I don't really know... Any thoughts? Thanks This inside the while loop???? $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); $qlayer->queryByAttributes('PID','PID IN (MY COMMA DELIMITED STRING VARIABLE')',MS_MULTIPLE); $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 3:15 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight If the database that you are querying has the same attributes as the shape file, you can query the Layer that points to the shape file and display the highlighted results on your map. I know nothing about GeoMOOSE but I know it can be done with php-mapscript. Regardless of what you are using, you need a map file layer for the shape file with the parcels. You will then need to use php-mapscript to query that layer with something like $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); You will then need to create the output image from query using something like $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); I can't give you specifics without knowing how GeoMOOSE works, so the best thing is to look at the documentation for GeoMOOSE if that is what you are using. On 4/9/09 2:17 PM, "Jay Kapalczynski" wrote: Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file and have the records returned from the query (database)...what would I have to do next to take those records and run a query to highlight the parcels (PID to PID)? Can all of this be accomplished in the PHP file? Thanks...and sorry for my ignorance... From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 1:57 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); On 4/9/09 1:31 PM, "Jay Kapalczynski" wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit more....after I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users at lists.osgeo.org ' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks Paul Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Query.doc Type: application/msword Size: 35840 bytes Desc: Query.doc URL: From jkapalczynski at ci.maple-grove.mn.us Tue Apr 14 07:30:05 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Tue, 14 Apr 2009 09:30:05 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: References: Message-ID: Thanks for the help and response....I think I am getting closer... I set up another php page...this page is getting the PID values sent to it via a session, I am using frames in this page It was the only way I could get the queries to work, the table to build...etc You can see the "session" code below...I echo it and all the correct PIDs are displayed so I know that I have passed to correctly. I added your code example... Note: the PID string is a comma delimited string of PID values I am pointing the frame to the PHP page and I get this, but no image. So part of my code is working.... String:0711922340036,0711922340038,0711922340039 But that's it....there is no jpeg... Again I am very green to this....this is my first attempt to actually return an image... here... I tried to add this : for my reference library for the ms_newMapObj but I get errors... So I went back to the GeoMOOSE libraries...(As see below) No errors but no image dl('php_mapscript.so'); I am going to try and post this on their site but help is hard to find... Anyone else out here on the MapServer page mess around with GeoMOOSE... THANK YOU MOEN for your help it is very appreciated.. $map->getLayerByName('parcels'); $qlayer->queryByAttributes('PID','PID IN ($PIDString)',MS_MULTIPLE); $img = $map->drawQuery(); $map->selectOutputFormat('jpeg'); header('Content-Type: image/jpeg'); $img->saveImage(""); $image_url=$img->saveWebImage(); ?> Displaying a map > From: Moen, Paul T. [mailto:pmoen at nd.gov] Sent: Monday, April 13, 2009 3:22 PM To: Jay Kapalczynski Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight On 4/13/09 2:25 PM, "Jay Kapalczynski" wrote: I am messing around with this....does any of this map sense? Yes, you have many errors. Check the error logs for php to help debugging with syntax. // THE QUERY HAPPENS BEFORE THIS....JUST SHOWING THAT THE VARAIBLE HOLDING ALL THE PIS VALUES IS BELOW //=============================================================== //=============================================================== // BUILD A COMMAN DELIMITED LIST // if something already in $PIDString, append a comma if (isset($PIDString)) $PIDString .= ','; // Append the new value $PIDString .= $PID; //=============================================================== //=============================================================== } // end while //=============================================================== //=============================================================== $map = ms_newMapObj(/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/select.map); Won't work because it requires a string, so you would need $map = ms_newMapObj('/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/select.map'); $qlayer = $map->$map->getLayerByName(parcels); Won't work because it requires a string and the layer in your mapfile is Parcels, so you would need $qlayer = $map->getLayerByName('Parcels'); $qlayer->queryByAttributes('PID','($PIDString)',MS_MULTIPLE); Won't work because it needs to know how to query for the PID as in $qlayer->queryByAttributes('PID','PID IN ($PIDString)',MS_MULTIPLE); $img = $map->drawQuery(); Should set the output format to jpeg $map->selectOutputFormat('jpeg'); header('Content-Type: image/jpeg'); $img->saveImage(""); Can I then test the jpeg in another window or something... You could set up your php file to accept $_GET variables and pass in the PIDs like below. http://yourserver.com/phpfilename.php?PID=1%2C2%2C3%2C4%2C5, which should give you a png image after making changes above. Is this all that I need code wise? That should give you the basics. You will also need to load the php_mapscript library before any of the above functions will be recognized. Check out http://mapserver.org/mapscript/php/by_example.html. There is an abundance of good documentation on http://mapserver.org. HERE is the select.map file MAP NAME 'all layers' SIZE 800 650 STATUS ON EXTENT 427632.500000 4893613.330000 560300.922104 5015936.680000 UNITS METERS SYMBOLSET 'symbols/symbol.sym' TRANSPARENT TRUE IMAGETYPE PNG QUERYMAP STATUS ON STYLE SELECTED #STYLE HILITE END WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" #EMPTY '../geomoose/query_miss.html' END LAYER # Parcels Polygon Layer NAME 'Parcels' DATA 'parcels/parcels.shp' STATUS ON TYPE POLYGON #TEMPLATE 'parcels/identify_parcels.html' #FILTERITEM 'PID' #FILTER /^%id%/ METADATA qstring_validation_pattern '.' END HEADER 'parcels/select_header.html' TEMPLATE 'parcels/select_parcel.html' FOOTER 'parcels/select_footer.html' TOLERANCE 0 CLASS SYMBOL 'plainline' SIZE 3 COLOR -1 -1 -1 OUTLINECOLOR 255 255 0 END END From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 3:15 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight If the database that you are querying has the same attributes as the shape file, you can query the Layer that points to the shape file and display the highlighted results on your map. I know nothing about GeoMOOSE but I know it can be done with php-mapscript. Regardless of what you are using, you need a map file layer for the shape file with the parcels. You will then need to use php-mapscript to query that layer with something like $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); You will then need to create the output image from query using something like $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); I can't give you specifics without knowing how GeoMOOSE works, so the best thing is to look at the documentation for GeoMOOSE if that is what you are using. On 4/9/09 2:17 PM, "Jay Kapalczynski" wrote: Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file and have the records returned from the query (database)...what would I have to do next to take those records and run a query to highlight the parcels (PID to PID)? Can all of this be accomplished in the PHP file? Thanks...and sorry for my ignorance... From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 1:57 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); On 4/9/09 1:31 PM, "Jay Kapalczynski" wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit more....after I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users at lists.osgeo.org ' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Tue Apr 14 11:40:14 2009 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 14 Apr 2009 14:40:14 -0400 Subject: [mapserver-users] Special characters in Mapfile? Message-ID: <4EFF8BB964547748A07CA32961810C0412C48656@SOM-TEAQASMAIL1.som.w2k.state.me.us> I am building some mapfiles, where the customer would like to use an ampersand in the Group parameter. When I try this, the data does not display either in the map or in the Ka-Map legend. Is there a way to use the ampersand (or any special character) in a Mapfile? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue Apr 14 11:01:39 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 14 Apr 2009 13:01:39 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: References: Message-ID: <49E48933.5157.008F.0@dnr.state.mn.us> This is probably too late to be of use but I've been using a highlight layer to achieve this. The layer takes input from a URL so that layer filter allows just the desired feature through. Works quite nicely and is relatively simple to implement. Here's an OpenLayers site that uses this: http://www.dnr.state.mn.us/waters/csg/index_copy.html In this case the highlight is a separate layer but you could just as easily return a single map. Steve >>> On 4/13/2009 at 11:17 AM, in message , Jay Kapalczynski wrote: > So say I have a Database that I am querying... > I get the results back with a PID number (unique) > This number exists in the Parcels Shapefile so I can go after that field. > I have a map file that is set up for the Parcels, but this is just there to > draw the Parcels... > I assume that I would have to modify this one for this to work? > > I am just a bit confused on how to get this to work... > When I run the code that creates the Table below I want the parcels to also > highlight in the map.... > > Attached is my code that I am using to get the resulting PID Values, build > the table, and populate the last frame showing the Comma Delimited String. > I just don't know how to apply that to my map? > > I attached my code from my PHP page which I hope that someone can at least > put their eyes on... > Towards to bottom you will see highlighted in RED the code that I am > building a comma delimited string to populate a variable with all the PID > numbers... > I assume that I would not need the comma delimited string as I could place > the highlighting code inside the while loop to get the parcels highlighted... > I don't really know... > > Any thoughts? > > Thanks > > > This inside the while loop???? > > $map = ms_newMapObj(PATH TO YOU MAPFILE); > $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); > $qlayer->queryByAttributes('PID','PID IN (MY COMMA DELIMITED STRING > VARIABLE')',MS_MULTIPLE); > $img = $map->drawQuery(); > header('Content-Type: image/jpeg'); > $img->saveImage(""); > > > [cid:image001.jpg at 01C9BC29.7A1ECE10] > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. > Sent: Thursday, April 09, 2009 3:15 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] RE: Highlight > > > If the database that you are querying has the same attributes as the shape > file, you can query the Layer that points to the shape file and display the > highlighted results on your map. I know nothing about GeoMOOSE but I know it > can be done with php-mapscript. > > Regardless of what you are using, you need a map file layer for the shape > file with the parcels. > You will then need to use php-mapscript to query that layer with something > like > $map = ms_newMapObj(PATH TO YOU MAPFILE); > $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); > $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); > You will then need to create the output image from query using something > like > $img = $map->drawQuery(); > header('Content-Type: image/jpeg'); > $img->saveImage(""); > > I can't give you specifics without knowing how GeoMOOSE works, so the best > thing is to look at the documentation for GeoMOOSE if that is what you are > using. > > On 4/9/09 2:17 PM, "Jay Kapalczynski" > wrote: > Dang I misspoke...I am sorry... > > I am querying a Database for records, these records have a PID (unique > Number). > These are the records that show up in the Table. > > As this happens I have to take the results and run the query against the > parcels to get the features in the Shapefile, then highlight.. > > If that makes any sense... > > If I am in a PHP file and have the records returned from the query > (database)...what would I have to do next to take those records and run a > query to highlight the parcels (PID to PID)? > > Can all of this be accomplished in the PHP file? > > Thanks...and sorry for my ignorance... > > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. > Sent: Thursday, April 09, 2009 1:57 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] RE: Highlight > > Set the mapfile QUERYMAP style to highlight > http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() > instead of draw(). > > $img = $map->drawQuery(); > header('Content-Type: image/jpeg'); > $img->saveImage(""); > > On 4/9/09 1:31 PM, "Jay Kapalczynski" > wrote: > Basically what I have is a query that runs on a shapefile... > It returns the records into a table, which I then have the option to zoom > to. > > I am looking for a bit more....after I run the query (php) I want the > returned records to highlight in the map... > I can get the Unique identifier but don't know if I can write some code in > PHP to highlight those features > > I don't even know where to start here... > > The query and returning records into the table, as well as, the zoom to work > great...just need the highlight part > > Thanks > > > > From: Jay Kapalczynski > Sent: Thursday, April 09, 2009 1:03 PM > To: 'mapserver-users at lists.osgeo.org > ' > Subject: Highlight > > Any way to highlight a feature in my map in PHP? > > I can grab a unique identifier but can figure out how to highlight it... > > THanks > > > Paul > > Paul From jmckenna at gatewaygeomatics.com Tue Apr 14 12:08:29 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 14 Apr 2009 15:08:29 -0400 Subject: [mapserver-users] Special characters in Mapfile? In-Reply-To: <4EFF8BB964547748A07CA32961810C0412C48656@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C0412C48656@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <49E4DF2D.7060101@gatewaygeomatics.com> Bistrais, Bob wrote: > I am building some mapfiles, where the customer would like to use an > ampersand in the Group parameter. When I try this, the data does not > display either in the map or in the Ka-Map legend. Is there a way to > use the ampersand (or any special character) in a Mapfile? > Bob, Here is my advice: - always quote strings in a mapfile (such as the layer's NAME and GROUP parameters) - this should allow you to use special characters in your map image - test your mapfile with the shp2img commandline utility - wherever possible, avoid using special characters in the NAME and GROUP parameters, because these might/will cause grief for OGC services I don't know how this relates to your specific application, but those are my thoughts in terms of your map image. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From jkapalczynski at ci.maple-grove.mn.us Tue Apr 14 12:29:37 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Tue, 14 Apr 2009 14:29:37 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: <49E48933.5157.008F.0@dnr.state.mn.us> References: <49E48933.5157.008F.0@dnr.state.mn.us> Message-ID: Thanks....but little confused as to what I am look at... How is this working? -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Tuesday, April 14, 2009 1:02 PM To: Jay Kapalczynski; mapserver-users at lists.osgeo.org; Paul T.' 'Moen Subject: RE: [mapserver-users] RE: Highlight This is probably too late to be of use but I've been using a highlight layer to achieve this. The layer takes input from a URL so that layer filter allows just the desired feature through. Works quite nicely and is relatively simple to implement. Here's an OpenLayers site that uses this: http://www.dnr.state.mn.us/waters/csg/index_copy.html In this case the highlight is a separate layer but you could just as easily return a single map. Steve >>> On 4/13/2009 at 11:17 AM, in message , Jay Kapalczynski wrote: > So say I have a Database that I am querying... > I get the results back with a PID number (unique) > This number exists in the Parcels Shapefile so I can go after that field. > I have a map file that is set up for the Parcels, but this is just there to > draw the Parcels... > I assume that I would have to modify this one for this to work? > > I am just a bit confused on how to get this to work... > When I run the code that creates the Table below I want the parcels to also > highlight in the map.... > > Attached is my code that I am using to get the resulting PID Values, build > the table, and populate the last frame showing the Comma Delimited String. > I just don't know how to apply that to my map? > > I attached my code from my PHP page which I hope that someone can at least > put their eyes on... > Towards to bottom you will see highlighted in RED the code that I am > building a comma delimited string to populate a variable with all the PID > numbers... > I assume that I would not need the comma delimited string as I could place > the highlighting code inside the while loop to get the parcels highlighted... > I don't really know... > > Any thoughts? > > Thanks > > > This inside the while loop???? > > $map = ms_newMapObj(PATH TO YOU MAPFILE); > $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); > $qlayer->queryByAttributes('PID','PID IN (MY COMMA DELIMITED STRING > VARIABLE')',MS_MULTIPLE); > $img = $map->drawQuery(); > header('Content-Type: image/jpeg'); > $img->saveImage(""); > > > [cid:image001.jpg at 01C9BC29.7A1ECE10] > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. > Sent: Thursday, April 09, 2009 3:15 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] RE: Highlight > > > If the database that you are querying has the same attributes as the shape > file, you can query the Layer that points to the shape file and display the > highlighted results on your map. I know nothing about GeoMOOSE but I know it > can be done with php-mapscript. > > Regardless of what you are using, you need a map file layer for the shape > file with the parcels. > You will then need to use php-mapscript to query that layer with something > like > $map = ms_newMapObj(PATH TO YOU MAPFILE); > $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); > $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); > You will then need to create the output image from query using something > like > $img = $map->drawQuery(); > header('Content-Type: image/jpeg'); > $img->saveImage(""); > > I can't give you specifics without knowing how GeoMOOSE works, so the best > thing is to look at the documentation for GeoMOOSE if that is what you are > using. > > On 4/9/09 2:17 PM, "Jay Kapalczynski" > wrote: > Dang I misspoke...I am sorry... > > I am querying a Database for records, these records have a PID (unique > Number). > These are the records that show up in the Table. > > As this happens I have to take the results and run the query against the > parcels to get the features in the Shapefile, then highlight.. > > If that makes any sense... > > If I am in a PHP file and have the records returned from the query > (database)...what would I have to do next to take those records and run a > query to highlight the parcels (PID to PID)? > > Can all of this be accomplished in the PHP file? > > Thanks...and sorry for my ignorance... > > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. > Sent: Thursday, April 09, 2009 1:57 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] RE: Highlight > > Set the mapfile QUERYMAP style to highlight > http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() > instead of draw(). > > $img = $map->drawQuery(); > header('Content-Type: image/jpeg'); > $img->saveImage(""); > > On 4/9/09 1:31 PM, "Jay Kapalczynski" > wrote: > Basically what I have is a query that runs on a shapefile... > It returns the records into a table, which I then have the option to zoom > to. > > I am looking for a bit more....after I run the query (php) I want the > returned records to highlight in the map... > I can get the Unique identifier but don't know if I can write some code in > PHP to highlight those features > > I don't even know where to start here... > > The query and returning records into the table, as well as, the zoom to work > great...just need the highlight part > > Thanks > > > > From: Jay Kapalczynski > Sent: Thursday, April 09, 2009 1:03 PM > To: 'mapserver-users at lists.osgeo.org > ' > Subject: Highlight > > Any way to highlight a feature in my map in PHP? > > I can grab a unique identifier but can figure out how to highlight it... > > THanks > > > Paul > > Paul From David.Fawcett at state.mn.us Tue Apr 14 12:38:47 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 14 Apr 2009 14:38:47 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA3C5@s-sp22.pca.state.mn.us> Steve is using CGI MapServer instead of php. When you click on a station, you will notice that the outline of the station turns yellow. Here is the URL to a tile with a highlighted symbol on it: http://maps.dnr.state.mn.us/cgi-bin/mapserv52?map=/usr/local/mapserver/a pps/waters/csg/csg.map&layers=active_site&map_transparent=true&id=0&mode =map&map_imagetype=png&station=63023001&mapext=-27687.5+4793250+941687.5 +5480750&imgext=-27687.5+4793250+941687.5+5480750&map_size=705+500&imgx= 352.5&imgy=250&imgxy=705+500 Notice that he has a layer called 'active_site' and he is passing in the station ID use in a class in that layer to turn only that feature yellow. When no station is selected, no stations are drawn in the 'active_site' layer. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Tuesday, April 14, 2009 2:30 PM To: 'Steve Lime'; mapserver-users at lists.osgeo.org; Paul T.' 'Moen Subject: RE: [mapserver-users] RE: Highlight Thanks....but little confused as to what I am look at... How is this working? -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Tuesday, April 14, 2009 1:02 PM To: Jay Kapalczynski; mapserver-users at lists.osgeo.org; Paul T.' 'Moen Subject: RE: [mapserver-users] RE: Highlight This is probably too late to be of use but I've been using a highlight layer to achieve this. The layer takes input from a URL so that layer filter allows just the desired feature through. Works quite nicely and is relatively simple to implement. Here's an OpenLayers site that uses this: http://www.dnr.state.mn.us/waters/csg/index_copy.html In this case the highlight is a separate layer but you could just as easily return a single map. Steve >>> On 4/13/2009 at 11:17 AM, in message , Jay Kapalczynski wrote: > So say I have a Database that I am querying... > I get the results back with a PID number (unique) > This number exists in the Parcels Shapefile so I can go after that > field. I have a map file that is set up for the Parcels, but this is > just there to draw the Parcels... I assume that I would have to modify > this one for this to work? > > I am just a bit confused on how to get this to work... > When I run the code that creates the Table below I want the parcels to > also > highlight in the map.... > > Attached is my code that I am using to get the resulting PID Values, > build > the table, and populate the last frame showing the Comma Delimited String. > I just don't know how to apply that to my map? > > I attached my code from my PHP page which I hope that someone can at > least > put their eyes on... > Towards to bottom you will see highlighted in RED the code that I am > building a comma delimited string to populate a variable with all the PID > numbers... > I assume that I would not need the comma delimited string as I could place > the highlighting code inside the while loop to get the parcels highlighted... > I don't really know... > > Any thoughts? > > Thanks > > > This inside the while loop???? > > $map = ms_newMapObj(PATH TO YOU MAPFILE); > $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); > $qlayer->queryByAttributes('PID','PID IN (MY COMMA DELIMITED STRING > VARIABLE')',MS_MULTIPLE); $img = $map->drawQuery(); > header('Content-Type: image/jpeg'); > $img->saveImage(""); > > > [cid:image001.jpg at 01C9BC29.7A1ECE10] > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. > Sent: Thursday, April 09, 2009 3:15 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] RE: Highlight > > > If the database that you are querying has the same attributes as the > shape > file, you can query the Layer that points to the shape file and display the > highlighted results on your map. I know nothing about GeoMOOSE but I know it > can be done with php-mapscript. > > Regardless of what you are using, you need a map file layer for the > shape > file with the parcels. > You will then need to use php-mapscript to query that layer with something > like > $map = ms_newMapObj(PATH TO YOU MAPFILE); > $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); > $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); > You will then need to create the output image from query using something > like > $img = $map->drawQuery(); > header('Content-Type: image/jpeg'); > $img->saveImage(""); > > I can't give you specifics without knowing how GeoMOOSE works, so the > best > thing is to look at the documentation for GeoMOOSE if that is what you are > using. > > On 4/9/09 2:17 PM, "Jay Kapalczynski" > > wrote: > Dang I misspoke...I am sorry... > > I am querying a Database for records, these records have a PID (unique > Number). > These are the records that show up in the Table. > > As this happens I have to take the results and run the query against > the > parcels to get the features in the Shapefile, then highlight.. > > If that makes any sense... > > If I am in a PHP file and have the records returned from the query > (database)...what would I have to do next to take those records and run a > query to highlight the parcels (PID to PID)? > > Can all of this be accomplished in the PHP file? > > Thanks...and sorry for my ignorance... > > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. > Sent: Thursday, April 09, 2009 1:57 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] RE: Highlight > > Set the mapfile QUERYMAP style to highlight > http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() > instead of draw(). > > $img = $map->drawQuery(); > header('Content-Type: image/jpeg'); > $img->saveImage(""); > > On 4/9/09 1:31 PM, "Jay Kapalczynski" > > wrote: > Basically what I have is a query that runs on a shapefile... > It returns the records into a table, which I then have the option to zoom > to. > > I am looking for a bit more....after I run the query (php) I want the > returned records to highlight in the map... > I can get the Unique identifier but don't know if I can write some code in > PHP to highlight those features > > I don't even know where to start here... > > The query and returning records into the table, as well as, the zoom > to work > great...just need the highlight part > > Thanks > > > > From: Jay Kapalczynski > Sent: Thursday, April 09, 2009 1:03 PM > To: 'mapserver-users at lists.osgeo.org > ' > Subject: Highlight > > Any way to highlight a feature in my map in PHP? > > I can grab a unique identifier but can figure out how to highlight > it... > > THanks > > > Paul > > Paul _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jkapalczynski at ci.maple-grove.mn.us Tue Apr 14 13:23:49 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Tue, 14 Apr 2009 15:23:49 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA3C5@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA3C5@s-sp22.pca.state.mn.us> Message-ID: I am having a hard time trying to understand how that applies to what I am doing....I do appreciate the help here. Just trying to find a solution here... >From my main page I run a query in PHP that returns specific records I then move to a different web page that has a couple frames. I display the map in one frame and build a table in the 2nd frame that shows the results. In the table I have a field that will zoom to and identify that feature in the main map The only thing I am missing is after I run the query none of the parcels are highlighted in the map... I want to create the table and highlight the returned parcels in the map... Getting pretty confused right now...dont know the best way to accomplish this...going in 4 different directions right now.. The Query is being done in PHP, so I somehow need to take that result (comma delimited string) and get a the PID values from that to show up highlighted in my map.. Before I go on does anyone have a suggestion as to what would be the best course of action... Like Steve said, Like I am doing... Thanks Guys...you help is appreciated... -----Original Message----- From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Tuesday, April 14, 2009 2:39 PM To: Jay Kapalczynski; Steve Lime; mapserver-users at lists.osgeo.org; Paul T.' 'Moen Subject: RE: [mapserver-users] RE: Highlight Steve is using CGI MapServer instead of php. When you click on a station, you will notice that the outline of the station turns yellow. Here is the URL to a tile with a highlighted symbol on it: http://maps.dnr.state.mn.us/cgi-bin/mapserv52?map=/usr/local/mapserver/a pps/waters/csg/csg.map&layers=active_site&map_transparent=true&id=0&mode =map&map_imagetype=png&station=63023001&mapext=-27687.5+4793250+941687.5 +5480750&imgext=-27687.5+4793250+941687.5+5480750&map_size=705+500&imgx= 352.5&imgy=250&imgxy=705+500 Notice that he has a layer called 'active_site' and he is passing in the station ID use in a class in that layer to turn only that feature yellow. When no station is selected, no stations are drawn in the 'active_site' layer. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Tuesday, April 14, 2009 2:30 PM To: 'Steve Lime'; mapserver-users at lists.osgeo.org; Paul T.' 'Moen Subject: RE: [mapserver-users] RE: Highlight Thanks....but little confused as to what I am look at... How is this working? -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Tuesday, April 14, 2009 1:02 PM To: Jay Kapalczynski; mapserver-users at lists.osgeo.org; Paul T.' 'Moen Subject: RE: [mapserver-users] RE: Highlight This is probably too late to be of use but I've been using a highlight layer to achieve this. The layer takes input from a URL so that layer filter allows just the desired feature through. Works quite nicely and is relatively simple to implement. Here's an OpenLayers site that uses this: http://www.dnr.state.mn.us/waters/csg/index_copy.html In this case the highlight is a separate layer but you could just as easily return a single map. Steve >>> On 4/13/2009 at 11:17 AM, in message , Jay Kapalczynski wrote: > So say I have a Database that I am querying... > I get the results back with a PID number (unique) > This number exists in the Parcels Shapefile so I can go after that > field. I have a map file that is set up for the Parcels, but this is > just there to draw the Parcels... I assume that I would have to modify > this one for this to work? > > I am just a bit confused on how to get this to work... > When I run the code that creates the Table below I want the parcels to > also > highlight in the map.... > > Attached is my code that I am using to get the resulting PID Values, > build > the table, and populate the last frame showing the Comma Delimited String. > I just don't know how to apply that to my map? > > I attached my code from my PHP page which I hope that someone can at > least > put their eyes on... > Towards to bottom you will see highlighted in RED the code that I am > building a comma delimited string to populate a variable with all the PID > numbers... > I assume that I would not need the comma delimited string as I could place > the highlighting code inside the while loop to get the parcels highlighted... > I don't really know... > > Any thoughts? > > Thanks > > > This inside the while loop???? > > $map = ms_newMapObj(PATH TO YOU MAPFILE); > $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); > $qlayer->queryByAttributes('PID','PID IN (MY COMMA DELIMITED STRING > VARIABLE')',MS_MULTIPLE); $img = $map->drawQuery(); > header('Content-Type: image/jpeg'); > $img->saveImage(""); > > > [cid:image001.jpg at 01C9BC29.7A1ECE10] > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. > Sent: Thursday, April 09, 2009 3:15 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] RE: Highlight > > > If the database that you are querying has the same attributes as the > shape > file, you can query the Layer that points to the shape file and display the > highlighted results on your map. I know nothing about GeoMOOSE but I know it > can be done with php-mapscript. > > Regardless of what you are using, you need a map file layer for the > shape > file with the parcels. > You will then need to use php-mapscript to query that layer with something > like > $map = ms_newMapObj(PATH TO YOU MAPFILE); > $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); > $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); > You will then need to create the output image from query using something > like > $img = $map->drawQuery(); > header('Content-Type: image/jpeg'); > $img->saveImage(""); > > I can't give you specifics without knowing how GeoMOOSE works, so the > best > thing is to look at the documentation for GeoMOOSE if that is what you are > using. > > On 4/9/09 2:17 PM, "Jay Kapalczynski" > > wrote: > Dang I misspoke...I am sorry... > > I am querying a Database for records, these records have a PID (unique > Number). > These are the records that show up in the Table. > > As this happens I have to take the results and run the query against > the > parcels to get the features in the Shapefile, then highlight.. > > If that makes any sense... > > If I am in a PHP file and have the records returned from the query > (database)...what would I have to do next to take those records and run a > query to highlight the parcels (PID to PID)? > > Can all of this be accomplished in the PHP file? > > Thanks...and sorry for my ignorance... > > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. > Sent: Thursday, April 09, 2009 1:57 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] RE: Highlight > > Set the mapfile QUERYMAP style to highlight > http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() > instead of draw(). > > $img = $map->drawQuery(); > header('Content-Type: image/jpeg'); > $img->saveImage(""); > > On 4/9/09 1:31 PM, "Jay Kapalczynski" > > wrote: > Basically what I have is a query that runs on a shapefile... > It returns the records into a table, which I then have the option to zoom > to. > > I am looking for a bit more....after I run the query (php) I want the > returned records to highlight in the map... > I can get the Unique identifier but don't know if I can write some code in > PHP to highlight those features > > I don't even know where to start here... > > The query and returning records into the table, as well as, the zoom > to work > great...just need the highlight part > > Thanks > > > > From: Jay Kapalczynski > Sent: Thursday, April 09, 2009 1:03 PM > To: 'mapserver-users at lists.osgeo.org > ' > Subject: Highlight > > Any way to highlight a feature in my map in PHP? > > I can grab a unique identifier but can figure out how to highlight > it... > > THanks > > > Paul > > Paul _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Tue Apr 14 14:18:23 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 14 Apr 2009 16:18:23 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: References: <6246727221874A4FB8D3F9BBC37D9BD5056DA3C5@s-sp22.pca.state.mn.us> Message-ID: <49E4B74F.5157.008F.0@dnr.state.mn.us> This is an example of how to highlight a feature (click on a dot in the application I sent) without doing query maps or anything like that. You're manipulating a layer filter on-the-fly based on your search result. This can work with multiple results but is best suited to just a few results. With more than that you really need to look at some other way to cache features- a queryfile or some sort of a temp table. Sorry if I've confused things. Steve >>> On 4/14/2009 at 3:23 PM, in message , Jay Kapalczynski wrote: > I am having a hard time trying to understand how that applies to what I am > doing....I do appreciate the help here. > Just trying to find a solution here... > >>From my main page I run a query in PHP that returns specific records > I then move to a different web page that has a couple frames. > I display the map in one frame and build a table in the 2nd frame that shows > the results. > In the table I have a field that will zoom to and identify that feature in > the main map > > The only thing I am missing is after I run the query none of the parcels are > highlighted in the map... > I want to create the table and highlight the returned parcels in the map... > > Getting pretty confused right now...dont know the best way to accomplish > this...going in 4 different directions right now.. > The Query is being done in PHP, so I somehow need to take that result (comma > delimited string) and get a the PID values from that to show up highlighted > in my map.. > > Before I go on does anyone have a suggestion as to what would be the best > course of action... > Like Steve said, Like I am doing... > > Thanks Guys...you help is appreciated... > > > > > > -----Original Message----- > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > Sent: Tuesday, April 14, 2009 2:39 PM > To: Jay Kapalczynski; Steve Lime; mapserver-users at lists.osgeo.org; Paul T.' > 'Moen > Subject: RE: [mapserver-users] RE: Highlight > > Steve is using CGI MapServer instead of php. > > When you click on a station, you will notice that the outline of the > station turns yellow. > > Here is the URL to a tile with a highlighted symbol on it: > http://maps.dnr.state.mn.us/cgi-bin/mapserv52?map=/usr/local/mapserver/a > pps/waters/csg/csg.map&layers=active_site&map_transparent=true&id=0&mode > =map&map_imagetype=png&station=63023001&mapext=-27687.5+4793250+941687.5 > +5480750&imgext=-27687.5+4793250+941687.5+5480750&map_size=705+500&imgx= > 352.5&imgy=250&imgxy=705+500 > > Notice that he has a layer called 'active_site' and he is passing in the > station ID use in a class in that layer to turn only that feature > yellow. > > When no station is selected, no stations are drawn in the 'active_site' > layer. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay > Kapalczynski > Sent: Tuesday, April 14, 2009 2:30 PM > To: 'Steve Lime'; mapserver-users at lists.osgeo.org; Paul T.' 'Moen > Subject: RE: [mapserver-users] RE: Highlight > > > Thanks....but little confused as to what I am look at... > > How is this working? > > > > -----Original Message----- > From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] > Sent: Tuesday, April 14, 2009 1:02 PM > To: Jay Kapalczynski; mapserver-users at lists.osgeo.org; Paul T.' 'Moen > Subject: RE: [mapserver-users] RE: Highlight > > This is probably too late to be of use but I've been using a highlight > layer to achieve this. The layer takes input from a URL so that layer > filter allows just the desired feature through. Works quite nicely and > is relatively simple to implement. Here's an OpenLayers site that uses > this: > > http://www.dnr.state.mn.us/waters/csg/index_copy.html > > In this case the highlight is a separate layer but you could just as > easily return a single map. > > Steve > >>>> On 4/13/2009 at 11:17 AM, in message > >, Jay Kapalczynski wrote: >> So say I have a Database that I am querying... >> I get the results back with a PID number (unique) >> This number exists in the Parcels Shapefile so I can go after that >> field. I have a map file that is set up for the Parcels, but this is >> just there to draw the Parcels... I assume that I would have to modify > >> this one for this to work? >> >> I am just a bit confused on how to get this to work... >> When I run the code that creates the Table below I want the parcels to > >> also >> highlight in the map.... >> >> Attached is my code that I am using to get the resulting PID Values, >> build >> the table, and populate the last frame showing the Comma Delimited > String. >> I just don't know how to apply that to my map? >> >> I attached my code from my PHP page which I hope that someone can at >> least >> put their eyes on... >> Towards to bottom you will see highlighted in RED the code that I am >> building a comma delimited string to populate a variable with all the > PID >> numbers... >> I assume that I would not need the comma delimited string as I could > place >> the highlighting code inside the while loop to get the parcels > highlighted... >> I don't really know... >> >> Any thoughts? >> >> Thanks >> >> >> This inside the while loop???? >> >> $map = ms_newMapObj(PATH TO YOU MAPFILE); >> $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); >> $qlayer->queryByAttributes('PID','PID IN (MY COMMA DELIMITED STRING >> VARIABLE')',MS_MULTIPLE); $img = $map->drawQuery(); >> header('Content-Type: image/jpeg'); >> $img->saveImage(""); >> >> >> [cid:image001.jpg at 01C9BC29.7A1ECE10] >> >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, > Paul T. >> Sent: Thursday, April 09, 2009 3:15 PM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] RE: Highlight >> >> >> If the database that you are querying has the same attributes as the >> shape >> file, you can query the Layer that points to the shape file and > display the >> highlighted results on your map. I know nothing about GeoMOOSE but I > know it >> can be done with php-mapscript. >> >> Regardless of what you are using, you need a map file layer for the >> shape >> file with the parcels. >> You will then need to use php-mapscript to query that layer with > something >> like >> $map = ms_newMapObj(PATH TO YOU MAPFILE); >> $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); >> $qlayer->queryByAttributes('PID','PID IN (1, > 2,7,9,23,87)',MS_MULTIPLE); >> You will then need to create the output image from query using > something >> like >> $img = $map->drawQuery(); >> header('Content-Type: image/jpeg'); >> $img->saveImage(""); >> >> I can't give you specifics without knowing how GeoMOOSE works, so the >> best >> thing is to look at the documentation for GeoMOOSE if that is what you > are >> using. >> >> On 4/9/09 2:17 PM, "Jay Kapalczynski" >> >> wrote: >> Dang I misspoke...I am sorry... >> >> I am querying a Database for records, these records have a PID (unique >> Number). >> These are the records that show up in the Table. >> >> As this happens I have to take the results and run the query against >> the >> parcels to get the features in the Shapefile, then highlight.. >> >> If that makes any sense... >> >> If I am in a PHP file and have the records returned from the query >> (database)...what would I have to do next to take those records and > run a >> query to highlight the parcels (PID to PID)? >> >> Can all of this be accomplished in the PHP file? >> >> Thanks...and sorry for my ignorance... >> >> >> >> >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, > Paul T. >> Sent: Thursday, April 09, 2009 1:57 PM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] RE: Highlight >> >> Set the mapfile QUERYMAP style to highlight >> http://mapserver.org/mapfile/querymap.html. Draw the map using > drawQuery() >> instead of draw(). >> >> $img = $map->drawQuery(); >> header('Content-Type: image/jpeg'); >> $img->saveImage(""); >> >> On 4/9/09 1:31 PM, "Jay Kapalczynski" >> >> wrote: >> Basically what I have is a query that runs on a shapefile... >> It returns the records into a table, which I then have the option to > zoom >> to. >> >> I am looking for a bit more....after I run the query (php) I want the >> returned records to highlight in the map... >> I can get the Unique identifier but don't know if I can write some > code in >> PHP to highlight those features >> >> I don't even know where to start here... >> >> The query and returning records into the table, as well as, the zoom >> to work >> great...just need the highlight part >> >> Thanks >> >> >> >> From: Jay Kapalczynski >> Sent: Thursday, April 09, 2009 1:03 PM >> To: 'mapserver-users at lists.osgeo.org >> ' >> Subject: Highlight >> >> Any way to highlight a feature in my map in PHP? >> >> I can grab a unique identifier but can figure out how to highlight >> it... >> >> THanks >> >> >> Paul >> >> Paul > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From gregor at hostgis.com Tue Apr 14 14:31:32 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Tue, 14 Apr 2009 14:31:32 -0700 Subject: [mapserver-users] Special characters in Mapfile? In-Reply-To: <49E4DF2D.7060101@gatewaygeomatics.com> References: <4EFF8BB964547748A07CA32961810C0412C48656@SOM-TEAQASMAIL1.som.w2k.state.me.us> <49E4DF2D.7060101@gatewaygeomatics.com> Message-ID: <49E500B4.9040104@hostgis.com> Jeff McKenna wrote: > - wherever possible, avoid using special characters in the NAME and > GROUP parameters, because these might/will cause grief for OGC services Yeah, that's the part what seems most problematic! This isn't going to get what you want! LAYERS=parks&recreation&SRS=EPSG:4326 This might, or might not: LAYERS=parks%26recreation&SRS=EPSG:4326 I would wonder whether the name displayed in your app NEEDS to match the name of the layer. Is there a reason you can't have a checkbox to layer "parks_rec" which is labelled Parks & Recreation ? -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From enri at 163.com Tue Apr 14 16:48:30 2009 From: enri at 163.com (enri) Date: Wed, 15 Apr 2009 07:48:30 +0800 (CST) Subject: [mapserver-users] Mapfile Editor - MSCompanion version 1.0 In-Reply-To: References: <1239704039227-2632347.post@n2.nabble.com> <31256226.524851239544681260.JavaMail.coremail@bj163app80.163.com> <5345817.1083501239716344716.JavaMail.coremail@bj163app88.163.com> Message-ID: <3356893.12651239752910423.JavaMail.coremail@app144.163.com> beta2 is available MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3358_22150876.1239752910422" X-Originating-IP: [115.171.84.63] X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT2_snapshot build 090319(6914.2271.2266) Copyright (c) 2002-2009 www.mailtech.cn 163com ------=_Part_3358_22150876.1239752910422 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: quoted-printable Nelson Correia, I build it on Vista, and did not test on other versions of = Windows, I will do that to find the problem. Thank you very much for your i= nformation. Regards, Enri=20 =D4=DA2009-04-14=A3=AC"Nelson Correia" =D0=B4=B5=C0= =A3=BA =20 Hi, =20 I've tested both beta 1 and beta 2 on Windows Server 2008 64bit, but I was = unable to run them properly. It always give an error: in beta 2 it is an er= ror like the one below and in beta 1 a different error when loading my map = file. =20 Currently I am using the alpha 3 version, which is the latest one that I am= able to run on my system. =20 Nelson Correia =20 Date: Tue, 14 Apr 2009 21:39:04 +0800 From: enri at 163.com To: mapserver-users at lists.osgeo.org Subject: Re:Re: [mapserver-users] Mapfile Editor - MSCompanion version 1.0 = beta2 is available Hi, Could you please tell me the version details of your OS? =20 By the way maybe this link can help you: http://www.lavasoftsupport.com/lofiversion/index.php/t240.html Regards, Enri. =D4=DA2009-04-14=A3=ACteeschke =D0=B4=B5=C0=A3=BA > >Hi Enri > >sounds realy cool! >But when I doubleclick the MSCompanion.exe I receive Errors. One of them i= s=20 >"Exception EReadError in module MSCompanion.exe" as 000266F. Error reating= RichEdit1.Lines.Strings: RichEdit line insertion error." > >thx, Tee >--=20 >View this message in context: http://n2.nabble.com/Mapfile-Editor---MSComp= anion-version-1.0-beta2-is-available-tp2624234p2632347.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 =CD=F8=D2=D7=D3=CA=CF=E4=A3=AC=D6=D0=B9=FA=B5=DA=D2=BB=B4=F3=B5=E7=D7=D3=D3= =CA=BC=FE=B7=FE=CE=F1=C9=CC See all the ways you can stay connected to friends and family ------=_Part_3358_22150876.1239752910422 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: quoted-printable Nelson Correia, =20 I build it on Vista, and did not test on other versions of Windows, I will = do that to find the problem. Thank you very much for your information. Regards, Enri


=D4=DA2009-04-14=A3=AC"Nelson Correia" <nelsonwc7 at hotmail.co= m> =D0=B4=B5=C0=A3=BA
&nb= sp;
Hi,
 
I've tested both beta 1 and beta 2 on Windows Serve= r 2008 64bit, but I was unable to run them properly. It always give an erro= r: in beta 2 it is an error like the one below and in beta 1 a different er= ror when loading my map file.
 
Currently I am using the alpha 3= version, which is the latest one that I am able to run on my system.<= BR> 
Nelson Correia
 

Date: Tue, 14 Apr 2009 21:39:04 +0800
From: enri at 163.com
To: mapserver-users at lists.osgeo.org
Subject: Re:Re: [mapserver-users= ] Mapfile Editor - MSCompanion version 1.0 beta2 is available

Hi,
Could you please tell me the version details of your OS?
 
By the way maybe this link can help you:
Regards,
Enri.

=D4=DA2009-04-14=A3=ACteeschke <daniel.teske at web.de> =D0=B4=B5=C0=A3=BA
>
>Hi Enri
>
>sounds realy cool!
>But when I doubleclick the MSCompanion.exe I receive Errors. One of the=
m is=20
>"Exception EReadError in module MSCompanion.exe" as 000266F. Error reat=
ing RichEdit1.Lines.Strings: RichEdit line insertion error."
>
>thx, Tee
>--=20
>View this message in context: http://n2.nabble.com/Mapfile-Editor---MSC=
ompanion-version-1.0-beta2-is-available-tp2624234p2632347.html
>Sent from the Mapserver - User mailing list archive at Nabble.com.
>
>_______________________________________________
>mapserver-users mailing list
>mapserver-users at list=
s.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users



=CD=F8=D2=D7=D3=CA=CF=E4=A3=AC=D6=D0=B9= =FA=B5=DA=D2=BB=B4=F3=B5=E7=D7=D3=D3=CA=BC=FE=B7=FE=CE=F1=C9=CC
=

See all the ways you can stay connected to friends and family



=CD=F8=D2=D7=D3=CA=CF=E4=A3=AC=D6=D0=B9=FA= =B5=DA=D2=BB=B4=F3=B5=E7=D7=D3=D3=CA=BC=FE=B7=FE=CE=F1=C9=CC ------=_Part_3358_22150876.1239752910422-- From randre at gmail.com Tue Apr 14 19:31:46 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Tue, 14 Apr 2009 19:31:46 -0700 Subject: [mapserver-users] Elevation-like map In-Reply-To: References: <9c2015090904131158u4e9866dvd7980edeb74fc17d@mail.gmail.com> <49E39500.9050301@gatewaygeomatics.com> Message-ID: <9c2015090904141931h684ce916s3d996bb9c5d8b28@mail.gmail.com> What information does your shapefile contain, elevation points? If so, and if they are regularly spaced, you can probably use the GMT utility xyz2grd, http://gmt.soest.hawaii.edu/gmt/doc/gmt/html/man/xyz2grd.html. Otherwise you will need to interpolate the points into a regular grid, and my only experience doing this is with ArcGIS's Spatial Analyst. I would imagine GRASS has similar capability though. I'd be curious to hear other suggestions as well. Roger -- On Tue, Apr 14, 2009 at 7:01 AM, Nelson Correia wrote: > > Hi, > > Thanks for the quick answers. > > Do you know how can I convert a shapefile to a suitable format for those > apps (either rel.py or DEM utilities)? I've searched the documentation, but > I didn't find that info. > > Thanks, > > Nelson Correia > > > Date: Mon, 13 Apr 2009 15:39:44 -0400 > > From: jmckenna at gatewaygeomatics.com > > To: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] Elevation-like map > > > > > > > > > > > - Step 2: Create a hillshade layer. (I use rel.py with gdal to do this, > > > > but you can do it with something else.) > > > > > > > A handy toolset is the "DEM Utilities" > > (http://www.perrygeo.net/wordpress/?p=7), which, if you're a Windows > > user, are available in MS4W. > > > > -jeff > > > > > > > > -- > > Jeff McKenna > > FOSS4G 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 > > ------------------------------ > Get news, entertainment and everything you care about at Live.com. Check > it out! > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.koch at bridgis.nl Tue Apr 14 23:35:20 2009 From: m.koch at bridgis.nl (Martin Koch) Date: Wed, 15 Apr 2009 08:35:20 +0200 Subject: [mapserver-users] Mapserver 5.0.3 on Ubuntu 8.10-AMD64 TrueType font problem In-Reply-To: <49DF4FCA.2070203@mapgears.com> References: <1239354619.22154.17.camel@martink> <49DF4FCA.2070203@mapgears.com> Message-ID: <1239777320.29577.9.camel@martink> Thanks for your interest, When I change something in the path to the fontset, I invoke this error msLoadFontset(): Unable to access file. Error opening fontset /mapserver/mapdata/font/fonts.txt. (which is the crippled path) When I change something in the path to the desired font in the fontset I invoke this error... msGetLabelSize(): TrueType Font error. Could not find/open font This made me conclude my paths are correct and/or the font is opened with the correct paths.. Directing the errors to apache's error.log yields these two lines: [Wed Apr 15 08:40:15 2009] [error] [client 192.168.34.85] CGI Request 1 on process 31346 [Wed Apr 15 08:40:16 2009] [error] [client 192.168.34.85] Premature end of script headers: mapserv from which I conclude the process has started and prematurely ended... Kind regards, Martin - _____________________________ Martin Koch Teamleider data Bridgis b.v. Sint Walburgkerkpad 3 4001 MG Tiel Op vrijdag 10-04-2009 om 09:55 uur [tijdzone -0400], schreef Daniel Morissette: > Martin Koch wrote: > > > > I used the same mapfiles. Everything works fine appart but when > > I use TrueType fonts for displaying labels I get a '500 Internal Server > > Error'. A default bitmap-font works well, but not the truetype font's I > > refer to in my fontset. > > > > I checked all my path's tripple, compared both servers for different > > right's settings, apache2 settings and installed packages. I reinstalled > > dependencies as libfreetype6 but still 'no go' with truetype. > > > > I'd say check the paths inside your fontset again. I found and fixed a > very similar issue in v5.2 earlier this week, and it was caused by the > font file not being found. I would not be surprised if the same issue > existed in 5.0 as well: > > http://trac.osgeo.org/mapserver/ticket/2973 > > Another hint: set CONFIG MS_ERRORFILE "stderr" in your mapfile and look > for any error in the Apache error_log. In the case of the ticket above, > the "font not found" error was not trapped properly but it would have > showed up in the error_log before the crash (unless stderr buffering > would have prevented it from getting to the log file before the crash). > > Daniel From daniel.teske at web.de Wed Apr 15 00:37:04 2009 From: daniel.teske at web.de (teeschke) Date: Wed, 15 Apr 2009 00:37:04 -0700 (PDT) Subject: [mapserver-users] Mapfile Editor - MSCompanion version 1.0 In-Reply-To: <3356893.12651239752910423.JavaMail.coremail@app144.163.com> References: <31256226.524851239544681260.JavaMail.coremail@bj163app80.163.com> <1239704039227-2632347.post@n2.nabble.com> <5345817.1083501239716344716.JavaMail.coremail@bj163app88.163.com> <3356893.12651239752910423.JavaMail.coremail@app144.163.com> Message-ID: <1239781024321-2637450.post@n2.nabble.com> rehi i'm working on WindowsXP (SP3). thanks a lot, daniel beta2 is available MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3358_22150876.1239752910422" X-Originating-IP: [115.171.84.63] X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT2_snapshot build 090319(6914.2271.2266) Copyright (c) 2002-2009 www.mailtech.cn 163com ------=_Part_3358_22150876.1239752910422 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: quoted-printable Nelson Correia, I build it on Vista, and did not test on other versions of = Windows, I will do that to find the problem. Thank you very much for your i= nformation. Regards, Enri=20 =D4=DA2009-04-14=A3=AC"Nelson Correia" =D0=B4=B5=C0= =A3=BA =20 Hi, =20 I've tested both beta 1 and beta 2 on Windows Server 2008 64bit, but I was = unable to run them properly. It always give an error: in beta 2 it is an er= ror like the one below and in beta 1 a different error when loading my map = file. =20 Currently I am using the alpha 3 version, which is the latest one that I am= able to run on my system. =20 Nelson Correia =20 Date: Tue, 14 Apr 2009 21:39:04 +0800 From: enri at 163.com To: mapserver-users at lists.osgeo.org Subject: Re:Re: [mapserver-users] Mapfile Editor - MSCompanion version 1.0 = beta2 is available Hi, Could you please tell me the version details of your OS? =20 By the way maybe this link can help you: http://www.lavasoftsupport.com/lofiversion/index.php/t240.html Regards, Enri. =D4=DA2009-04-14=A3=ACteeschke =D0=B4=B5=C0=A3=BA > >Hi Enri > >sounds realy cool! >But when I doubleclick the MSCompanion.exe I receive Errors. One of them i= s=20 >"Exception EReadError in module MSCompanion.exe" as 000266F. Error reating= RichEdit1.Lines.Strings: RichEdit line insertion error." > >thx, Tee >--=20 >View this message in context: http://n2.nabble.com/Mapfile-Editor---MSComp= anion-version-1.0-beta2-is-available-tp2624234p2632347.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 =CD=F8=D2=D7=D3=CA=CF=E4=A3=AC=D6=D0=B9=FA=B5=DA=D2=BB=B4=F3=B5=E7=D7=D3=D3= =CA=BC=FE=B7=FE=CE=F1=C9=CC See all the ways you can stay connected to friends and family ------=_Part_3358_22150876.1239752910422 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: quoted-printable Nelson Correia, =20 I build it on Vista, and did not test on other versions of Windows, I will = do that to find the problem. Thank you very much for your information. Regards, Enri


=D4=DA2009-04-14=A3=AC"Nelson Correia" <nelsonwc7 at hotmail.co= m> =D0=B4=B5=C0=A3=BA
&nb= sp;
Hi,
 
I've tested both beta 1 and beta 2 on Windows Serve= r 2008 64bit, but I was unable to run them properly. It always give an erro= r: in beta 2 it is an error like the one below and in beta 1 a different er= ror when loading my map file.
 
Currently I am using the alpha 3= version, which is the latest one that I am able to run on my system.<= BR> 
Nelson Correia
 

Date: Tue, 14 Apr 2009 21:39:04 +0800
From: enri at 163.com
To: mapserver-users at lists.osgeo.org
Subject: Re:Re: [mapserver-users= ] Mapfile Editor - MSCompanion version 1.0 beta2 is available

Hi,
Could you please tell me the version details of your OS?
 
By the way maybe this link can help you:
http://www.lavasoftsupport.com/lofiversion/index.php/t240.html
=
Regards,
Enri.

=D4=DA2009-04-14=A3=ACteeschke < daniel.teske at web.de > =D0=B4=B5=C0=A3=BA
>
>Hi Enri
>
>sounds realy cool!
>But when I doubleclick the MSCompanion.exe I receive Errors. One of the=
m is=20
>"Exception EReadError in module MSCompanion.exe" as 000266F. Error reat=
ing RichEdit1.Lines.Strings: RichEdit line insertion error."
>
>thx, Tee
>--=20
>View this message in context: http://n2.nabble.com/Mapfile-Editor---MSC=
ompanion-version-1.0-beta2-is-available-tp2624234p2632347.html
>Sent from the Mapserver - User mailing list archive at Nabble.com.
>
>_______________________________________________
>mapserver-users mailing list
> mapserver-users at list=
s.osgeo.org 
>http://lists.osgeo.org/mailman/listinfo/mapserver-users



=CD=F8=D2=D7=D3=CA=CF=E4=A3=AC=D6=D0=B9= =FA=B5=DA=D2=BB=B4=F3=B5=E7=D7=D3=D3=CA=BC=FE=B7=FE=CE=F1=C9=CC =

See all the ways you can stay connected to friends and family



=CD=F8=D2=D7=D3=CA=CF=E4=A3=AC=D6=D0=B9=FA= =B5=DA=D2=BB=B4=F3=B5=E7=D7=D3=D3=CA=BC=FE=B7=FE=CE=F1=C9=CC ------=_Part_3358_22150876.1239752910422-- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://n2.nabble.com/Mapfile-Editor---MSCompanion-version-1.0-beta2-is-available-tp2624234p2637450.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Joseph4774 at hotmail.com Wed Apr 15 01:53:31 2009 From: Joseph4774 at hotmail.com (Joseph4774) Date: Wed, 15 Apr 2009 01:53:31 -0700 (PDT) Subject: [mapserver-users] how to change PDFlib settings Message-ID: <1239785611594-2637716.post@n2.nabble.com> Does anyone have an idea as how to change settings of pdflib,or can tell me what is the relationship between pdflib and the rest of the dll in c# ( Iam using c# script),or what is the proper way to generate PDF using pdflib. that is because when I generate the pdf some details do not fit with the settings are written in mapfilen for instance: 1- the transparente layers which has been declared in mapfile are not trnasparent in pdf. 2- the location of truetype fonts are not properly centered ,all true type symbols are moved some upward. 3- the color of the true type font can not be customized. Thanks. -- View this message in context: http://n2.nabble.com/how-to-change-PDFlib-settings-tp2637716p2637716.html Sent from the Mapserver - User mailing list archive at Nabble.com. From schroete at iup.physik.uni-bremen.de Wed Apr 15 04:52:22 2009 From: schroete at iup.physik.uni-bremen.de (Heiko =?iso-8859-1?q?Schr=F6ter?=) Date: Wed, 15 Apr 2009 13:52:22 +0200 Subject: [mapserver-users] Use of a Colortable Message-ID: <200904151352.22302.schroete@iup.physik.uni-bremen.de> Hello,, we are mapping global satellite data with postgis. Is it possible with mapserver to change the color of the symbol according to the value read in from postgis ? Now the color is fixed within the mapfile reading only the geolocations i.e. LAYER CONNECTION "user=bla password=blub dbname=foo host=fum" DATA "geocenter from table1" CLASS COLOR 50 150 150 SYMBOL "circle" SIZE 5 END END My (maybe/probably ill) idea is something like: ... DATA "value and geocenter from table1" ... COLOR on value using "/dir/my_colortable.dat" SYMBOL "circle" ... But it looks like that only one coloumn of the GIS Table could be read for a given LAYER.DATA statement. Thanks for any suggestion. Regards Heiko From jkapalczynski at ci.maple-grove.mn.us Tue Apr 14 12:58:09 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Tue, 14 Apr 2009 14:58:09 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: References: Message-ID: Alright I am getting a return now...but it is returning everything selected...so it seems that my query is not working for some reason... If I uncomment if($test == MS_SUCCESS) then I get an error...so the query is not working What can be causing this? What am I doing wrong here...is there a piece that I am missing.... I echo the query string and I get a "1" ?????? echo "Query:".$test; This line returns "Query: 1" PHP CODE: # Include the GeoMOOSE PHP Library Utilities include('Configuration.php'); include('geomoose_php_util.php'); $map = ms_newMapObj('/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/select_Highlight.map'); $map->selectOutputFormat('jpeg'); $qlayer = $map->getLayerByName('Parcels'); $test = $qlayer->queryByAttributes("PID","PID IN ('1211922220012',1211922220003)",MS_MULTIPLE); //if($test == MS_SUCCESS) echo "Query:".$test; $img = $map->drawQuery(); $image_url=$img->saveWebImage(); Select_highlight.map file LAYER # Parcels Polygon Layer NAME 'Parcels' DATA 'parcels/parcels.shp' STATUS ON TYPE POLYGON TEMPLATE 'parcels/select_parcels.html' FILTERITEM 'PID' #FILTER /^%id%/ METADATA qstring_validation_pattern '.' END HEADER 'parcels/select_header.html' TEMPLATE 'parcels/select_parcel.html' FOOTER 'parcels/select_footer.html' TOLERANCE 0 CLASS SYMBOL 'plainline' SIZE 3 COLOR -1 -1 -1 OUTLINECOLOR 255 255 0 END END From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Tuesday, April 14, 2009 9:30 AM To: 'Moen, Paul T.' Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Highlight Thanks for the help and response....I think I am getting closer... I set up another php page...this page is getting the PID values sent to it via a session, I am using frames in this page It was the only way I could get the queries to work, the table to build...etc You can see the "session" code below...I echo it and all the correct PIDs are displayed so I know that I have passed to correctly. I added your code example... Note: the PID string is a comma delimited string of PID values I am pointing the frame to the PHP page and I get this, but no image. So part of my code is working.... String:0711922340036,0711922340038,0711922340039 But that's it....there is no jpeg... Again I am very green to this....this is my first attempt to actually return an image... here... I tried to add this : for my reference library for the ms_newMapObj but I get errors... So I went back to the GeoMOOSE libraries...(As see below) No errors but no image dl('php_mapscript.so'); I am going to try and post this on their site but help is hard to find... Anyone else out here on the MapServer page mess around with GeoMOOSE... THANK YOU MOEN for your help it is very appreciated.. From: Moen, Paul T. [mailto:pmoen at nd.gov] Sent: Monday, April 13, 2009 3:22 PM To: Jay Kapalczynski Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight On 4/13/09 2:25 PM, "Jay Kapalczynski" wrote: I am messing around with this....does any of this map sense? Yes, you have many errors. Check the error logs for php to help debugging with syntax. // THE QUERY HAPPENS BEFORE THIS....JUST SHOWING THAT THE VARAIBLE HOLDING ALL THE PIS VALUES IS BELOW //=============================================================== //=============================================================== // BUILD A COMMAN DELIMITED LIST // if something already in $PIDString, append a comma if (isset($PIDString)) $PIDString .= ','; // Append the new value $PIDString .= $PID; //=============================================================== //=============================================================== } // end while //=============================================================== //=============================================================== $map = ms_newMapObj(/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/select.map); Won't work because it requires a string, so you would need $map = ms_newMapObj('/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/select.map'); $qlayer = $map->$map->getLayerByName(parcels); Won't work because it requires a string and the layer in your mapfile is Parcels, so you would need $qlayer = $map->getLayerByName('Parcels'); $qlayer->queryByAttributes('PID','($PIDString)',MS_MULTIPLE); Won't work because it needs to know how to query for the PID as in $qlayer->queryByAttributes('PID','PID IN ($PIDString)',MS_MULTIPLE); $img = $map->drawQuery(); Should set the output format to jpeg $map->selectOutputFormat('jpeg'); header('Content-Type: image/jpeg'); $img->saveImage(""); Can I then test the jpeg in another window or something... You could set up your php file to accept $_GET variables and pass in the PIDs like below. http://yourserver.com/phpfilename.php?PID=1%2C2%2C3%2C4%2C5, which should give you a png image after making changes above. Is this all that I need code wise? That should give you the basics. You will also need to load the php_mapscript library before any of the above functions will be recognized. Check out http://mapserver.org/mapscript/php/by_example.html. There is an abundance of good documentation on http://mapserver.org. HERE is the select.map file MAP NAME 'all layers' SIZE 800 650 STATUS ON EXTENT 427632.500000 4893613.330000 560300.922104 5015936.680000 UNITS METERS SYMBOLSET 'symbols/symbol.sym' TRANSPARENT TRUE IMAGETYPE PNG QUERYMAP STATUS ON STYLE SELECTED #STYLE HILITE END WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" #EMPTY '../geomoose/query_miss.html' END LAYER # Parcels Polygon Layer NAME 'Parcels' DATA 'parcels/parcels.shp' STATUS ON TYPE POLYGON #TEMPLATE 'parcels/identify_parcels.html' #FILTERITEM 'PID' #FILTER /^%id%/ METADATA qstring_validation_pattern '.' END HEADER 'parcels/select_header.html' TEMPLATE 'parcels/select_parcel.html' FOOTER 'parcels/select_footer.html' TOLERANCE 0 CLASS SYMBOL 'plainline' SIZE 3 COLOR -1 -1 -1 OUTLINECOLOR 255 255 0 END END From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 3:15 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight If the database that you are querying has the same attributes as the shape file, you can query the Layer that points to the shape file and display the highlighted results on your map. I know nothing about GeoMOOSE but I know it can be done with php-mapscript. Regardless of what you are using, you need a map file layer for the shape file with the parcels. You will then need to use php-mapscript to query that layer with something like $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); $qlayer->queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); You will then need to create the output image from query using something like $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); I can't give you specifics without knowing how GeoMOOSE works, so the best thing is to look at the documentation for GeoMOOSE if that is what you are using. On 4/9/09 2:17 PM, "Jay Kapalczynski" wrote: Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file and have the records returned from the query (database)...what would I have to do next to take those records and run a query to highlight the parcels (PID to PID)? Can all of this be accomplished in the PHP file? Thanks...and sorry for my ignorance... From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 1:57 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map->drawQuery(); header('Content-Type: image/jpeg'); $img->saveImage(""); On 4/9/09 1:31 PM, "Jay Kapalczynski" wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit more....after I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users at lists.osgeo.org ' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Wed Apr 15 06:11:33 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Wed, 15 Apr 2009 08:11:33 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: <49E4B74F.5157.008F.0@dnr.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA3C5@s-sp22.pca.state.mn.us> <49E4B74F.5157.008F.0@dnr.state.mn.us> Message-ID: Steve no worries....wasnt trying to shoot your idea down...I am using something similar in another layer and it works great.. All thoughts are welcome...I was thinking about this last night... There has to be a way to take a selection set from a query and have that highlight features of an existing shapefile from PHP Just have to find it...Thanks again Steve for your thoughts and help..they are greatly appreciated... -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Tuesday, April 14, 2009 4:18 PM To: Jay Kapalczynski; mapserver-users at lists.osgeo.org; Paul T.' 'Moen; David' 'Fawcett Subject: RE: [mapserver-users] RE: Highlight This is an example of how to highlight a feature (click on a dot in the application I sent) without doing query maps or anything like that. You're manipulating a layer filter on-the-fly based on your search result. This can work with multiple results but is best suited to just a few results. With more than that you really need to look at some other way to cache features- a queryfile or some sort of a temp table. Sorry if I've confused things. Steve >>> On 4/14/2009 at 3:23 PM, in message , Jay Kapalczynski wrote: > I am having a hard time trying to understand how that applies to what I am > doing....I do appreciate the help here. > Just trying to find a solution here... > >>From my main page I run a query in PHP that returns specific records > I then move to a different web page that has a couple frames. > I display the map in one frame and build a table in the 2nd frame that shows > the results. > In the table I have a field that will zoom to and identify that feature in > the main map > > The only thing I am missing is after I run the query none of the parcels are > highlighted in the map... > I want to create the table and highlight the returned parcels in the map... > > Getting pretty confused right now...dont know the best way to accomplish > this...going in 4 different directions right now.. > The Query is being done in PHP, so I somehow need to take that result (comma > delimited string) and get a the PID values from that to show up highlighted > in my map.. > > Before I go on does anyone have a suggestion as to what would be the best > course of action... > Like Steve said, Like I am doing... > > Thanks Guys...you help is appreciated... > > > > > > -----Original Message----- > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > Sent: Tuesday, April 14, 2009 2:39 PM > To: Jay Kapalczynski; Steve Lime; mapserver-users at lists.osgeo.org; Paul T.' > 'Moen > Subject: RE: [mapserver-users] RE: Highlight > > Steve is using CGI MapServer instead of php. > > When you click on a station, you will notice that the outline of the > station turns yellow. > > Here is the URL to a tile with a highlighted symbol on it: > http://maps.dnr.state.mn.us/cgi-bin/mapserv52?map=/usr/local/mapserver/a > pps/waters/csg/csg.map&layers=active_site&map_transparent=true&id=0&mode > =map&map_imagetype=png&station=63023001&mapext=-27687.5+4793250+941687.5 > +5480750&imgext=-27687.5+4793250+941687.5+5480750&map_size=705+500&imgx= > 352.5&imgy=250&imgxy=705+500 > > Notice that he has a layer called 'active_site' and he is passing in the > station ID use in a class in that layer to turn only that feature > yellow. > > When no station is selected, no stations are drawn in the 'active_site' > layer. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay > Kapalczynski > Sent: Tuesday, April 14, 2009 2:30 PM > To: 'Steve Lime'; mapserver-users at lists.osgeo.org; Paul T.' 'Moen > Subject: RE: [mapserver-users] RE: Highlight > > > Thanks....but little confused as to what I am look at... > > How is this working? > > > > -----Original Message----- > From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] > Sent: Tuesday, April 14, 2009 1:02 PM > To: Jay Kapalczynski; mapserver-users at lists.osgeo.org; Paul T.' 'Moen > Subject: RE: [mapserver-users] RE: Highlight > > This is probably too late to be of use but I've been using a highlight > layer to achieve this. The layer takes input from a URL so that layer > filter allows just the desired feature through. Works quite nicely and > is relatively simple to implement. Here's an OpenLayers site that uses > this: > > http://www.dnr.state.mn.us/waters/csg/index_copy.html > > In this case the highlight is a separate layer but you could just as > easily return a single map. > > Steve > >>>> On 4/13/2009 at 11:17 AM, in message > >, Jay Kapalczynski wrote: >> So say I have a Database that I am querying... >> I get the results back with a PID number (unique) >> This number exists in the Parcels Shapefile so I can go after that >> field. I have a map file that is set up for the Parcels, but this is >> just there to draw the Parcels... I assume that I would have to modify > >> this one for this to work? >> >> I am just a bit confused on how to get this to work... >> When I run the code that creates the Table below I want the parcels to > >> also >> highlight in the map.... >> >> Attached is my code that I am using to get the resulting PID Values, >> build >> the table, and populate the last frame showing the Comma Delimited > String. >> I just don't know how to apply that to my map? >> >> I attached my code from my PHP page which I hope that someone can at >> least >> put their eyes on... >> Towards to bottom you will see highlighted in RED the code that I am >> building a comma delimited string to populate a variable with all the > PID >> numbers... >> I assume that I would not need the comma delimited string as I could > place >> the highlighting code inside the while loop to get the parcels > highlighted... >> I don't really know... >> >> Any thoughts? >> >> Thanks >> >> >> This inside the while loop???? >> >> $map = ms_newMapObj(PATH TO YOU MAPFILE); >> $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); >> $qlayer->queryByAttributes('PID','PID IN (MY COMMA DELIMITED STRING >> VARIABLE')',MS_MULTIPLE); $img = $map->drawQuery(); >> header('Content-Type: image/jpeg'); >> $img->saveImage(""); >> >> >> [cid:image001.jpg at 01C9BC29.7A1ECE10] >> >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, > Paul T. >> Sent: Thursday, April 09, 2009 3:15 PM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] RE: Highlight >> >> >> If the database that you are querying has the same attributes as the >> shape >> file, you can query the Layer that points to the shape file and > display the >> highlighted results on your map. I know nothing about GeoMOOSE but I > know it >> can be done with php-mapscript. >> >> Regardless of what you are using, you need a map file layer for the >> shape >> file with the parcels. >> You will then need to use php-mapscript to query that layer with > something >> like >> $map = ms_newMapObj(PATH TO YOU MAPFILE); >> $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); >> $qlayer->queryByAttributes('PID','PID IN (1, > 2,7,9,23,87)',MS_MULTIPLE); >> You will then need to create the output image from query using > something >> like >> $img = $map->drawQuery(); >> header('Content-Type: image/jpeg'); >> $img->saveImage(""); >> >> I can't give you specifics without knowing how GeoMOOSE works, so the >> best >> thing is to look at the documentation for GeoMOOSE if that is what you > are >> using. >> >> On 4/9/09 2:17 PM, "Jay Kapalczynski" >> >> wrote: >> Dang I misspoke...I am sorry... >> >> I am querying a Database for records, these records have a PID (unique >> Number). >> These are the records that show up in the Table. >> >> As this happens I have to take the results and run the query against >> the >> parcels to get the features in the Shapefile, then highlight.. >> >> If that makes any sense... >> >> If I am in a PHP file and have the records returned from the query >> (database)...what would I have to do next to take those records and > run a >> query to highlight the parcels (PID to PID)? >> >> Can all of this be accomplished in the PHP file? >> >> Thanks...and sorry for my ignorance... >> >> >> >> >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, > Paul T. >> Sent: Thursday, April 09, 2009 1:57 PM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] RE: Highlight >> >> Set the mapfile QUERYMAP style to highlight >> http://mapserver.org/mapfile/querymap.html. Draw the map using > drawQuery() >> instead of draw(). >> >> $img = $map->drawQuery(); >> header('Content-Type: image/jpeg'); >> $img->saveImage(""); >> >> On 4/9/09 1:31 PM, "Jay Kapalczynski" >> >> wrote: >> Basically what I have is a query that runs on a shapefile... >> It returns the records into a table, which I then have the option to > zoom >> to. >> >> I am looking for a bit more....after I run the query (php) I want the >> returned records to highlight in the map... >> I can get the Unique identifier but don't know if I can write some > code in >> PHP to highlight those features >> >> I don't even know where to start here... >> >> The query and returning records into the table, as well as, the zoom >> to work >> great...just need the highlight part >> >> Thanks >> >> >> >> From: Jay Kapalczynski >> Sent: Thursday, April 09, 2009 1:03 PM >> To: 'mapserver-users at lists.osgeo.org >> ' >> Subject: Highlight >> >> Any way to highlight a feature in my map in PHP? >> >> I can grab a unique identifier but can figure out how to highlight >> it... >> >> THanks >> >> >> Paul >> >> Paul > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Espen.Messel at ffi.no Wed Apr 15 06:27:21 2009 From: Espen.Messel at ffi.no (Espen.Messel at ffi.no) Date: Wed, 15 Apr 2009 15:27:21 +0200 Subject: SV: [mapserver-users] Use of a Colortable In-Reply-To: <200904151352.22302.schroete@iup.physik.uni-bremen.de> References: <200904151352.22302.schroete@iup.physik.uni-bremen.de> Message-ID: > -----Opprinnelig melding----- > Fra: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] P? vegne av > Heiko Schr?ter > Sendt: 15. april 2009 13:52 > Til: mapserver-users at lists.osgeo.org > Emne: [mapserver-users] Use of a Colortable > > Hello,, > > we are mapping global satellite data with postgis. > > Is it possible with mapserver to change the color of the > symbol according to the value read in from postgis ? > Now the color is fixed within the mapfile reading only the > geolocations i.e. > > LAYER > CONNECTION "user=bla password=blub dbname=foo host=fum" > DATA "geocenter from table1" > CLASS > COLOR 50 150 150 > SYMBOL "circle" > SIZE 5 > END > END You can do something like this: CLASS NAME "Higher than 100" EXPRESSION ([column_name] >= 100 ) COLOR 0 0 0 SYMBOL "circle" SIZE 5 END CLASS NAME "Lower than 100" EXPRESSION ([column_name] < 100 ) COLOR 50 50 50 SYMBOL "circle" SIZE 5 END ... > > My (maybe/probably ill) idea is something like: > ... > DATA "value and geocenter from table1" > ... > COLOR on value using "/dir/my_colortable.dat" > SYMBOL "circle" > ... > > But it looks like that only one coloumn of the GIS Table > could be read for a given LAYER.DATA statement. > > Thanks for any suggestion. > > Regards > Heiko The "geocenter" in the DATA line only defines the geo column in the table. All other columns in table can be accessed with brackets like: [column_name] Regards, Espen > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From David.Fawcett at state.mn.us Wed Apr 15 06:28:26 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 15 Apr 2009 08:28:26 -0500 Subject: [mapserver-users] Use of a Colortable In-Reply-To: <200904151352.22302.schroete@iup.physik.uni-bremen.de> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA3CD@s-sp22.pca.state.mn.us> Heiko, Take a look at the map file documentation for the style of a class. http://mapserver.org/mapfile/style.html#style Look for COLOR. You want to use the [attribute] option. Instead of specifying a color for all of the features that fall into that class, you specify the name of an attribute column in your shapefile. This attribute column should be a text column containing a 'RGB triplet', or three numeric values from 0-255 separated by spaces. These values represent Red Green Blue. (e.g. 255 0 255) Here is an example layer: LAYER # set the symbol color based on a value in a column in the attribute table NAME "aqi_stations_color" STATUS DEFAULT DATA 'aqiStations' #this is the shapefile with the data TYPE POINT CLASS NAME 'AQI Stations' STYLE SYMBOL 'circle' SIZE 12 COLOR [OUT_COLOR] # OUT_COLOR is the shapefile column containing the color values OUTLINECOLOR 128 128 128 END END David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Heiko Schr?ter Sent: Wednesday, April 15, 2009 6:52 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Use of a Colortable Hello,, we are mapping global satellite data with postgis. Is it possible with mapserver to change the color of the symbol according to the value read in from postgis ? Now the color is fixed within the mapfile reading only the geolocations i.e. LAYER CONNECTION "user=bla password=blub dbname=foo host=fum" DATA "geocenter from table1" CLASS COLOR 50 150 150 SYMBOL "circle" SIZE 5 END END My (maybe/probably ill) idea is something like: ... DATA "value and geocenter from table1" ... COLOR on value using "/dir/my_colortable.dat" SYMBOL "circle" ... But it looks like that only one coloumn of the GIS Table could be read for a given LAYER.DATA statement. Thanks for any suggestion. Regards Heiko _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Wed Apr 15 07:04:31 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 15 Apr 2009 09:04:31 -0500 Subject: [mapserver-users] MapServer 5.4 Release Candidate 2 Now Available Message-ID: <49E5A31F0200008F00022EE7@co5.dnr.state.mn.us> Greetings all: MapServer 5.4 Release Candidate 2 is now available for download at http://mapserver.org/download.html. Only a couple of small changes were made since the rc 1 release. As always any help in testing the software is greatly appreciated. Findings should be sent to the mapserver-dev (or even just mapserver-users) mailing list. The updated 5.4 release plan can be found at: http://trac.osgeo.org/mapserver/wiki/54ReleasePlan Steve From jmckenna at gatewaygeomatics.com Wed Apr 15 07:02:23 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 15 Apr 2009 10:02:23 -0400 Subject: [mapserver-users] Use of a Colortable In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA3CD@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA3CD@s-sp22.pca.state.mn.us> Message-ID: <49E5E8EF.4080702@gatewaygeomatics.com> > Is it possible with mapserver to change the color of the symbol according to > the value read in from postgis ? Yes this is possible, using the method described by David. I have tested this locally: I have a column in PostGIS named 'color' with various RGB values, and I can display them in MapServer such as the following: STYLE COLOR [color] END (tested with MapServer version 5.4.0-rc1) -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From schroete at iup.physik.uni-bremen.de Wed Apr 15 07:25:45 2009 From: schroete at iup.physik.uni-bremen.de (Heiko =?iso-8859-1?q?Schr=F6ter?=) Date: Wed, 15 Apr 2009 16:25:45 +0200 Subject: [mapserver-users] Use of a Colortable In-Reply-To: <49E5E8EF.4080702@gatewaygeomatics.com> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA3CD@s-sp22.pca.state.mn.us> <49E5E8EF.4080702@gatewaygeomatics.com> Message-ID: <200904151625.45488.schroete@iup.physik.uni-bremen.de> On Mittwoch, 15. April 2009 16:02:23 Jeff McKenna wrote: Hello, yep, i think i got the idea. I've just checked the [color_me] access and this works. Probably the (or my) way to go is to store the color value inside the postgis table as extra column as suggested. The other idea by Espen works too. But would be suited to cases with little variations or intermediate steps. Thanks to everyone for the clues. Regards Heiko > > Is it possible with mapserver to change the color of the symbol according > > to the value read in from postgis ? > > Yes this is possible, using the method described by David. I have > tested this locally: I have a column in PostGIS named 'color' with > various RGB values, and I can display them in MapServer such as the > following: > > STYLE > COLOR [color] > END > > (tested with MapServer version 5.4.0-rc1) > > > -jeff From romero619 at hotmail.com Wed Apr 15 09:48:47 2009 From: romero619 at hotmail.com (P.Romero) Date: Wed, 15 Apr 2009 11:48:47 -0500 Subject: [mapserver-users] FW: ogr/mysql layer & imagemap template using php mapscript? Message-ID: I still have yet to receive any feedback on this question. Please help... -----Original Message----- From: P.Romero [mailto:romero619 at hotmail.com] Sent: 2009-04-13 10:58 PM To: 'mapserver-users at lists.osgeo.org' Subject: ogr/mysql layer & imagemap template using php mapscript? Ive asked this question several times already, but have never received a useful response. If there are any php-mapscript experts reading this, please help... Im trying to create an imagemap based on an html template and a "points" layer, which uses an ogr/mysql connection to query a database table and retrieve a set of points. It's based on a combination of the following two examples: http://mapserver.org/input/vector/mysql.html?highlight=ovf http://mapserver.org/output/imagemaps.html?highlight=imagemap As described in the 2nd example, I can access successfully access my imagemap html& png output using a url like the following: http://myurl/cgi-bin/mapserv?map=myfile.map&mode=nquery&searchmap=true The problem is that I want to use php-mapscript, instead of using the cgi-bin url. The main reasons for this are to be able to post-process the raw imagemap html code & control how & when the html and the png image are sent back to the user's browser. I tried doing this: //Read & draw the map file $map = ms_newMapObj("myMapFile.map"); $img=$map->draw(); //pass the resulting map png's url back //to the html template through $tmparray variable $tmparray["img_url"] = $img->saveWebImage(); //Process the query template $html=$map->processquerytemplate($tmparray); //Now, echo or process the raw html as necessary echo $html; This almost seemed to work. The 'processquerytemplate()' function *did* return the imagemap html, but the actual data points from my layer were absent in the html; i.e., there were no 'area' tags in the imagemap code, so the imagemap was empty. However, my layer WAS correctly executing the mysql/ogr data query & drawing my points, as the points WERE visible in the png output. So the basic question is: How do I go about correctly processing the template using php-mapscript, so that the data from my points layer will be included in the imagemap html? I hope this is the info you'll need to help figure this out. Please let me know if you have questions, or if I need to include more details. Thanks again, P.Romero From karsten at terragis.net Wed Apr 15 10:52:29 2009 From: karsten at terragis.net (karsten vennemann) Date: Wed, 15 Apr 2009 10:52:29 -0700 Subject: [mapserver-users] OS and MapServer related talks at WAURISA 2009, May 4th-6th, 2009, Bellevue, WA, USA Message-ID: <73CADCF3CF504515BDE017DEBB7E83CC@snuggie> The CUGOS group http://groups.google.com/group/cugos (a chapter of OSGEO) is doing an introductory workshop on Open Source GIS at the upcoming WAURISA conference in Bellevue, WA, USA from May 4th-6th. The half day workshop "Introduction to Open Source GIS - A Practical Approach": http://www.waurisa.org/conferences/2009/Workshops.html will be held on May 4th, 2009. CUGOS will also have an information table related to FOSS4G, OSGEO and related local resources. The conference will also be of interest to more advanced users and developers of FOSS4G since it will host a substantial number of talks related to OS GIS (12+ presentation out of 60 or so) http://www.waurisa.org/conferences/2009/Agenda.html Remember to sign up for the conference by 4/21/09 to get the early bird rate http://www.waurisa.org/conferences/2009_Conference_Index.html Karsten Vennemann Principal Terra GIS LTD Seattle, USA www.terragis.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From djabex at hotmail.com Wed Apr 15 11:00:15 2009 From: djabex at hotmail.com (=?iso-8859-1?Q?Alberto_Fern=E1ndez_S=E1nchez?=) Date: Wed, 15 Apr 2009 20:00:15 +0200 Subject: [mapserver-users] Insert [item precision] in html template Message-ID: Hi, I want to insert the expression [item precision=2] on my query template, but I don't know where I have to put this code. Can somebody put a example with the expression [item precision]. All is consequence of the decimals with six zeros in the values of my tables. Thank you _________________________________________________________________ ?Quieres que tus hijos naveguen seguros? Aprende aqu? c?mo con Protecci?n Infantil http://www.protegeatushijos.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed Apr 15 13:16:32 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 15 Apr 2009 15:16:32 -0500 Subject: [mapserver-users] Insert [item precision] in html template In-Reply-To: References: Message-ID: <49E5FA50.5157.008F.0@dnr.state.mn.us> Depends on the what template type you're using. With the older style, that is, combining lots of smaller templates (TEMPLATE/HEADER/FOOTER), you'd put a tag like this in the LAYER template. The correct syntax is" [item name=foo precision=2] and you'd use it in place of just plain [foo]. Then, in a newer style template, which is just a single file, you'd place tags like this inside the [feature]...[/feature] block. Steve >>> On 4/15/2009 at 1:00 PM, in message , Alberto Fern?ndez S?nchez wrote: > Hi, > > I want to insert the expression [item precision=2] on my query template, but > I don't know where I have to put this code. Can somebody put a example with > the expression [item precision]. All is consequence of the decimals with six > zeros in the values of my tables. > > Thank you > > _________________________________________________________________ > ?Quieres que tus hijos naveguen seguros? Aprende aqu? c?mo con Protecci?n > Infantil > http://www.protegeatushijos.com From enri at 163.com Thu Apr 16 02:27:19 2009 From: enri at 163.com (enri) Date: Thu, 16 Apr 2009 17:27:19 +0800 (CST) Subject: [mapserver-users] MSCompanion version 1.0 Release Candidate 1 is Available Message-ID: <17025866.1246841239874039886.JavaMail.coremail@bj163app122.163.com> Hi, After several days of test with cooperation from some kind friends, the release candidate 1 of version 1.0 is available now, changes happened since the beta2 include: 1. Bug Fixed: Class legend can not show in layers tree and Style preview does not work on some version of Windows. 2. Bug Fixed: Error caused by RichEdit? on MSCompanion start. 3. Optimized the procedure of path search on start up, add a status text box to show the search progress. Because these changes are very important to help you avoiding critical problems when you use MSCompanion, so this RC1 comes out a little earlier than planning. Please visit http://code.google.com/p/mscompanion/ to get it as usual. In addtion I will continue debugging the latest version, the main work will be documenting the user manual for MSCompanion before the offical V1.0 release. I wish you report bug you meet when you use this version to mscompanion at googlegroups.com or enri.zhou at gmail.com, so that I can present you a better result. Best regards, Enri ????????????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From romero619 at hotmail.com Thu Apr 16 06:40:25 2009 From: romero619 at hotmail.com (P.Romero) Date: Thu, 16 Apr 2009 08:40:25 -0500 Subject: [mapserver-users] FW: ogr/mysql layer & imagemap template using php mapscript? Message-ID: I still have yet to receive any feedback on this question. This is probably the 4th-5th time I've asked. Is my message being completely ignored? Please help... -----Original Message----- From: P.Romero [mailto:romero619 at hotmail.com] Sent: 2009-04-13 10:58 PM To: 'mapserver-users at lists.osgeo.org' Subject: ogr/mysql layer & imagemap template using php mapscript? Ive asked this question several times already, but have never received a useful response. If there are any php-mapscript experts reading this, please help... Im trying to create an imagemap based on an html template and a "points" layer, which uses an ogr/mysql connection to query a database table and retrieve a set of points. It's based on a combination of the following two examples: http://mapserver.org/input/vector/mysql.html?highlight=ovf http://mapserver.org/output/imagemaps.html?highlight=imagemap As described in the 2nd example, I can access successfully access my imagemap html& png output using a url like the following: http://myurl/cgi-bin/mapserv?map=myfile.map&mode=nquery&searchmap=true The problem is that I want to use php-mapscript, instead of using the cgi-bin url. The main reasons for this are to be able to post-process the raw imagemap html code & control how & when the html and the png image are sent back to the user's browser. I tried doing this: //Read & draw the map file $map = ms_newMapObj("myMapFile.map"); $img=$map->draw(); //pass the resulting map png's url back //to the html template through $tmparray variable $tmparray["img_url"] = $img->saveWebImage(); //Process the query template $html=$map->processquerytemplate($tmparray); //Now, echo or process the raw html as necessary echo $html; This almost seemed to work. The 'processquerytemplate()' function *did* return the imagemap html, but the actual data points from my layer were absent in the html; i.e., there were no 'area' tags in the imagemap code, so the imagemap was empty. However, my layer WAS correctly executing the mysql/ogr data query & drawing my points, as the points WERE visible in the png output. So the basic question is: How do I go about correctly processing the template using php-mapscript, so that the data from my points layer will be included in the imagemap html? I hope this is the info you'll need to help figure this out. Please let me know if you have questions, or if I need to include more details. Thanks again, P.Romero From peter_rose at hotmail.com Thu Apr 16 09:09:44 2009 From: peter_rose at hotmail.com (Peter Rose) Date: Thu, 16 Apr 2009 09:09:44 -0700 (PDT) Subject: [mapserver-users] SV: Use of a Colortable In-Reply-To: References: <200904151352.22302.schroete@iup.physik.uni-bremen.de> Message-ID: <1239898184986-2643025.post@n2.nabble.com> Hi I have a MapServer connected to a MySQL server via PHP/MapScript based on the example in Bill Kropla?s book ?Beginning MapServer Open Source GIS Develpment?, chapter 9. My data is therefore stored on the MySQL server and displayed as points in MapServer based on the queries I give it. I really like the method Espen suggested as I wouldn't have to change my database. However, I can't get the EXPRESSION to work like Espen suggested. I think it might be because I use MySQL and not postgis but I don't know? Do any of you know what I can do to run an EXPRESSION against a value read from MySQL? Thanks for any suggestion. Peter -- View this message in context: http://n2.nabble.com/Use-of-a-Colortable-tp2638330p2643025.html Sent from the Mapserver - User mailing list archive at Nabble.com. From greenkov at gmail.com Thu Apr 16 09:22:15 2009 From: greenkov at gmail.com (Alexander Petkov) Date: Thu, 16 Apr 2009 10:22:15 -0600 Subject: [mapserver-users] SV: Use of a Colortable In-Reply-To: <1239898184986-2643025.post@n2.nabble.com> References: <200904151352.22302.schroete@iup.physik.uni-bremen.de> <1239898184986-2643025.post@n2.nabble.com> Message-ID: On Thu, Apr 16, 2009 at 10:09 AM, Peter Rose wrote: > > Hi > I have a MapServer connected to a MySQL server via PHP/MapScript based on the example in Bill Kropla?s book ?Beginning MapServer Open Source GIS Develpment?, chapter 9. > My data is therefore stored on the MySQL server and displayed as points in MapServer based on the queries I give it. > > I really like the method Espen suggested as I wouldn't have to change my database. > However, I can't get the EXPRESSION to work like Espen suggested. > > I think it might be because I use MySQL and not postgis but I don't know? > > Do any of you know what I can do to run an EXPRESSION against a value read from MySQL? > > Thanks for any suggestion. > Peter Hi Peter: Posting the contents of your mapfile will help with troubleshooting. Feel free to ommit conn info. Alex From David.Fawcett at state.mn.us Thu Apr 16 09:28:08 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 16 Apr 2009 11:28:08 -0500 Subject: [mapserver-users] SV: Use of a Colortable In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA3DF@s-sp22.pca.state.mn.us> Probably also helpful to include a your OVF file contents in this case too. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Alexander Petkov Sent: Thursday, April 16, 2009 11:22 AM To: Peter Rose Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] SV: Use of a Colortable On Thu, Apr 16, 2009 at 10:09 AM, Peter Rose wrote: > > Hi > I have a MapServer connected to a MySQL server via PHP/MapScript based > on the example in Bill Kropla's book 'Beginning MapServer Open Source > GIS Develpment', chapter 9. My data is therefore stored on the MySQL > server and displayed as points in MapServer based on the queries I > give it. > > I really like the method Espen suggested as I wouldn't have to change > my database. However, I can't get the EXPRESSION to work like Espen > suggested. > > I think it might be because I use MySQL and not postgis but I don't > know? > > Do any of you know what I can do to run an EXPRESSION against a value > read from MySQL? > > Thanks for any suggestion. > Peter Hi Peter: Posting the contents of your mapfile will help with troubleshooting. Feel free to ommit conn info. Alex _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jkapalczynski at ci.maple-grove.mn.us Thu Apr 16 10:02:03 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 16 Apr 2009 12:02:03 -0500 Subject: [mapserver-users] Labeling via OGR, MySQL table Message-ID: I am plotting a few points via an OVF file and MySQL table The points show up fine... As soon as I try to label from the MySQL table the Star points disappear... I imagine I have some syntax issues or missing something in the map file (See below) Any thoughts? THANKS HERE ARE THE POINTS LAYER # Points from the MySQL Database NAME Database STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION './Coordinatedata1.ovf' DATA 'Coordinatedata' CLASS #NAME "ID" STYLE SYMBOL "star" SIZE 15 COLOR 238 0 0 END END END CANT GET THE LABELS TO SHOW UP LAYER # Points from the MySQL Database NAME Database STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION './Coordinatedata1.ovf' DATA 'Coordinatedata' LABELITEM 'Name' LABELCACHE ON CLASS LABEL COLOR 0 0 0 SIZE 7 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Thu Apr 16 11:29:29 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 16 Apr 2009 13:29:29 -0500 Subject: [mapserver-users] RE: Labeling via OGR, MySQL table In-Reply-To: References: Message-ID: This is my ovf file: Name is the field I want to label on... Anyone have any thoughts? MYSQL:coordinates_database,user=Jay,password=Passw0rd,host=127.0.0.1,port=3306,tables=coordinates SELECT X,Y,Name FROM coordinates wkbPoint From: Jay Kapalczynski Sent: Thursday, April 16, 2009 12:02 PM To: mapserver-users at lists.osgeo.org Subject: Labeling via OGR, MySQL table I am plotting a few points via an OVF file and MySQL table The points show up fine... As soon as I try to label from the MySQL table the Star points disappear... I imagine I have some syntax issues or missing something in the map file (See below) Any thoughts? THANKS HERE ARE THE POINTS LAYER # Points from the MySQL Database NAME Database STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION './Coordinatedata1.ovf' DATA 'Coordinatedata' CLASS #NAME "ID" STYLE SYMBOL "star" SIZE 15 COLOR 238 0 0 END END END CANT GET THE LABELS TO SHOW UP LAYER # Points from the MySQL Database NAME Database STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION './Coordinatedata1.ovf' DATA 'Coordinatedata' LABELITEM 'Name' LABELCACHE ON CLASS LABEL COLOR 0 0 0 SIZE 7 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Thu Apr 16 12:10:59 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 16 Apr 2009 14:10:59 -0500 Subject: [mapserver-users] RE: Labeling via OGR, MySQL table In-Reply-To: References: Message-ID: I was able to get some text to display with this: ALTHOUGH I could only get the fields that were Numeric to label...cant get text fields to display. Is this a syntax thing or is it not possible? MYSQL:coordinates_database,user=Jay,password=Letmein,host=127.0.0.1,port=3306,tables=coordinates SELECT X,Y,ID FROM coordinates wkbPoint LAYER # Points from the MySQL Database NAME Database STATUS DEFAULT TYPE ANNOTATION CONNECTIONTYPE OGR CONNECTION './Coordinatedata1.ovf' DATA 'Coordinatedata' LABELITEM 'ID' LABELCACHE ON CLASS LABEL POSITION CC FONT vera_sans TYPE TRUETYPE COLOR 0 0 0 OUTLINECOLOR 255 255 128 SIZE 7 END END END From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, April 16, 2009 1:29 PM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] RE: Labeling via OGR, MySQL table This is my ovf file: Name is the field I want to label on... Anyone have any thoughts? MYSQL:coordinates_database,user=Jay,password=Passw0rd,host=127.0.0.1,port=3306,tables=coordinates SELECT X,Y,Name FROM coordinates wkbPoint From: Jay Kapalczynski Sent: Thursday, April 16, 2009 12:02 PM To: mapserver-users at lists.osgeo.org Subject: Labeling via OGR, MySQL table I am plotting a few points via an OVF file and MySQL table The points show up fine... As soon as I try to label from the MySQL table the Star points disappear... I imagine I have some syntax issues or missing something in the map file (See below) Any thoughts? THANKS HERE ARE THE POINTS LAYER # Points from the MySQL Database NAME Database STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION './Coordinatedata1.ovf' DATA 'Coordinatedata' CLASS #NAME "ID" STYLE SYMBOL "star" SIZE 15 COLOR 238 0 0 END END END CANT GET THE LABELS TO SHOW UP LAYER # Points from the MySQL Database NAME Database STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION './Coordinatedata1.ovf' DATA 'Coordinatedata' LABELITEM 'Name' LABELCACHE ON CLASS LABEL COLOR 0 0 0 SIZE 7 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From enri at 163.com Thu Apr 16 19:04:18 2009 From: enri at 163.com (=?utf-8?B?ZW5yaQ==?=) Date: Fri, 17 Apr 2009 10:04:18 +0800 Subject: =?utf-8?B?UkU6W21hcHNlcnZlci11c2Vyc10gTWFwZmlsZSBFZGl0b3IgLSBNU0NvbXBhbmlvbiB2ZXJzaW9uIDEuMCBiZXRhMmlzIGF2YWlsYWJsZQ==?= References: , , <1239704039227-2632347.post@n2.nabble.com>, <31256226.524851239544681260.JavaMail.coremail@bj163app80.163.com>, <5345817.1083501239716344716.JavaMail.coremail@bj163app88.163.com>, <21820346.230601239766764489.JavaMail.coremail@bj163app122.163.com>, <21275974.543291239813525351.JavaMail.coremail@app144.163.com>, , <200904161808107918939@163.com> Message-ID: <200904171004114020747@163.com> Nelson Correia, Thank you very much for your information, I will try my best to get rid of the bugs you mentioned, and resolve the rest problems in the coming version by enhancement. And, some words to explain some problems item by item: > >Regarding the preview problem, the preview is now shown on the layer tree, but it still doesn't appear on the "Style Properties" dialog. I hit the preview button, but nothing happens. about preview problem, it is caused by the invalid path of layer data, if MSCompanion can not figure out where the data is, this problem could happen. You are encouraged to use the dialogs to set the paths of layers specifics, and save the result, problems should disapear next time you open the saved file. > >I am tracking some bug, problems and features I find useful and here are them: >- I always have to change the map properties to use absolute paths and then to use relative paths again, in order to use MSCompanion. This >is a little bit annoying, since I have to do this every time I start MSCompanion. > I suggest you use absolute paths and save it, next time you may need not do that again. But I will try to repeat the problem and find a resolution. > >- When I edit a layer/class and cancel my edition, why do it redraw the map? I have several large shapefiles and it is stressfull when I >cancel my changes and still have to wait a few seconds to continue working. > Yes, that's a problem now, I will fix it. > >- The mouse scroll doesn't work pretty well on the MapFile text editor. > Yes, it's true. Frankly I don't find a way to satisfy myself by now, as a compensation, you can use the scroll bar by the time. > >- The update button on the text editor became desabled when I click it and then cancel the update. > I will test it. > >- The layers tree is not updated when I add a class/layer through the text editor. > Yes, when you update the mapfile by text editor, you must reopen the file to view the changes on map. > >- I think it should be a way of updating the information from the mapfile, for exemple to allow us to edit it with an external editor and >see the changes in MSCompanion without restarting it. > Good suggestion, but in my mind it is a little difficult by now, I will consider that in the future versions. > >- The styles in MSCompanion allow us to define a min and max scale for them, but I didn't find any support for it in the MapServer >documentation and it doesn't seem to work. Is it a bug? > I got this from http://www.mapserver.org/development/rfc/ms-rfc-45.html?highlight=rfc, but I don't know if it is implemented. > >- I think that would be very useful the ability to do pan on the map. Currently it is a little bit difficult to change the view port >mantaining the scale. You are correct, I will do that. Thanks again. Best regards, Enri > >_________________________________________________ > > > >I hope this is useful for you. > > > >Best regards, > > > >Nelson Correia > > > >> Date: Thu, 16 Apr 2009 18:08:26 +0800 >> From: zhox at 163.com >> To: nelsonwc7 at hotmail.com >> CC: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Mapfile Editor - MSCompanion version 1.0beta2 is available >> >> Nelson Correia, >> >> The release candidate 1 of MSCompanion version1.0 is available now, the problems these days occured should be fixed now. Please get it at http://code.google.com/p/mscompanion/ again. >> >> Enri >> >> >> ======= 2009-04-16 02:18:00 you wrote?======= >> >> > >> > >> > >> >No, there isn't any problem when I do that. And the problems I've reported don't happen with the alpha 3 version. >> > >> > >> > >> >Nelson Correia >> > >> > >> > >> >Date: Thu, 16 Apr 2009 00:38:45 +0800 >> >From: enri at 163.com >> >To: nelsonwc7 at hotmail.com >> >Subject: Re:FW: [mapserver-users] Mapfile Editor - MSCompanion version 1.0 beta2 is available >> > >> > >> >Hi, Nelson Correia, >> > >> >Are you sure the paths are correct? And is there any problem about the mapfile content edit when you shift from map window to it? >> > >> >Thanks for you information. >> > >> >Best regards, >> >Enri >> > >> > >> >?2009-04-15?"Nelson Correia" ??? >> > >> > >> > Oh, I've just noticed that this preview doesn't appear either on the Style Properties dialog. >> > >> >Nelson Correia >> > >> > >> > >> >From: nelsonwc7 at hotmail.com >> >To: enri at 163.com >> >Subject: RE: [mapserver-users] Mapfile Editor - MSCompanion version 1.0 beta2 is available >> >Date: Wed, 15 Apr 2009 13:19:09 +0000 >> > >> > >> > >> > >> >Hi, >> > >> >The new version now runs properly without those exceptions I've mentioned. >> > >> >So far I've encountered one problem (relative to the version I was using): it doesn't show the preview of the class styles on the left menu. It now shows the same arrow that the one that indicates the selected item of the menu. I think that the preview of the style is very usefull, specially when you have lots of layers, each one with several classes. >> > >> >Nelson Correia >> > >> > >> > >> >Date: Wed, 15 Apr 2009 11:39:24 +0800 >> >From: enri at 163.com >> >To: nelsonwc7 at hotmail.com >> >Subject: RE: [mapserver-users] Mapfile Editor - MSCompanion version 1.0 beta2 is available >> > >> > >> >Nelson Correia, >> > >> >Could you please download MSCompanion-debug.rar at >> >http://groups.google.com/group/mscompanion/web/MSCompanion-debug.rar >> >to check if the problem is still there? >> > >> >Thanks, >> >Enri >> > >> > >> > >> >?2009-04-14?"Nelson Correia" ??? >> > >> > >> >Hi, >> > >> >I've tested both beta 1 and beta 2 on Windows Server 2008 64bit, but I was unable to run them properly. It always give an error: in beta 2 it is an error like the one below and in beta 1 a different error when loading my map file. >> > >> >Currently I am using the alpha 3 version, which is the latest one that I am able to run on my system. >> > >> >Nelson Correia >> > >> > >> > >> >Date: Tue, 14 Apr 2009 21:39:04 +0800 >> >From: enri at 163.com >> >To: mapserver-users at lists.osgeo.org >> >Subject: Re:Re: [mapserver-users] Mapfile Editor - MSCompanion version 1.0 beta2 is available >> > >> > >> >Hi, >> >Could you please tell me the version details of your OS? >> > >> >By the way maybe this link can help you: >> >http://www.lavasoftsupport.com/lofiversion/index.php/t240.html >> > >> >Regards, >> >Enri. >> > >> >?2009-04-14?teeschke ??? >> >> >> >>Hi Enri >> >> >> >>sounds realy cool! >> >>But when I doubleclick the MSCompanion.exe I receive Errors. One of them is >> >>"Exception EReadError in module MSCompanion.exe" as 000266F. Error reating RichEdit1.Lines.Strings: RichEdit line insertion error." >> >> >> >>thx, Tee >> >>-- >> >>View this message in context: http://n2.nabble.com/Mapfile-Editor---MSCompanion-version-1.0-beta2-is-available-tp2624234p2632347.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 >> > >> > >> > >> >See all the ways you can stay connected to friends and family >> > >> > >> > >_________________________________________________________________ >News, entertainment and everything you care about at Live.com. Get it now! >http://www.live.com/getstarted.aspx = = = = = = = = = = = = = = = = = = = = From bestofmukul at gmail.com Thu Apr 16 23:54:42 2009 From: bestofmukul at gmail.com (Mukul Gupta) Date: Fri, 17 Apr 2009 12:24:42 +0530 Subject: [mapserver-users] Using JSP with ms4w Message-ID: Hi I am new to this mapserver thing and cant figure out how to work with JSP instead of PHP for my GIS application development.I already have Tomcat 6 installed and its working fine. Tell me how to configure it so that it will work with ms4w.Please also suggest some tutorials and examples for me to start working. --Mukul -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Fri Apr 17 00:15:25 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Fri, 17 Apr 2009 12:45:25 +0530 Subject: [mapserver-users] Using JSP with ms4w In-Reply-To: References: Message-ID: <006901c9bf2c$496b3a00$dc41ae00$@com> Hi, Have a look into the sample code .. Refer some urls in mapserver portal "how to compile mapserver with java".But basically I m not java developer.I am into C#.net.May the below sample can help you at least it guides you. <%@page contentType="text/html; charset=GB2312" language="java" %> <%@page import="edu.umn.gis.mapscript.*" %> <%@page import="java.util.Iterator, java.util.ArrayList"%> <%@page import="java.util.Date"%> my first mapserver-webgis Good-luck
<%! static int i=0; %> <% mapObj map; String vMapFile=""; String vScaleBarFile=""; String vLengdBarFile=""; String vReferenceFile=""; double rodio=1; map = new mapObj ("D:/webapps/mapserver/tutorial.map"); if(map==null) { System.out.println("!ok"); } else { if(request.getParameter("rodio")!=null) { if(request.getParameter("rodio")!="") { rodio=Double.parseDouble(request.getParameter("rodio")); } } rectObj ro=map.getExtent(); double xw=ro.getMaxx()-ro.getMinx(); double yw=ro.getMaxy()-ro.getMiny(); double cx=(ro.getMaxx()+ro.getMinx())/2; double cy=(ro.getMaxy()+ro.getMiny())/2; double newxw=xw*rodio; double newyw=yw*rodio; double maxx=cx+newxw/2; double minx=cx-newxw/2; double maxy=cy+newyw/2; double miny=cy-newyw/2; map.setExtent( minx, miny, maxx, maxy); System.out.println("minx:"+minx); System.out.println("miny:"+miny); System.out.println("maxx:"+maxx); System.out.println("maxy:"+maxy); map.setImagecolor(new colorObj(10,128,98,13)); imageObj imagen=map.draw(); //imagen.setImageDir("/tmp"); Date dt=new Date(); vMapFile="output/tangnf"+(dt.getTime())+".png"; // map.embedScalebar(imagen); imagen.save(vMapFile,map); scalebarObj scalebar=map.getScalebar(); scalebar.setHeight(10); scalebar.setWidth(200); scalebar.setBackgroundcolor(new colorObj(0,255,0,13)); scalebar.setColor(new colorObj(230,0,0,13)); scalebar.setImagecolor(new colorObj(255,255,255,13)); scalebar.setOutlinecolor(new colorObj(0,230,255,13)); //scalebar.setStyle(3); scalebar.setUnits(3); scalebar.setIntervals(3); //scalebar.setLabel(new labelObj imageObj Scalebarimage=map.drawScalebar(); vScaleBarFile="output/scalebar"+(dt.getTime())+".jpg"; Scalebarimage.save(vScaleBarFile,map); legendObj legend=map.getLegend(); legend.setHeight(200); legend.setWidth(100); System.out.println(legend.getLabel().getEncoding()); imageObj Legendimage=map.drawLegend(); vLengdBarFile="output/Legend"+(dt.getTime())+".png"; Legendimage.save(vLengdBarFile,map); int layerCount=map.getNumlayers(); for(int i=0;i
Escala 1:[scale]

Layers:

Cities

  Cities
$PID $AssessmentYr $YrBuilt $Bedrooms   $DwellingType     $Style   Map Print
$PID $AssessmentYr $YrBuilt $Bedrooms   $DwellingType     $Style   Map Print
Thanks, Venkat GIS Developer Hyderbad India From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mukul Gupta Sent: Friday, April 17, 2009 12:25 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Using JSP with ms4w Hi I am new to this mapserver thing and cant figure out how to work with JSP instead of PHP for my GIS application development.I already have Tomcat 6 installed and its working fine. Tell me how to configure it so that it will work with ms4w.Please also suggest some tutorials and examples for me to start working. --Mukul -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Thu Apr 16 08:16:20 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 16 Apr 2009 10:16:20 -0500 Subject: [mapserver-users] RE: Highlight In-Reply-To: <49E4B74F.5157.008F.0@dnr.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA3C5@s-sp22.pca.state.mn.us> <49E4B74F.5157.008F.0@dnr.state.mn.us> Message-ID: Have been think about this and just wanted to run this passed anyone that is listening. For my GPS tracking I am using an ovf file to grab XY coordinates from a database and plot them in my app. I was wondering if I could do a similar thing, where I write to the database in PHP every time the query is run. This will populate a table with the PID values I need highlighted. Then Classify in the Map file the color and outline that I am after. Could I use a filter on the Map file then to just show records in the database? Is this even possible or make sense? OVF File (but select the PID values from the table) MYSQL:coordinates_database,user=Jay,password=Passw0rd,host=127.0.0.1,port=3306,tables=coordinates SELECT X,Y FROM coordinates wkbPoint MAP FILE LAYER # Points from the MySQL Database NAME Database STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION './Coordinatedata1.ovf' DATA 'Coordinatedata' CLASS #NAME "ID" STYLE OUTLINECOLOR 204 204 204 WIDTH 1 END END END -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Tuesday, April 14, 2009 4:18 PM To: Jay Kapalczynski; mapserver-users at lists.osgeo.org; Paul T.' 'Moen; David' 'Fawcett Subject: RE: [mapserver-users] RE: Highlight This is an example of how to highlight a feature (click on a dot in the application I sent) without doing query maps or anything like that. You're manipulating a layer filter on-the-fly based on your search result. This can work with multiple results but is best suited to just a few results. With more than that you really need to look at some other way to cache features- a queryfile or some sort of a temp table. Sorry if I've confused things. Steve >>> On 4/14/2009 at 3:23 PM, in message , Jay Kapalczynski wrote: > I am having a hard time trying to understand how that applies to what I am > doing....I do appreciate the help here. > Just trying to find a solution here... > >>From my main page I run a query in PHP that returns specific records > I then move to a different web page that has a couple frames. > I display the map in one frame and build a table in the 2nd frame that shows > the results. > In the table I have a field that will zoom to and identify that feature in > the main map > > The only thing I am missing is after I run the query none of the parcels are > highlighted in the map... > I want to create the table and highlight the returned parcels in the map... > > Getting pretty confused right now...dont know the best way to accomplish > this...going in 4 different directions right now.. > The Query is being done in PHP, so I somehow need to take that result (comma > delimited string) and get a the PID values from that to show up highlighted > in my map.. > > Before I go on does anyone have a suggestion as to what would be the best > course of action... > Like Steve said, Like I am doing... > > Thanks Guys...you help is appreciated... > > > > > > -----Original Message----- > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > Sent: Tuesday, April 14, 2009 2:39 PM > To: Jay Kapalczynski; Steve Lime; mapserver-users at lists.osgeo.org; Paul T.' > 'Moen > Subject: RE: [mapserver-users] RE: Highlight > > Steve is using CGI MapServer instead of php. > > When you click on a station, you will notice that the outline of the > station turns yellow. > > Here is the URL to a tile with a highlighted symbol on it: > http://maps.dnr.state.mn.us/cgi-bin/mapserv52?map=/usr/local/mapserver/a > pps/waters/csg/csg.map&layers=active_site&map_transparent=true&id=0&mode > =map&map_imagetype=png&station=63023001&mapext=-27687.5+4793250+941687.5 > +5480750&imgext=-27687.5+4793250+941687.5+5480750&map_size=705+500&imgx= > 352.5&imgy=250&imgxy=705+500 > > Notice that he has a layer called 'active_site' and he is passing in the > station ID use in a class in that layer to turn only that feature > yellow. > > When no station is selected, no stations are drawn in the 'active_site' > layer. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay > Kapalczynski > Sent: Tuesday, April 14, 2009 2:30 PM > To: 'Steve Lime'; mapserver-users at lists.osgeo.org; Paul T.' 'Moen > Subject: RE: [mapserver-users] RE: Highlight > > > Thanks....but little confused as to what I am look at... > > How is this working? > > > > -----Original Message----- > From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] > Sent: Tuesday, April 14, 2009 1:02 PM > To: Jay Kapalczynski; mapserver-users at lists.osgeo.org; Paul T.' 'Moen > Subject: RE: [mapserver-users] RE: Highlight > > This is probably too late to be of use but I've been using a highlight > layer to achieve this. The layer takes input from a URL so that layer > filter allows just the desired feature through. Works quite nicely and > is relatively simple to implement. Here's an OpenLayers site that uses > this: > > http://www.dnr.state.mn.us/waters/csg/index_copy.html > > In this case the highlight is a separate layer but you could just as > easily return a single map. > > Steve > >>>> On 4/13/2009 at 11:17 AM, in message > >, Jay Kapalczynski wrote: >> So say I have a Database that I am querying... >> I get the results back with a PID number (unique) >> This number exists in the Parcels Shapefile so I can go after that >> field. I have a map file that is set up for the Parcels, but this is >> just there to draw the Parcels... I assume that I would have to modify > >> this one for this to work? >> >> I am just a bit confused on how to get this to work... >> When I run the code that creates the Table below I want the parcels to > >> also >> highlight in the map.... >> >> Attached is my code that I am using to get the resulting PID Values, >> build >> the table, and populate the last frame showing the Comma Delimited > String. >> I just don't know how to apply that to my map? >> >> I attached my code from my PHP page which I hope that someone can at >> least >> put their eyes on... >> Towards to bottom you will see highlighted in RED the code that I am >> building a comma delimited string to populate a variable with all the > PID >> numbers... >> I assume that I would not need the comma delimited string as I could > place >> the highlighting code inside the while loop to get the parcels > highlighted... >> I don't really know... >> >> Any thoughts? >> >> Thanks >> >> >> This inside the while loop???? >> >> $map = ms_newMapObj(PATH TO YOU MAPFILE); >> $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); >> $qlayer->queryByAttributes('PID','PID IN (MY COMMA DELIMITED STRING >> VARIABLE')',MS_MULTIPLE); $img = $map->drawQuery(); >> header('Content-Type: image/jpeg'); >> $img->saveImage(""); >> >> >> [cid:image001.jpg at 01C9BC29.7A1ECE10] >> >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, > Paul T. >> Sent: Thursday, April 09, 2009 3:15 PM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] RE: Highlight >> >> >> If the database that you are querying has the same attributes as the >> shape >> file, you can query the Layer that points to the shape file and > display the >> highlighted results on your map. I know nothing about GeoMOOSE but I > know it >> can be done with php-mapscript. >> >> Regardless of what you are using, you need a map file layer for the >> shape >> file with the parcels. >> You will then need to use php-mapscript to query that layer with > something >> like >> $map = ms_newMapObj(PATH TO YOU MAPFILE); >> $qlayer = $map->$map->getLayerByName(NAME OF PARCEL LAYER); >> $qlayer->queryByAttributes('PID','PID IN (1, > 2,7,9,23,87)',MS_MULTIPLE); >> You will then need to create the output image from query using > something >> like >> $img = $map->drawQuery(); >> header('Content-Type: image/jpeg'); >> $img->saveImage(""); >> >> I can't give you specifics without knowing how GeoMOOSE works, so the >> best >> thing is to look at the documentation for GeoMOOSE if that is what you > are >> using. >> >> On 4/9/09 2:17 PM, "Jay Kapalczynski" >> >> wrote: >> Dang I misspoke...I am sorry... >> >> I am querying a Database for records, these records have a PID (unique >> Number). >> These are the records that show up in the Table. >> >> As this happens I have to take the results and run the query against >> the >> parcels to get the features in the Shapefile, then highlight.. >> >> If that makes any sense... >> >> If I am in a PHP file and have the records returned from the query >> (database)...what would I have to do next to take those records and > run a >> query to highlight the parcels (PID to PID)? >> >> Can all of this be accomplished in the PHP file? >> >> Thanks...and sorry for my ignorance... >> >> >> >> >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, > Paul T. >> Sent: Thursday, April 09, 2009 1:57 PM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] RE: Highlight >> >> Set the mapfile QUERYMAP style to highlight >> http://mapserver.org/mapfile/querymap.html. Draw the map using > drawQuery() >> instead of draw(). >> >> $img = $map->drawQuery(); >> header('Content-Type: image/jpeg'); >> $img->saveImage(""); >> >> On 4/9/09 1:31 PM, "Jay Kapalczynski" >> >> wrote: >> Basically what I have is a query that runs on a shapefile... >> It returns the records into a table, which I then have the option to > zoom >> to. >> >> I am looking for a bit more....after I run the query (php) I want the >> returned records to highlight in the map... >> I can get the Unique identifier but don't know if I can write some > code in >> PHP to highlight those features >> >> I don't even know where to start here... >> >> The query and returning records into the table, as well as, the zoom >> to work >> great...just need the highlight part >> >> Thanks >> >> >> >> From: Jay Kapalczynski >> Sent: Thursday, April 09, 2009 1:03 PM >> To: 'mapserver-users at lists.osgeo.org >> ' >> Subject: Highlight >> >> Any way to highlight a feature in my map in PHP? >> >> I can grab a unique identifier but can figure out how to highlight >> it... >> >> THanks >> >> >> Paul >> >> Paul > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sschantz at bfs.de Thu Apr 16 23:52:27 2009 From: sschantz at bfs.de (Stefan Schantz) Date: Fri, 17 Apr 2009 08:52:27 +0200 Subject: [mapserver-users] prevent certain output formats Message-ID: <49E8272B.1030604@BfS.de> Hello, is it possible to prevent, that the UMN MapServer uses the output format gif? i tried it with the setting of the imagetype, but in the capabilities document, all output formats are available. mapfile: (...) IMAGETYPE aggpng24 OUTPUTFORMAT NAME aggpng24 DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END (...) GetCapabilities document: (...) image/png image/jpeg image/gif image/png; mode=24bit image/vnd.wap.wbmp image/tiff image/svg+xml (...) Thanks for helping! kind regards Stefan From adri.kodde at gmail.com Fri Apr 17 01:46:59 2009 From: adri.kodde at gmail.com (A387) Date: Fri, 17 Apr 2009 01:46:59 -0700 (PDT) Subject: [mapserver-users] GET parameter in MapServer query Message-ID: <1239958019329-2644877.post@n2.nabble.com> Hi all, This is my first post in the mapserver mailinglist. I'm having problems with querying Oracle Spatial. For example, this is my current query: DATA "GEOM FROM (SELECT * FROM WIJK_2008 WHERE datum LIKE '%-08') USING SRID 28992" What I want now, is that if I access my file by the following URL, is that the LIKE values will be changed by the parameters given in the URL. Current: http://localhost/cgi-bin/mapserv.exe?map=../../apps/wijk/htdocs/wijk_2008_gen.map&layer=wijkgrenzen&mode=map&program=../cgi-bin/mapserv.exe What I want: http://localhost/cgi-bin/mapserv.exe?map=../../apps/wijk/htdocs/wijk_2008_gen.map&layer=wijkgrenzen&mode=map&program=../cgi-bin/mapserv.exe&year=2008. Could you give me a heads up, about if this is possible and how to make my mapfile dynamically? -- View this message in context: http://n2.nabble.com/GET-parameter-in-MapServer-query-tp2644877p2644877.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mini at mini-i.com Fri Apr 17 03:15:44 2009 From: mini at mini-i.com (Mr.Shim) Date: Fri, 17 Apr 2009 03:15:44 -0700 (PDT) Subject: [mapserver-users] Mapserver with openLayer has a problem Message-ID: <1239963344688-2645056.post@n2.nabble.com> Hi. I have a problem to use Mapserver WMS with openLayer. Here is a screenshot. Actually, that isn't cutted line. How can I solve this problem? I can see this problem at openLayer Sample website, too. Regards, Mr.Shim. -- View this message in context: http://n2.nabble.com/Mapserver-with-openLayer-has-a-problem-tp2645056p2645056.html Sent from the Mapserver - User mailing list archive at Nabble.com. From masscotm at erau.edu Fri Apr 17 09:26:36 2009 From: masscotm at erau.edu (Michael E Masscotte) Date: Fri, 17 Apr 2009 12:26:36 -0400 Subject: [mapserver-users] MapServer 4 vs 5 seg fault Message-ID: <49E8ADBC.7060309@erau.edu> I have a php script that generates a png from geotiff tiles. The tiles are indexed using gdaltindex. The php script works fine for MapServer 4.10.x but seg faults for version 5.x.x. Does anyone know of any differences between version 4 and 5 that would cause this? Could it be from an older version of gdal that the tiles are being generated with? This happens in both RedHat Linux 4 as well as on our Solaris machines. I can provide more details if someone can point me in the right direction on where to look first for a problem. Thanks is advance for any insight any one might provide! -Mike From rashadkm at gmail.com Fri Apr 17 11:12:06 2009 From: rashadkm at gmail.com (Mohammed Rashad) Date: Fri, 17 Apr 2009 23:42:06 +0530 Subject: [mapserver-users] KeralaInfo Message-ID: <50c7e3a0904171112l46a5417dx9b7be4d03673bf44@mail.gmail.com> * Resource Maps of Kerala are available..* I had done a project as a part of final year B.Tech course using free software. Basic themes such as roads,railways,highways,place names,rivers etc. are done. Here is my homepage : http://keralainfo.web4all.in/ You can find application here: http://keralainfo.web4all.in/resources/ Please post your valuable comments and feedback. -- Regards, Mohammed Rashad K.M +919605476742 -------------- next part -------------- An HTML attachment was scrubbed... URL: From kreshna_iceheart at yahoo.com Sat Apr 18 08:36:20 2009 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Sat, 18 Apr 2009 08:36:20 -0700 (PDT) Subject: [mapserver-users] Displaying query result on the same page? Message-ID: <233073.38652.qm@web110615.mail.gq1.yahoo.com> I hope this newbie question doesn't bother you. See, I want to display query result on my map page, but if I use query mode, the query result replaces the whole page. As workaround, I redirect the query result to a pop-up page using the following JavaScript: function toFrame() { if (document.mapserv.mode.value == "query" || document.mapserv.mode.value == "nquery") { document.mapserv.target = "_blank"; } else { document.mapserv.target = "_self"; } } However, I'd also like to display the query result as part of the page (for example, on the lower right of the page), without replacing the entire page with the query result. Is there any way to do such thing using CGI MapServer? Or is PHP MapScript the only way to do it? I'm thinking about using HTML frames, but I'm still at loss to redirect the query result to a particular frame. Many thanks, -Kresh From russell at flora.ca Sat Apr 18 12:54:33 2009 From: russell at flora.ca (Russell McOrmond) Date: Sat, 18 Apr 2009 15:54:33 -0400 Subject: [mapserver-users] MapServer with RHEL5 In-Reply-To: <4FBC13C3CB49244088DD095B32B5D4CD0ABE21@KS-EVS1.smi.sachsen.de> References: <4FBC13C3CB49244088DD095B32B5D4CD0ABE21@KS-EVS1.smi.sachsen.de> Message-ID: <49EA2FF9.9010301@flora.ca> I'm replying to an older message in the hope that there is an update, and possibly more people running RHEL5 at this point. There has been a related problem with some machines at work and I'm trying to determine if there is a pattern, and hopefully a patch to the right component can be made. I'm not in the group that manages our production systems, so don't have all the details for those systems. When the systems people compile everything (mapserver, gdal, iconv, gd, etc, etc) on RHEL4 it works fine. That set of binaries and libraries can even be loaded onto a RHEL5 machine and run. (LD_LIBRARY_PATH and PATH set to have those libs and binaries load first). If they use the identical versions and build scripts on RHEL5, we get a core dump doing a number of different things. This includes a simple GetMap where there is an expression in the mapfile (comment out the expression and we don't get a core dump). In our environment the systems people are running RHEL5, but I am using CentOS5 on my desktop. If I load the binaries compiled by the systems people I get the same core dump. If I compile everything myself on CentOS5, I do not get the core dump. There is one observation which might be a red herring, or might be useful. I had a problem with GD-2.0.35's configure script not detecting iconv correctly (see old thread: http://n2.nabble.com/Confirmation-of-status-of-UTF8-support,-and-where-transcoding-to-Latin-1-may-be-happening.-td1973930.html The stubs that caused the problem are at http://cvs.php.net/viewvc.cgi/gd/libgd/src/gdkanji.c?view=markup#l27 ), so I am compiling 2.0.36RC1. If I load that version of GD instead of the 2.0.35 used by the systems people, and otherwise use their binaries and libraries, I do not get the core dump. Is it possible that there is something in the code for expressions that would cause a core dump if iconv_open() returned -1, or iconv() returning 0? I haven't read through the mapserver code yet to determine how expressions are implemented, and what the code would do if any of the strings it was trying to compare were NULL. I'm also wondering if it would be worthwhile to have code that in this case would exit gracefully with an error message rather than core dumping? Is there something in RHEL5 vs RHEL4 that might be interacting strangely in some other way with gd, unrelated to that iconv_open() stub? Note: The systems people may not be comfortable using a release candidate of GD even though it has been well tested since 2007-11-28. I'm wanting to see if anyone else has observed any similar problems, and may already know the solution. I suspect they are doing something different with how they compile GD-2.0.35 given the iconv problem I observed would have disabled the ability to access Unicode strings in our ArcSDE managed database. That said, I don't know for certain whether Unicode strings were ever tested with the core dumping binaries. Eichner, Andreas - SID-NLKM wrote: > Hi guys, > > we're using MapServer 5.2 with RedHat Enterprise Linux 5, Update 3. The > necessary packages (like gdal) are inserted from Fedora Core 6. That > works but the packages are somewhat outdated. So I tried to use those > from the EPEL channel instead but without success. After compiling MS it > segfaults because of the same problem discussed earlier on the list with > a conflict between librx headers and libraries (the segfault can be > avoided adding some bytes to sizeof(regex_t) in ms_regcomp() but with > the effect of ms_regexec() returning wrong results). > The servers are fed by a satellite server and have no direct access to a > separate repo. So does anyone use MS with RHEL5 and has a nice solution > for that? My personal solution would be to use Debian as on my test > server (where I never had problems compiling and using MS) but that's > not an option for the productive systems here :( > > Regards, > Andreas Eichner -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://www.digital-copyright.ca/petition/ict/ "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From Steve.Lime at dnr.state.mn.us Sat Apr 18 22:48:25 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Sun, 19 Apr 2009 00:48:25 -0500 Subject: [mapserver-users] Displaying query result on the same page? Message-ID: <49EA74D90200008F00023144@co5.dnr.state.mn.us> For frames you just set the form target to the frame of interest. You're code is quite close. Still another option is to use AJAX/AJAST. You issue the query via an XMLHttpRequest and get the results back in a javascript string or object that you can direct the contents of to a container (e.g. div) on your page. Steve >>> "kreshna_iceheart at yahoo.com" 04/18/09 10:37 AM >>> I hope this newbie question doesn't bother you. See, I want to display query result on my map page, but if I use query mode, the query result replaces the whole page. As workaround, I redirect the query result to a pop-up page using the following JavaScript: function toFrame() { if (document.mapserv.mode.value == "query" || document.mapserv.mode.value == "nquery") { document.mapserv.target = "_blank"; } else { document.mapserv.target = "_self"; } } However, I'd also like to display the query result as part of the page (for example, on the lower right of the page), without replacing the entire page with the query result. Is there any way to do such thing using CGI MapServer? Or is PHP MapScript the only way to do it? I'm thinking about using HTML frames, but I'm still at loss to redirect the query result to a particular frame. Many thanks, -Kresh _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From peter_rose at hotmail.com Sun Apr 19 07:17:53 2009 From: peter_rose at hotmail.com (Peter Rose) Date: Sun, 19 Apr 2009 07:17:53 -0700 (PDT) Subject: [mapserver-users] SV: Use of a Colortable In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA3DF@s-sp22.pca.state.mn.us> References: <200904151352.22302.schroete@iup.physik.uni-bremen.de> <1239898184986-2643025.post@n2.nabble.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA3DF@s-sp22.pca.state.mn.us> Message-ID: <1240150673791-2659279.post@n2.nabble.com> Hi Alex and David, The data have fiscal values which I would like to display with differently sized coloured points depending on their value. I know how to do this with an EXPRESSION in the mapfile if the data is stored as an attribute in a shapefile but I can?t get it to work with my data in the MySQL database. Here is my mapfile: ##################################### # POI layer - points of interest # LAYER NAME "poi" STATUS default TYPE point LABELCACHE on CLASS NAME "Large fiscal" EXPRESSION ([fiscal] < 1) STYLE SYMBOL "Circle" SIZE 8 COLOR 255 0 0 BACKGROUNDCOLOR 255 0 0 END END # class CLASS NAME "Small fiscal" EXPRESSION ([fiscal] > 1) STYLE SYMBOL "Circle" SIZE 8 COLOR 0 255 0 BACKGROUNDCOLOR 0 255 0 END END # class END # layer poi ##################################### The database connection and all querying takes place in the php-file as I want to allow the users to change their search criteria. I therefore don?t want to include any database connection in the mapfile if possible. Thanks in advance for your help. -- View this message in context: http://n2.nabble.com/Use-of-a-Colortable-tp2638330p2659279.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Sun Apr 19 11:08:47 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sun, 19 Apr 2009 20:08:47 +0200 Subject: [mapserver-users] MapServer graphics sandbox windows binary packages available Message-ID: Hi All, I've added the binaries from the graphics sandbox (with cairo and opengl support) to my regular builds compiled automatically from the SVN in every day. The ready to use binary packages are available to download from here: http://vbkto.dyndns.org:1280/sdk/index.html You can also use the SDKs here to compile the graphics sandbox for debug purposes by using the following steps: 1. Download the SDK which suits best with your compiler/architecture 2. Extract the package into a directory (ie. C:\builds\release-1400-dev) 3. Check out the graphics sandbox from SVN into the build directory (ie. C:\builds\release-1400-dev\graphics) 4. Open a Visual Studio Command Prompt and type: > cd C:\builds > nmake ms DEBUG=YES MS_CAIRO=YES MS_OGL=YES MS_DIR=graphics the compiled files are then located in the C:\builds\release-1400-dev\release-1400\bin It must be noted that the contents in the sandbox is very experimental any testing and feedback on this stuff is highly appreciated. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Sun Apr 19 11:40:26 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sun, 19 Apr 2009 20:40:26 +0200 Subject: [mapserver-users] MapServer graphics sandbox windows binary packages available In-Reply-To: References: Message-ID: Thank you Tamas for preparing this. It should be noted that while the opengl code compiles, it is not ready for testing yet. the cairo code should be at least able to produce png, pdf and svg output, although not everything is implemented yet. best regards, Thomas On Sun, Apr 19, 2009 at 20:08, Tamas Szekeres wrote: > Hi All, > > I've added the binaries from the graphics sandbox (with cairo and opengl > support) to my regular builds compiled automatically from the SVN in every > day. > The ready to use binary packages are available to download from here: > > http://vbkto.dyndns.org:1280/sdk/index.html > > You can also use the SDKs here to compile the graphics sandbox for debug > purposes by using the following steps: > > 1. Download the SDK which suits best with your compiler/architecture > 2. Extract the package into a directory (ie. C:\builds\release-1400-dev) > 3. Check out the graphics sandbox from SVN into the build directory (ie. > C:\builds\release-1400-dev\graphics) > 4. Open a Visual Studio Command Prompt and type: > >> cd C:\builds >> nmake ms DEBUG=YES MS_CAIRO=YES MS_OGL=YES MS_DIR=graphics > > the compiled files are then located in the > C:\builds\release-1400-dev\release-1400\bin > > It must be noted that the contents in the sandbox is very experimental any > testing and feedback on this stuff is highly appreciated. > > > Best regards, > > Tamas > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From kreshna_iceheart at yahoo.com Sun Apr 19 23:07:16 2009 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Sun, 19 Apr 2009 23:07:16 -0700 (PDT) Subject: [mapserver-users] Displaying query result on the same page? Message-ID: <860869.57172.qm@web110602.mail.gq1.yahoo.com> Thank you, Steve. It seems frames and/or AJAX are the only way to display query result on the same page when using CGI MapServer, am I correct? -Kresh --- On Sun, 4/19/09, Steve Lime wrote: > From: Steve Lime > Subject: Re: [mapserver-users] Displaying query result on the same page? > To: mapserver-users at lists.osgeo.org, kreshna_iceheart at yahoo.com > Date: Sunday, April 19, 2009, 1:48 AM > For frames you just set the form > target to the frame of interest. You're code is quite > close. > > Still another option is to use AJAX/AJAST. You issue the > query via an XMLHttpRequest and get the > results back in a javascript string or object that you can > direct the contents of to a container (e.g. div) > on your page. > > Steve > > >>> "kreshna_iceheart at yahoo.com" > > 04/18/09 10:37 AM >>> > > I hope this newbie question doesn't bother you. > > See, I want to display query result on my map page, but if > I use query mode, the query result replaces the whole page. > > As workaround, I redirect the query result to a pop-up page > using the following JavaScript: > > ? ? ? ? function toFrame() { > ? ? ? ? ???if > (document.mapserv.mode.value == > "query" || document.mapserv.mode.value == > "nquery") { > ? ? ? ? ? ? ? > document.mapserv.target = "_blank"; > ? ? ? ? ???} else { > ? ? ? ? ? ? ? > document.mapserv.target = "_self"; > ? ? ? ? ???} > ? ? ? ? } > > However, I'd also like to display the query result as part > of the page (for example, on the lower right of the page), > without replacing the entire page with the query result. > > Is there any way to do such thing using CGI MapServer? Or > is PHP MapScript the only way to do it? > > I'm thinking about using HTML frames, but I'm still at loss > to redirect the query result to a particular frame. > > Many thanks, > -Kresh > > > > > ? ? ? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From leonidas_liakos at yahoo.gr Mon Apr 20 03:30:52 2009 From: leonidas_liakos at yahoo.gr (leonidas) Date: Mon, 20 Apr 2009 03:30:52 -0700 (PDT) Subject: [mapserver-users] Dem classification Message-ID: <1240223452882-2662869.post@n2.nabble.com> How can I generate a colormap for my raster (geotiff) dem in a mapfile. I have found a way but it's to difficult to generate so much classes and find the appropriate colors one by one. So my layer in mapfile look like this: LAYER NAME DEM TYPE raster STATUS default DATA "E:\leonidas\dem.tif" PROCESSING "SCALE=-10,2000" PROCESSING "SCALE_BUCKETS=2000" PROJECTION 'proj=tmerc' 'lat_0=0' 'lon_0=24' 'k=0.9996' 'x_0=500000' 'y_0=0' 'ellps=GRS80' 'towgs84=-199.87,74.79,246.62,0,0,0,0' 'units=m' 'no_defs' '' END CLASSITEM "[pixel]" CLASS NAME '-1,5 - -1 m' EXPRESSION ( [pixel] >= -1.5 AND [pixel] < -1 )COLOR 26 117 132 END CLASS NAME '-1 - -0,5 m' EXPRESSION ( [pixel] >= -1 AND [pixel] < -0.5 )COLOR 28 126 133 END CLASS NAME '-0,5 - 0 m' EXPRESSION ( [pixel] >= -0.5 AND [pixel] < 0 ) COLOR 29 135 134 END CLASS NAME ' 0 - 0,5 m' EXPRESSION ( [pixel] >= 0 AND [pixel] < 0.5 ) COLOR 31 144 135 END CLASS NAME ' 0,5 - 1 m' EXPRESSION ( [pixel] >= 0.5 AND [pixel] < 1 ) COLOR 33 152 136 END CLASS NAME ' 1 - 1,5 m' EXPRESSION ( [pixel] >= 1 AND [pixel] < 1.5 ) COLOR 35 158 137 END CLASS NAME ' 1,5 - 2 m' EXPRESSION ( [pixel] >= 1.5 AND [pixel] < 2 ) COLOR 38 163 128 END CLASS NAME ' 2 - 2,5 m' EXPRESSION ( [pixel] >= 2 AND [pixel] < 2.5 ) COLOR 44 170 116 END CLASS NAME ' 2,5 - 3 m' EXPRESSION ( [pixel] >= 2.5 AND [pixel] < 3 ) COLOR 49 176 104 END CLASS NAME ' 3 - 3,5 m' EXPRESSION ( [pixel] >= 3 AND [pixel] < 3.5 ) COLOR 54 183 92 END CLASS NAME ' 3,5 - 4 m' EXPRESSION ( [pixel] >= 3.5 AND [pixel] < 4 ) COLOR 60 190 80 END CLASS NAME ' 4 - 4,5 m' EXPRESSION ( [pixel] >= 4 AND [pixel] < 4.5 ) COLOR 66 196 68 END CLASS NAME ' 4,5 - 5 m' EXPRESSION ( [pixel] >= 4.5 AND [pixel] < 5 ) COLOR 72 203 56 END CLASS NAME ' 5 - 6 m' EXPRESSION ( [pixel] >= 5 AND [pixel] < 6 ) COLOR 77 209 44 END CLASS NAME ' 6 - 7 m' EXPRESSION ( [pixel] >= 6 AND [pixel] < 7 ) COLOR 83 216 31 END CLASS NAME ' 7 - 8 m' EXPRESSION ( [pixel] >= 7 AND [pixel] < 8 ) COLOR 88 222 20 END CLASS NAME ' 8 - 9 m' EXPRESSION ( [pixel] >= 8 AND [pixel] < 9 ) COLOR 94 229 8 END END # of layer grid1 I have to do that until 2000m height. Is there any other options to classify my dem's colors? Thank you, Leonidas -- View this message in context: http://n2.nabble.com/Dem-classification-tp2662869p2662869.html Sent from the Mapserver - User mailing list archive at Nabble.com. From russell at flora.ca Mon Apr 20 05:25:29 2009 From: russell at flora.ca (Russell McOrmond) Date: Mon, 20 Apr 2009 08:25:29 -0400 (EDT) Subject: [mapserver-users] MapServer with RHEL5 In-Reply-To: <49EA2FF9.9010301@flora.ca> References: <4FBC13C3CB49244088DD095B32B5D4CD0ABE21@KS-EVS1.smi.sachsen.de> <49EA2FF9.9010301@flora.ca> Message-ID: Replying to my own message with further information. I believe the problem we had is very different than the problem that Andreas Eichner observed. Our problem becomes a different thing to check for if you notice odd core dumps. I also have a request for the mapserver developers so that if someone else has a similar problem in the future that mapserver will output errors that indicate the problem, rather than core dump. On Sat, 18 Apr 2009, Russell McOrmond wrote: > I had a problem with GD-2.0.35's configure script not detecting > iconv correctly (see old thread: > http://n2.nabble.com/Confirmation-of-status-of-UTF8-support,-and-where-transcoding-to-Latin-1-may-be-happening.-td1973930.html > The stubs that caused the problem are at > http://cvs.php.net/viewvc.cgi/gd/libgd/src/gdkanji.c?view=markup#l27 ), > so I am compiling 2.0.36RC1. If I load that version of GD instead of > the 2.0.35 used by the systems people, and otherwise use their binaries > and libraries, I do not get the core dump. This morning I used the little test I wrote in the past to check for the broken gd. #include #include int main() { iconv_t cd; cd = iconv_open("UTF-8", "UTF-16"); printf("iconv_open returns %d\n\n", (int)cd); iconv_close(cd); return 0; } gcc -L/mapserv/lib/ -lgd -liconv -o gdbroke gdbroke.c In the above the iconv.h has to be the one from libiconv, and not the one that comes with glibc. It is only when you use the iconv.h from libiconv that this gd bug is tweaked. If I run the above with the libgd created by our systems folks, I get: $ ./gdbroke iconv_open returns -1 If I run against the gd 2.0.36RC1 I compiled, or with so that I use the glibc version of iconv, I get: $ ./gdbroke iconv_open returns 146702344 (or some other number that isn't -1) I have joined the gd-devel mailing list and have asked when 2.0.36 will be released, which has this odd issue already resolved. > the strings it was trying to compare were NULL. I'm also wondering if > it would be worthwhile to have code that in this case would exit > gracefully with an error message rather than core dumping? In mapstring.c the common thing to do when iconv_open() returns -1, or any other error, is to do an msSetError() and then return NULL from the function. The problem appears to be that this return code is not checked, and in many cases the value is assumed to be a pointer to a string. If that NULL is then used in a manipulation (say, a strdup()) then the program will core dump. We never get to see the error string as the core dump happens before the error string is written to the error log. There are a number of ways to resolve this. One is to always return a valid string (such as strdup("") ) from the function and set a global error number instead. That way functions that don't check the error code will simply be manipulating a valid empty string, rather than a null. The other is to ensure that any call to a mapstring.c string function checks the return code for NULL. I suspect this will be much more work. Thanks. -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry control over my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From jmckenna at gatewaygeomatics.com Mon Apr 20 06:17:22 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 20 Apr 2009 09:17:22 -0400 Subject: [mapserver-users] Dem classification In-Reply-To: <1240223452882-2662869.post@n2.nabble.com> References: <1240223452882-2662869.post@n2.nabble.com> Message-ID: <49EC75E2.2060403@gatewaygeomatics.com> > > Is there any other options to classify > my dem's colors? One option is to use MapServer's colorrange ability: http://www.mapserver.org/development/rfc/ms-rfc-6.html -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From ebarrera at inm.es Mon Apr 20 06:41:51 2009 From: ebarrera at inm.es (Ernesto Barrera) Date: Mon, 20 Apr 2009 14:41:51 +0100 Subject: [mapserver-users] Painting outside a polygon. Message-ID: <49EC7B9F.2080402@inm.es> Hi there, I'm dealing with a layer containing polygon data for a given country (shapefile). Color inside the polygon can be easily set via COLOR style parameter. I'm just looking for a way to apply color to the outside of the polygon (i.e.:, paint the surrounding sea in solid blue) Is there such a method inside Mapserver? Is there a way to 'reverse' the shapefile to indicate that the wanted feature is not inside the boudaries but the complementary area? Thanks in advance, PD.: My single layer is like this LAYER NAME mycountry DATA mycountry.shp TYPE POLYGON STATUS ON CLASS NAME "boundaries" STYLE COLOR 255 0 0 # country area shown in red END END END From cnieman at dmsolutions.ca Mon Apr 20 08:17:07 2009 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Mon, 20 Apr 2009 11:17:07 -0400 Subject: [mapserver-users] Painting outside a polygon. In-Reply-To: <49EC7B9F.2080402@inm.es> References: <49EC7B9F.2080402@inm.es> Message-ID: <49EC91F3.8060403@dmsolutions.ca> Hi, You can set the IMAGECOLOR parameter for the map (see http://mapserver.org/mapfile/map.html), which sets the background colour for the map. Then your coloured polygons would be drawn on top of the background colour. Regards, -- Christy Nieman GIS Technician DM Solutions Group, Inc. Email: cnieman at dmsolutions.ca Web: http://dmsolutions.ca Web: http://research.dmsolutions.ca Ernesto Barrera wrote: > > > Hi there, > > I'm dealing with a layer containing polygon data for a given country > (shapefile). > Color inside the polygon can be easily set via COLOR style parameter. > I'm just looking for a way to apply color to the outside of the > polygon (i.e.:, paint the surrounding sea in solid blue) > > Is there such a method inside Mapserver? > Is there a way to 'reverse' the shapefile to indicate that the wanted > feature is not inside the boudaries but the complementary area? > > Thanks in advance, > > > PD.: My single layer is like this > > LAYER > NAME mycountry > DATA mycountry.shp > TYPE POLYGON > STATUS ON > CLASS > NAME "boundaries" > STYLE > COLOR 255 0 0 # country area shown in red > END > END > END > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From David.Fawcett at state.mn.us Mon Apr 20 08:17:48 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 20 Apr 2009 10:17:48 -0500 Subject: [mapserver-users] Painting outside a polygon. In-Reply-To: <49EC7B9F.2080402@inm.es> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA3FB@s-sp22.pca.state.mn.us> I am not sure if this meets your case or not. If you simply want to set the background color of the map to blue, you can set IMAGECOLOR 0 0 255 at the map level. (of course, you may want to pick a nicer shade of blue...) http://mapserver.org/mapfile/map.html This will put a blue background behind in the areas not covered by your polygons. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ernesto Barrera Sent: Monday, April 20, 2009 8:42 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Painting outside a polygon. Hi there, I'm dealing with a layer containing polygon data for a given country (shapefile). Color inside the polygon can be easily set via COLOR style parameter. I'm just looking for a way to apply color to the outside of the polygon (i.e.:, paint the surrounding sea in solid blue) Is there such a method inside Mapserver? Is there a way to 'reverse' the shapefile to indicate that the wanted feature is not inside the boudaries but the complementary area? Thanks in advance, PD.: My single layer is like this LAYER NAME mycountry DATA mycountry.shp TYPE POLYGON STATUS ON CLASS NAME "boundaries" STYLE COLOR 255 0 0 # country area shown in red END END END _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dylan.beaudette at gmail.com Mon Apr 20 08:22:25 2009 From: dylan.beaudette at gmail.com (Dylan Beaudette) Date: Mon, 20 Apr 2009 08:22:25 -0700 Subject: [mapserver-users] Dem classification In-Reply-To: <1240223452882-2662869.post@n2.nabble.com> References: <1240223452882-2662869.post@n2.nabble.com> Message-ID: <3c5546140904200822te2e7400pf654af9cc58c0ab1@mail.gmail.com> You could always apply the elevation classification in a standard GIS like GRASS, and then save the color-mapped image and use that instead of the original DEM. Cheers, Dylan On Mon, Apr 20, 2009 at 3:30 AM, leonidas wrote: > > How can I generate a colormap for my raster (geotiff) dem in a mapfile. I > have found a way but it's to difficult to generate so much classes and find > the appropriate colors one by one. > So my layer in mapfile look like this: > LAYER > ?NAME DEM > ?TYPE raster > ?STATUS default > > > ?DATA "E:\leonidas\dem.tif" > > ?PROCESSING "SCALE=-10,2000" > ?PROCESSING "SCALE_BUCKETS=2000" > > > > ? ?PROJECTION > ? ?'proj=tmerc' > ? ?'lat_0=0' > ? ?'lon_0=24' > ? ?'k=0.9996' > ? ?'x_0=500000' > ? ?'y_0=0' > ? ?'ellps=GRS80' > ? ?'towgs84=-199.87,74.79,246.62,0,0,0,0' > ? ?'units=m' > ? ?'no_defs' > ? ?'' > ?END > > > CLASSITEM "[pixel]" > > ? ?CLASS NAME '-1,5 - -1 m' ?EXPRESSION ( [pixel] >= -1.5 AND [pixel] < -1 > )COLOR 26 117 132 END > ? ?CLASS NAME '-1 - -0,5 m' ?EXPRESSION ( [pixel] >= -1 AND [pixel] < -0.5 > )COLOR 28 126 133 END > ? ?CLASS NAME '-0,5 - 0 m' ? EXPRESSION ( [pixel] >= -0.5 AND [pixel] < 0 ) > COLOR 29 135 134 END > ? ?CLASS NAME ' 0 - ?0,5 m' ?EXPRESSION ( [pixel] >= 0 AND [pixel] < 0.5 ) > COLOR 31 144 135 END > ? ?CLASS NAME ' 0,5 - 1 m' ? EXPRESSION ( [pixel] >= 0.5 AND [pixel] < 1 ) > COLOR 33 152 136 END > ? ?CLASS NAME ' 1 - 1,5 m' ? EXPRESSION ( [pixel] >= 1 AND [pixel] < 1.5 ) > COLOR 35 158 137 END > ? ?CLASS NAME ' 1,5 - 2 m' ? EXPRESSION ( [pixel] >= 1.5 AND [pixel] < 2 ) > COLOR 38 163 128 END > ? ?CLASS NAME ' 2 - 2,5 m' ? EXPRESSION ( [pixel] >= 2 AND [pixel] < 2.5 ) > COLOR 44 170 116 END > ? ?CLASS NAME ' 2,5 - 3 m' ? EXPRESSION ( [pixel] >= 2.5 AND [pixel] < 3 ) > COLOR 49 176 104 END > ? ?CLASS NAME ' 3 - 3,5 m' ? EXPRESSION ( [pixel] >= 3 AND [pixel] < 3.5 ) > COLOR 54 183 92 END > ? ?CLASS NAME ' 3,5 - 4 m' ? EXPRESSION ( [pixel] >= 3.5 AND [pixel] < 4 ) > COLOR 60 190 80 END > ? ?CLASS NAME ' 4 - 4,5 m' ? EXPRESSION ( [pixel] >= 4 AND [pixel] < 4.5 ) > COLOR 66 196 68 END > ? ?CLASS NAME ' 4,5 - 5 m' ? EXPRESSION ( [pixel] >= 4.5 AND [pixel] < 5 ) > COLOR 72 203 56 END > ? ?CLASS NAME ' 5 - 6 m' ? ? EXPRESSION ( [pixel] >= 5 AND [pixel] < 6 ) > COLOR 77 209 44 END > ? ?CLASS NAME ' 6 - 7 m' ? ? EXPRESSION ( [pixel] >= 6 AND [pixel] < 7 ) > COLOR 83 216 31 END > ? ?CLASS NAME ' 7 - 8 m' ? ? EXPRESSION ( [pixel] >= 7 AND [pixel] < 8 ) > COLOR 88 222 20 END > ? ?CLASS NAME ' 8 - 9 m' ? ? EXPRESSION ( [pixel] >= 8 AND [pixel] < 9 ) > COLOR 94 229 8 END > END # of layer grid1 > > I have to do that until 2000m height. Is there any other options to classify > my dem's colors? > Thank you, Leonidas > -- > View this message in context: http://n2.nabble.com/Dem-classification-tp2662869p2662869.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 > From Steve.Lime at dnr.state.mn.us Mon Apr 20 10:12:56 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 20 Apr 2009 12:12:56 -0500 Subject: [mapserver-users] Displaying query result on the same page? In-Reply-To: <860869.57172.qm@web110602.mail.gq1.yahoo.com> References: <860869.57172.qm@web110602.mail.gq1.yahoo.com> Message-ID: <49EC66C7.5157.008F.0@dnr.state.mn.us> You can probably do it with query/browse templates but the other methods are more efficient and provide a better user experience and are easier to configure. Steve >>> On 4/20/2009 at 1:07 AM, in message <860869.57172.qm at web110602.mail.gq1.yahoo.com>, "kreshna_iceheart at yahoo.com" wrote: > Thank you, Steve. > > It seems frames and/or AJAX are the only way to display query result on the > same page when using CGI MapServer, am I correct? > > -Kresh > > > --- On Sun, 4/19/09, Steve Lime wrote: > >> From: Steve Lime >> Subject: Re: [mapserver-users] Displaying query result on the same page? >> To: mapserver-users at lists.osgeo.org, kreshna_iceheart at yahoo.com >> Date: Sunday, April 19, 2009, 1:48 AM >> For frames you just set the form >> target to the frame of interest. You're code is quite >> close. >> >> Still another option is to use AJAX/AJAST. You issue the >> query via an XMLHttpRequest and get the >> results back in a javascript string or object that you can >> direct the contents of to a container (e.g. div) >> on your page. >> >> Steve >> >> >>> "kreshna_iceheart at yahoo.com" >> >> 04/18/09 10:37 AM >>> >> >> I hope this newbie question doesn't bother you. >> >> See, I want to display query result on my map page, but if >> I use query mode, the query result replaces the whole page. >> >> As workaround, I redirect the query result to a pop-up page >> using the following JavaScript: >> >> function toFrame() { >> if >> (document.mapserv.mode.value == >> "query" || document.mapserv.mode.value == >> "nquery") { >> >> document.mapserv.target = "_blank"; >> } else { >> >> document.mapserv.target = "_self"; >> } >> } >> >> However, I'd also like to display the query result as part >> of the page (for example, on the lower right of the page), >> without replacing the entire page with the query result. >> >> Is there any way to do such thing using CGI MapServer? Or >> is PHP MapScript the only way to do it? >> >> I'm thinking about using HTML frames, but I'm still at loss >> to redirect the query result to a particular frame. >> >> Many thanks, >> -Kresh >> >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> From hestrada at imapdata.com Mon Apr 20 13:09:00 2009 From: hestrada at imapdata.com (Hugo Estrada) Date: Mon, 20 Apr 2009 16:09:00 -0400 Subject: [mapserver-users] Return single feature tiles for VE? Message-ID: Hi, there, I have successfully created tiles for political districts of Canada for Virtual Earth. Now what I need is to be able to get a single district. How would I do this? I have tried using the CGI variables qitem and qstring, but it doesn't seem to do anything. Am I missing something? Thanks in advance, Hugo -------------- next part -------------- An HTML attachment was scrubbed... URL: From joseantonioarce at gmail.com Mon Apr 20 13:31:55 2009 From: joseantonioarce at gmail.com (Jose Antonio Arce) Date: Mon, 20 Apr 2009 14:31:55 -0600 Subject: [mapserver-users] Mapserver Message-ID: <49ECDBBB.9040609@gmail.com> Hi there! I need your help. I have installed Mapserver. I got Ubuntu server running. In the command line /usr/lib/cgi-bin/mapserv works fine. But when I try to run from browser http://server/cgi-bin/mapserv. It doesn't work. What can I do to fix this situation. Thanks, Jose Arce from Costa Rica From Steve.Lime at dnr.state.mn.us Mon Apr 20 15:28:41 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 20 Apr 2009 17:28:41 -0500 Subject: [mapserver-users] Mapserver In-Reply-To: <49ECDBBB.9040609@gmail.com> References: <49ECDBBB.9040609@gmail.com> Message-ID: <49ECB0C9.5157.008F.0@dnr.state.mn.us> You'll have to be a bit more specific about "It doesn't work.", could be a number of things. Steve >>> On 4/20/2009 at 3:31 PM, in message <49ECDBBB.9040609 at gmail.com>, Jose Antonio Arce wrote: > Hi there! > > I need your help. > > I have installed Mapserver. I got Ubuntu server running. > > In the command line /usr/lib/cgi-bin/mapserv works fine. But when I try > to run from browser http://server/cgi-bin/mapserv. It doesn't work. > > What can I do to fix this situation. > > Thanks, > > Jose Arce > from Costa Rica > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From trente at umn.edu Mon Apr 20 15:14:32 2009 From: trente at umn.edu (Trent Erickson) Date: Mon, 20 Apr 2009 17:14:32 -0500 Subject: [mapserver-users] Painting outside a polygon. In-Reply-To: <49EC7B9F.2080402@inm.es> References: <49EC7B9F.2080402@inm.es> Message-ID: <49ECF3C8.7060203@umn.edu> If you are looking to make one specific feature inside a shapefile with multiple features clear or transparent you can use the FILTER parameter within the LAYER definition. In addition to setting the IMAGECOLOR at the map level to the same color as your layer it may give you the results you desire. Following are two examples of using the FILTER parameter to make one part of a shapefile layer disappear. It uses a field in the attributes called "shapeid" you could use any field in your shapefile. # the following will make feature with shapeid 12345 transparent and leave the rest of the shapefile with default color rules FILTER ( "[shapeid]" != "12345" ) # the following variation would use the shapeid= parameter provided in the URL of cgi mapserver FILTER ( "[shapeid]" != "%shapeid%" ) -Trent Ernesto Barrera wrote: > > > Hi there, > > I'm dealing with a layer containing polygon data for a given country > (shapefile). > Color inside the polygon can be easily set via COLOR style parameter. > I'm just looking for a way to apply color to the outside of the > polygon (i.e.:, paint the surrounding sea in solid blue) > > Is there such a method inside Mapserver? > Is there a way to 'reverse' the shapefile to indicate that the wanted > feature is not inside the boudaries but the complementary area? > > Thanks in advance, > > > PD.: My single layer is like this > > LAYER > NAME mycountry > DATA mycountry.shp > TYPE POLYGON > STATUS ON > CLASS > NAME "boundaries" > STYLE > COLOR 255 0 0 # country area shown in red > END > END > END > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From hestrada at imapdata.com Mon Apr 20 16:59:18 2009 From: hestrada at imapdata.com (Hugo Estrada) Date: Mon, 20 Apr 2009 19:59:18 -0400 Subject: [mapserver-users] GET parameter in MapServer query In-Reply-To: <1239958019329-2644877.post@n2.nabble.com> References: <1239958019329-2644877.post@n2.nabble.com> Message-ID: I am looking for an answer to this same question. On Fri, Apr 17, 2009 at 4:46 AM, A387 wrote: > > Hi all, > > This is my first post in the mapserver mailinglist. > I'm having problems with querying Oracle Spatial. For example, this is my > current query: > DATA "GEOM FROM (SELECT * FROM WIJK_2008 WHERE datum LIKE '%-08') USING > SRID 28992" > > What I want now, is that if I access my file by the following URL, is that > the LIKE values will be changed by the parameters given in the URL. > > Current: > http://localhost/cgi-bin/mapserv.exe?map=../../apps/wijk/htdocs/wijk_2008_gen.map&layer=wijkgrenzen&mode=map&program=../cgi-bin/mapserv.exe > > What I want: > > http://localhost/cgi-bin/mapserv.exe?map=../../apps/wijk/htdocs/wijk_2008_gen.map&layer=wijkgrenzen&mode=map&program=../cgi-bin/mapserv.exe&year=2008 > . > > Could you give me a heads up, about if this is possible and how to make my > mapfile dynamically? > -- > View this message in context: > http://n2.nabble.com/GET-parameter-in-MapServer-query-tp2644877p2644877.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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hestrada at imapdata.com Mon Apr 20 17:59:19 2009 From: hestrada at imapdata.com (Hugo Estrada) Date: Mon, 20 Apr 2009 20:59:19 -0400 Subject: [mapserver-users] Re: Return single feature tiles for VE? In-Reply-To: References: Message-ID: Answering myself: You use variable substitution in FILTER as in FILTER "%foo%" and put the value of foo at the end of the get string. http://n2.nabble.com/Variable-Substitution-td1987248.html#a1987248 On Mon, Apr 20, 2009 at 4:09 PM, Hugo Estrada wrote: > Hi, there, > > I have successfully created tiles for political districts of Canada for > Virtual Earth. Now what I need is to be able to get a single district. How > would I do this? > > > I have tried using the CGI variables qitem and qstring, but it doesn't seem > to do anything. > > Am I missing something? > > Thanks in advance, > > Hugo > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mini at mini-i.com Mon Apr 20 21:30:19 2009 From: mini at mini-i.com (Mr.Shim) Date: Mon, 20 Apr 2009 21:30:19 -0700 (PDT) Subject: [mapserver-users] WMS tile problem Message-ID: <1240288219093-2668029.post@n2.nabble.com> Hi, there, I find this problem. http://iiwork.com/data/WMS.png http://iiwork.com/data/WMS.png http://iiwork.com/data/WMS_selected.png http://iiwork.com/data/WMS_selected.png It's continuous lines. but, It looks like cutted lines. This situation occur in a boundary between tiles. How can I solve this problem? Regards, Mr.Shim. -- View this message in context: http://n2.nabble.com/WMS-tile-problem-tp2668029p2668029.html Sent from the Mapserver - User mailing list archive at Nabble.com. From schroete at iup.physik.uni-bremen.de Mon Apr 20 23:51:35 2009 From: schroete at iup.physik.uni-bremen.de (Heiko =?iso-8859-1?q?Schr=F6ter?=) Date: Tue, 21 Apr 2009 08:51:35 +0200 Subject: [mapserver-users] Passing single quoted strings Message-ID: <200904210851.35775.schroete@iup.physik.uni-bremen.de> Hello, i have to pass single quoted strings from Open Layer through mapserver to a postgis/postgres database. i.e. "filter 'value=1 and datum between '2005-1-1' and '2005-1-3' "; The postgres db expects (afaik) the date in a single quoted string. The problem is that mapserver stops scanning the filter string when coming across the second single quote and bails out. The Validation string in the mapfile: VALIDATION 'filter' "^." END Even when allowing single quotes explicitly by inserting escaped single quotes in the validation string it doesn't work. Escaping the single quotes in the assembled OL string won't help either. Does anyone has an idea of how to pass such strings through mapserver ? Now i do use an ugly hack of converting the date to abstime on the client side (with all the UTC converting hassle) and pass the integer to the db. i.e. "filter 'value = 1 and abstime between "+fromDate+" and "+toDate+"'"; MapServer version 5.4.0-rc1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE Thanks and Regards Heiko From kreshna_iceheart at yahoo.com Tue Apr 21 00:29:58 2009 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Tue, 21 Apr 2009 00:29:58 -0700 (PDT) Subject: [mapserver-users] Displaying query result on the same page? Message-ID: <571521.59510.qm@web110612.mail.gq1.yahoo.com> I see, thanks! Is it possible to use the same HTML file for both query and browse? The file contains both browsing parameters ([img], [layer_name], etc) and query parameters ([field_name]). I think I'll try it. Warm regards, -Kresh --- On Mon, 4/20/09, Steve Lime wrote: > From: Steve Lime > Subject: Re: [mapserver-users] Displaying query result on the same page? > To: mapserver-users at lists.osgeo.org, "kreshna_iceheart at yahoo.com" > Date: Monday, April 20, 2009, 1:12 PM > You can probably do it with > query/browse templates but the other methods are > more efficient and provide a better user experience and are > easier to configure. > > Steve > > >>> On 4/20/2009 at 1:07 AM, in message > <860869.57172.qm at web110602.mail.gq1.yahoo.com>, > "kreshna_iceheart at yahoo.com" > > wrote: > > > Thank you, Steve. > > > > It seems frames and/or AJAX are the only way to > display query result on the > > same page when using CGI MapServer, am I correct? > > > > -Kresh > > > > > > --- On Sun, 4/19/09, Steve Lime > wrote: > > > >> From: Steve Lime > >> Subject: Re: [mapserver-users] Displaying query > result on the same page? > >> To: mapserver-users at lists.osgeo.org, > kreshna_iceheart at yahoo.com > > >> Date: Sunday, April 19, 2009, 1:48 AM > >> For frames you just set the form > >> target to the frame of interest. You're code is > quite > >> close. > >> > >> Still another option is to use AJAX/AJAST. You > issue the > >> query via an XMLHttpRequest and get the > >> results back in a javascript string or object that > you can > >> direct the contents of to a container (e.g. div) > >> on your page. > >> > >> Steve > >> > >> >>> "kreshna_iceheart at yahoo.com" > >> > >> 04/18/09 10:37 AM >>> > >> > >> I hope this newbie question doesn't bother you. > >> > >> See, I want to display query result on my map > page, but if > >> I use query mode, the query result replaces the > whole page. > >> > >> As workaround, I redirect the query result to a > pop-up page > >> using the following JavaScript: > >> > >>? ? ? ???function > toFrame() { > >>? ? ? ? ? ? if > >> (document.mapserv.mode.value == > >>? "query" || document.mapserv.mode.value == > >>? "nquery") { > >>? ? ? ? ? ? ? > >> document.mapserv.target = "_blank"; > >>? ? ? ? ? ? } else { > >>? ? ? ? ? ? ? > >> document.mapserv.target = "_self"; > >>? ? ? ? ? ? } > >>? ? ? ???} > >> > >> However, I'd also like to display the query result > as part > >> of the page (for example, on the lower right of > the page), > >> without replacing the entire page with the query > result. > >> > >> Is there any way to do such thing using CGI > MapServer? Or > >> is PHP MapScript the only way to do it? > >> > >> I'm thinking about using HTML frames, but I'm > still at loss > >> to redirect the query result to a particular > frame. > >> > >> Many thanks, > >> -Kresh > >> > >> > >> > >> > >>? ? ??? > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >> > >> > > From ebarrera at inm.es Tue Apr 21 02:23:42 2009 From: ebarrera at inm.es (Ernesto Barrera) Date: Tue, 21 Apr 2009 10:23:42 +0100 Subject: [mapserver-users] Painting outside a polygon. Message-ID: <49ED909E.5020902@inm.es> David, Christy, Brian, thank you for such fast replies. It's been of great help regards, Ernesto From ebarrera at inm.es Tue Apr 21 02:28:29 2009 From: ebarrera at inm.es (Ernesto Barrera) Date: Tue, 21 Apr 2009 10:28:29 +0100 Subject: [mapserver-users] Painting outside a polygon. Message-ID: <49ED91BD.4060203@inm.es> Thank to you too Trent, By using both IMAGECOLOR and FILTER parameters, I got my "problem" solved. Thank you all for the help Regards, Ernesto From dzizes451 at gmail.com Tue Apr 21 02:52:56 2009 From: dzizes451 at gmail.com (dzizes) Date: Tue, 21 Apr 2009 02:52:56 -0700 (PDT) Subject: [mapserver-users] python mapscript AGG problem Message-ID: <1240307576103-2669010.post@n2.nabble.com> HEllo! I've compiled mapserver against AGG on linux. My web application that works with mapserver renders nice images with the use of AGG library. /usr/lib/cgi-bin$ ./mapserv -v MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI SUPPORTS=THREADS INPUT=TIFF INPUT=EPPL7 INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE However, when I try to open simple mapfile with mapscript - python craches. Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mapscript >>> m = mapscript.mapObj('/tmp/test.map') Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.5/site-packages/mapscript.py", line 1267, in __init__ this = _mapscript.new_mapObj(*args) _mapscript.MapServerError: loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver AGG/PNG, but this driver isn't configured. # mapfile output specification OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=OFF" FORMATOPTION "QUANTIZE_FORCE=OFF" END Any ideas what might be wrong? -- View this message in context: http://n2.nabble.com/python-mapscript-AGG-problem-tp2669010p2669010.html Sent from the Mapserver - User mailing list archive at Nabble.com. From no-reply at neogeo-online.net Tue Apr 21 03:38:02 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Tue, 21 Apr 2009 12:38:02 +0200 Subject: [mapserver-users] python mapscript AGG problem In-Reply-To: <1240307576103-2669010.post@n2.nabble.com> References: <1240307576103-2669010.post@n2.nabble.com> Message-ID: <49EDA20A.3040505@neogeo-online.net> Hi, I guess that the mapscript you are using with python is not the proper one. Did you go to mapserver/mapscript/python and run setup.py install ? Note that integration of agg in python-mapscript is not trivial due to some limitations in the agg lib. regards Guillaume dzizes a ?crit : > HEllo! > > I've compiled mapserver against AGG on linux. My web application that works > with mapserver renders nice images with the use of AGG library. > > /usr/lib/cgi-bin$ ./mapserv -v > MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI > SUPPORTS=THREADS INPUT=TIFF INPUT=EPPL7 INPUT=ORACLESPATIAL INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > > However, when I try to open simple mapfile with mapscript - python craches. > > Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) > [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> import mapscript >>>> m = mapscript.mapObj('/tmp/test.map') > Traceback (most recent call last): > File "", line 1, in > File "/usr/lib/python2.5/site-packages/mapscript.py", line 1267, in > __init__ > this = _mapscript.new_mapObj(*args) > _mapscript.MapServerError: loadOutputFormat(): General error message. > OUTPUTFORMAT clause references driver AGG/PNG, but this driver isn't > configured. > > # mapfile output specification > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > > FORMATOPTION "TRANSPARENT=ON" > FORMATOPTION "INTERLACE=OFF" > FORMATOPTION "QUANTIZE_FORCE=OFF" > END > > Any ideas what might be wrong? > > From pal.kristensen at statkart.no Tue Apr 21 03:39:46 2009 From: pal.kristensen at statkart.no (paalkr) Date: Tue, 21 Apr 2009 03:39:46 -0700 (PDT) Subject: [mapserver-users] GIF output with AGG renderer In-Reply-To: References: Message-ID: <1240310386359-2669189.post@n2.nabble.com> Hi! Got any answers on this issue? I have the exact same problem. As you say, AGG can quantize to 8bits and it should be possible and serve this as a GIF, not only 8bits PNG (my personal opinion :) ) Regards, P?l Kristensen Eichner, Andreas - SID-NLK wrote: > > > Hi all, > > I wanted to configure MS 5.2.0 to use the AGG renderer when generating > GIF output. The web site doesn't mention the AGG renderer at all on the > general output format page. The AGG rendering specifics page only tells > about PNG and JPEG. > So I'm wondering if it is possible at all. Since AGG can quantize the > image it should be no problem to put it out as GIF. I use the graphic > stroke but that only works with AGG... > Any ideas about that? > > Thanks. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ----- Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/GIF-output-with-AGG-renderer-tp2156835p2669189.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at camptocamp.com Tue Apr 21 04:05:42 2009 From: thomas.bonfort at camptocamp.com (Thomas Bonfort) Date: Tue, 21 Apr 2009 13:05:42 +0200 Subject: [mapserver-users] GIF output with AGG renderer In-Reply-To: <1240310386359-2669189.post@n2.nabble.com> References: <1240310386359-2669189.post@n2.nabble.com> Message-ID: <2922382e0904210405w3b977ea9qd2d87a36b615c02c@mail.gmail.com> patches graciously accepted :) thomas On Tue, Apr 21, 2009 at 12:39 PM, paalkr wrote: > > Hi! > > Got any answers on this issue? I have the exact same problem. As you say, > AGG can quantize to 8bits and it should be possible and serve this as a GIF, > not only 8bits PNG (my personal opinion :) ) > > Regards, > P?l Kristensen > > > Eichner, Andreas - SID-NLK wrote: >> >> >> Hi all, >> >> I wanted to configure MS 5.2.0 to use the AGG renderer when generating >> GIF output. The web site doesn't mention the AGG renderer at all on the >> general output format page. The AGG rendering specifics page only tells >> about PNG and JPEG. >> So I'm wondering if it is possible at all. Since AGG can quantize the >> image it should be no problem to put it out as GIF. I use the graphic >> stroke but that only works with AGG... >> Any ideas about that? >> >> Thanks. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > ----- > > Regards, > P?l Kristensen > -- > View this message in context: http://n2.nabble.com/GIF-output-with-AGG-renderer-tp2156835p2669189.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 > -- www.camptocamp.com +33 4 79 26 57 97 From dzizes451 at gmail.com Tue Apr 21 04:42:22 2009 From: dzizes451 at gmail.com (dzizes) Date: Tue, 21 Apr 2009 13:42:22 +0200 Subject: [mapserver-users] python mapscript AGG problem In-Reply-To: <49EDA20A.3040505@neogeo-online.net> References: <1240307576103-2669010.post@n2.nabble.com> <49EDA20A.3040505@neogeo-online.net> Message-ID: I know that its not proper. It is standard one which goes with default linux package. I'm wandering if there is a way for upgrading python mapscript module with reference to AGG library. -- Micha? On Tue, Apr 21, 2009 at 12:38 PM, Guillaume Sueur < no-reply at neogeo-online.net> wrote: > Hi, > > I guess that the mapscript you are using with python is not the proper > one. Did you go to mapserver/mapscript/python and run setup.py install ? > > Note that integration of agg in python-mapscript is not trivial due to > some limitations in the agg lib. > > regards > > Guillaume > > dzizes a ?crit : > > HEllo! > > > > I've compiled mapserver against AGG on linux. My web application that > works > > with mapserver renders nice images with the use of AGG library. > > > > /usr/lib/cgi-bin$ ./mapserv -v > > MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT > SUPPORTS=FASTCGI > > SUPPORTS=THREADS INPUT=TIFF INPUT=EPPL7 INPUT=ORACLESPATIAL INPUT=OGR > > INPUT=GDAL INPUT=SHAPEFILE > > > > > > However, when I try to open simple mapfile with mapscript - python > craches. > > > > Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) > > [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 > > Type "help", "copyright", "credits" or "license" for more information. > >>>> import mapscript > >>>> m = mapscript.mapObj('/tmp/test.map') > > Traceback (most recent call last): > > File "", line 1, in > > File "/usr/lib/python2.5/site-packages/mapscript.py", line 1267, in > > __init__ > > this = _mapscript.new_mapObj(*args) > > _mapscript.MapServerError: loadOutputFormat(): General error message. > > OUTPUTFORMAT clause references driver AGG/PNG, but this driver isn't > > configured. > > > > # mapfile output specification > > OUTPUTFORMAT > > NAME png > > DRIVER "AGG/PNG" > > MIMETYPE "image/png" > > IMAGEMODE RGB > > EXTENSION "png" > > > > FORMATOPTION "TRANSPARENT=ON" > > FORMATOPTION "INTERLACE=OFF" > > FORMATOPTION "QUANTIZE_FORCE=OFF" > > END > > > > Any ideas what might be wrong? > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From no-reply at neogeo-online.net Tue Apr 21 04:54:17 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Tue, 21 Apr 2009 13:54:17 +0200 Subject: [mapserver-users] python mapscript AGG problem In-Reply-To: References: <1240307576103-2669010.post@n2.nabble.com> <49EDA20A.3040505@neogeo-online.net> Message-ID: <49EDB3E9.5080003@neogeo-online.net> Yes, you can, by compiling your own version of MapServer including agg support and running setup.py install from mapscript/python directory. But you'll run into agg static lib problem, that you can fix following the included instructions from PerryGeo (http://www.perrygeo.net/wordpress/) Best regards, Guillaume dzizes a ?crit : > I know that its not proper. It is standard one which goes with default > linux package. > I'm wandering if there is a way for upgrading python mapscript module > with reference to AGG library. > > -- > Micha? > > > On Tue, Apr 21, 2009 at 12:38 PM, Guillaume Sueur > > wrote: > > Hi, > > I guess that the mapscript you are using with python is not the proper > one. Did you go to mapserver/mapscript/python and run setup.py install ? > > Note that integration of agg in python-mapscript is not trivial due to > some limitations in the agg lib. > > regards > > Guillaume > > dzizes a ?crit : > > HEllo! > > > > I've compiled mapserver against AGG on linux. My web application > that works > > with mapserver renders nice images with the use of AGG library. > > > > /usr/lib/cgi-bin$ ./mapserv -v > > MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT > SUPPORTS=FASTCGI > > SUPPORTS=THREADS INPUT=TIFF INPUT=EPPL7 INPUT=ORACLESPATIAL INPUT=OGR > > INPUT=GDAL INPUT=SHAPEFILE > > > > > > However, when I try to open simple mapfile with mapscript - python > craches. > > > > Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) > > [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 > > Type "help", "copyright", "credits" or "license" for more information. > >>>> import mapscript > >>>> m = mapscript.mapObj('/tmp/test.map') > > Traceback (most recent call last): > > File "", line 1, in > > File "/usr/lib/python2.5/site-packages/mapscript.py", line 1267, in > > __init__ > > this = _mapscript.new_mapObj(*args) > > _mapscript.MapServerError: loadOutputFormat(): General error message. > > OUTPUTFORMAT clause references driver AGG/PNG, but this driver isn't > > configured. > > > > # mapfile output specification > > OUTPUTFORMAT > > NAME png > > DRIVER "AGG/PNG" > > MIMETYPE "image/png" > > IMAGEMODE RGB > > EXTENSION "png" > > > > FORMATOPTION "TRANSPARENT=ON" > > FORMATOPTION "INTERLACE=OFF" > > FORMATOPTION "QUANTIZE_FORCE=OFF" > > END > > > > Any ideas what might be wrong? > > > > > > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: agg_mapserver.txt URL: From Steve.Lime at dnr.state.mn.us Tue Apr 21 06:13:51 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 21 Apr 2009 08:13:51 -0500 Subject: [mapserver-users] GET parameter in MapServer query Message-ID: <49ED80450200008F00023284@co5.dnr.state.mn.us> You'd change your DATA statement to something like so: DATA "GEOM FROM (SELECT * FROM WIJK_%year% WHERE datum LIKE '%-08') USING SRID 28992" Assuming I put the substitution in the right place. You should also set a validation parameter for this substitution. This is especially important with RDBMS sources: METADATA year_validation_parameter '^200[1-9]$' END The above example would limit the value for the year variable to 2001-2009. Does this help? Steve >>> Hugo Estrada 04/20/09 7:06 PM >>> I am looking for an answer to this same question. On Fri, Apr 17, 2009 at 4:46 AM, A387 wrote: > > Hi all, > > This is my first post in the mapserver mailinglist. > I'm having problems with querying Oracle Spatial. For example, this is my > current query: > DATA "GEOM FROM (SELECT * FROM WIJK_2008 WHERE datum LIKE '%-08') USING > SRID 28992" > > What I want now, is that if I access my file by the following URL, is that > the LIKE values will be changed by the parameters given in the URL. > > Current: > http://localhost/cgi-bin/mapserv.exe?map=../../apps/wijk/htdocs/wijk_2008_gen.map&layer=wijkgrenzen&mode=map&program=../cgi-bin/mapserv.exe > > What I want: > > http://localhost/cgi-bin/mapserv.exe?map=../../apps/wijk/htdocs/wijk_2008_gen.map&layer=wijkgrenzen&mode=map&program=../cgi-bin/mapserv.exe&year=2008 > . > > Could you give me a heads up, about if this is possible and how to make my > mapfile dynamically? > -- > View this message in context: > http://n2.nabble.com/GET-parameter-in-MapServer-query-tp2644877p2644877.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 > From leonidas_liakos at yahoo.gr Tue Apr 21 06:33:51 2009 From: leonidas_liakos at yahoo.gr (leonidas) Date: Tue, 21 Apr 2009 06:33:51 -0700 (PDT) Subject: [mapserver-users] Dem classification In-Reply-To: <3c5546140904200822te2e7400pf654af9cc58c0ab1@mail.gmail.com> References: <1240223452882-2662869.post@n2.nabble.com> <3c5546140904200822te2e7400pf654af9cc58c0ab1@mail.gmail.com> Message-ID: <1240320831960-2670014.post@n2.nabble.com> Any tutorial how to implement that with grass gis? Dylan Beaudette-2 wrote: > > You could always apply the elevation classification in a standard GIS > like GRASS, and then save the color-mapped image and use that instead > of the original DEM. > > Cheers, > > Dylan > > -- View this message in context: http://n2.nabble.com/Dem-classification-tp2662869p2670014.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dylan.beaudette at gmail.com Tue Apr 21 07:41:24 2009 From: dylan.beaudette at gmail.com (Dylan Beaudette) Date: Tue, 21 Apr 2009 07:41:24 -0700 Subject: [mapserver-users] Dem classification In-Reply-To: <1240320831960-2670014.post@n2.nabble.com> References: <1240223452882-2662869.post@n2.nabble.com> <3c5546140904200822te2e7400pf654af9cc58c0ab1@mail.gmail.com> <1240320831960-2670014.post@n2.nabble.com> Message-ID: <3c5546140904210741n12e897aub4c7eaf809d2c368@mail.gmail.com> Hi, Here is a start: http://grass.osgeo.org/wiki/Main_Page the main idea: # make a new mapset/location # import dem: r.in.gdal # convert to classes r.reclass # fix colors: r.colors # export image: r.out.tiff or d.out.file Cheers, Dylan On Tue, Apr 21, 2009 at 6:33 AM, leonidas wrote: > > Any tutorial how to implement that with grass gis? > > Dylan Beaudette-2 wrote: >> >> You could always apply the elevation classification in a standard GIS >> like GRASS, and then save the color-mapped image and use that instead >> of the original DEM. >> >> Cheers, >> >> Dylan >> >> > > -- > View this message in context: http://n2.nabble.com/Dem-classification-tp2662869p2670014.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 > From masscotm at erau.edu Tue Apr 21 08:05:22 2009 From: masscotm at erau.edu (Michael E Masscotte) Date: Tue, 21 Apr 2009 11:05:22 -0400 Subject: [mapserver-users] MapServer 4 vs 5 seg fault In-Reply-To: <49E8ADBC.7060309@erau.edu> References: <49E8ADBC.7060309@erau.edu> Message-ID: <49EDE0B2.6030200@erau.edu> I've done some more investigation and found the seg fault happens with a call to msDrawRasterLayerGDAL() according to gdb. I also found what is tripping the core dump in the map file. I have an class with 'EXPRESSION ([pixel] > 0)' so mapserver does not draw black pixels. When I remove this, it works fine although it has the black pixels I don't want. So, it appears I'm doing something wrong with the EXPRESSION statement. Any one have any ideas how to fix this or workaround it? Again, what I find strange is that this works fine in MapServer 4.x but not 5.x. Thanks for your help, -Mike Michael E Masscotte wrote: > I have a php script that generates a png from geotiff tiles. The tiles > are indexed using gdaltindex. The php script works fine for MapServer > 4.10.x but seg faults for version 5.x.x. Does anyone know of any > differences between version 4 and 5 that would cause this? Could it be > from an older version of gdal that the tiles are being generated with? > This happens in both RedHat Linux 4 as well as on our Solaris > machines. I can provide more details if someone can point me in the > right direction on where to look first for a problem. > > Thanks is advance for any insight any one might provide! > -Mike > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From godwin.liz at gmail.com Tue Apr 21 08:30:49 2009 From: godwin.liz at gmail.com (Liz Godwin) Date: Tue, 21 Apr 2009 11:30:49 -0400 Subject: [mapserver-users] MapServer 4 vs 5 seg fault In-Reply-To: <49EDE0B2.6030200@erau.edu> References: <49E8ADBC.7060309@erau.edu> <49EDE0B2.6030200@erau.edu> Message-ID: I've noticed a similar problem with EXPRESSION statements, but inconsistantly. Are you running MS on Red Hat 5 by any chance? On Tue, Apr 21, 2009 at 11:05 AM, Michael E Masscotte wrote: > I've done some more investigation and found the seg fault happens with a > call to msDrawRasterLayerGDAL() according to gdb. I also found what is > tripping the core dump in the map file. I have an class with 'EXPRESSION > ([pixel] > 0)' so mapserver does not draw black pixels. When I remove this, > it works fine although it has the black pixels I don't want. So, it appears > I'm doing something wrong with the EXPRESSION statement. Any one have any > ideas how to fix this or workaround it? Again, what I find strange is that > this works fine in MapServer 4.x but not 5.x. > > Thanks for your help, > -Mike > > > > Michael E Masscotte wrote: > > I have a php script that generates a png from geotiff tiles. The tiles are >> indexed using gdaltindex. The php script works fine for MapServer 4.10.x but >> seg faults for version 5.x.x. Does anyone know of any differences between >> version 4 and 5 that would cause this? Could it be from an older version of >> gdal that the tiles are being generated with? This happens in both RedHat >> Linux 4 as well as on our Solaris machines. I can provide more details if >> someone can point me in the right direction on where to look first for a >> problem. >> >> Thanks is advance for any insight any one might provide! >> -Mike >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Tue Apr 21 08:24:29 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Tue, 21 Apr 2009 08:24:29 -0700 Subject: [mapserver-users] Dem classification In-Reply-To: <3c5546140904210741n12e897aub4c7eaf809d2c368@mail.gmail.com> References: <1240223452882-2662869.post@n2.nabble.com> <3c5546140904200822te2e7400pf654af9cc58c0ab1@mail.gmail.com> <1240320831960-2670014.post@n2.nabble.com> <3c5546140904210741n12e897aub4c7eaf809d2c368@mail.gmail.com> Message-ID: <9c2015090904210824t12ae15cfw3ef2b12e842d924@mail.gmail.com> Or you could do it without GRASS, using a script like this. Roger -- On Tue, Apr 21, 2009 at 7:41 AM, Dylan Beaudette wrote: > Hi, > > Here is a start: > http://grass.osgeo.org/wiki/Main_Page > > the main idea: > > # make a new mapset/location > # import dem: > r.in.gdal > > # convert to classes > r.reclass > > # fix colors: > r.colors > > # export image: > r.out.tiff or d.out.file > > Cheers, > Dylan > > On Tue, Apr 21, 2009 at 6:33 AM, leonidas > wrote: > > > > Any tutorial how to implement that with grass gis? > > > > Dylan Beaudette-2 wrote: > >> > >> You could always apply the elevation classification in a standard GIS > >> like GRASS, and then save the color-mapped image and use that instead > >> of the original DEM. > >> > >> Cheers, > >> > >> Dylan > >> > >> > > > > -- > > View this message in context: > http://n2.nabble.com/Dem-classification-tp2662869p2670014.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 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: discreet_gray2color.py Type: text/x-python Size: 2228 bytes Desc: not available URL: From masscotm at erau.edu Tue Apr 21 08:36:11 2009 From: masscotm at erau.edu (Michael E Masscotte) Date: Tue, 21 Apr 2009 11:36:11 -0400 Subject: [mapserver-users] MapServer 4 vs 5 seg fault In-Reply-To: References: <49E8ADBC.7060309@erau.edu> <49EDE0B2.6030200@erau.edu> Message-ID: <49EDE7EB.7000000@erau.edu> I haven't tried RHEL5 yet, but it happens with RHEL 4 and Solaris 10. Liz Godwin wrote: > I've noticed a similar problem with EXPRESSION statements, but > inconsistantly. Are you running MS on Red Hat 5 by any chance? > > On Tue, Apr 21, 2009 at 11:05 AM, Michael E Masscotte > > wrote: > > I've done some more investigation and found the seg fault happens > with a call to msDrawRasterLayerGDAL() according to gdb. I also > found what is tripping the core dump in the map file. I have an > class with 'EXPRESSION ([pixel] > 0)' so mapserver does not draw > black pixels. When I remove this, it works fine although it has > the black pixels I don't want. So, it appears I'm doing something > wrong with the EXPRESSION statement. Any one have any ideas how to > fix this or workaround it? Again, what I find strange is that this > works fine in MapServer 4.x but not 5.x. > > Thanks for your help, > -Mike > > > > Michael E Masscotte wrote: > > I have a php script that generates a png from geotiff tiles. > The tiles are indexed using gdaltindex. The php script works > fine for MapServer 4.10.x but seg faults for version 5.x.x. > Does anyone know of any differences between version 4 and 5 > that would cause this? Could it be from an older version of > gdal that the tiles are being generated with? This happens in > both RedHat Linux 4 as well as on our Solaris machines. I can > provide more details if someone can point me in the right > direction on where to look first for a problem. > > Thanks is advance for any insight any one might provide! > -Mike > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From yjacolin at free.fr Tue Apr 21 08:45:15 2009 From: yjacolin at free.fr (Jacolin Yves) Date: Tue, 21 Apr 2009 17:45:15 +0200 Subject: [mapserver-users] [OGC] [WMS] getLegendGraphic request with GROUPCLASS and "SIZEUNITS meters" parameters Message-ID: <200904211745.15726.yjacolin@free.fr> Hello, I ma using an OGC WMS webservice to get my legend with a GetLegendGraphic request. For one layer I am using SIZEUNITS parameter set to "meters". In this case, my legend icon does not appears (see file in this mail). See mapfile here http://pastebin.com/f77313bc1 Is it a problem from my mapfile or a bug from MapServer (5.4.0 rc2)? Thanks, Y. -- Yves Jacolin Ne demandez pas si vous pouvez contribuer, contribuer ! :) --- http://softlibre.gloobe.org -------------- next part -------------- A non-text attachment was scrubbed... Name: stations_ratp.png Type: image/png Size: 1118 bytes Desc: not available URL: From death_knight0911 at yahoo.com Tue Apr 21 09:15:06 2009 From: death_knight0911 at yahoo.com (MeLv1n wAuRaN) Date: Tue, 21 Apr 2009 09:15:06 -0700 (PDT) Subject: [mapserver-users] problem with my "label" Message-ID: <796057.12747.qm@web54205.mail.re2.yahoo.com> Hi all, i have a problem that needs to be solved soon. I included a label in a layer but the label does not appear in my browser. In the .dbf file, the informations i want to display as the labels are in the 5th column with the name "NM_DESA" i use openlayers 2.7 to run my mapserver mapfile. Can anyone help me? thx here's my detail: LAYER ??? NAME "Tanah" ??? DATA "Desa" ??? STATUS ON ??? TYPE POLYGON ??? METADATA ????? "DESCRIPTION"??? "Tanah" ??? END??? ??? CLASS ??? ? LABEL ??? ??? FONT "sans" ????????? TYPE TRUETYPE ????????? SIZE 8 ????????? BUFFER 1 ????????? COLOR 0 0 0 ????????? FORCE TRUE ??????? END ????? COLOR 225 200 100 ????? OUTLINECOLOR 0 0 0 ??? END ? END Cheers, Melvin -------------- next part -------------- An HTML attachment was scrubbed... URL: From Grant.McKenzie at CH2M.com Tue Apr 21 09:28:24 2009 From: Grant.McKenzie at CH2M.com (Grant.McKenzie at CH2M.com) Date: Tue, 21 Apr 2009 10:28:24 -0600 Subject: [mapserver-users] Conditions in Query Templates Message-ID: <9D57091E0FAA0F4D9E75E148B5CEEC264CFB886574@KENAI.amr.ch2m.com> A question regarding MapServer Query Templates. Is there away to put conditions into a MapServer query template (when you click on a feature, send a wfs request and attempt to format the results)? My template looks like this:
Installer: [installer]
What I would like to do is only show the installer ROW if the installer result info is not empty. So I'd like to wrap it in some type of IF statement. Is it possible to do this directly in the query template, or does this need to happen earlier in the process? A quick note: my data is sitting on MySQL (long, lat), being served via MS4W 2.3.1. Thanks. Grant McKenzie -------------- next part -------------- An HTML attachment was scrubbed... URL: From hendra.satya at gmail.com Tue Apr 21 09:31:05 2009 From: hendra.satya at gmail.com (Hendra Satya) Date: Tue, 21 Apr 2009 09:31:05 -0700 (PDT) Subject: [mapserver-users] problem with my "label" In-Reply-To: <796057.12747.qm@web54205.mail.re2.yahoo.com> References: <796057.12747.qm@web54205.mail.re2.yahoo.com> Message-ID: <1240331465800-2671094.post@n2.nabble.com> Maybe you forget to add this statement: TYPE POLYGON LABELITEM "NM_DESA" #field label to display METADATA "DESCRIPTION" "Tanah" END Hope helps -- Regards, Henda Satya ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ AVOID Jakarta traffic - join http://www.bebasmacet.com and follow http://twitter.com/bebasmacet ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ On Tue, Apr 21, 2009 at 11:22 PM, MeLv1n wAuRaN (via Nabble) < ml-user+174339-1550548835 at n2.nabble.com > wrote: > Hi all, > > i have a problem that needs to be solved soon. I included a label in a > layer but the label does not appear in my browser. In the .dbf file, the > informations i want to display as the labels are in the 5th column with the > name "NM_DESA" > > i use openlayers 2.7 to run my mapserver mapfile. Can anyone help me? thx > > here's my detail: > > LAYER > NAME "Tanah" > DATA "Desa" > STATUS ON > TYPE POLYGON > METADATA > "DESCRIPTION" "Tanah" > END > CLASS > LABEL > FONT "sans" > TYPE TRUETYPE > SIZE 8 > BUFFER 1 > COLOR 0 0 0 > FORCE TRUE > END > COLOR 225 200 100 > OUTLINECOLOR 0 0 0 > END > END > > > Cheers, > Melvin > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at ... > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ------------------------------ > View message @ > http://n2.nabble.com/problem-with-my-%22label%22-tp2671032p2671032.html > To start a new topic under Mapserver - User, email > ml-node+1969211-1631322126 at n2.nabble.com > To unsubscribe from Mapserver - User, click here< (link removed) >. > > > -- View this message in context: http://n2.nabble.com/problem-with-my-%22label%22-tp2671032p2671094.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue Apr 21 09:36:42 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 21 Apr 2009 11:36:42 -0500 Subject: [mapserver-users] Conditions in Query Templates In-Reply-To: <9D57091E0FAA0F4D9E75E148B5CEEC264CFB886574@KENAI.amr.ch2m.com> References: <9D57091E0FAA0F4D9E75E148B5CEEC264CFB886574@KENAI.amr.ch2m.com> Message-ID: <49EDAFCA.5157.008F.0@dnr.state.mn.us> You've got a couple of options: 1) use javascript, that is, assign the value for installer to a variable and then do a conditional display, e.g. 2) use an [item ...] tag [item name="installer" pattern="." format="
Installer:$value
"] This should output the table if the installer column has data in it. Steve >>> On 4/21/2009 at 11:28 AM, in message <9D57091E0FAA0F4D9E75E148B5CEEC264CFB886574 at KENAI.amr.ch2m.com>, wrote: > A question regarding MapServer Query Templates. > > Is there away to put conditions into a MapServer query template (when you > click on a feature, send a wfs request and attempt to format the results)? > > My template looks like this: > > > > > > >
Installer: [installer]
> > What I would like to do is only show the installer ROW if the installer > result info is not empty. So I'd like to wrap it in some type of IF > statement. Is it possible to do this directly in the query template, or does > this need to happen earlier in the process? > > A quick note: my data is sitting on MySQL (long, lat), being served via MS4W > 2.3.1. > > Thanks. > > Grant McKenzie From Steve.Lime at dnr.state.mn.us Tue Apr 21 09:30:51 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 21 Apr 2009 11:30:51 -0500 Subject: [mapserver-users] problem with my "label" In-Reply-To: <796057.12747.qm@web54205.mail.re2.yahoo.com> References: <796057.12747.qm@web54205.mail.re2.yahoo.com> Message-ID: <49EDAE6B.5157.008F.0@dnr.state.mn.us> Add LABELITEM "NM_DESA" to your layer definition. Steve >>> On 4/21/2009 at 11:15 AM, in message <796057.12747.qm at web54205.mail.re2.yahoo.com>, MeLv1n wAuRaN wrote: > Hi all, > > i have a problem that needs to be solved soon. I included a label in a layer > but the label does not appear in my browser. In the .dbf file, the > informations i want to display as the labels are in the 5th column with the > name "NM_DESA" > > i use openlayers 2.7 to run my mapserver mapfile. Can anyone help me? thx > > here's my detail: > > LAYER > NAME "Tanah" > DATA "Desa" > STATUS ON > TYPE POLYGON > METADATA > "DESCRIPTION" "Tanah" > END > CLASS > LABEL > FONT "sans" > TYPE TRUETYPE > SIZE 8 > BUFFER 1 > COLOR 0 0 0 > FORCE TRUE > END > COLOR 225 200 100 > OUTLINECOLOR 0 0 0 > END > END > > > Cheers, > Melvin > > > > From thomas.bonfort at gmail.com Tue Apr 21 09:52:22 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 21 Apr 2009 18:52:22 +0200 Subject: [mapserver-users] Re: [mapserver-dev] Upper Limit to Number of Layers in Map file In-Reply-To: <49EDF722.6040104@borstad.com> References: <49EDF722.6040104@borstad.com> Message-ID: http://mapserver.org/input/raster.html#rasters-and-tile-indexing on a side note, the number of layers isn;'t limited at compile time since version 5.0 -- thomas On Tue, Apr 21, 2009 at 18:41, Peter Willis wrote: > Hello, > > I am attempting to use mapserver as a WMS server for > a large number of rasters. > > The system I am using has a collection of over 21000 > geo-referenced ?rasters. > > These can be sorted into various groups, however > any specific group of rasters may exceed 400 or more. > > I have tried modifying the value MS_MAXLAYERS in > map.h and recompiling but am unsure if I will exceed > the binary size of whatever variables are affected by > that constant. > > What is the maximum, safe, binary size of the > MS_MAXLAYERS constant that will not overflow > the variables/procedures that use it? > > (ie: ulong32, ulong64, ushort16, uchar8,...???) > > Thanks for any insights, > > Peter > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > From gerald at geoplan.ph Tue Apr 21 09:50:26 2009 From: gerald at geoplan.ph (Gerald Villacarlos) Date: Wed, 22 Apr 2009 00:50:26 +0800 Subject: [mapserver-users] OT ( GIS Developer ) Message-ID: <9b394fc70904210950i1cb49292v63717755e0bea6d8@mail.gmail.com> Hi Groups. sorry for an OT posting. I am Gerald Villacarlos , a Senior GIS Applications Developer currently working in a Filipino GIS company. I have had 8 years experience in GIS Web Development using PHP / Mapscript + OpenLayers for the front end UI and PosgreSQL/PostGIS for may Backend Database. I use ESRI Arcview GIS or Manifold System to prepare my shapefiles for Mapserver Deployment.I use Fedora Core 8 Linux OS for my GIS Webserver. If you may, please view my portfolio at http://heraldus.yahaay.com. If you deem it necessary, id gladly do a test application for you so you may gauge my knowledge and expertise in this field and if I can meet the standards of your company. I can do freelance works and will be available to work approximately 4-6 hrs /day , nightshifts and on weekends with a rate subject to negotiation. If you prefer hiring a contractual or permanent employee, that would not be a problem for me. If the job would require me to relocate, I?d be very much willing to relocate to your area provided the company would provide a working permit. But it would still be fine with me if I would do the job remotely. That is not a problem since I have been accustomed to building gis web applications even when clients are domestic. if you wish to ask some more questions about me and my capabilities, you can reach me through my email gerald at yahaay.com or my landline +63322316209 or at my mobile +639152137589. Thanks Gerald G. Villacarlos -------------- next part -------------- An HTML attachment was scrubbed... URL: From death_knight0911 at yahoo.com Tue Apr 21 10:01:49 2009 From: death_knight0911 at yahoo.com (MeLv1n wAuRaN) Date: Tue, 21 Apr 2009 10:01:49 -0700 (PDT) Subject: [mapserver-users] problem with my "label" In-Reply-To: <49EDAE6B.5157.008F.0@dnr.state.mn.us> Message-ID: <252924.4317.qm@web54203.mail.re2.yahoo.com> Hi Steve, i tried it but it still wouldn't display. Now that whole layer (polygon) wouldn't display anymore. any idea? LAYER ??? NAME "Tanah" ??? DATA "Desa" ??? STATUS ON ??? TYPE POLYGON ??? METADATA ????? "DESCRIPTION"??? "Tanah" ??? END ??? LABELITEM "NM_DESA"??? ??? CLASS ??? NAME "Label" ??? STYLE ??????? COLOR 225 200 100 ??????? OUTLINECOLOR 0 0 0 ??? END ??? LABEL ??? ??? FONT sans ????????? TYPE TRUETYPE ????????? SIZE 8 ??? ??? POSITION AUTO ????????? COLOR 0 0 0 ????????? FORCE TRUE ????? END ??? END ? END Melvin --- On Wed, 4/22/09, Steve Lime wrote: From: Steve Lime Subject: Re: [mapserver-users] problem with my "label" To: mapserver-users at lists.osgeo.org, death_knight0911 at yahoo.com Date: Wednesday, April 22, 2009, 12:30 AM Add LABELITEM "NM_DESA" to your layer definition. Steve >>> On 4/21/2009 at 11:15 AM, in message <796057.12747.qm at web54205.mail.re2.yahoo.com>, MeLv1n wAuRaN wrote: > Hi all, > > i have a problem that needs to be solved soon. I included a label in a layer > but the label does not appear in my browser. In the .dbf file, the > informations i want to display as the labels are in the 5th column with the > name "NM_DESA" > > i use openlayers 2.7 to run my mapserver mapfile. Can anyone help me? thx > > here's my detail: > > LAYER > NAME "Tanah" > DATA "Desa" > STATUS ON > TYPE POLYGON > METADATA > "DESCRIPTION" "Tanah" > END > CLASS > LABEL > FONT "sans" > TYPE TRUETYPE > SIZE 8 > BUFFER 1 > COLOR 0 0 0 > FORCE TRUE > END > COLOR 225 200 100 > OUTLINECOLOR 0 0 0 > END > END > > > Cheers, > Melvin > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ernesvega at gmail.com Tue Apr 21 10:08:54 2009 From: ernesvega at gmail.com (Ernesto Vega) Date: Tue, 21 Apr 2009 13:08:54 -0400 Subject: [mapserver-users] OT ( GIS Developer ) In-Reply-To: <9b394fc70904210950i1cb49292v63717755e0bea6d8@mail.gmail.com> References: <9b394fc70904210950i1cb49292v63717755e0bea6d8@mail.gmail.com> Message-ID: <248e5e090904211008i1d93b428yfa2ecbccdfc83030@mail.gmail.com> Please, Remove this guy who is advertising himself instead of posting ideas..... On Tue, Apr 21, 2009 at 12:50 PM, Gerald Villacarlos wrote: > Hi Groups. sorry for an OT posting. > > I am Gerald Villacarlos , a Senior GIS Applications Developer currently > working in a Filipino GIS company. I have had 8 years experience in GIS Web > Development using PHP / Mapscript + OpenLayers for the front end UI and > PosgreSQL/PostGIS for may Backend Database. I use ESRI Arcview GIS or > Manifold System to prepare my shapefiles for Mapserver Deployment.I use > Fedora Core 8 Linux OS for my GIS Webserver. > > If you may, please view my portfolio at http://heraldus.yahaay.com. If > you deem it necessary, id gladly do a test application for you so you may > gauge my knowledge and expertise in this field and if I can meet the > standards of your company. > > I can do freelance works and will be available to work approximately 4-6 > hrs /day , nightshifts and on weekends with a rate subject to negotiation. If > you prefer hiring a contractual or permanent employee, that would not be a > problem for me. If the job would require me to relocate, I?d be very much > willing to relocate to your area provided the company would provide a > working permit. But it would still be fine with me if I would do the job > remotely. That is not a problem since I have been accustomed to building gis > web applications even when clients are domestic. > > if you wish to ask some more questions about me and my capabilities, you > can reach me through my email gerald at yahaay.com or my landline > +63322316209 or at my mobile +639152137589. > > Thanks > > Gerald G. Villacarlos > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- eMail: ernesvega at gmail.com linkedin: http://www.linkedin.com/in/evegabarrios -------------- next part -------------- An HTML attachment was scrubbed... URL: From naci0002 at umn.edu Tue Apr 21 10:55:41 2009 From: naci0002 at umn.edu (Perry Nacionales) Date: Tue, 21 Apr 2009 12:55:41 -0500 Subject: [mapserver-users] Mapserver In-Reply-To: <49ECDBBB.9040609@gmail.com> References: <49ECDBBB.9040609@gmail.com> Message-ID: <49EE089D.3090605@umn.edu> I would suggest going through the MapServer intro document... http://www.mapserver.org/introduction.html#introduction You can also go through the MapServer Tutorial: http://www.mapserver.org/tutorial/index.html Good luck! -Perry Jose Antonio Arce wrote: > Hi there! > > I need your help. > > I have installed Mapserver. I got Ubuntu server running. > > In the command line /usr/lib/cgi-bin/mapserv works fine. But when I try > to run from browser http://server/cgi-bin/mapserv. It doesn't work. > > What can I do to fix this situation. > > Thanks, > > Jose Arce > from Costa Rica > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From warmerdam at pobox.com Tue Apr 21 11:01:08 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 21 Apr 2009 14:01:08 -0400 Subject: [mapserver-users] OT ( GIS Developer ) In-Reply-To: <248e5e090904211008i1d93b428yfa2ecbccdfc83030@mail.gmail.com> References: <9b394fc70904210950i1cb49292v63717755e0bea6d8@mail.gmail.com> <248e5e090904211008i1d93b428yfa2ecbccdfc83030@mail.gmail.com> Message-ID: <49EE09E4.5060404@pobox.com> Ernesto Vega wrote: > > Please, > > Remove this guy who is advertising himself instead of posting ideas..... > > On Tue, Apr 21, 2009 at 12:50 PM, Gerald Villacarlos > wrote: > > Hi Groups. sorry for an OT posting. Ernesto, I don't think our list mandate precludes tasteful/limited indications of availability for work, or contracting opportunities as long as it relates to MapServer - and Gerald did indicate mapscript, openlayers and postgis skills. Gerald, I would encourage to list yourself in the OSGeo Service Provider directory, for which information is available at: http://www.osgeo.org/spd_help Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From iratxe.lejarreta at axios.es Tue Apr 21 11:04:10 2009 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Tue, 21 Apr 2009 20:04:10 +0200 Subject: [mapserver-users] mapserver error Message-ID: <200904212004.10735.iratxe.lejarreta@axios.es> Hi, I installed MapServer-5.2.0 on CentOS 5.2 with Oracle 10g, but when I run the WFS service... http://localhost/cgi- bin/mywfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=cities ...the result is: ? ? msWFSGetFeature(): WFS server error. ms_error->code not found msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI Handlers. Connection failure. Check the connection string. Error: ORA-12154: TNS:could not resolve the connect identifier specified . msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI Handlers. Connection failure. Check the connection string. Error: ORA-12154: TNS:could not resolve the connect identifier specified . Mapfile: MAP NAME WFS_TEST STATUS ON SIZE 400 300 EXTENT -180 -90 180 90 UNITS METERS IMAGECOLOR 255 255 255 WEB METADATA "wfs_title" "WFS TEST" "wfs_onlineresource" "http://localhost/cgi-bin/mywfs?" "wfs_srs" "EPSG:4326" END END PROJECTION "init=epsg:4326" END LAYER NAME cities TYPE POINT CONNECTIONTYPE oraclespatial CONNECTION "MDDATA/*****@orcl" DATA "GEOM FROM CITIES USING UNIQUE FID SRID 4326 VERSION 10g" METADATA "wfs_title" "cities" "gml_featureid" "FID" "gml_include_items" "all" END STATUS ON DUMP TRUE CLASS STYLE OUTLINECOLOR 0 0 0 COLOR 0 128 128 END END END # Cities END # Map File Somebody can help me? Thanks in advance. -- Iratxe Lejarreta www.axios.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From godwin.liz at gmail.com Tue Apr 21 11:32:18 2009 From: godwin.liz at gmail.com (Liz Godwin) Date: Tue, 21 Apr 2009 14:32:18 -0400 Subject: [mapserver-users] MapServer 4 vs 5 seg fault In-Reply-To: <49EDE7EB.7000000@erau.edu> References: <49E8ADBC.7060309@erau.edu> <49EDE0B2.6030200@erau.edu> <49EDE7EB.7000000@erau.edu> Message-ID: ok. different problem then. I see nothing wrong with the expression offhand. Perhaps the data type support has changed between versions? On Tue, Apr 21, 2009 at 11:36 AM, Michael E Masscotte wrote: > I haven't tried RHEL5 yet, but it happens with RHEL 4 and Solaris 10. > > Liz Godwin wrote: > > I've noticed a similar problem with EXPRESSION statements, but >> inconsistantly. Are you running MS on Red Hat 5 by any chance? >> >> On Tue, Apr 21, 2009 at 11:05 AM, Michael E Masscotte > masscotm at erau.edu>> wrote: >> >> I've done some more investigation and found the seg fault happens >> with a call to msDrawRasterLayerGDAL() according to gdb. I also >> found what is tripping the core dump in the map file. I have an >> class with 'EXPRESSION ([pixel] > 0)' so mapserver does not draw >> black pixels. When I remove this, it works fine although it has >> the black pixels I don't want. So, it appears I'm doing something >> wrong with the EXPRESSION statement. Any one have any ideas how to >> fix this or workaround it? Again, what I find strange is that this >> works fine in MapServer 4.x but not 5.x. >> >> Thanks for your help, >> -Mike >> >> >> >> Michael E Masscotte wrote: >> >> I have a php script that generates a png from geotiff tiles. >> The tiles are indexed using gdaltindex. The php script works >> fine for MapServer 4.10.x but seg faults for version 5.x.x. >> Does anyone know of any differences between version 4 and 5 >> that would cause this? Could it be from an older version of >> gdal that the tiles are being generated with? This happens in >> both RedHat Linux 4 as well as on our Solaris machines. I can >> provide more details if someone can point me in the right >> direction on where to look first for a problem. >> >> Thanks is advance for any insight any one might provide! >> -Mike >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From srph124 at yahoo.com Tue Apr 21 11:36:28 2009 From: srph124 at yahoo.com (Saka Royban) Date: Tue, 21 Apr 2009 11:36:28 -0700 (PDT) Subject: [mapserver-users] MapServer and GRASS integration? Message-ID: <9987.49488.qm@web58208.mail.re3.yahoo.com> Hi all. I just wanna know if it is possible to integrate Mapserver and GRASS, beside showing GRASS layers with Mapserver on the web, use power of GRASS in analysis and then display the result of analysis via Mapserver. I've found some examples of using GRASS with Mapserver in internet search but limited to viewing locations of GRASS. Any one aware of using GRASS analysis with Mapserver? !!! If it is possible, How to do it? Thx in advance for your help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dennis at myairplane.com Tue Apr 21 12:50:28 2009 From: dennis at myairplane.com (Dennis Megarry) Date: Tue, 21 Apr 2009 15:50:28 -0400 Subject: [mapserver-users] unsubscribe In-Reply-To: <200904212004.10735.iratxe.lejarreta@axios.es> References: <200904212004.10735.iratxe.lejarreta@axios.es> Message-ID: <008801c9c2ba$6c32e470$4498ad50$@com> unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: From ernesvega at gmail.com Tue Apr 21 12:58:24 2009 From: ernesvega at gmail.com (Ernesto Vega) Date: Tue, 21 Apr 2009 15:58:24 -0400 Subject: [mapserver-users] UNSUSCRIBE Message-ID: <248e5e090904211258p34c471e3sfbfb746074070ee7@mail.gmail.com> UNSUSCRIBE -------------- next part -------------- An HTML attachment was scrubbed... URL: From valiantheart at hotmail.com Tue Apr 21 14:40:12 2009 From: valiantheart at hotmail.com (jchampagne2) Date: Tue, 21 Apr 2009 14:40:12 -0700 (PDT) Subject: [mapserver-users] msLoadMap() Unable to access file In-Reply-To: References: <482CA163.3050704@gmail.com> Message-ID: <1240350012892-2672715.post@n2.nabble.com> I'm having similar difficulty with this ubiquitous demo. The offending part of my index.html file: " function configure() { var template = document.demo.template.options[document.demo.template.selectedIndex].value; // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP var snippet = "IMAGEPATH '/osgeo4w/tmp/ms_tmp"; snippet += " IMAGEURL '/tmp/'"; snippet += " TEMPLATE " + template; document.demo.map_web.value = snippet; if(template.indexOf("frame") != -1) document.demo.action = "frames.html"; if(template.indexOf("dhtml") != -1) document.demo.action = "frames_dhtml.html"; } " I think I'm a little confused about the what the variable represents. This is the path which tells the browser where to find the image that's generated by MapServer, right? My Mapserver installation directory is "C:\OSGeo4W\" . So \tmp\ms_tmp is where the map images are stored? I've searched the forums for an answer, and I'm further confused by the fact that some of hte CGI variables appear to require absolute file-paths while others like this one only seem to need path from the web root. Cheers! Hello, There were changes in MapServer 5.0 in the way CGI variables are passed...so you might try to replace that "map_web_imagepath" line in your hello.html with something like: -jeff -- View this message in context: http://n2.nabble.com/msLoadMap%28%29-Unable-to-access-file-tp1971168p2672715.html Sent from the Mapserver - User mailing list archive at Nabble.com. From godwin.liz at gmail.com Tue Apr 21 14:53:44 2009 From: godwin.liz at gmail.com (Liz Godwin) Date: Tue, 21 Apr 2009 17:53:44 -0400 Subject: [mapserver-users] WMS GetStyles and class group Message-ID: Hi all, I am using MapServer 5.2.0 I have a WMS set up with various named styles for a particular layer using the CLASS/GROUP syntax. I've noticed that in the capabilities document, I get expected output of all the possible styles (multiple < Style > elements) including name for reference so I can refer to it later. However, when I do a GetStyles on this layer, I get but a single UserStyle with all of the different Rules (classes) listed. Each Rule has a name, but this is the CLASS->NAME value, and not the CLASS->GROUP reference. I read through various bugs on the subject of this enhancement, and whatever else i saw that was relevant, but I couldn't figure out if this is a bug, or expected behaviour. I was expecting something more in line with what was in the RFC [http://mapserver.org/development/rfc/ms-rfc-39.html] - having a named layer with multiple NamedStyles. Or something at least where the reference to the style would be referenced. This isn't urgent for me, but I was curious as to whether I should report a bug on this. Cheers, Liz Eidsness -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Tue Apr 21 18:24:12 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 21 Apr 2009 21:24:12 -0400 Subject: [mapserver-users] [OGC] [WMS] getLegendGraphic request with GROUPCLASS and "SIZEUNITS meters" parameters In-Reply-To: <200904211745.15726.yjacolin@free.fr> References: <200904211745.15726.yjacolin@free.fr> Message-ID: <49EE71BC.3060401@dmsolutions.ca> Yves, There seem to be a bug on this. I opened a ticket for it: http://trac.osgeo.org/mapserver/ticket/2983 . It is fixed in the main trunk. I will add the same fix in the 5.4 branch after the 5.4 release tomorrow and It should be available for the 5.4.1 release. Best Regards, Jacolin Yves wrote: > Hello, > > I ma using an OGC WMS webservice to get my legend with a GetLegendGraphic > request. For one layer I am using SIZEUNITS parameter set to "meters". In > this case, my legend icon does not appears (see file in this mail). > > See mapfile here http://pastebin.com/f77313bc1 > > Is it a problem from my mapfile or a bug from MapServer (5.4.0 rc2)? > > Thanks, > > Y. > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From yassefa at dmsolutions.ca Tue Apr 21 18:39:16 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 21 Apr 2009 21:39:16 -0400 Subject: [mapserver-users] WMS GetStyles and class group In-Reply-To: References: Message-ID: <49EE7544.7010401@dmsolutions.ca> Hi Liz, From your description, this seems to be a bug. Yes, please enter a bug on it and assign it to me and I will add a fix to it for the next release. Thanks. Best Regards. Liz Godwin wrote: > Hi all, > > I am using MapServer 5.2.0 > > I have a WMS set up with various named styles for a particular layer > using the CLASS/GROUP syntax. I've noticed that in the capabilities > document, I get expected output of all the possible styles (multiple < > Style > elements) including name for reference so I can refer to it later. > > However, when I do a GetStyles on this layer, I get but a single > UserStyle with all of the different Rules (classes) listed. Each Rule > has a name, but this is the CLASS->NAME value, and not the CLASS->GROUP > reference. > > I read through various bugs on the subject of this enhancement, and > whatever else i saw that was relevant, but I couldn't figure out if this > is a bug, or expected behaviour. I was expecting something more in line > with what was in the RFC > [http://mapserver.org/development/rfc/ms-rfc-39.html] - having a named > layer with multiple NamedStyles. Or something at least where the > reference to the style would be referenced. > > This isn't urgent for me, but I was curious as to whether I should > report a bug on this. > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From pvoudouris at gaiocorp.com Tue Apr 21 23:54:57 2009 From: pvoudouris at gaiocorp.com (Pano) Date: Tue, 21 Apr 2009 23:54:57 -0700 (PDT) Subject: [mapserver-users] mapserver error In-Reply-To: <200904212004.10735.iratxe.lejarreta@axios.es> References: <200904212004.10735.iratxe.lejarreta@axios.es> Message-ID: <1240383297506-2674567.post@n2.nabble.com> Hi Iratxe, Looks like mapserver doesnt know the TNS name 'orcl' that you have defined. I assume that the machine where mapserver runs has an oracle client installed? Can you log into sql plus i..e sqlplus mddata/@orcl from a command prompt on this box? I assume you will get the same TNS error. Which will mean that your tnsnames.ora file is not set correctly. The file should be located under $ORACLE_HOME\network\admin\tnsnames.ora. There should be an entry in there like: ORCL = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = ) ) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ) ) ) Hope this helps, Pano Iratxe Lejarreta wrote: > > Hi, > > I installed MapServer-5.2.0 on CentOS 5.2 with Oracle 10g, but when I run > the > WFS service... > > http://localhost/cgi- > bin/mywfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=cities > > ...the result is: > ? > xsi:schemaLocation="http://www.opengis.net/ogc > http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd"> > ? > > > msWFSGetFeature(): WFS server error. ms_error->code not found > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > Handlers. > Connection failure. Check the connection string. Error: ORA-12154: > TNS:could > not resolve the connect identifier specified > . > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > Handlers. > Connection failure. Check the connection string. Error: ORA-12154: > TNS:could > not resolve the connect identifier specified > . > > > > > > Mapfile: > > MAP > NAME WFS_TEST > STATUS ON > SIZE 400 300 > EXTENT -180 -90 180 90 > UNITS METERS > IMAGECOLOR 255 255 255 > WEB > METADATA > "wfs_title" "WFS TEST" > "wfs_onlineresource" "http://localhost/cgi-bin/mywfs?" > "wfs_srs" "EPSG:4326" > END > END > PROJECTION > "init=epsg:4326" > END > LAYER > NAME cities > TYPE POINT > CONNECTIONTYPE oraclespatial > CONNECTION "MDDATA/*****@orcl" > DATA "GEOM FROM CITIES USING UNIQUE FID SRID 4326 VERSION 10g" > METADATA > "wfs_title" "cities" > "gml_featureid" "FID" > "gml_include_items" "all" > END > STATUS ON > DUMP TRUE > CLASS > STYLE > OUTLINECOLOR 0 0 0 > COLOR 0 128 128 > END > END > END # Cities > END # Map File > > > Somebody can help me? > > Thanks in advance. > > -- > Iratxe Lejarreta > www.axios.es > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/mapserver-error-tp2671622p2674567.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dzizes451 at gmail.com Wed Apr 22 01:00:40 2009 From: dzizes451 at gmail.com (dzizes) Date: Wed, 22 Apr 2009 01:00:40 -0700 (PDT) Subject: [mapserver-users] python mapscript AGG problem In-Reply-To: <49EDB3E9.5080003@neogeo-online.net> References: <1240307576103-2669010.post@n2.nabble.com> <49EDA20A.3040505@neogeo-online.net> <49EDB3E9.5080003@neogeo-online.net> Message-ID: <1240387240926-2674827.post@n2.nabble.com> /tmp/mapserver-5.2.2/mapscript/python# swig -python -shadow -modern -templatereduce -fastdispatch -fvirtual -fastproxy -modernargs -castmode -dirvtable -fastinit -fastquery -noproxydel -nobuildnone -o mapscript_wrap.c ../mapscript.i /tmp/mapserver-5.2.2/mapscript/python# sudo python setup.py install --force python: can't open file 'setup.py': [Errno 2] No such file or directory root at gislab:/tmp/mapserver-5.2.2/mapscript/python/tests/cases# cd ../.. root at gislab:/tmp/mapserver-5.2.2/mapscript/python# sudo python setup.py install --force running install running build running build_py running build_ext running install_lib copying build/lib.linux-i686-2.5/_mapscript.so -> /usr/lib/python2.5/site-packages copying build/lib.linux-i686-2.5/mapscript.py -> /usr/lib/python2.5/site-packages copying build/lib.linux-i686-2.5/mapscript.pyc -> /usr/lib/python2.5/site-packages byte-compiling /usr/lib/python2.5/site-packages/mapscript.py to mapscript.pyc running install_egg_info Removing /usr/lib/python2.5/site-packages/mapscript-5.2.2.egg-info Writing /usr/lib/python2.5/site-packages/mapscript-5.2.2.egg-info /tmp/mapserver-5.2.2/mapscript/python# python2.5 Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mapscript Traceback (most recent call last): File "", line 1, in File "mapscript.py", line 6, in import _mapscript ImportError: /usr/lib/python2.5/site-packages/_mapscript.so: undefined symbol: _ZN3agg17g_elder_bit_tableE aaaaaaaaaa :( -- View this message in context: http://n2.nabble.com/python-mapscript-AGG-problem-tp2669010p2674827.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yjacolin at free.fr Wed Apr 22 01:08:23 2009 From: yjacolin at free.fr (Jacolin Yves) Date: Wed, 22 Apr 2009 10:08:23 +0200 Subject: [mapserver-users] [OGC] [WMS] getLegendGraphic request =?iso-8859-1?q?with=09GROUPCLASS_and?= "SIZEUNITS meters" parameters In-Reply-To: <49EE71BC.3060401@dmsolutions.ca> References: <200904211745.15726.yjacolin@free.fr> <49EE71BC.3060401@dmsolutions.ca> Message-ID: <200904221008.24084.yjacolin@free.fr> Thank you very much :) Y. Le Wednesday 22 April 2009 03:24:12 Yewondwossen Assefa, vous avez ?crit?: > Yves, > > There seem to be a bug on this. I opened a ticket for it: > http://trac.osgeo.org/mapserver/ticket/2983 . It is fixed in the main > trunk. I will add the same fix in the 5.4 branch after the 5.4 release > tomorrow and It should be available for the 5.4.1 release. > > Best Regards, > > Jacolin Yves wrote: > > Hello, > > > > I ma using an OGC WMS webservice to get my legend with a GetLegendGraphic > > request. For one layer I am using SIZEUNITS parameter set to "meters". In > > this case, my legend icon does not appears (see file in this mail). > > > > See mapfile here http://pastebin.com/f77313bc1 > > > > Is it a problem from my mapfile or a bug from MapServer (5.4.0 rc2)? > > > > Thanks, > > > > Y. > > -- Yves Jacolin Ne demandez pas si vous pouvez contribuer, contribuer ! :) --- http://softlibre.gloobe.org From yuetwancar at gmail.com Wed Apr 22 02:21:28 2009 From: yuetwancar at gmail.com (carol wu) Date: Wed, 22 Apr 2009 02:21:28 -0700 (PDT) Subject: [mapserver-users] How to get the mouse click coordinate from MapServer? Message-ID: <1240392088995-2675082.post@n2.nabble.com> Hi, all. I am new to MapServer. I have tried to get the mouse click coordinates by [mapx] & [mapy], however, the coordinates retrieved are not the coordinates of the point which I have clicked on. [mapx] & [mapy] just gave the coordinates of the center of the image map, how would it be that ? I really wish to get the mouse click coordinates, how can i do that ? can anyone help ? -- View this message in context: http://n2.nabble.com/How-to-get-the-mouse-click-coordinate-from-MapServer--tp2675082p2675082.html Sent from the Mapserver - User mailing list archive at Nabble.com. From iratxe.lejarreta at axios.es Wed Apr 22 03:53:28 2009 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Wed, 22 Apr 2009 12:53:28 +0200 Subject: [mapserver-users] mapserver error In-Reply-To: <1240383297506-2674567.post@n2.nabble.com> References: <200904212004.10735.iratxe.lejarreta@axios.es> <1240383297506-2674567.post@n2.nabble.com> Message-ID: <200904221253.29009.iratxe.lejarreta@axios.es> On Wednesday 22 April 2009 08:54:57 Pano wrote: > Hi Iratxe, > > Looks like mapserver doesnt know the TNS name 'orcl' that you have defined. > I assume that the machine where mapserver runs has an oracle client > installed? Can you log into sql plus i..e sqlplus mddata/@orcl from > a command prompt on this box? I assume you will get the same TNS error. > Which will mean that your tnsnames.ora file is not set correctly. The file > should be located under $ORACLE_HOME\network\admin\tnsnames.ora. There > should be an entry in there like: > > ORCL = > (DESCRIPTION = > (ADDRESS_LIST = > (ADDRESS = > (PROTOCOL = TCP) > (HOST = (PORT = ) > ) > ) > (CONNECT_DATA = > (SERVER = DEDICATED) > (SERVICE_NAME = ) > ) > ) > > Hope this helps, > Pano > > Iratxe Lejarreta wrote: > > Hi, > > > > I installed MapServer-5.2.0 on CentOS 5.2 with Oracle 10g, but when I run > > the > > WFS service... > > > > http://localhost/cgi- > > bin/mywfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=cities > > > > ...the result is: > > ? > > > xsi:schemaLocation="http://www.opengis.net/ogc > > http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd"> > > ? > > > > > > msWFSGetFeature(): WFS server error. ms_error->code not found > > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > > Handlers. > > Connection failure. Check the connection string. Error: ORA-12154: > > TNS:could > > not resolve the connect identifier specified > > . > > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > > Handlers. > > Connection failure. Check the connection string. Error: ORA-12154: > > TNS:could > > not resolve the connect identifier specified > > . > > > > > > > > > > > > Mapfile: > > > > MAP > > NAME WFS_TEST > > STATUS ON > > SIZE 400 300 > > EXTENT -180 -90 180 90 > > UNITS METERS > > IMAGECOLOR 255 255 255 > > WEB > > METADATA > > "wfs_title" "WFS TEST" > > "wfs_onlineresource" "http://localhost/cgi-bin/mywfs?" > > "wfs_srs" "EPSG:4326" > > END > > END > > PROJECTION > > "init=epsg:4326" > > END > > LAYER > > NAME cities > > TYPE POINT > > CONNECTIONTYPE oraclespatial > > CONNECTION "MDDATA/*****@orcl" > > DATA "GEOM FROM CITIES USING UNIQUE FID SRID 4326 VERSION 10g" > > METADATA > > "wfs_title" "cities" > > "gml_featureid" "FID" > > "gml_include_items" "all" > > END > > STATUS ON > > DUMP TRUE > > CLASS > > STYLE > > OUTLINECOLOR 0 0 0 > > COLOR 0 128 128 > > END > > END > > END # Cities > > END # Map File > > > > > > Somebody can help me? > > > > Thanks in advance. > > > > -- > > Iratxe Lejarreta > > www.axios.es > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users Hi Pano, Firstly, thanks for your answer! I have checked all configuration but I continue with the same error: 1.- I haven't got any error in logs. 2.- I installed Oracle Instat Client: # rpm -Uvh oracle-instantclient-basic-10.2.0.4-1.i386.rpm I have set the library loading path: # export LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.3/client/lib 3.- I can access with sqlplus and sqldeveloper without any problem: [oracle]$ sqlplus mddata/@orcl 4.- $ORACLE_HOME\network\admin\tnsnames.ora file: ORCL = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.215) (PORT = 1521) ) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) ) 5.- I try to access with the following URL: http://192.168.2.215/cgi- bin/mywfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=cities 6.- ...but the result it's the same: msWFSGetFeature(): WFS server error. ms_error->code not found msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI Handlers. Connection failure. Check the connection string. Error: ORA-12154: TNS:could not resolve the connect identifier specified. msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI Handlers. Connection failure. Check the connection string. Error: ORA-12154: TNS:could not resolve the connect identifier specified. Do you know where could be wrong? Thanks for your help!!!!! Regards, -- Iratxe Lejarreta www.axios.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From yuetwancar at gmail.com Wed Apr 22 05:59:05 2009 From: yuetwancar at gmail.com (carol wu) Date: Wed, 22 Apr 2009 05:59:05 -0700 (PDT) Subject: [mapserver-users] Drawing in MapServer Message-ID: <1240405145715-2675954.post@n2.nabble.com> Hi, all. I am really new to MapServer. I have a HTML with image map generated by mapserv.exe, can i draw any points or polygons or lines on it? And, can i store them into PostgreSQL database ? -- View this message in context: http://n2.nabble.com/Drawing-in-MapServer-tp2675954p2675954.html Sent from the Mapserver - User mailing list archive at Nabble.com. From godwin.liz at gmail.com Wed Apr 22 06:52:31 2009 From: godwin.liz at gmail.com (Liz Godwin) Date: Wed, 22 Apr 2009 09:52:31 -0400 Subject: [mapserver-users] WMS GetStyles and class group In-Reply-To: <49EE7544.7010401@dmsolutions.ca> References: <49EE7544.7010401@dmsolutions.ca> Message-ID: Bug reported: 2984 On Tue, Apr 21, 2009 at 9:39 PM, Yewondwossen Assefa wrote: > Hi Liz, > > From your description, this seems to be a bug. > Yes, please enter a bug on it and assign it to me and I will add a fix to > it for the next release. > > Thanks. > > Best Regards. > > > Liz Godwin wrote: > >> Hi all, >> >> I am using MapServer 5.2.0 >> >> I have a WMS set up with various named styles for a particular layer using >> the CLASS/GROUP syntax. I've noticed that in the capabilities document, I >> get expected output of all the possible styles (multiple < Style > elements) >> including name for reference so I can refer to it later. >> >> However, when I do a GetStyles on this layer, I get but a single UserStyle >> with all of the different Rules (classes) listed. Each Rule has a name, but >> this is the CLASS->NAME value, and not the CLASS->GROUP reference. >> >> I read through various bugs on the subject of this enhancement, and >> whatever else i saw that was relevant, but I couldn't figure out if this is >> a bug, or expected behaviour. I was expecting something more in line with >> what was in the RFC [http://mapserver.org/development/rfc/ms-rfc-39.html] >> - having a named layer with multiple NamedStyles. Or something at least >> where the reference to the style would be referenced. >> >> This isn't urgent for me, but I was curious as to whether I should report >> a bug on this. >> >> > > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dominik.schmid at ilu.ch Wed Apr 22 08:12:23 2009 From: dominik.schmid at ilu.ch (Dominik Schmid) Date: Wed, 22 Apr 2009 17:12:23 +0200 Subject: [mapserver-users] msEvalRegex problem (Mapserver 5.2.2) Message-ID: <47437777-F039-42F1-B63F-68AD27AF0B5C@ilu.ch> Hi list once again I have to turn to the list as a last resort after having depleted all possible solutions which I've come across. We're running Mapserver/PHP/Mapscript/Fusion on a CentOS installation which we've recently upgraded to 5.3. The upgrade has so far been successful except for one problem: When I compile Mapserver 5.2.2 or 5.4.0RC2 (with mapscript support) against the updated libraries etc. the resulting mapserv works fine (as far as tested) except when I select a feature (through the Fusion web map application, all data is pulled from the postgres database) it throws an error like: msEvalRegex(): Regular expression error. String (/var/lib/php/session/ sess_49ef23ad8b84e/query.qry) failed expression test. If I compile Mapserver 5.2.0 on the same upgraded system this works fine as it had before on the original system (Centos 4.4). I always used the correct php_mapscript.so and did a proper httpd restart. Originally I had GDAL 1.4 compiled on the system, tried with removal and changing to the EPEL-Version (1.4.2) and after further failure tried with removal (also removing librx) and compiling GDAL 1.6.0 from source which didn't change a thing. I did this after reading some threads on this list ( http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055638.html ). Some more version details: - php 5.2.6 (from the C5-testing repo) - postgresql 8.2.9 (from the C5-testing repo) - postgis 1.3.1 Generally I tried to avoid the installation from turning into a frankenbuild system but since the offical repos don't provide all our needs I had to resort to rolling my own in some cases. Any hint is greatly appreciated. Best regards Dominik -- Dominik Schmid Dipl. Umweltnaturwissenschafter ETH ilu AG Zentralstrasse 2a CH-8610 Uster Tel: +41 44 / 944 55 56 (Direktwahl) Tel: +41 44 / 944 55 55 (allgemein) Fax: +41 44 / 944 55 66 mailto:dominik.schmid at ilu.ch http://www.ilu.ch From dmorissette at mapgears.com Wed Apr 22 08:23:43 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 22 Apr 2009 11:23:43 -0400 Subject: [mapserver-users] msEvalRegex problem (Mapserver 5.2.2) In-Reply-To: <47437777-F039-42F1-B63F-68AD27AF0B5C@ilu.ch> References: <47437777-F039-42F1-B63F-68AD27AF0B5C@ilu.ch> Message-ID: <49EF367F.8070007@mapgears.com> Dominik Schmid wrote: > > msEvalRegex(): Regular expression error. String > (/var/lib/php/session/sess_49ef23ad8b84e/query.qry) failed expression test. > Sounds like the Fusion code needs to be changed to use a .qy extension for the query file: http://trac.osgeo.org/mapserver/ticket/2939 Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at dnr.state.mn.us Wed Apr 22 08:30:17 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 22 Apr 2009 10:30:17 -0500 Subject: [mapserver-users] msEvalRegex problem (Mapserver 5.2.2) Message-ID: <49EEF1BE0200008F00023379@co5.dnr.state.mn.us> Hi Dominik: The extension for queryfiles should be .qy not .qry. The .qy is what the CGI writes. I missed the fact the mapscript allows the user to specify their own extension. Versions 5.2.2 and up enforce that. Argh... How to fix. Couple of options: - tweak fusion to write queries using .qy as an extension - tweak MapServer to recognize .qry as a legitimate extension To do the later you can edit mapquery.c, line 127 and change: if(msEvalRegex("\\.qy$", filename) != MS_TRUE) return MS_FAILURE; to: if(msEvalRegex("\\.(qy|qry)$", filename) != MS_TRUE) return MS_FAILURE; If I knew there were a couple of common extensions being used out there I could update this pattern in 5.4.1. Steve >>> Dominik Schmid 04/22/09 10:14 AM >>> Hi list once again I have to turn to the list as a last resort after having depleted all possible solutions which I've come across. We're running Mapserver/PHP/Mapscript/Fusion on a CentOS installation which we've recently upgraded to 5.3. The upgrade has so far been successful except for one problem: When I compile Mapserver 5.2.2 or 5.4.0RC2 (with mapscript support) against the updated libraries etc. the resulting mapserv works fine (as far as tested) except when I select a feature (through the Fusion web map application, all data is pulled from the postgres database) it throws an error like: msEvalRegex(): Regular expression error. String (/var/lib/php/session/ sess_49ef23ad8b84e/query.qry) failed expression test. If I compile Mapserver 5.2.0 on the same upgraded system this works fine as it had before on the original system (Centos 4.4). I always used the correct php_mapscript.so and did a proper httpd restart. Originally I had GDAL 1.4 compiled on the system, tried with removal and changing to the EPEL-Version (1.4.2) and after further failure tried with removal (also removing librx) and compiling GDAL 1.6.0 from source which didn't change a thing. I did this after reading some threads on this list ( http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055638.html ). Some more version details: - php 5.2.6 (from the C5-testing repo) - postgresql 8.2.9 (from the C5-testing repo) - postgis 1.3.1 Generally I tried to avoid the installation from turning into a frankenbuild system but since the offical repos don't provide all our needs I had to resort to rolling my own in some cases. Any hint is greatly appreciated. Best regards Dominik -- Dominik Schmid Dipl. Umweltnaturwissenschafter ETH ilu AG Zentralstrasse 2a CH-8610 Uster Tel: +41 44 / 944 55 56 (Direktwahl) Tel: +41 44 / 944 55 55 (allgemein) Fax: +41 44 / 944 55 66 mailto:dominik.schmid at ilu.ch http://www.ilu.ch _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From leonidas_liakos at yahoo.gr Wed Apr 22 08:35:08 2009 From: leonidas_liakos at yahoo.gr (leonidas) Date: Wed, 22 Apr 2009 08:35:08 -0700 (PDT) Subject: [mapserver-users] Geomoose and error at displaying Class name Message-ID: <1240414508479-2676918.post@n2.nabble.com> In my mapfile I have a layer with a class. The Class Name is written in Greek. So the problem is in the TOC (layer list) of geomoose. It doesn't displayed in greek characters but in strange symbols. It must be an encoding issue.How can I fix it? PS.The layer name is displayed perfect in greek. I have already change the xml with mapbook to UTF-8 for that. -- View this message in context: http://n2.nabble.com/Geomoose-and-error-at-displaying-Class-name-tp2676918p2676918.html Sent from the Mapserver - User mailing list archive at Nabble.com. From masscotm at erau.edu Wed Apr 22 09:12:20 2009 From: masscotm at erau.edu (Michael E Masscotte) Date: Wed, 22 Apr 2009 12:12:20 -0400 Subject: [mapserver-users] MapServer 4 vs 5 segfault in msDrawRasterLayerGDAL() In-Reply-To: <49E8ADBC.7060309@erau.edu> References: <49E8ADBC.7060309@erau.edu> Message-ID: <49EF41E4.3080908@erau.edu> I've done some more investigation and found the seg fault happens with a call to msDrawRasterLayerGDAL() according to gdb. I also found what is tripping the core dump in the map file. I have an class with 'EXPRESSION ([pixel] > 0)' so mapserver does not draw black pixels. When I remove this, it works fine although it has the black pixels I don't want. So, it appears I'm doing something wrong with the EXPRESSION statement. Any one have any ideas how to fix this or workaround it? Again, what I find strange is that this works fine in MapServer 4.x but not 5.x. Thanks for your help, -Mike Michael E Masscotte wrote: > I have a php script that generates a png from geotiff tiles. The tiles > are indexed using gdaltindex. The php script works fine for MapServer > 4.10.x but seg faults for version 5.x.x. Does anyone know of any > differences between version 4 and 5 that would cause this? Could it be > from an older version of gdal that the tiles are being generated with? > This happens in both RedHat Linux 4 as well as on our Solaris > machines. I can provide more details if someone can point me in the > right direction on where to look first for a problem. > > Thanks is advance for any insight any one might provide! > -Mike > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woklist at kyngchaos.com Wed Apr 22 10:35:02 2009 From: woklist at kyngchaos.com (William Kyngesburye) Date: Wed, 22 Apr 2009 12:35:02 -0500 Subject: [mapserver-users] how can I make labels not cover symbols? Message-ID: Currently I have a point layer (cities), with a separate label layer for the same points. The labels often cover other point markers in the same, and other, layers, though they never cover the point they are labelling (of course). I was using pixmap symbols for the markers. I thought maybe if I use truetype markers, they would participate or influence the label cache, but that doesn't appear to be the case. Another thought was to draw truetype markers as an annotation layer, but this means adding a column in the table with the marker character, and would make it less flexible to change markers. Yet another idea was to use an annotation layer, but be able to specify static text for the LABEL. I don't see this option either. If I didn't miss something, and it is indeed impossible without the extra marker char column for an annotation layer, would such a feature be possible (either adding symbols to the label cache and/or static label text)? ----- William Kyngesburye http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro From thomas.bonfort at camptocamp.com Wed Apr 22 10:42:24 2009 From: thomas.bonfort at camptocamp.com (Thomas Bonfort) Date: Wed, 22 Apr 2009 19:42:24 +0200 Subject: [mapserver-users] how can I make labels not cover symbols? In-Reply-To: References: Message-ID: <2922382e0904221042y73231882xe7258366ee03c369@mail.gmail.com> > Yet another idea was to use an annotation layer, but be able to specify > static text for the LABEL. ?I don't see this option either. > you can do that with the TEXT keyword at the CLASS level. CLASS TEXT '>' LABEL FONT "symbolfont" ... END END From valiantheart at hotmail.com Wed Apr 22 10:52:05 2009 From: valiantheart at hotmail.com (jchampagne2) Date: Wed, 22 Apr 2009 10:52:05 -0700 (PDT) Subject: [mapserver-users] msLoadMap() Unable to access file In-Reply-To: <1240350012892-2672715.post@n2.nabble.com> References: <482CA163.3050704@gmail.com> <1240350012892-2672715.post@n2.nabble.com> Message-ID: <1240422725262-2677714.post@n2.nabble.com> Ok, I finally figured this out. When you're editing the indicated lines in 'index.html', pay close attention in particular to the lines: " snippet += " IMAGEURL '/ms_tmp/'"; " and " " It's important to use the 'ScriptAlias' and alias for your MapServer 'tmp' directory. These are indicated in your Apache "httpd.conf" file, so be sure to take a peek at it when you're making modifications to index.html. -- View this message in context: http://n2.nabble.com/msLoadMap%28%29-Unable-to-access-file-tp1971168p2677714.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woklist at kyngchaos.com Wed Apr 22 11:31:16 2009 From: woklist at kyngchaos.com (William Kyngesburye) Date: Wed, 22 Apr 2009 13:31:16 -0500 Subject: [mapserver-users] how can I make labels not cover symbols? In-Reply-To: <2922382e0904221042y73231882xe7258366ee03c369@mail.gmail.com> References: <2922382e0904221042y73231882xe7258366ee03c369@mail.gmail.com> Message-ID: On Apr 22, 2009, at 12:42 PM, Thomas Bonfort wrote: >> Yet another idea was to use an annotation layer, but be able to >> specify >> static text for the LABEL. I don't see this option either. >> > > you can do that with the TEXT keyword at the CLASS level. > > CLASS > TEXT '>' > LABEL > FONT "symbolfont" > ... > END > END Ah, I did miss something ;) I just had to adjust priorities so that the symbol layers always draw first (and forced), and now the labels don't cover symbols. ----- William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect From gerald at geoplan.ph Wed Apr 22 11:41:48 2009 From: gerald at geoplan.ph (Gerald Villacarlos) Date: Thu, 23 Apr 2009 02:41:48 +0800 Subject: [mapserver-users] Re: OT ( GIS Developer ) In-Reply-To: <9b394fc70904210950i1cb49292v63717755e0bea6d8@mail.gmail.com> References: <9b394fc70904210950i1cb49292v63717755e0bea6d8@mail.gmail.com> Message-ID: <9b394fc70904221141r5bba32c8x732ec9511c37a75e@mail.gmail.com> I'd like to justify myself and my post before any of you decide how offended you need to get. First of all i clearly state in the subject part as OUT of Topic Posting. So you all have the liberty to read or disregard my post since I already stated that this has nothing to do with the actual current topic or the lack thereof, but some of you read it anyway and I'm thankful for the time you took in checking out my post. So if you feel like I have stepped over a line, then please excuse me. The last time i checked there was nothing wrong with what i did and it was not posted in a forceful manner. Thank you Frank Warmerdam for the suggestion. good day to everyone. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed Apr 22 20:31:38 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 22 Apr 2009 22:31:38 -0500 Subject: [mapserver-users] MapServer Version 5.4.0 Source Released Message-ID: <49EF9ACA0200008F000233DF@co5.dnr.state.mn.us> Hi all: The MapServer PSC is proud to announce the release of MapServer version 5.4. The source code is available for download at: http://mapserver.org/download.html Binary distributions will follow shortly as will a new demo. Nearly 100 tickets were closed as part of this effort. Major feature additions include: * MS RFC 30: Support for WMS 1.3.0 * MS RFC 40: Label text alignment and wrapping * MS RFC 44: Restore URL modification of mapfiles to pre-5.0 levels * MS RFC 47: Move IGNORE_MISSING_DATA to run-time configuration * MS RFC 48: GEOTRANSFORM Geometry operations * MS RFC 49: Symbology, Labeling, and Cartography Improvements * MS RFC 56: Improved security relative to untrusted directories and mapfiles Full RFC text can be found at: http://mapserver.org/development/rfc/ Other notable enhancements include: * improved polygon label placement * re-write of much of the PostGIS driver code The full 5.4.0 change log can be found at: http://trac.osgeo.org/mapserver/browser/tags/rel-5-4-0/mapserver/HISTORY.TXT I would like to thank all the folks that worked hard on this release, your efforts are greatly appreciated! Steve From schroete at iup.physik.uni-bremen.de Thu Apr 23 00:45:11 2009 From: schroete at iup.physik.uni-bremen.de (Heiko =?utf-8?q?Schr=C3=B6ter?=) Date: Thu, 23 Apr 2009 09:45:11 +0200 Subject: [mapserver-users] Passing single quoted strings In-Reply-To: <49EEFA5F0200008F00023393@co5.dnr.state.mn.us> References: <49EEFA5F0200008F00023393@co5.dnr.state.mn.us> Message-ID: <200904230945.12119.schroete@iup.physik.uni-bremen.de> On Mittwoch, 22. April 2009 18:07:11 you wrote: I've tested teh scenario with 3 different filter strings and attached the mapserver error logs with DEBUG 5 (in case need be). The resulting URL strings are taken from apache access log file. Please let me know if you need the full URL. Thanks and Regards Heiko The OL call: sacurabiglayer = new OpenLayers.Layer.WMS( "SACURABIG", "http://kahlo1/cgi-bin/mapserv", {map:'/home/schroete/sciadaten/MapServer/country98/heiko5.map', layers: sacura_big, "map.layer[SACURABIG]": somevalue, transparent: true}, {singleTile:true, isBaseLayer: false, buffer:5, wrapDateLine: true, queryable: true}); Setting of the string in OL: somevalue = "filter "+"'"+" datum between "+"'"+"2002-8-8"+"'"+" and "+"'"+" 2002-8-9 "+"''"; Results: MAP.LAYER%5BSACURABIG%5D=filter%20'%20datum%20between%20'2002-8-8'%20and%20'%202002-8-9%20''& (ms_error_assembled_string.txt) Setting of the string in OL: somevalue = "filter 'datum between '2002-8-8' and '2002-8-9' '"; MAP.LAYER%5BSACURABIG%5D=filter%20'datum%20between%20'2002-8-8'%20and%20'2002-8-9'%20'& (ms_error_unescaped_string.txt) Setting of the string in OL: somevalue = "filter 'datum between \'2002-8-8\' and \'2002-8-9\' '"; MAP.LAYER%5BSACURABIG%5D=filter%20'datum%20between%20'2002-8-8'%20and%20'2002-8-9'%20'& (ms_error_escaped_single_quotes.txt) The Mapfile Layer definition: LAYER CONNECTIONTYPE POSTGIS NAME "SACURABIG" PROCESSING "CLOSE_CONNECTION=DEFER" OPACITY 60 STATUS ON METADATA "wms_title" "sacurabig layer" "wms_srs" "init=epsg:4326" END PROJECTION "init=epsg:4326" END CONNECTION "user=fei password=foo dbname=fum host=kahlo1" DATA "geocenter from sacura_big" VALIDATION 'filter' "^." # Just for testing END FILTER "orbitnr=0" TYPE POINT SIZEUNITS meters CLASS NAME "sacura_big_class" STYLE COLOR [farbe] SYMBOL "circle" SIZE 35000 END END END # Layer > What does the URL OL generate look like? I'm curious how it escapes the > text > for the URL. That should give us a hint. > > Steve > > >>> Heiko Schr?ter 04/21/09 1:53 AM > > Hello, > > i have to pass single quoted strings from Open Layer through mapserver > to a > postgis/postgres database. > > i.e. "filter 'value=1 and datum between '2005-1-1' and '2005-1-3' "; > The postgres db expects (afaik) the date in a single quoted string. > > The problem is that mapserver stops scanning the filter string when > coming > across the second single quote and bails out. > > The Validation string in the mapfile: > VALIDATION > 'filter' "^." > END > > Even when allowing single quotes explicitly by inserting escaped single > quotes > in the validation string it doesn't work. Escaping the single quotes in > the > assembled OL string won't help either. > > Does anyone has an idea of how to pass such strings through mapserver ? > > Now i do use an ugly hack of converting the date to abstime on the > client side > (with all the UTC converting hassle) and pass the integer to the db. > i.e. "filter 'value = 1 and abstime between "+fromDate+" and > "+toDate+"'"; > > MapServer version 5.4.0-rc1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER > INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE > > Thanks and Regards > Heiko > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- [Thu Apr 23 09:25:11 2009].502057 loadLayer(): Unknown identifier. Parsing error near (2002):(line 1) [Thu Apr 23 09:25:11 2009].465405 msDrawMap(): Layer 8 (COPYRIGHT), 0.000s [Thu Apr 23 09:25:11 2009].465929 msDrawMap(): Drawing Label Cache, 0.000s [Thu Apr 23 09:25:11 2009].465955 msDrawMap() total time: 0.013s [Thu Apr 23 09:25:11 2009].526054 msSaveImage() total time: 0.060s [Thu Apr 23 09:25:11 2009].526300 mapserv request processing time (msLoadMap not incl.): 0.075s [Thu Apr 23 09:25:11 2009].526319 msFreeMap(): freeing map at 0x24b04c0. [Thu Apr 23 09:25:11 2009].989454 loadLayer(): Unknown identifier. Parsing error near (2002):(line 1) [Thu Apr 23 09:25:11 2009].733446 msDrawMap(): Layer 0 (KARTE), 0.161s [Thu Apr 23 09:25:11 2009].770097 msDrawMap(): Layer 1 (GRID), 0.036s [Thu Apr 23 09:25:11 2009].771038 msDrawRasterLayerLow(LOGO): entering. [Thu Apr 23 09:25:11 2009].868430 msDrawMap(): Layer 9 (LOGO), 0.098s [Thu Apr 23 09:25:11 2009].868541 msDrawMap(): Drawing Label Cache, 0.000s [Thu Apr 23 09:25:11 2009].868560 msDrawMap() total time: 0.299s [Thu Apr 23 09:25:12 2009].121951 msSaveImage() total time: 0.253s [Thu Apr 23 09:25:12 2009].122137 mapserv request processing time (msLoadMap not incl.): 0.554s [Thu Apr 23 09:25:12 2009].122157 msFreeMap(): freeing map at 0x26d24d0. [Thu Apr 23 09:25:12 2009].145426 msDrawMap(): Layer 8 (COPYRIGHT), 0.000s [Thu Apr 23 09:25:12 2009].145921 msDrawMap(): Drawing Label Cache, 0.000s [Thu Apr 23 09:25:12 2009].145946 msDrawMap() total time: 0.003s [Thu Apr 23 09:25:12 2009].191941 msSaveImage() total time: 0.046s [Thu Apr 23 09:25:12 2009].192561 mapserv request processing time (msLoadMap not incl.): 0.052s [Thu Apr 23 09:25:12 2009].192587 msFreeMap(): freeing map at 0xa1f1d0. [Thu Apr 23 09:25:12 2009].280272 msDrawMap(): Layer 0 (KARTE), 0.200s [Thu Apr 23 09:25:12 2009].327532 msDrawMap(): Layer 1 (GRID), 0.047s [Thu Apr 23 09:25:12 2009].329825 msDrawRasterLayerLow(LOGO): entering. [Thu Apr 23 09:25:12 2009].408793 msDrawMap(): Layer 9 (LOGO), 0.081s [Thu Apr 23 09:25:12 2009].408900 msDrawMap(): Drawing Label Cache, 0.000s [Thu Apr 23 09:25:12 2009].408919 msDrawMap() total time: 0.332s [Thu Apr 23 09:25:12 2009].520515 msSaveImage() total time: 0.112s [Thu Apr 23 09:25:12 2009].520719 mapserv request processing time (msLoadMap not incl.): 0.462s [Thu Apr 23 09:25:12 2009].520739 msFreeMap(): freeing map at 0x14c41f0. -------------- next part -------------- [Thu Apr 23 09:23:58 2009].941639 msDrawMap(): Layer 0 (KARTE), 0.053s [Thu Apr 23 09:23:58 2009].947663 msDrawMap(): Layer 1 (GRID), 0.006s [Thu Apr 23 09:23:58 2009].947688 msDrawRasterLayerLow(LOGO): entering. [Thu Apr 23 09:23:58 2009].949698 msDrawMap(): Layer 9 (LOGO), 0.002s [Thu Apr 23 09:23:58 2009].949725 msDrawMap(): Drawing Label Cache, 0.000s [Thu Apr 23 09:23:58 2009].949733 msDrawMap() total time: 0.062s [Thu Apr 23 09:23:58 2009].969855 msSaveImage() total time: 0.020s [Thu Apr 23 09:23:58 2009].969900 mapserv request processing time (msLoadMap not incl.): 0.092s [Thu Apr 23 09:23:58 2009].969909 msFreeMap(): freeing map at 0x10521e0. [Thu Apr 23 09:23:58 2009].933896 msDrawMap(): Layer 8 (COPYRIGHT), 0.000s [Thu Apr 23 09:23:58 2009].934126 msDrawMap(): Drawing Label Cache, 0.000s [Thu Apr 23 09:23:58 2009].934137 msDrawMap() total time: 0.001s [Thu Apr 23 09:23:58 2009].985501 msSaveImage() total time: 0.051s [Thu Apr 23 09:23:58 2009].985608 mapserv request processing time (msLoadMap not incl.): 0.053s [Thu Apr 23 09:23:58 2009].985617 msFreeMap(): freeing map at 0x1f0e4c0. [Thu Apr 23 09:23:59 2009].49220 msDrawMap(): Layer 8 (COPYRIGHT), 0.000s [Thu Apr 23 09:23:59 2009].49439 msDrawMap(): Drawing Label Cache, 0.000s [Thu Apr 23 09:23:59 2009].49450 msDrawMap() total time: 0.001s [Thu Apr 23 09:23:59 2009].64533 msSaveImage() total time: 0.015s [Thu Apr 23 09:23:59 2009].64640 mapserv request processing time (msLoadMap not incl.): 0.040s [Thu Apr 23 09:23:59 2009].64648 msFreeMap(): freeing map at 0x17341d0. [Thu Apr 23 09:23:59 2009].10042 msDrawMap(): Layer 0 (KARTE), 0.232s [Thu Apr 23 09:23:59 2009].31302 msDrawMap(): Layer 1 (GRID), 0.021s [Thu Apr 23 09:23:59 2009].31724 msDrawRasterLayerLow(LOGO): entering. [Thu Apr 23 09:23:59 2009].83472 msDrawMap(): Layer 9 (LOGO), 0.052s [Thu Apr 23 09:23:59 2009].83528 msDrawMap(): Drawing Label Cache, 0.000s [Thu Apr 23 09:23:59 2009].83536 msDrawMap() total time: 0.308s [Thu Apr 23 09:23:59 2009].126123 msSaveImage() total time: 0.043s [Thu Apr 23 09:23:59 2009].126211 mapserv request processing time (msLoadMap not incl.): 0.353s [Thu Apr 23 09:23:59 2009].126219 msFreeMap(): freeing map at 0xfac4d0. [Thu Apr 23 09:23:59 2009].14401 msDrawMap(): Layer 0 (KARTE), 0.123s [Thu Apr 23 09:23:59 2009].45864 msDrawMap(): Layer 1 (GRID), 0.031s [Thu Apr 23 09:23:59 2009].46274 msDrawRasterLayerLow(LOGO): entering. [Thu Apr 23 09:23:59 2009].98074 msDrawMap(): Layer 9 (LOGO), 0.052s [Thu Apr 23 09:23:59 2009].98127 msDrawMap(): Drawing Label Cache, 0.000s [Thu Apr 23 09:23:59 2009].98136 msDrawMap() total time: 0.209s [Thu Apr 23 09:23:59 2009].155909 msSaveImage() total time: 0.058s [Thu Apr 23 09:23:59 2009].156008 mapserv request processing time (msLoadMap not incl.): 0.285s [Thu Apr 23 09:23:59 2009].156017 msFreeMap(): freeing map at 0x267f1f0. -------------- next part -------------- [Thu Apr 23 09:35:01 2009].63750 msDrawMap(): Layer 8 (COPYRIGHT), 0.001s [Thu Apr 23 09:35:01 2009].63998 msDrawMap(): Drawing Label Cache, 0.000s [Thu Apr 23 09:35:01 2009].64010 msDrawMap() total time: 0.002s [Thu Apr 23 09:35:01 2009].106819 msSaveImage() total time: 0.043s [Thu Apr 23 09:35:01 2009].106932 mapserv request processing time (msLoadMap not incl.): 0.046s [Thu Apr 23 09:35:01 2009].106940 msFreeMap(): freeing map at 0x15581d0. [Thu Apr 23 09:35:01 2009].143907 msDrawMap(): Layer 8 (COPYRIGHT), 0.000s [Thu Apr 23 09:35:01 2009].144119 msDrawMap(): Drawing Label Cache, 0.000s [Thu Apr 23 09:35:01 2009].144130 msDrawMap() total time: 0.001s [Thu Apr 23 09:35:01 2009].160356 msSaveImage() total time: 0.016s [Thu Apr 23 09:35:01 2009].160465 mapserv request processing time (msLoadMap not incl.): 0.018s [Thu Apr 23 09:35:01 2009].160473 msFreeMap(): freeing map at 0x9ea4c0. [Thu Apr 23 09:35:01 2009].115556 msDrawMap(): Layer 0 (KARTE), 0.027s [Thu Apr 23 09:35:01 2009].212072 msDrawMap(): Layer 1 (GRID), 0.096s [Thu Apr 23 09:35:01 2009].212136 msDrawRasterLayerLow(LOGO): entering. [Thu Apr 23 09:35:01 2009].214276 msDrawMap(): Layer 9 (LOGO), 0.002s [Thu Apr 23 09:35:01 2009].214304 msDrawMap(): Drawing Label Cache, 0.000s [Thu Apr 23 09:35:01 2009].214312 msDrawMap() total time: 0.126s [Thu Apr 23 09:35:01 2009].217904 msSaveImage() total time: 0.004s [Thu Apr 23 09:35:01 2009].217956 mapserv request processing time (msLoadMap not incl.): 0.130s [Thu Apr 23 09:35:01 2009].217964 msFreeMap(): freeing map at 0x10dc1e0. [Thu Apr 23 09:35:01 2009].71492 msDrawMap(): Layer 0 (KARTE), 0.099s [Thu Apr 23 09:35:01 2009].151667 msDrawMap(): Layer 1 (GRID), 0.080s [Thu Apr 23 09:35:01 2009].152070 msDrawRasterLayerLow(LOGO): entering. [Thu Apr 23 09:35:01 2009].206755 msDrawMap(): Layer 9 (LOGO), 0.055s [Thu Apr 23 09:35:01 2009].206810 msDrawMap(): Drawing Label Cache, 0.000s [Thu Apr 23 09:35:01 2009].206820 msDrawMap() total time: 0.236s [Thu Apr 23 09:35:01 2009].294824 msSaveImage() total time: 0.088s [Thu Apr 23 09:35:01 2009].294928 mapserv request processing time (msLoadMap not incl.): 0.327s [Thu Apr 23 09:35:01 2009].294937 msFreeMap(): freeing map at 0x230b1f0. [Thu Apr 23 09:35:01 2009].194030 msDrawMap(): Layer 0 (KARTE), 0.086s [Thu Apr 23 09:35:01 2009].234645 msDrawMap(): Layer 1 (GRID), 0.040s [Thu Apr 23 09:35:01 2009].235052 msDrawRasterLayerLow(LOGO): entering. [Thu Apr 23 09:35:01 2009].284342 msDrawMap(): Layer 9 (LOGO), 0.050s [Thu Apr 23 09:35:01 2009].284397 msDrawMap(): Drawing Label Cache, 0.000s [Thu Apr 23 09:35:01 2009].284406 msDrawMap() total time: 0.177s [Thu Apr 23 09:35:01 2009].332824 msSaveImage() total time: 0.048s [Thu Apr 23 09:35:01 2009].332918 mapserv request processing time (msLoadMap not incl.): 0.226s [Thu Apr 23 09:35:01 2009].332927 msFreeMap(): freeing map at 0x25d54d0. From dominik.schmid at ilu.ch Thu Apr 23 01:18:06 2009 From: dominik.schmid at ilu.ch (Dominik Schmid) Date: Thu, 23 Apr 2009 10:18:06 +0200 Subject: [mapserver-users] msEvalRegex problem (Mapserver 5.2.2) In-Reply-To: <49EEF1BE0200008F00023379@co5.dnr.state.mn.us> References: <49EEF1BE0200008F00023379@co5.dnr.state.mn.us> Message-ID: <17329943-01B7-4D6D-A6BE-CDF66D012CB2@ilu.ch> Hi Steve, hello Daniel this was indeed the issue I encountered. Thanks very much for the fast reply. I'm now even able to run MS 5.4.0 final on our test system. IMHO the suggested fix should make it into the 5.4.1 release. For the time being I will tweak our Fusion (1.06) Query.php. AFAIK the Fusion 2.0 beta also uses "query.qry". I'm not aware of any other extensions out there. Thanks, again and best regards Dominik On 22.04.2009, at 17:30, Steve Lime wrote: > Hi Dominik: The extension for queryfiles should be .qy not .qry. > The .qy is > what the CGI writes. I missed the fact the mapscript allows the user > to specify > their own extension. Versions 5.2.2 and up enforce that. Argh... > > How to fix. Couple of options: > > - tweak fusion to write queries using .qy as an extension > - tweak MapServer to recognize .qry as a legitimate extension > > To do the later you can edit mapquery.c, line 127 and change: > > if(msEvalRegex("\\.qy$", filename) != MS_TRUE) return MS_FAILURE; > > to: > > if(msEvalRegex("\\.(qy|qry)$", filename) != MS_TRUE) return > MS_FAILURE; > > If I knew there were a couple of common extensions being used out > there I could > update this pattern in 5.4.1. > > Steve > >>>> Dominik Schmid 04/22/09 10:14 AM >>> > Hi list > > once again I have to turn to the list as a last resort after having > depleted all possible solutions which I've come across. We're running > Mapserver/PHP/Mapscript/Fusion on a CentOS installation which we've > recently upgraded to 5.3. The upgrade has so far been successful > except for one problem: > > When I compile Mapserver 5.2.2 or 5.4.0RC2 (with mapscript support) > against the updated libraries etc. the resulting mapserv works fine > (as far as tested) except when I select a feature (through the Fusion > web map application, all data is pulled from the postgres database) it > throws an error like: > > msEvalRegex(): Regular expression error. String (/var/lib/php/session/ > sess_49ef23ad8b84e/query.qry) failed expression test. > > If I compile Mapserver 5.2.0 on the same upgraded system this works > fine as it had before on the original system (Centos 4.4). > > I always used the correct php_mapscript.so and did a proper httpd > restart. > > Originally I had GDAL 1.4 compiled on the system, tried with removal > and changing to the EPEL-Version (1.4.2) and after further failure > tried with removal (also removing librx) and compiling GDAL 1.6.0 from > source which didn't change a thing. I did this after reading some > threads on this list ( http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055638.html > ). > > Some more version details: > - php 5.2.6 (from the C5-testing repo) > - postgresql 8.2.9 (from the C5-testing repo) > - postgis 1.3.1 > > Generally I tried to avoid the installation from turning into a > frankenbuild system but since the offical repos don't provide all our > needs I had to resort to rolling my own in some cases. > > > Any hint is greatly appreciated. > > Best regards > Dominik > > > -- > Dominik Schmid > Dipl. Umweltnaturwissenschafter ETH > > ilu AG > Zentralstrasse 2a > CH-8610 Uster > > Tel: +41 44 / 944 55 56 (Direktwahl) > Tel: +41 44 / 944 55 55 (allgemein) > Fax: +41 44 / 944 55 66 > > mailto:dominik.schmid at ilu.ch > http://www.ilu.ch > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Dominik Schmid Dipl. Umweltnaturwissenschafter ETH ilu AG Zentralstrasse 2a CH-8610 Uster Tel: +41 44 / 944 55 56 (Direktwahl) Tel: +41 44 / 944 55 55 (allgemein) Fax: +41 44 / 944 55 66 mailto:dominik.schmid at ilu.ch http://www.ilu.ch From dmorissette at mapgears.com Thu Apr 23 06:46:28 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 23 Apr 2009 09:46:28 -0400 Subject: [mapserver-users] msEvalRegex problem (Mapserver 5.2.2) In-Reply-To: <17329943-01B7-4D6D-A6BE-CDF66D012CB2@ilu.ch> References: <49EEF1BE0200008F00023379@co5.dnr.state.mn.us> <17329943-01B7-4D6D-A6BE-CDF66D012CB2@ilu.ch> Message-ID: <49F07134.5020403@mapgears.com> Dominik Schmid wrote: > > IMHO the suggested fix should make it into the 5.4.1 release. For the > time being I will tweak our Fusion (1.06) Query.php. AFAIK the Fusion > 2.0 beta also uses "query.qry". I'm not aware of any other extensions > out there. > I'd suggest you file a Fusion ticket about this if that's not already done so that the fix makes it in the release: http://trac.osgeo.org/fusion/ Daniel -- Daniel Morissette http://www.mapgears.com/ From manojkapil06 at gmail.com Thu Apr 23 08:06:51 2009 From: manojkapil06 at gmail.com (zizu) Date: Thu, 23 Apr 2009 08:06:51 -0700 (PDT) Subject: [mapserver-users] PHP Mapscript - Failed writing image Message-ID: <1240499211041-2683801.post@n2.nabble.com> HI, I have installed FGS mapserver 5.2.1 on fedora 9 . i am trying to work out the php-mapscript example given in the mapserver document. when i tested the example it bounces following error .. Warning: [MapServer Error]: msSaveImageGD(): Unable to open file /tmp/ms_tmp/49f07913_b51_0.png for writing in /home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.php on line 7 Fatal error: Failed writing image to /tmp/ms_tmp/49f07913_b51_0.png in /home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.php on line 7 i thought it could me a problem of file permission, i checked but it was under the user control... i tried lot to find out the clue but no solution yet.... what could be a problem?... This is my first php-mapscript application.... someone please help me out.... herewith am attaching the map file and the php file for your perusal.... help and tips will be appreciated.... http://n2.nabble.com/file/n2683801/test.map test.map http://n2.nabble.com/file/n2683801/test.php test.php Thanks, zizu -- View this message in context: http://n2.nabble.com/PHP-Mapscript---Failed-writing-image-tp2683801p2683801.html Sent from the Mapserver - User mailing list archive at Nabble.com. From leonidas_liakos at yahoo.gr Thu Apr 23 08:57:05 2009 From: leonidas_liakos at yahoo.gr (leonidas) Date: Thu, 23 Apr 2009 08:57:05 -0700 (PDT) Subject: [mapserver-users] Geomoose and error at displaying Class name In-Reply-To: <1240414508479-2676918.post@n2.nabble.com> References: <1240414508479-2676918.post@n2.nabble.com> Message-ID: <1240502225117-2684117.post@n2.nabble.com> Ok I found it. It was a mapfile issue. I should have define some properties for LEGEND so the final block for me is: LEGEND LABEL ENCODING ISO-8859-7 TYPE TRUETYPE FONT 'TAHOMA' ANTIALIAS true SIZE 9 END END -- View this message in context: http://n2.nabble.com/Geomoose-and-error-at-displaying-Class-name-tp2676918p2684117.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jlacroix at mapgears.com Thu Apr 23 10:32:23 2009 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Thu, 23 Apr 2009 13:32:23 -0400 Subject: [mapserver-users] PHP Mapscript - Failed writing image In-Reply-To: <1240499211041-2683801.post@n2.nabble.com> References: <1240499211041-2683801.post@n2.nabble.com> Message-ID: <49F0A627.90005@mapgears.com> Hi, I usually get errors like that when /tmp/ms_tmp/ doesn't exist. Julien zizu wrote: > HI, > > I have installed FGS mapserver 5.2.1 on fedora 9 . i am trying to work out > the php-mapscript example given in the mapserver document. when i tested the > example it bounces following error .. > > Warning: [MapServer Error]: msSaveImageGD(): Unable to open file > /tmp/ms_tmp/49f07913_b51_0.png for writing in > /home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.php on > line 7 > > Fatal error: Failed writing image to /tmp/ms_tmp/49f07913_b51_0.png in > /home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.php on > line 7 > > i thought it could me a problem of file permission, i checked but it was > under the user control... i tried lot to find out the clue but no solution > yet.... > > what could be a problem?... This is my first php-mapscript application.... > someone please help me out.... > > herewith am attaching the map file and the php file for your perusal.... > > help and tips will be appreciated.... > > http://n2.nabble.com/file/n2683801/test.map test.map > > http://n2.nabble.com/file/n2683801/test.php test.php > > > Thanks, > zizu -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From Yvonne.Yuen at ec.gc.ca Thu Apr 23 11:12:59 2009 From: Yvonne.Yuen at ec.gc.ca (Yuen,Yvonne [Ontario]) Date: Thu, 23 Apr 2009 14:12:59 -0400 Subject: [mapserver-users] Environment Canada seeking experienced Web Mapping Programmers Message-ID: Environment Canada is looking for experienced Web Mapping Programmers. If you are interested in a position with our team and have experience and knowledge of incorporating mapping functionality into web-based solutions please send an email to Yvonne Yuen ( Yvonne.Yuen at ec.gc.ca ) along with your resum?. Based on the information provided, suitable candidates will be notified when the job is officially posted on the Government of Canada web site. We are looking for candidates with significant experience and knowledge in ESRI's ArcIMS or ArcGIS Server with ArcSDE. We also require experience and knowledge in Visual Studio 2008 and MS SQL Server 2005. Experience with Open Source web mapping technology (MapServer) will be considered an asset. Due to our diversified areas of expertise, you will be exposed to many different facets of the Computer Science discipline. You will be given real responsibilities and take satisfaction in seeing your work being used in a real-time operational environment. We offer a challenging and dynamic working environment. We offer some flexibility with work hours. We have a culture of "Putting People First". Environment Canada's mandate is to preserve and enhance the quality of the natural environment, including water, air and soil quality; conserve Canada's renewable resources; conserve and protect Canada's water resources; carry out meteorology; enforce the mandate of Canada - United States International Joint Commission relating to boundary waters; and coordinate environmental policies and programs for the federal government. Our mission is to make sustainable development a reality in Canada by helping Canadians live and prosper in an environment that needs to be respected, protected and conserved. At Environment Canada we value our environment and its vital importance to the identity and well-being of present and future generations; the dedication and team-work of our people and integrity, trust and mutual respect in our working relationships; the contribution of the natural and social sciences to environmentally responsible decision making; the exercise, by all Canadians, of a shared responsibility for our environment; the contribution of our leadership to the achievement of sustainable development; and the provision of quality service to the public. Please visit our website at: http://www.ec.gc.ca/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Yvonne.Yuen at ec.gc.ca Thu Apr 23 11:37:05 2009 From: Yvonne.Yuen at ec.gc.ca (Yuen,Yvonne [Ontario]) Date: Thu, 23 Apr 2009 14:37:05 -0400 Subject: [mapserver-users] Environment Canada seeking experienced WebMapping Programmers Message-ID: I have been made aware that this is not the right list to post this message. This will be posted to the OSGeo jobs mailing list instead. Sorry for the inconvenience. Yvonne > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > > Yuen,Yvonne [Ontario] > > Sent: Thursday, 23 April 2009 14:13 > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] Environment Canada seeking experienced > > WebMapping Programmers > > > > Environment Canada is looking for experienced Web Mapping > Programmers. > > > > If you are interested in a position with our team and have > experience > > and knowledge of incorporating mapping functionality into web-based > > solutions please send an email to Yvonne Yuen ( > Yvonne.Yuen at ec.gc.ca > > ) along with your resum?. > > Based on the information provided, suitable candidates will be > > notified when the job is officially posted on the > Government of Canada > > web site. > > > > We are looking for candidates with significant experience and > > knowledge in ESRI's ArcIMS or ArcGIS Server with ArcSDE. We also > > require experience and knowledge in Visual Studio 2008 and MS SQL > > Server 2005. Experience with Open Source web mapping technology > > (MapServer) will be considered an asset. > > > > Due to our diversified areas of expertise, you will be > exposed to many > > different facets of the Computer Science discipline. > > > > You will be given real responsibilities and take satisfaction in > > seeing your work being used in a real-time operational environment. > > > > We offer a challenging and dynamic working environment. > > We offer some flexibility with work hours. > > We have a culture of "Putting People First". > > > > Environment Canada's mandate is to preserve and enhance the > quality of > > the natural environment, including water, air and soil quality; > > conserve Canada's renewable resources; conserve and protect > Canada's > > water resources; carry out meteorology; enforce the mandate > of Canada > > - United States International Joint Commission relating to boundary > > waters; and coordinate environmental policies and programs for the > > federal government. > > > > Our mission is to make sustainable development a reality in > Canada by > > helping Canadians live and prosper in an environment that > needs to be > > respected, protected and conserved. > > > > At Environment Canada we value our environment and its vital > > importance to the identity and well-being of present and future > > generations; the dedication and team-work of our people and > integrity, > > trust and mutual respect in our working relationships; the > > contribution of the natural and social sciences to environmentally > > responsible decision making; the exercise, by all Canadians, of a > > shared responsibility for our environment; the contribution of our > > leadership to the achievement of sustainable development; and the > > provision of quality service to the public. > > > > Please visit our website at: http://www.ec.gc.ca/ > > > > > > > > > > From Yvonne.Yuen at ec.gc.ca Thu Apr 23 11:37:28 2009 From: Yvonne.Yuen at ec.gc.ca (Yuen,Yvonne [Ontario]) Date: Thu, 23 Apr 2009 14:37:28 -0400 Subject: [mapserver-users] Recall: Environment Canada seeking experienced WebMapping Programmers Message-ID: Yuen,Yvonne [Ontario] would like to recall the message, " Environment Canada seeking experienced WebMapping Programmers". From Yvonne.Yuen at ec.gc.ca Thu Apr 23 11:40:28 2009 From: Yvonne.Yuen at ec.gc.ca (Yuen,Yvonne [Ontario]) Date: Thu, 23 Apr 2009 14:40:28 -0400 Subject: [mapserver-users] Re: Environment Canada seeking experienced WebMapping Programmers Message-ID: I have been made aware that this is not the appropriate list to post this message. This will be posted to the OSGeo jobs mailing list instead. Sorry for the inconvenience. Yvonne > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > > Yuen,Yvonne [Ontario] > > Sent: Thursday, 23 April 2009 14:13 > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] Environment Canada seeking experienced > > WebMapping Programmers > > > > Environment Canada is looking for experienced Web Mapping > Programmers. > > > > If you are interested in a position with our team and have > experience > > and knowledge of incorporating mapping functionality into web-based > > solutions please send an email to Yvonne Yuen ( > Yvonne.Yuen at ec.gc.ca > > ) along with your resum?. > > Based on the information provided, suitable candidates will be > > notified when the job is officially posted on the > Government of Canada > > web site. > > > > We are looking for candidates with significant experience and > > knowledge in ESRI's ArcIMS or ArcGIS Server with ArcSDE. We also > > require experience and knowledge in Visual Studio 2008 and MS SQL > > Server 2005. Experience with Open Source web mapping technology > > (MapServer) will be considered an asset. > > > > Due to our diversified areas of expertise, you will be > exposed to many > > different facets of the Computer Science discipline. > > > > You will be given real responsibilities and take satisfaction in > > seeing your work being used in a real-time operational environment. > > > > We offer a challenging and dynamic working environment. > > We offer some flexibility with work hours. > > We have a culture of "Putting People First". > > > > Environment Canada's mandate is to preserve and enhance the > quality of > > the natural environment, including water, air and soil quality; > > conserve Canada's renewable resources; conserve and protect > Canada's > > water resources; carry out meteorology; enforce the mandate > of Canada > > - United States International Joint Commission relating to boundary > > waters; and coordinate environmental policies and programs for the > > federal government. > > > > Our mission is to make sustainable development a reality in > Canada by > > helping Canadians live and prosper in an environment that > needs to be > > respected, protected and conserved. > > > > At Environment Canada we value our environment and its vital > > importance to the identity and well-being of present and future > > generations; the dedication and team-work of our people and > integrity, > > trust and mutual respect in our working relationships; the > > contribution of the natural and social sciences to environmentally > > responsible decision making; the exercise, by all Canadians, of a > > shared responsibility for our environment; the contribution of our > > leadership to the achievement of sustainable development; and the > > provision of quality service to the public. > > > > Please visit our website at: http://www.ec.gc.ca/ > > > > > > > > > > From romero619 at hotmail.com Thu Apr 23 13:18:23 2009 From: romero619 at hotmail.com (P.Romero) Date: Thu, 23 Apr 2009 15:18:23 -0500 Subject: [mapserver-users] WEB parameters in mapfile being ignored Message-ID: I just compiled/installed the 5.4.0 versions of mapserver & mapscript. Im loading a mapfile from php, drawing & saving the image using '$image->saveWebImage()'. However, the WEB parameters for IMAGEPATH & IMAGEURL in my mapfile are being ignored. The file is being saved in the same directory as the php file that has the mapscript being called to draw the map. Even the LOG parameter is being ignored. How can I debug & find out why my WEB parameters are being ignored? Please help, Thanks, P.Romero From Steve.Lime at dnr.state.mn.us Thu Apr 23 13:39:28 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 23 Apr 2009 15:39:28 -0500 Subject: [mapserver-users] WEB parameters in mapfile being ignored In-Reply-To: References: Message-ID: <49F08BB0.5157.008F.0@dnr.state.mn.us> They're ignored for security reasons. It's simply not a good idea to allow an outside user to change where files are being written. They were only ever changeable for the sake of convenience when configuring a demo- not a good reason. Fix is easy, just edit your mapfile and set IMAGEPATH and IMAGEURL appropriately in the WEB section. Steve >>> On 4/23/2009 at 3:18 PM, in message , "P.Romero" wrote: > I just compiled/installed the 5.4.0 versions of mapserver & mapscript. > > Im loading a mapfile from php, drawing & saving the image using > '$image->saveWebImage()'. > > However, the WEB parameters for IMAGEPATH & IMAGEURL in my mapfile are being > ignored. > The file is being saved in the same directory as the php file that has the > mapscript being called to draw the map. > Even the LOG parameter is being ignored. > > How can I debug & find out why my WEB parameters are being ignored? > > Please help, > Thanks, > P.Romero > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From arnd.wippermann at web.de Thu Apr 23 13:09:33 2009 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Thu, 23 Apr 2009 22:09:33 +0200 Subject: AW: [mapserver-users] Passing single quoted strings In-Reply-To: <200904230945.12119.schroete@iup.physik.uni-bremen.de> Message-ID: Hi, Another possibility: somevalue = "filter \"datum between '2002-8-8' and '2002-8-9'\""; Perhaps this works. Arnd -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Heiko Schr?ter Gesendet: Donnerstag, 23. April 2009 09:45 An: Steve Lime; mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] Passing single quoted strings On Mittwoch, 22. April 2009 18:07:11 you wrote: I've tested teh scenario with 3 different filter strings and attached the mapserver error logs with DEBUG 5 (in case need be). The resulting URL strings are taken from apache access log file. Please let me know if you need the full URL. Thanks and Regards Heiko The OL call: sacurabiglayer = new OpenLayers.Layer.WMS( "SACURABIG", "http://kahlo1/cgi-bin/mapserv", {map:'/home/schroete/sciadaten/MapServer/country98/heiko5.map', layers: sacura_big, "map.layer[SACURABIG]": somevalue, transparent: true}, {singleTile:true, isBaseLayer: false, buffer:5, wrapDateLine: true, queryable: true}); Setting of the string in OL: somevalue = "filter "+"'"+" datum between "+"'"+"2002-8-8"+"'"+" and "+"'"+" 2002-8-9 "+"''"; Results: MAP.LAYER%5BSACURABIG%5D=filter%20'%20datum%20between%20'2002-8-8'%20and%20' %202002-8-9%20''& (ms_error_assembled_string.txt) Setting of the string in OL: somevalue = "filter 'datum between '2002-8-8' and '2002-8-9' '"; MAP.LAYER%5BSACURABIG%5D=filter%20'datum%20between%20'2002-8-8'%20and%20'200 2-8-9'%20'& (ms_error_unescaped_string.txt) Setting of the string in OL: somevalue = "filter 'datum between \'2002-8-8\' and \'2002-8-9\' '"; MAP.LAYER%5BSACURABIG%5D=filter%20'datum%20between%20'2002-8-8'%20and%20'200 2-8-9'%20'& (ms_error_escaped_single_quotes.txt) The Mapfile Layer definition: LAYER CONNECTIONTYPE POSTGIS NAME "SACURABIG" PROCESSING "CLOSE_CONNECTION=DEFER" OPACITY 60 STATUS ON METADATA "wms_title" "sacurabig layer" "wms_srs" "init=epsg:4326" END PROJECTION "init=epsg:4326" END CONNECTION "user=fei password=foo dbname=fum host=kahlo1" DATA "geocenter from sacura_big" VALIDATION 'filter' "^." # Just for testing END FILTER "orbitnr=0" TYPE POINT SIZEUNITS meters CLASS NAME "sacura_big_class" STYLE COLOR [farbe] SYMBOL "circle" SIZE 35000 END END END # Layer > What does the URL OL generate look like? I'm curious how it escapes > the text for the URL. That should give us a hint. > > Steve > > >>> Heiko Schr?ter 04/21/09 1:53 > >>> AM > > Hello, > > i have to pass single quoted strings from Open Layer through mapserver > to a postgis/postgres database. > > i.e. "filter 'value=1 and datum between '2005-1-1' and '2005-1-3' "; > The postgres db expects (afaik) the date in a single quoted string. > > The problem is that mapserver stops scanning the filter string when > coming across the second single quote and bails out. > > The Validation string in the mapfile: > VALIDATION > 'filter' "^." > END > > Even when allowing single quotes explicitly by inserting escaped > single quotes in the validation string it doesn't work. Escaping the > single quotes in the assembled OL string won't help either. > > Does anyone has an idea of how to pass such strings through mapserver ? > > Now i do use an ugly hack of converting the date to abstime on the > client side (with all the UTC converting hassle) and pass the integer > to the db. > i.e. "filter 'value = 1 and abstime between "+fromDate+" and > "+toDate+"'"; > > MapServer version 5.4.0-rc1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS > INPUT=SHAPEFILE > > Thanks and Regards > Heiko > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From romero619 at hotmail.com Thu Apr 23 13:53:59 2009 From: romero619 at hotmail.com (P.Romero) Date: Thu, 23 Apr 2009 15:53:59 -0500 Subject: [mapserver-users] WEB parameters in mapfile being ignored In-Reply-To: <49F08BB0.5157.008F.0@dnr.state.mn.us> References: <49F08BB0.5157.008F.0@dnr.state.mn.us> Message-ID: The parameters I was referring to *are*, in fact, those in my mapfile. My mapfile contains this: WEB LOG "/data/www/html/dev/mslog" IMAGEPATH "/data/www/html/images/mapserver/tmp/" IMAGEURL "/images/mapserver/tmp/" END (I made sure that permissions for these directories are writable by apache). But my 'map.php' file is here: /data/www/html/dev So, calling '$image->saveWebImage()' causes the resulting .gif file to be placed in '/data/www/html/dev' instead of the path listed in my mapfile. Any idea why this could be happening? P.R. -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: 2009-04-23 3:39 PM To: P.Romero; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WEB parameters in mapfile being ignored They're ignored for security reasons. It's simply not a good idea to allow an outside user to change where files are being written. They were only ever changeable for the sake of convenience when configuring a demo- not a good reason. Fix is easy, just edit your mapfile and set IMAGEPATH and IMAGEURL appropriately in the WEB section. Steve >>> On 4/23/2009 at 3:18 PM, in message , "P.Romero" wrote: > I just compiled/installed the 5.4.0 versions of mapserver & mapscript. > > Im loading a mapfile from php, drawing & saving the image using > '$image->saveWebImage()'. > > However, the WEB parameters for IMAGEPATH & IMAGEURL in my mapfile are > being ignored. > The file is being saved in the same directory as the php file that has > the mapscript being called to draw the map. > Even the LOG parameter is being ignored. > > How can I debug & find out why my WEB parameters are being ignored? > > Please help, > Thanks, > P.Romero > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From mrdouville at shaw.ca Thu Apr 23 13:59:57 2009 From: mrdouville at shaw.ca (Michelle Douvil) Date: Thu, 23 Apr 2009 13:59:57 -0700 (PDT) Subject: [mapserver-users] GetFeatureINFO errors in Mapserver not occurring in Geoserver. Message-ID: <1240520397380-2686390.post@n2.nabble.com> We have data that is in Oracle 10.2.0.2 Enterprise Edition with ArcSDE 9.1 General Update Patch 3. We have several spatial views that are causing us issues when GetFeatureINFO is requested via Mapserver 5.2. The result is an SDE error. SE_stream_fetch_row(): Invalid parameter value passed to function. (-66). However, using Geoserver 1.7.3 to the same data the GetFeatureINFO request is successful. Any thoughts as to why Mapserver has issues but Geoserver does not? The Spatial View given in the example below is a simple view (no where clauses or join statements). We have re-registered the Spatial view with the sde to make sure the objectid was correct. Looks like Geoserver 1.7.3 doesn?t mind GetFeatureINFO on SCHEMA.AEI_AIR_QUALITY_AOI_SVW Whereas Mapserver 5.2 gets confused.. see examples below http://server/geoserver/wms?service=wms&request=getFeatureInfo&version=1.1.1&layers=prod:AOIAEI&query_layers=prod:AOIAEI&width=500&height=500&SRS=EPSG:4326&BBOX=-126.94250575451,54.5026638549918,-126.72424645805,54.6394718590618&x=200&y=200&info_format=text/plain Results for FeatureType 'AOIAEI': -------------------------------------------- geometry = [GEOMETRY (Polygon) with 22 points] air_quality_aoi_id = 66 aoi_name = Bulkley Valley / Lakes District status = Plan Established feature_code = FF00595000 -------------------------------------------- http://server/mapserver/air-climate?service=wms&request=getFeatureInfo&version=1.1.1&layers=AEI_AIR_QUALITY_AOI_O&query_layers=AEI_AIR_QUALITY_AOI_O&width=500&height=500&SRS=EPSG:4326&BBOX=-126.94250575451,54.5026638549918,-126.72424645805,54.6394718590618&x=200&y=200&info_format=text/plain GetFeatureInfo results: Layer 'AEI_AIR_QUALITY_AOI_O' Content-type: application/vnd.ogc.se_xml msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid parameter value passed to function. (-66) many thanks for any assistance. -- View this message in context: http://n2.nabble.com/GetFeatureINFO-errors-in-Mapserver-not-occurring-in-Geoserver.-tp2686390p2686390.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Thu Apr 23 14:08:05 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 23 Apr 2009 16:08:05 -0500 Subject: [mapserver-users] WEB parameters in mapfile being ignored In-Reply-To: References: <49F08BB0.5157.008F.0@dnr.state.mn.us> Message-ID: <49F09266.5157.008F.0@dnr.state.mn.us> My bad, didn't read your message closely enough, sorry. That said, I don't know why you're seeing what you're seeing. If you print out the values of those parameters before you save the image what do you see? Steve >>> On 4/23/2009 at 3:53 PM, in message , "P.Romero" wrote: > The parameters I was referring to *are*, in fact, those in my mapfile. > My mapfile contains this: > WEB > LOG "/data/www/html/dev/mslog" > IMAGEPATH "/data/www/html/images/mapserver/tmp/" > IMAGEURL "/images/mapserver/tmp/" > END > (I made sure that permissions for these directories are writable by apache). > > But my 'map.php' file is here: > /data/www/html/dev > > So, calling '$image->saveWebImage()' causes the resulting .gif file to be > placed in '/data/www/html/dev' instead of the path listed in my mapfile. > > Any idea why this could be happening? > > P.R. > > -----Original Message----- > From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] > Sent: 2009-04-23 3:39 PM > To: P.Romero; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] WEB parameters in mapfile being ignored > > They're ignored for security reasons. It's simply not a good idea to allow > an outside user to change where files are being written. They were only ever > changeable for the sake of convenience when configuring a demo- not a good > reason. > > Fix is easy, just edit your mapfile and set IMAGEPATH and IMAGEURL > appropriately in the WEB section. > > Steve > >>>> On 4/23/2009 at 3:18 PM, in message > , "P.Romero" > wrote: >> I just compiled/installed the 5.4.0 versions of mapserver & mapscript. >> >> Im loading a mapfile from php, drawing & saving the image using >> '$image->saveWebImage()'. >> >> However, the WEB parameters for IMAGEPATH & IMAGEURL in my mapfile are >> being ignored. >> The file is being saved in the same directory as the php file that has >> the mapscript being called to draw the map. >> Even the LOG parameter is being ignored. >> >> How can I debug & find out why my WEB parameters are being ignored? >> >> Please help, >> Thanks, >> P.Romero >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Thu Apr 23 14:11:41 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 23 Apr 2009 16:11:41 -0500 Subject: [mapserver-users] GetFeatureINFO errors in Mapserver not occurringin Geoserver. In-Reply-To: <1240520397380-2686390.post@n2.nabble.com> References: <1240520397380-2686390.post@n2.nabble.com> Message-ID: <49F0933E.5157.008F.0@dnr.state.mn.us> Sounds like more of an SDE problem than WMS. Can you query the SDE layer outside of WMS just using MapServer queries? Steve >>> On 4/23/2009 at 3:59 PM, in message <1240520397380-2686390.post at n2.nabble.com>, Michelle Douvil wrote: > > We have data that is in Oracle 10.2.0.2 Enterprise Edition with ArcSDE 9.1 > General Update Patch 3. > We have several spatial views that are causing us issues when GetFeatureINFO > is requested via Mapserver 5.2. The result is an SDE error. > SE_stream_fetch_row(): Invalid parameter value passed to function. (-66). > However, using Geoserver 1.7.3 to the same data the GetFeatureINFO request > is successful. Any thoughts as to why Mapserver has issues but Geoserver > does not? > > The Spatial View given in the example below is a simple view (no where > clauses or join statements). We have re-registered the Spatial view with the > sde to make sure the objectid was correct. > > Looks like Geoserver 1.7.3 doesn?t mind GetFeatureINFO on > SCHEMA.AEI_AIR_QUALITY_AOI_SVW > Whereas Mapserver 5.2 gets confused.. see examples below > > > http://server/geoserver/wms?service=wms&request=getFeatureInfo&version=1.1.1&la > yers=prod:AOIAEI&query_layers=prod:AOIAEI&width=500&height=500&SRS=EPSG:4326&BBOX= > -126.94250575451,54.5026638549918,-126.72424645805,54.6394718590618&x=200&y=200& > info_format=text/plain > > > Results for FeatureType 'AOIAEI': > -------------------------------------------- > geometry = [GEOMETRY (Polygon) with 22 points] > air_quality_aoi_id = 66 > aoi_name = Bulkley Valley / Lakes District > status = Plan Established > feature_code = FF00595000 > -------------------------------------------- > > > > http://server/mapserver/air-climate?service=wms&request=getFeatureInfo&version > =1.1.1&layers=AEI_AIR_QUALITY_AOI_O&query_layers=AEI_AIR_QUALITY_AOI_O&width=500& > height=500&SRS=EPSG:4326&BBOX=-126.94250575451,54.5026638549918,-126.7242464580 > 5,54.6394718590618&x=200&y=200&info_format=text/plain > > > > GetFeatureInfo results: > > Layer 'AEI_AIR_QUALITY_AOI_O' > Content-type: application/vnd.ogc.se_xml > > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid parameter > value passed to function. (-66) > > > > > many thanks for any assistance. > > > -- > View this message in context: > http://n2.nabble.com/GetFeatureINFO-errors-in-Mapserver-not-occurring-in-Geos > erver.-tp2686390p2686390.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 From mrdouville at shaw.ca Thu Apr 23 16:45:55 2009 From: mrdouville at shaw.ca (Michelle Douvil) Date: Thu, 23 Apr 2009 16:45:55 -0700 (PDT) Subject: [mapserver-users] GetFeatureINFO errors in Mapserver not occurringin Geoserver. In-Reply-To: <49F0933E.5157.008F.0@dnr.state.mn.us> References: <1240520397380-2686390.post@n2.nabble.com> <49F0933E.5157.008F.0@dnr.state.mn.us> Message-ID: <1240530355847-2688375.post@n2.nabble.com> Hi Steve, Thanks for the suggestion.. I attempted this URL http://server/mapserver/air-climate?&mapsize=1024+370&layers=AEI_AIR_QUALITY_AOI_O&mapxy=-126.94250575451+54.5026638549918&mode=query and it returned: Content-type: text/html msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid parameter value passed to function. (-66) Looks like WMS and mapserver queries have problems at the same point in the code - msSDElayerGetShape().. I find it odd that Geoserver WMS seems to have no problem with the same sde layer data. Which makes me believe that the underlying SDE data may be OK, but Geoserver and Mapserver somehow do the queries to SDE differently.. many thanks, Michelle Steve Lime wrote: > > Sounds like more of an SDE problem than WMS. Can you query the SDE layer > outside of WMS just > using MapServer queries? > > Steve > > > > -- View this message in context: http://n2.nabble.com/GetFeatureINFO-errors-in-Mapserver-not-occurring-in-Geoserver.-tp2686390p2688375.html Sent from the Mapserver - User mailing list archive at Nabble.com. From schroete at iup.physik.uni-bremen.de Thu Apr 23 22:48:16 2009 From: schroete at iup.physik.uni-bremen.de (Heiko =?utf-8?q?Schr=C3=B6ter?=) Date: Fri, 24 Apr 2009 07:48:16 +0200 Subject: [mapserver-users] Passing single quoted strings In-Reply-To: <49F05C99.5157.008F.0@dnr.state.mn.us> References: <49F019E80200008F0002340C@co5.dnr.state.mn.us> <200904231501.50805.schroete@iup.physik.uni-bremen.de> <49F05C99.5157.008F.0@dnr.state.mn.us> Message-ID: <200904240748.17495.schroete@iup.physik.uni-bremen.de> On Donnerstag, 23. April 2009 19:18:32 you wrote: Thanks to Steve and Arnd. This does the trick. somevalue = "filter \"datum between '2002-8-8' and '2002-8-9'\""; Since i'am new to mapserver i was mislead by the docs and examples which use single and double qoutes freely. So i thought they are interchangeable. I cannot find a strict rule in the docs when to use single or double quotes. (Probably my blindness ...) Thanks for your help. Regards Heiko > The key is just making it look like a line in a mapfile. Your initial > tries used single quotes on a string > with internal single quotes. That would have broken a mapfile too. > Might want to post a summary > solution to your last message to the whole list. > > Steve > > >>> On 4/23/2009 at 8:01 AM, in message > > <200904231501.50805.schroete at iup.physik.uni-bremen.de>, Heiko Schr?ter > > wrote: > > On Donnerstag, 23. April 2009 14:34:00 you wrote: > > > > Steve you are genius. This works. > > Can we get this into the docs as well ? > > > > Thanks very much. > > Regards > > Heiko > > > >> What about trying? > >> > >> somevalue = "filter \"datum between '2002-8-8' and '2002-8-9'\""; > >> > >> The double quotes around the filter (containing single quotes) > > should > > >> please MapServer. > >> > >> Steve > >> > >> >>> Heiko Schr?ter 04/23/09 2:46 > > AM > > >> On Mittwoch, 22. April 2009 18:07:11 you wrote: > >> > >> I've tested teh scenario with 3 different filter strings and > > attached > > >> the > >> mapserver error logs with DEBUG 5 (in case need be). > >> The resulting URL strings are taken from apache access log file. > >> Please let me know if you need the full URL. > >> > >> Thanks and Regards > >> Heiko > >> > >> > >> The OL call: > >> sacurabiglayer = new OpenLayers.Layer.WMS( "SACURABIG", > >> > >> "http://kahlo1/cgi-bin/mapserv", > >> > >> {map:'/home/schroete/sciadaten/MapServer/country98/heiko5.map', > >> layers: sacura_big, > >> "map.layer[SACURABIG]": > >> somevalue, > >> transparent: true}, > >> {singleTile:true, > >> isBaseLayer: false, > >> buffer:5, wrapDateLine: > >> true, > >> queryable: true}); > >> > >> Setting of the string in OL: > >> somevalue = "filter "+"'"+" datum between "+"'"+"2002-8-8"+"'"+" > > and > > >> "+"'"+" > >> 2002-8-9 "+"''"; > >> Results: > > MAP.LAYER%5BSACURABIG%5D=filter%20'%20datum%20between%20'2002-8-8'%20and%20 > > >>'%202002-8-9%20''& (ms_error_assembled_string.txt) > >> > >> Setting of the string in OL: > >> somevalue = "filter 'datum between '2002-8-8' and '2002-8-9' '"; > > MAP.LAYER%5BSACURABIG%5D=filter%20'datum%20between%20'2002-8-8'%20and%20'20 > > >>02-8-9'%20'& (ms_error_unescaped_string.txt) > >> > >> Setting of the string in OL: > >> somevalue = "filter 'datum between \'2002-8-8\' and \'2002-8-9\' > > '"; > > MAP.LAYER%5BSACURABIG%5D=filter%20'datum%20between%20'2002-8-8'%20and%20'20 > > >>02-8-9'%20'& (ms_error_escaped_single_quotes.txt) > >> > >> > >> The Mapfile Layer definition: > >> LAYER > >> CONNECTIONTYPE POSTGIS > >> NAME "SACURABIG" > >> PROCESSING "CLOSE_CONNECTION=DEFER" > >> OPACITY 60 > >> STATUS ON > >> METADATA > >> "wms_title" "sacurabig layer" > >> "wms_srs" "init=epsg:4326" > >> END > >> PROJECTION > >> "init=epsg:4326" > >> END > >> CONNECTION "user=fei password=foo dbname=fum > >> host=kahlo1" > >> DATA "geocenter from sacura_big" > >> VALIDATION > >> 'filter' "^." # Just for testing > >> END > >> FILTER "orbitnr=0" > >> TYPE POINT > >> SIZEUNITS meters > >> CLASS > >> NAME "sacura_big_class" > >> STYLE > >> COLOR [farbe] > >> SYMBOL "circle" > >> SIZE 35000 > >> END > >> END > >> END # Layer > >> > >> > What does the URL OL generate look like? I'm curious how it > > escapes > > >> the > >> > >> > text > >> > for the URL. That should give us a hint. > >> > > >> > Steve > >> > > >> > >>> Heiko Schr?ter 04/21/09 > > 1:53 > > >> AM > >> > >> > Hello, > >> > > >> > i have to pass single quoted strings from Open Layer through > > mapserver > > >> > to a > >> > postgis/postgres database. > >> > > >> > i.e. "filter 'value=1 and datum between '2005-1-1' and '2005-1-3' > > "; > > >> > The postgres db expects (afaik) the date in a single quoted > > string. > > >> > The problem is that mapserver stops scanning the filter string > > when > > >> > coming > >> > across the second single quote and bails out. > >> > > >> > The Validation string in the mapfile: > >> > VALIDATION > >> > 'filter' "^." > >> > END > >> > > >> > Even when allowing single quotes explicitly by inserting escaped > >> > >> single > >> > >> > quotes > >> > in the validation string it doesn't work. Escaping the single > > quotes > > >> in > >> > >> > the > >> > assembled OL string won't help either. > >> > > >> > Does anyone has an idea of how to pass such strings through > > mapserver > > >> ? > >> > >> > Now i do use an ugly hack of converting the date to abstime on > > the > > >> > client side > >> > (with all the UTC converting hassle) and pass the integer to the > > db. > > >> > i.e. "filter 'value = 1 and abstime between "+fromDate+" and > >> > "+toDate+"'"; > >> > > >> > MapServer version 5.4.0-rc1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > >> > OUTPUT=WBMP > >> > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV > >> > SUPPORTS=WMS_SERVER > >> > INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE > >> > > >> > Thanks and Regards > >> > Heiko > >> > > >> > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > > ----------------------------------------------------------------------- > > > Dipl.-Ing. Heiko Schr?ter > > Institute of Environmental Physics (IUP) phone: > > ++49-(0)421-218-4080 > > > Institute of Remote Sensing (IFE) fax: > > ++49-(0)421-218-4555 > > > University of Bremen (FB1) > > P.O. Box 330440 email: > > schroete at iup.physik.uni-bremen.de > > > Otto-Hahn-Allee 1 > > 28359 Bremen > > Germany > > ----------------------------------------------------------------------- -- ----------------------------------------------------------------------- Dipl.-Ing. Heiko Schr?ter Institute of Environmental Physics (IUP) phone: ++49-(0)421-218-4080 Institute of Remote Sensing (IFE) fax: ++49-(0)421-218-4555 University of Bremen (FB1) P.O. Box 330440 email: schroete at iup.physik.uni-bremen.de Otto-Hahn-Allee 1 28359 Bremen Germany ----------------------------------------------------------------------- From xiaoling101010 at yahoo.com.cn Thu Apr 23 23:26:10 2009 From: xiaoling101010 at yahoo.com.cn (ling xiao) Date: Fri, 24 Apr 2009 14:26:10 +0800 (CST) Subject: [mapserver-users] how to show chinese character? Message-ID: <666579.53947.qm@web15904.mail.cnb.yahoo.com> I?am?new to study mapserver. I use ms4w. When I test "hello world" sample, I found this sample can't show chinese character. In IE browser, it shows blank. I need some help, thanks. This is my mapfile: ?#This is our "Hello World" mapfile NAME "Hello World" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 FONTSET "../fontset.txt" WEB ?TEMPLATE "c:/ms4w/apache/htdocs/website1/hello.html" ?IMAGEPATH "c:/ms4w/apache/htdocs/website1/temp/" ?IMAGEURL "/website1/temp/" END LAYER ?STATUS default ?TYPE point ?FEATURE ??POINTS 0.0 0.0 END ??TEXT "??" #??TEXT "HELLO WORLD" ?END ?CLASS ??STYLE ???COLOR 255 0 0 ??END ??LABEL ???ENCODING utf-8 ???TYPE truetype ???SIZE 36 ???FONT "SIMHEI" ???COLOR 0 0 0 ??END ?END END END ___________________________________________________________ ????????????????? http://card.mail.cn.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From news at leole.de Fri Apr 24 00:28:49 2009 From: news at leole.de (Leonhard Dietze) Date: Fri, 24 Apr 2009 09:28:49 +0200 Subject: [mapserver-users] Mapserver-Homepage and Search-Functionality Message-ID: <49F16A31.7020801@leole.de> Hello List, can someone tell me if the search-functionality of the "new" UMN-Mapserver Homepage (www.mapserver.org) will be updated in the next time? It looks great but unfortunately I find it hard to get the articles that i am looking for (e.g. searching for "WMS" or "wfs" does not bring any results). Especially I am searching for the changelog of the older Mapserver 4 Versions (search for "changelog" does not yield any results). Thank you very much in advance Leo -- Leonhard Dietze D - 79111 Freiburg From orkney at gmx.de Fri Apr 24 01:14:02 2009 From: orkney at gmx.de (Daniel Kastl) Date: Fri, 24 Apr 2009 17:14:02 +0900 Subject: [mapserver-users] how to show chinese character? In-Reply-To: <666579.53947.qm@web15904.mail.cnb.yahoo.com> References: <666579.53947.qm@web15904.mail.cnb.yahoo.com> Message-ID: <49F174CA.9060708@gmx.de> Hi, Do you use Chinese fonts? I don't think ms4w doesn't include any. Probably you need to make changes in FONTSET "../fontset.txt" Daniel ling xiao schrieb: > I am new to study mapserver. I use ms4w. When I test "hello world" > sample, I found this sample can't show chinese character. In IE > browser, it shows blank. I need some help, thanks. > This is my mapfile: > > #This is our "Hello World" mapfile > NAME "Hello World" > SIZE 400 300 > IMAGECOLOR 249 245 186 > IMAGETYPE png > EXTENT -1.00 -1.00 1.00 1.00 > FONTSET "../fontset.txt" > WEB > TEMPLATE "c:/ms4w/apache/htdocs/website1/hello.html" > IMAGEPATH "c:/ms4w/apache/htdocs/website1/temp/" > IMAGEURL "/website1/temp/" > END > LAYER > STATUS default > TYPE point > FEATURE > POINTS 0.0 0.0 END > TEXT "??" > # TEXT "HELLO WORLD" > END > CLASS > STYLE > COLOR 255 0 0 > END > LABEL > ENCODING utf-8 > TYPE truetype > SIZE 36 > FONT "SIMHEI" > COLOR 0 0 0 > END > END > END > END > > > ------------------------------------------------------------------------ > ????????????????? > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at camptocamp.com Fri Apr 24 01:36:03 2009 From: thomas.bonfort at camptocamp.com (Thomas Bonfort) Date: Fri, 24 Apr 2009 10:36:03 +0200 Subject: [mapserver-users] how to show chinese character? In-Reply-To: <666579.53947.qm@web15904.mail.cnb.yahoo.com> References: <666579.53947.qm@web15904.mail.cnb.yahoo.com> Message-ID: <2922382e0904240136u5c45f42bp8ea62f5c09d39663@mail.gmail.com> * what renderer are you using (GD or AGG)? the AGG freetype backend doesn't support bitmap planes embedded in some fonts. you could try changing your label size as ususally not all sizes are prerendered inside the font file. * look in your apache logs if there are any messages concering the caracters not showing up * is your mapfile encoded in utf8 (it should be if you are using the encoding utf8 keyword with inline text) regards, thomas -- www.camptocamp.com +33 4 79 26 57 97 From pvoudouris at gaiocorp.com Fri Apr 24 03:42:46 2009 From: pvoudouris at gaiocorp.com (Pano) Date: Fri, 24 Apr 2009 03:42:46 -0700 (PDT) Subject: [mapserver-users] mapserver error In-Reply-To: <200904221253.29009.iratxe.lejarreta@axios.es> References: <200904212004.10735.iratxe.lejarreta@axios.es> <1240383297506-2674567.post@n2.nabble.com> <200904221253.29009.iratxe.lejarreta@axios.es> Message-ID: <1240569766327-2691761.post@n2.nabble.com> Hi Iratxe, Unfortunately I know very little about CentOS. Just a windows guy me :-) But let me try: Is it possible that you have multiple Oracle Homes setup? And sqlplus is using the home where oracle server is installed whereas mapserver is using another (oracle client?) home which does not have the tnsnames setup correctly? In a windows setup i would first check the PATH environment variable. If the oracle client install is the first on the list then this is what mapserver would use. You mention a path /usr/lib/oracle/10.2.0.3/client- does this folder also contains a network\admin\tnsnames.ora file? Maybe this is the one you need to change (again maybe talking complete rubish here as on idea abt this OS) Finally- another idea just to make sure its not a WFS problem. Are you able to get an image by simply using cgi-bin e.g. http://localhost/cgi-bin/mapserve?map=...,&mode=map etc?? Pano Iratxe Lejarreta wrote: > > On Wednesday 22 April 2009 08:54:57 Pano wrote: >> Hi Iratxe, >> >> Looks like mapserver doesnt know the TNS name 'orcl' that you have >> defined. >> I assume that the machine where mapserver runs has an oracle client >> installed? Can you log into sql plus i..e sqlplus mddata/@orcl >> from >> a command prompt on this box? I assume you will get the same TNS error. >> Which will mean that your tnsnames.ora file is not set correctly. The >> file >> should be located under $ORACLE_HOME\network\admin\tnsnames.ora. There >> should be an entry in there like: >> >> ORCL = >> (DESCRIPTION = >> (ADDRESS_LIST = >> (ADDRESS = >> (PROTOCOL = TCP) >> (HOST = > (PORT = ) >> ) >> ) >> (CONNECT_DATA = >> (SERVER = DEDICATED) >> (SERVICE_NAME = ) >> ) >> ) >> >> Hope this helps, >> Pano >> >> Iratxe Lejarreta wrote: >> > Hi, >> > >> > I installed MapServer-5.2.0 on CentOS 5.2 with Oracle 10g, but when I >> run >> > the >> > WFS service... >> > >> > http://localhost/cgi- >> > bin/mywfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=cities >> > >> > ...the result is: >> > ? >> > > > xsi:schemaLocation="http://www.opengis.net/ogc >> > http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd"> >> > ? >> > >> > >> > msWFSGetFeature(): WFS server error. ms_error->code not found >> > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI >> > Handlers. >> > Connection failure. Check the connection string. Error: ORA-12154: >> > TNS:could >> > not resolve the connect identifier specified >> > . >> > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI >> > Handlers. >> > Connection failure. Check the connection string. Error: ORA-12154: >> > TNS:could >> > not resolve the connect identifier specified >> > . >> > >> > >> > >> > >> > >> > Mapfile: >> > >> > MAP >> > NAME WFS_TEST >> > STATUS ON >> > SIZE 400 300 >> > EXTENT -180 -90 180 90 >> > UNITS METERS >> > IMAGECOLOR 255 255 255 >> > WEB >> > METADATA >> > "wfs_title" "WFS TEST" >> > "wfs_onlineresource" "http://localhost/cgi-bin/mywfs?" >> > "wfs_srs" "EPSG:4326" >> > END >> > END >> > PROJECTION >> > "init=epsg:4326" >> > END >> > LAYER >> > NAME cities >> > TYPE POINT >> > CONNECTIONTYPE oraclespatial >> > CONNECTION "MDDATA/*****@orcl" >> > DATA "GEOM FROM CITIES USING UNIQUE FID SRID 4326 VERSION 10g" >> > METADATA >> > "wfs_title" "cities" >> > "gml_featureid" "FID" >> > "gml_include_items" "all" >> > END >> > STATUS ON >> > DUMP TRUE >> > CLASS >> > STYLE >> > OUTLINECOLOR 0 0 0 >> > COLOR 0 128 128 >> > END >> > END >> > END # Cities >> > END # Map File >> > >> > >> > Somebody can help me? >> > >> > Thanks in advance. >> > >> > -- >> > Iratxe Lejarreta >> > www.axios.es >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > Hi Pano, > > Firstly, thanks for your answer! > > I have checked all configuration but I continue with the same error: > > 1.- I haven't got any error in logs. > > 2.- I installed Oracle Instat Client: > # rpm -Uvh oracle-instantclient-basic-10.2.0.4-1.i386.rpm > I have set the library loading path: > # export LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.3/client/lib > > 3.- I can access with sqlplus and sqldeveloper without any problem: > [oracle]$ sqlplus mddata/@orcl > > 4.- $ORACLE_HOME\network\admin\tnsnames.ora file: > ORCL = > (DESCRIPTION = > (ADDRESS_LIST = > (ADDRESS = > (PROTOCOL = TCP) > (HOST = 192.168.2.215) > (PORT = 1521) > ) > ) > (CONNECT_DATA = > (SERVER = DEDICATED) > (SERVICE_NAME = orcl) > ) > ) > > 5.- I try to access with the following URL: > http://192.168.2.215/cgi- > bin/mywfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=cities > > 6.- ...but the result it's the same: > xsi:schemaLocation="http://www.opengis.net/ogc > http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd"> > > msWFSGetFeature(): WFS server error. ms_error->code not found > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > Handlers. > Connection failure. Check the connection string. Error: ORA-12154: > TNS:could > not resolve the connect identifier specified. > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > Handlers. > Connection failure. Check the connection string. Error: ORA-12154: > TNS:could > not resolve the connect identifier specified. > > > > Do you know where could be wrong? > > Thanks for your help!!!!! > > Regards, > -- > Iratxe Lejarreta > www.axios.es > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/mapserver-error-tp2671622p2691761.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Fri Apr 24 06:01:13 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 24 Apr 2009 08:01:13 -0500 Subject: [mapserver-users] GetFeatureINFO errors in Mapserver notoccurringin Geoserver. In-Reply-To: <1240530355847-2688375.post@n2.nabble.com> References: <1240520397380-2686390.post@n2.nabble.com> <49F0933E.5157.008F.0@dnr.state.mn.us> <1240530355847-2688375.post@n2.nabble.com> Message-ID: <49F171C9.5157.008F.0@dnr.state.mn.us> Could be a config error in the mapfile. What version of MapServer are you using? What does the layer def look like? Geoserver and MapServer are completely different code bases so they definitely approach SDE differently. Steve >>> On 4/23/2009 at 6:45 PM, in message <1240530355847-2688375.post at n2.nabble.com>, Michelle Douvil wrote: > Hi Steve, > Thanks for the suggestion.. > > I attempted this URL > > http://server/mapserver/air-climate?&mapsize=1024+370&layers=AEI_AIR_QUALITY_AO > I_O&mapxy=-126.94250575451+54.5026638549918&mode=query > > and it returned: > Content-type: text/html msSDELayerGetShape(): SDE error. > SE_stream_fetch_row(): Invalid parameter value passed to function. (-66) > > Looks like WMS and mapserver queries have problems at the same point in the > code - msSDElayerGetShape().. > > I find it odd that Geoserver WMS seems to have no problem with the same sde > layer data. > Which makes me believe that the underlying SDE data may be OK, but Geoserver > and Mapserver somehow do the queries to SDE differently.. > > many thanks, > Michelle > > > > > Steve Lime wrote: >> >> Sounds like more of an SDE problem than WMS. Can you query the SDE layer >> outside of WMS just >> using MapServer queries? >> >> Steve >> >> >> >> From russell at flora.ca Fri Apr 24 06:27:21 2009 From: russell at flora.ca (Russell McOrmond) Date: Fri, 24 Apr 2009 09:27:21 -0400 (EDT) Subject: [mapserver-users] MapServer with RHEL5 In-Reply-To: References: <4FBC13C3CB49244088DD095B32B5D4CD0ABE21@KS-EVS1.smi.sachsen.de> <49EA2FF9.9010301@flora.ca> Message-ID: On Mon, 20 Apr 2009, Russell McOrmond wrote: > The problem appears to be that this return code is not checked, and in many > cases the value is assumed to be a pointer to a string. If that NULL is then > used in a manipulation (say, a strdup()) then the program will core dump. We > never get to see the error string as the core dump happens before the error > string is written to the error log. In case anyone else wants to track or help with this, I've filed this bug: http://trac.osgeo.org/mapserver/ticket/2988 It will be interesting to find out if any of the other problems people are experiencing with expressions turn out to be a problem with not checking error returns from string manipulation functions. -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry control over my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From mrdouville at shaw.ca Fri Apr 24 09:34:54 2009 From: mrdouville at shaw.ca (Michelle Douvil) Date: Fri, 24 Apr 2009 09:34:54 -0700 (PDT) Subject: [mapserver-users] GetFeatureINFO errors in Mapserver notoccurringin Geoserver. In-Reply-To: <49F171C9.5157.008F.0@dnr.state.mn.us> References: <1240520397380-2686390.post@n2.nabble.com> <49F0933E.5157.008F.0@dnr.state.mn.us> <1240530355847-2688375.post@n2.nabble.com> <49F171C9.5157.008F.0@dnr.state.mn.us> Message-ID: <1240590894559-2693553.post@n2.nabble.com> Thanks again for the reply Steve, Where are using Mapserver 5.2. I have tried playing around with the "PROCESSING OBJECTID=" parameter to no avail for the SVW described below. However, for about 30% of other SVWs, if I apply the primary key of the input spatial layer to this parameter it does fix the problem. Some Spatial views work fine, (and are complex SVWs with several join statements and where clauses) and others do not (no join statements or where clauses as the one below).. We can't seem to narrow down the cause as of yet. In one instance of a spatial view, we changed the underlying roles of the inputs to the spatial views (so the user could see the SVW and the input spatial layers and attribute tables) And this fixed the problem. But for other SVWs this did not correct the problem. Perhaps the primary key and/or OBJECTID of the input spatial layers need to be in the SVWs for it to work correctly, but in some instances this has not worked for us either? Below is the MAP and LAYER definition in the mapfile... MAP EXTENT 79932.9 225000 2020067.1 1875000 SIZE 100 100 UNITS meters SYMBOLSET "air-climate-symbols.sym" FONTSET "fonts.lst" DEBUG 5 CONFIG "MS_ERRORFILE" "e:/sw_nt/mapserver/log/air-climate.log" NAME "BCGov - Air Climate WMS" WEB METADATA wms_title "BCGov - Air Climate WMS" wfs_title "BCGov - Air Climate WFS" wms_onlineresource "http://server/mapserver/air-climate?service=WMS" wfs_onlineresource "http://server/mapserver/air-climate?service=WFS" wms_srs "EPSG:3785 EPSG:102190 EPSG:26907 EPSG:26707 EPSG:32607 EPSG:3005 EPSG:42102 EPSG:4269 EPSG:4326 EPSG:26708 EPSG:26709 EPSG:26710 EPSG:26711 EPSG:26712 EPSG:26908 EPSG:26909 EPSG:26910 EPSG:26911 EPSG:26912 EPSG:32608 EPSG:32609 EPSG:32610 EPSG:32611 EPSG:32612 EPSG:54004" wfs_srs "EPSG:3785 EPSG:102190 EPSG:26907 EPSG:26707 EPSG:32607 EPSG:3005 EPSG:42102 EPSG:4269 EPSG:4326 EPSG:26708 EPSG:26709 EPSG:26710 EPSG:26711 EPSG:26712 EPSG:26908 EPSG:26909 EPSG:26910 EPSG:26911 EPSG:26912 EPSG:32608 EPSG:32609 EPSG:32610 EPSG:32611 EPSG:32612 EPSG:54004" wfs_maxfeatures "0" wms_abstract "Data relating to patterns of wind, temperature, precipitation, etc., over a period of time, for a specified area." wms_keywordlist "British Columbia,BC,Canada,wind,temperature,precipitation,climate,air" wms_accessconstraints "This Web Map Service cannot be cascaded through another Web Map Service without the express written permission of the Province of British Columbia" wms_fees "None" END END PROJECTION "init=EPSG:3005" END LEGEND KEYSIZE 15 15 LABEL COLOR 0 0 0 FONT "arial" TYPE truetype SIZE 8 END END LAYER NAME "AEI_AIR_QUALITY_AOI_O" CONNECTIONTYPE sde CONNECTION "server,port:5152,sde,username,password" DATA "WHSE_ENVIRONMENTAL_MONITORING.AEI_AIR_QUALITY_AOI_SVW,GEOMETRY" TYPE polygon MAXSCALEDENOM 12000000 LABELITEM "AOI_NAME" LABELMAXSCALEDENOM 2000000 STATUS ON CLASS STYLE OUTLINECOLOR 213 13 39 WIDTH 2 END LABEL TYPE truetype ANGLE auto POSITION auto FONT "arial-bold" MINDISTANCE 10000 COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE 14 END END METADATA wms_title "Air Quality Areas of Interest - Outlined" wms_metadataurl_format "html" wms_metadataurl_href "http://aardvark.gov.bc.ca/apps/metastar/metadataDetail.do?recordUID=42631&recordSet=ISO19115" wms_metadataurl_type "TC211" wfs_title "Air Quality Areas of Interest - Outlined" gml_geometries "geom" gml_geom_type "polygon" gml_include_items "all" gml_exclude_items "GEOMETRY,OBJECTID" ows_include_items "all" ows_exclude_items "GEOMETRY,OBJECTID" END #end metadata PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING "OBJECTID=OBJECTID" DUMP TRUE TEMPLATE "foo.html" END Steve Lime wrote: > > Could be a config error in the mapfile. What version of MapServer are you > using? What does the > layer def look like? > > Geoserver and MapServer are completely different code bases so they > definitely approach SDE > differently. > > Steve > > > -- View this message in context: http://n2.nabble.com/GetFeatureINFO-errors-in-Mapserver-not-occurring-in-Geoserver.-tp2686390p2693553.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ekanegae at gmail.com Fri Apr 24 09:39:08 2009 From: ekanegae at gmail.com (Eduardo Kanegae) Date: Fri, 24 Apr 2009 13:39:08 -0300 Subject: [mapserver-users] Grid Layer : different intervals from X and Y axis Message-ID: Hi, I?m currently using grid object for composing grid layers but I?d like to draw X and Y axis using different interval values. Example: 1 deg for Y and 1.5 deg for X. Is there any trick to do that using grid layer? best MY MAPFILE: LAYER NAME "lin_grid" TYPE LINE CLASS NAME "Grid" LABEL COLOR 64 64 128 OUTLINECOLOR 192 224 255 TYPE TRUETYPE FONT "vera" ANTIALIAS TRUE MINDISTANCE 16 OFFSET 7 0 SIZE 7 POSITION CC PARTIALS FALSE END STYLE COLOR 0 172 241 ANTIALIAS TRUE WIDTH 1 END END GRID LABELFORMAT '%g?' MININTERVAL 6 END STATUS OFF OPACITY 50 END -- Eduardo Patto Kanegae http://anthologis.com http://blogdopatto.webmapit.com.br From nelsonwc7 at hotmail.com Fri Apr 24 10:13:45 2009 From: nelsonwc7 at hotmail.com (Nelson Correia) Date: Fri, 24 Apr 2009 17:13:45 +0000 Subject: [mapserver-users] Mapserver returns part of an image and then crashes Message-ID: Hi, I am using mapserver on windows, and recently, after a few changes in my configuration, it started crashing (only for some bounding boxes - some areas of the map are returned without problem), without returning an error message. It returns only part of the image, but then the mapserver process crashes with the following information: Problem signature: Problem Event Name: APPCRASH Application Name: mapserv.exe Application Version: 0.0.0.0 Application Timestamp: 4935ad86 Fault Module Name: ntdll.dll Fault Module Version: 6.0.6001.18000 Fault Module Timestamp: 4791a783 Exception Code: c0000005 Exception Offset: 0002f8f4 OS Version: 6.0.6001.2.1.0.272.7 Locale ID: 2070 Additional Information 1: c997 Additional Information 2: ae645009e6c492243309385fb187f9cb Additional Information 3: 8219 Additional Information 4: b67578da7791af77bcf37b260b2c58a9 I reverted the changes I've made to a configuration that worked before, but I am no longer able to run it properly, it crashes all the time for certain zones of the map. Any ideas? Thanks, Nelson _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Fri Apr 24 10:20:44 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 24 Apr 2009 19:20:44 +0200 Subject: [mapserver-users] Mapserver returns part of an image and then crashes In-Reply-To: References: Message-ID: Which binaries are you using? Could you provide the sample data with a mapfile to repoduce it? Best regards, Tamas 2009/4/24 Nelson Correia > > Hi, > > I am using mapserver on windows, and recently, after a few changes in my > configuration, it started crashing (only for some bounding boxes - some > areas of the map are returned without problem), without returning an error > message. It returns only part of the image, but then the mapserver process > crashes with the following information: > > * Problem signature: > * Problem Event Name: APPCRASH > Application Name: mapserv.exe > Application Version: 0.0.0.0 > Application Timestamp: 4935ad86 > Fault Module Name: ntdll.dll > Fault Module Version: 6.0.6001.18000 > Fault Module Timestamp: 4791a783 > Exception Code: c0000005 > Exception Offset: 0002f8f4 > OS Version: 6.0.6001.2.1.0.272.7 > Locale ID: 2070 > Additional Information 1: c997 > Additional Information 2: ae645009e6c492243309385fb187f9cb > Additional Information 3: 8219 > Additional Information 4: b67578da7791af77bcf37b260b2c58a9 > > I reverted the changes I've made to a configuration that worked before, but > I am no longer able to run it properly, it crashes all the time for certain > zones of the map. > > Any ideas? > > > > Thanks, > > Nelson > > > > ------------------------------ > Get news, entertainment and everything you care about at Live.com. Check > it out! > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nelsonwc7 at hotmail.com Fri Apr 24 10:28:53 2009 From: nelsonwc7 at hotmail.com (Nelson Correia) Date: Fri, 24 Apr 2009 17:28:53 +0000 Subject: [mapserver-users] Mapserver returns part of an image and then crashes In-Reply-To: References: Message-ID: Hi, I am using ms4w 2.3.1. Unfortunately it is a large data set and a huge map file, that I am not able to send, sorry. Thanks, Nelson Date: Fri, 24 Apr 2009 19:20:44 +0200 Subject: Re: [mapserver-users] Mapserver returns part of an image and then crashes From: szekerest at gmail.com To: nelsonwc7 at hotmail.com CC: mapserver-users at lists.osgeo.org Which binaries are you using? Could you provide the sample data with a mapfile to repoduce it? Best regards, Tamas 2009/4/24 Nelson Correia Hi, I am using mapserver on windows, and recently, after a few changes in my configuration, it started crashing (only for some bounding boxes - some areas of the map are returned without problem), without returning an error message. It returns only part of the image, but then the mapserver process crashes with the following information: Problem signature: Problem Event Name: APPCRASH Application Name: mapserv.exe Application Version: 0.0.0.0 Application Timestamp: 4935ad86 Fault Module Name: ntdll.dll Fault Module Version: 6.0.6001.18000 Fault Module Timestamp: 4791a783 Exception Code: c0000005 Exception Offset: 0002f8f4 OS Version: 6.0.6001.2.1.0.272.7 Locale ID: 2070 Additional Information 1: c997 Additional Information 2: ae645009e6c492243309385fb187f9cb Additional Information 3: 8219 Additional Information 4: b67578da7791af77bcf37b260b2c58a9 I reverted the changes I've made to a configuration that worked before, but I am no longer able to run it properly, it crashes all the time for certain zones of the map. Any ideas? Thanks, Nelson Get news, entertainment and everything you care about at Live.com. Check it out! _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _________________________________________________________________ More than messages?check out the rest of the Windows Live?. http://www.microsoft.com/windows/windowslive/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Fri Apr 24 10:34:53 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 24 Apr 2009 13:34:53 -0400 Subject: [mapserver-users] Grid Layer : different intervals from X and Y axis In-Reply-To: References: Message-ID: <49F1F83D.7040501@dmsolutions.ca> Hi Eduardo, Not currently from what I can see. The interval values given in the map file applies for both axis. Could you open an enhancement bug on it, and I will look into adding that. bes Regards, Eduardo Kanegae wrote: > Hi, > > I?m currently using grid object for composing grid layers but I?d like > to draw X and Y axis using different interval values. > > Example: 1 deg for Y and 1.5 deg for X. > > Is there any trick to do that using grid layer? > > best > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From mrdouville at shaw.ca Fri Apr 24 10:42:45 2009 From: mrdouville at shaw.ca (Michelle Douvil) Date: Fri, 24 Apr 2009 10:42:45 -0700 (PDT) Subject: [mapserver-users] GetFeatureINFO errors in Mapserver notoccurringin Geoserver. In-Reply-To: <1240590894559-2693553.post@n2.nabble.com> References: <1240520397380-2686390.post@n2.nabble.com> <49F0933E.5157.008F.0@dnr.state.mn.us> <1240530355847-2688375.post@n2.nabble.com> <49F171C9.5157.008F.0@dnr.state.mn.us> <1240590894559-2693553.post@n2.nabble.com> Message-ID: <1240594965541-2693869.post@n2.nabble.com> Steve here is the debug.. when GetFeatureINFO is requested.. [Fri Apr 24 10:37:59 2009].667000 msConnPoolRequest(AEI_AIR_QUALITY_AOI_O,server,port:5152,sde,username,password) -> got 01A63FE8 [Fri Apr 24 10:37:59 2009].667000 msSDELayerOpen(): Layer AEI_AIR_QUALITY_AOI_O did not have a specified version. [Fri Apr 24 10:37:59 2009].667000 msSDEGetLayerInfo(): Looking for layer by WHSE_ENVIRONMENTAL_MONITORING.AEI_AIR_QUALITY_AOI_SVW, GEOMETRY, server,port:5152,sde,username,password [Fri Apr 24 10:37:59 2009].667000 msSDEGetLayerId(): Matched layer to id 1826. [Fri Apr 24 10:37:59 2009].667000 Getting all column information in msSDELayerInitItemInfo [Fri Apr 24 10:37:59 2009].667000 msSDELayerGetRowIDColumn(): Column was manually set to OBJECTID [Fri Apr 24 10:37:59 2009].667000 msSDELayerInitItemInfo(): getting info for geometry [Fri Apr 24 10:37:59 2009].667000 msSDELayerInitItemInfo(): getting info for objectid [Fri Apr 24 10:37:59 2009].667000 msSDELayerInitItemInfo(): getting info for air_quality_aoi_id [Fri Apr 24 10:37:59 2009].667000 msSDELayerInitItemInfo(): getting info for aoi_name [Fri Apr 24 10:37:59 2009].667000 msSDELayerInitItemInfo(): getting info for status [Fri Apr 24 10:37:59 2009].667000 msSDELayerInitItemInfo(): getting info for feature_code [Fri Apr 24 10:37:59 2009].667000 msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid parameter value passed to function. (-66) [Fri Apr 24 10:37:59 2009].667000 mapserv request processing time (msLoadMap not incl.): 0.016s -- View this message in context: http://n2.nabble.com/GetFeatureINFO-errors-in-Mapserver-not-occurring-in-Geoserver.-tp2686390p2693869.html Sent from the Mapserver - User mailing list archive at Nabble.com. From valiantheart at hotmail.com Fri Apr 24 14:29:37 2009 From: valiantheart at hotmail.com (jchampagne2) Date: Fri, 24 Apr 2009 14:29:37 -0700 (PDT) Subject: [mapserver-users] Automatically Clearing Old Map Images Message-ID: <1240608577679-2699631.post@n2.nabble.com> I'm attempting to set up a web page based on the old 'Itasca' demo, but I will probably be hosting it with very limited web space. Has anybody come up with some means or method to automatically clear out old map images once they are no longer needed? In just a couple of days of testing the application, I managed to generate over 1500 maps for a total of about 10Mb. Help! -- View this message in context: http://n2.nabble.com/Automatically-Clearing-Old-Map-Images-tp2699631p2699631.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gregor at hostgis.com Sat Apr 25 00:17:42 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Sat, 25 Apr 2009 00:17:42 -0700 Subject: [mapserver-users] Automatically Clearing Old Map Images In-Reply-To: <1240608577679-2699631.post@n2.nabble.com> References: <1240608577679-2699631.post@n2.nabble.com> Message-ID: <49F2B916.6020201@hostgis.com> jchampagne2 wrote: > Has anybody come up > with some means or method to automatically clear out old map images once > they are no longer needed? Yeah, typical cronjob approaches. I can't say for Windows, but for Linux systems you'd create a /etc/cron.hourly file that goes something like one of these, depending on your version of "find": find /maps/images.tmp -mindepth 1 -ctime +1 -exec rm -f {} \; find /maps/images.tmp -mindepth 1 -ctime +1 -delete -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From peter_rose at hotmail.com Sun Apr 26 05:55:56 2009 From: peter_rose at hotmail.com (Peter Rose) Date: Sun, 26 Apr 2009 05:55:56 -0700 (PDT) Subject: [mapserver-users] Symbol sizes Message-ID: <1240750556206-2717421.post@n2.nabble.com> Hi Does anyone out there know how to change symbol sizes depending on values in attribute data such as a MySQL database? Thanks for any suggestion. Peter -- View this message in context: http://n2.nabble.com/Symbol-sizes-tp2717421p2717421.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Gabe at agtrix.com Sun Apr 26 19:00:28 2009 From: Gabe at agtrix.com (Gabe) Date: Mon, 27 Apr 2009 12:00:28 +1000 Subject: [mapserver-users] Symbol sizes In-Reply-To: <1240750556206-2717421.post@n2.nabble.com> References: <1240750556206-2717421.post@n2.nabble.com> Message-ID: <004f01c9c6db$f0d0e810$d272b830$@com> You can define different classes with the sizes you want and then use the attribute as a CLASSITEM G -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Peter Rose Sent: Sunday, 26 April 2009 10:56 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Symbol sizes Hi Does anyone out there know how to change symbol sizes depending on values in attribute data such as a MySQL database? Thanks for any suggestion. Peter -- View this message in context: http://n2.nabble.com/Symbol-sizes-tp2717421p2717421.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 From t-zheqxu at microsoft.com Sun Apr 26 19:24:59 2009 From: t-zheqxu at microsoft.com (Jessie Xu) Date: Mon, 27 Apr 2009 10:24:59 +0800 Subject: [mapserver-users] RE: port from Apache to IIS Message-ID: <4E99E618451778408EACEE8DCF03EA8C14ED8A526F@AA-EXMSG-C426.southpacific.corp.microsoft.com> Hi all, Thanks for help on the mapserver configuration on IIS. Now I've figured out the way to run mapserver on IIS7 , which is quite different from the way to IIS 5&6. I made a summary below and share with you. Hope it would be helpful. :) How to port Mapserver from Apache to IIS 7? Base configuration * Windows 7 * IIS 7.0 * MS4W 2.3.1 * PHP 5.2.6 * Mapserver 5.2.1 * MS4W was installed in D:\ms4w Steps: Enable FastCGI Support in IIS 7.0 Add the CGI feature by going to Control Panel-> Programs and Features -> Turn Windows features on or off. [cid:image001.png at 01C9C721.4A0C7B70] Install and Configure PHP Php.ini file is located in D:\ms4w\Apache\cgi-bin. Open the file and modify settings as followed: * Set cgi.force_redirect = 0 * Set cig.fix_pathinfo = 1 Configure IIS 7 to handle PHP requests In order for IIS 7.0 to host PHP applications, it is necessary to add a handler mapping that tells IIS to pass all PHP specific requests to the PHP application framework via FastCGI protocol. * Open IIS Manger * Create a new site (eg. map) * select and open "Handler Mappings" under the new site [cid:image002.png at 01C9C721.4A0C7B70] * Add Script Map: o Request path: *.php o Executable: D:\ms4w\Apache\cgi-bin\php-cgi.exe [cid:image003.png at 01C9C721.4A0C7B70][cid:image004.png at 01C9C721.4A0C7B70] * Edit feature permissions: click on read & script & execute [cid:image005.png at 01C9C721.4A0C7B70] * Test PHP: http://localhost/phpinfo.php If everything was setup correctly, you will see the standard PHP information page. [cid:image006.png at 01C9C721.4A0C7B70] Under the tree for your website, create virtual directories * Cgi-bin: set local path point to d:\ms4w\apache\cgi-bin * Ms_tmp: set local path point to d:\ms4w\tmp\ms_tmp * Tmp: set local path point to d:\ms4w\tmp Mapfile configuration (using gmap for testing) * Add a line to the mapfile: CONFIG PROJ_LIB "d:\ms4w\proj\nad\" * Create a virtual directory for it: local path point to: d:\ms4w\apps\gmap\htdocs Environment Variables * Go to system properties -> Advanced -> environment variables * Under system variables, find PATH and click edit * In the variable value, add D:\ms4w\Apache\cgi-bin; in it. Ok, that's it. Try http://localhost/gmap and enjoy! Warmest regards, Jessie From: Jessie Xu Sent: Wednesday, April 08, 2009 1:19 PM To: 'mapserver-users at lists.osgeo.org' Subject: port from Apache to IIS I'd like to have mapserver running on IIS 7 and want to know how? I saw an article called 'IIS setup for Mapserver' but it is written in 2005 based on IIS 5. Could someone give me a hand to figure out how to port from Apache to IIS 7? What changes should be made to config files, virtual directories and permissions, etc? Thanks for help! Jessie -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 45851 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 118964 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 13498 bytes Desc: image003.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.png Type: image/png Size: 32666 bytes Desc: image004.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image005.png Type: image/png Size: 57427 bytes Desc: image005.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image006.png Type: image/png Size: 30425 bytes Desc: image006.png URL: From peter_rose at hotmail.com Mon Apr 27 02:37:43 2009 From: peter_rose at hotmail.com (Peter Rose) Date: Mon, 27 Apr 2009 02:37:43 -0700 (PDT) Subject: [mapserver-users] Symbol sizes In-Reply-To: <004f01c9c6db$f0d0e810$d272b830$@com> References: <1240750556206-2717421.post@n2.nabble.com> <004f01c9c6db$f0d0e810$d272b830$@com> Message-ID: <1240825063409-2724379.post@n2.nabble.com> Hi G, Classitem and expressions are fine when you are using a shapefile but as I said my data is stored in a MySQL database where these don't seem to work. Here is a copy of the mapfile I tried to use but it still doesn't work! ##################################### # POI layer - points of interest # LAYER NAME "poi" STATUS default TYPE point LABELCACHE on CLASS NAME "Large fiscal" EXPRESSION ([fiscal] < 1) STYLE SYMBOL "Circle" SIZE 8 COLOR 255 0 0 BACKGROUNDCOLOR 255 0 0 END END # class CLASS NAME "Small fiscal" EXPRESSION ([fiscal] > 1) STYLE SYMBOL "Circle" SIZE 8 COLOR 0 255 0 BACKGROUNDCOLOR 0 255 0 END END # class END # layer poi ##################################### No classitem need be specified if you use expressions and in fact they will be ignored if present but as I said this only works with shapefiles not with MySQL. Thanks for your suggestion. Peter -- View this message in context: http://n2.nabble.com/Symbol-sizes-tp2717421p2724379.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Mon Apr 27 05:45:55 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 27 Apr 2009 15:45:55 +0300 Subject: [mapserver-users] Symbol sizes References: <1240750556206-2717421.post@n2.nabble.com><004f01c9c6db$f0d0e810$d272b830$@com> <1240825063409-2724379.post@n2.nabble.com> Message-ID: Hi, I can't see connectiontype, connection or data in the layer definitions. Have you just removed them from your mail, or are they really missing from the mapfile? Even if you wouldn't like to reveal the real parameters it would help to see the idea of how you read the database. -Jukka Rahkonen- Peter Rose wrote: Hi G, Classitem and expressions are fine when you are using a shapefile but as I said my data is stored in a MySQL database where these don't seem to work. Here is a copy of the mapfile I tried to use but it still doesn't work! ##################################### # POI layer - points of interest # LAYER NAME "poi" STATUS default TYPE point LABELCACHE on CLASS NAME "Large fiscal" EXPRESSION ([fiscal] < 1) STYLE SYMBOL "Circle" SIZE 8 COLOR 255 0 0 BACKGROUNDCOLOR 255 0 0 END END # class CLASS NAME "Small fiscal" EXPRESSION ([fiscal] > 1) STYLE SYMBOL "Circle" SIZE 8 COLOR 0 255 0 BACKGROUNDCOLOR 0 255 0 END END # class END # layer poi ##################################### No classitem need be specified if you use expressions and in fact they will be ignored if present but as I said this only works with shapefiles not with MySQL. Thanks for your suggestion. Peter -- View this message in context: http://n2.nabble.com/Symbol-sizes-tp2717421p2724379.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 From David.Fawcett at state.mn.us Mon Apr 27 06:34:16 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 27 Apr 2009 08:34:16 -0500 Subject: [mapserver-users] Symbol sizes In-Reply-To: <1240825063409-2724379.post@n2.nabble.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA42A@s-sp22.pca.state.mn.us> Expressions should work for any type of data source. When you say that it isn't working, what do you mean. Are you getting an error? Are you getting any symbols drawn with a size of 8? Are you only getting red dots or blue dots? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Peter Rose Sent: Monday, April 27, 2009 4:38 AM To: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Symbol sizes Hi G, Classitem and expressions are fine when you are using a shapefile but as I said my data is stored in a MySQL database where these don't seem to work. Here is a copy of the mapfile I tried to use but it still doesn't work! ##################################### # POI layer - points of interest # LAYER NAME "poi" STATUS default TYPE point LABELCACHE on CLASS NAME "Large fiscal" EXPRESSION ([fiscal] < 1) STYLE SYMBOL "Circle" SIZE 8 COLOR 255 0 0 BACKGROUNDCOLOR 255 0 0 END END # class CLASS NAME "Small fiscal" EXPRESSION ([fiscal] > 1) STYLE SYMBOL "Circle" SIZE 8 COLOR 0 255 0 BACKGROUNDCOLOR 0 255 0 END END # class END # layer poi ##################################### No classitem need be specified if you use expressions and in fact they will be ignored if present but as I said this only works with shapefiles not with MySQL. Thanks for your suggestion. Peter -- View this message in context: http://n2.nabble.com/Symbol-sizes-tp2717421p2724379.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 From peter_rose at hotmail.com Mon Apr 27 06:59:06 2009 From: peter_rose at hotmail.com (Peter Rose) Date: Mon, 27 Apr 2009 06:59:06 -0700 (PDT) Subject: [mapserver-users] Symbol sizes In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA42A@s-sp22.pca.state.mn.us> References: <1240750556206-2717421.post@n2.nabble.com> <004f01c9c6db$f0d0e810$d272b830$@com> <1240825063409-2724379.post@n2.nabble.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA42A@s-sp22.pca.state.mn.us> Message-ID: <1240840746486-2726194.post@n2.nabble.com> Hi, My conncetion takes place via PHP/MapScript which based on the example in Bill Kropla?s book ?Beginning MapServer Open Source GIS Develpment?, chapter 9. This means the conncetion is written into the php-file that my page is based on and the map-file only handels the way the map is shown. I have chosen to do it this way because that was the example Bill Kropla used. It allows me to change the query criteria via a text box on the webpage and I also need to use the query again further down the page to show the results with more info. As for the expressions not working, what I mean is that only the first class is shown (here it's the "Large fiscal" class with a red dot). But the filtering hasn't taken place so all query results are shown not just the <1 and they are all red. Mapserver therefore seems to ignore the expression all together. Peter -- View this message in context: http://n2.nabble.com/Symbol-sizes-tp2717421p2726194.html Sent from the Mapserver - User mailing list archive at Nabble.com. From russell at flora.ca Mon Apr 27 07:07:24 2009 From: russell at flora.ca (Russell McOrmond) Date: Mon, 27 Apr 2009 10:07:24 -0400 (EDT) Subject: [mapserver-users] MapServer 4 vs 5 seg fault In-Reply-To: <49EDE7EB.7000000@erau.edu> References: <49E8ADBC.7060309@erau.edu> <49EDE0B2.6030200@erau.edu> <49EDE7EB.7000000@erau.edu> Message-ID: On Tue, 21 Apr 2009, Michael E Masscotte wrote: > I haven't tried RHEL5 yet, but it happens with RHEL 4 and Solaris 10. I'm wondering if the core dump is around string manipulations? I bumped into a similar problem that traced to the strings being a NULL rather than a pointer to a string. This happened because the error returns from some string functions weren't being checked before trying to use these returns as strings. Check error returns from mapstring functions. http://trac.osgeo.org/mapserver/ticket/2988 It may be we are seeing something similar where an error message isn't able to be read as the program core dumps before the message is stored. -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry control over my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From luigi.cardeles at gmail.com Mon Apr 27 08:30:52 2009 From: luigi.cardeles at gmail.com (Luigi Castro Cardeles) Date: Mon, 27 Apr 2009 12:30:52 -0300 Subject: [mapserver-users] Mapserver native connection with oracle spatial Message-ID: Hi list, I was trying to connect to a layer on oracle spatial using mapserver native connection but i find some problems: When i try to load the layer (using mapserver cgi or command line), this message appears: /var/www/cgi-bin/mapserv "QUERY_STRING=map=app.map&mode=map" *** glibc detected *** /var/www/cgi-bin/mapserv: free(): invalid next size (fast): 0x09c23740 *** ======= Backtrace: ========= /lib/libc.so.6[0x6c8d06] /lib/libc.so.6(cfree+0x90)[0x6cc1e0] /var/www/cgi-bin/mapserv[0x80f2b6e] /var/www/cgi-bin/mapserv[0x80706be] /var/www/cgi-bin/mapserv[0x80765e7] /var/www/cgi-bin/mapserv[0x80529ca] /var/www/cgi-bin/mapserv[0x8054ac0] /lib/libc.so.6(__libc_start_main+0xdc)[0x675dec] /var/www/cgi-bin/mapserv[0x80516f1] Configuration: CentOS 5 - 2.6.18-92.1.22.el5.centos.plus x86. Oracle 10.2.0.1 + Oracle Spatial. Mapserver 5.4.0 ./mapserv -v MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=TIFF INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE I already set the permission of the files and enviroment variables (at /etc/profile and apache conf's). using sqlplus at that machine i can connect. That mapfile has other layers from other fonts (postgis, shp), they load without problem, I can load the oracle spatial layer using a java client without problem. Any hint? Luigi Castro Cardeles -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Mon Apr 27 12:41:11 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Mon, 27 Apr 2009 15:41:11 -0400 Subject: [mapserver-users] C# connectiontype issue Message-ID: Hi I have a raster layer in map file. When I load the map file using C# map script, at run time it shows layerObj.connectiontype as 'MS_CONNECTION_TYPE.MS_SHAPEFILE' though it is raster image. Is there any syntax error with my map file definition. I need to know exactly whether it is a raster or vector layer in my application. Some logic in my application needs to handle them differently. This is the entry in map file LAYER DATA "14m_jpg_24bit.jpg" NAME " 14m Jpg 24bit" STATUS ON TYPE RASTER UNITS METERS END Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Mon Apr 27 13:40:30 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 27 Apr 2009 15:40:30 -0500 Subject: [mapserver-users] C# connectiontype issue In-Reply-To: References: Message-ID: <49F5D1ED.5157.008F.0@dnr.state.mn.us> Nothing wrong with the layer def. Why not just look at the layer type first in your application. Rasters will always have TYPE RASTER. Everything else, is vector I'm pretty sure. Steve >>> On 4/27/2009 at 2:41 PM, in message , "Murty Maganti" wrote: > Hi > > > > I have a raster layer in map file. When I load the map file using C# map > script, at run time it shows layerObj.connectiontype as > 'MS_CONNECTION_TYPE.MS_SHAPEFILE' though it is raster image. Is there > any syntax error with my map file definition. I need to know exactly > whether it is a raster or vector layer in my application. Some logic in > my application needs to handle them differently. > > > > This is the entry in map file > > > > LAYER > > DATA "14m_jpg_24bit.jpg" > > NAME " 14m Jpg 24bit" > > STATUS ON > > TYPE RASTER > > UNITS METERS > > END > > > > Thanks > > Murty From MMaganti at oriongis.com Mon Apr 27 13:50:00 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Mon, 27 Apr 2009 16:50:00 -0400 Subject: [mapserver-users] C# connectiontype issue In-Reply-To: <49F5D1ED.5157.008F.0@dnr.state.mn.us> References: <49F5D1ED.5157.008F.0@dnr.state.mn.us> Message-ID: WMS layers also have type as 'Raster'. But I think I can still try If(layer type == Raster && connection type != WMS), hoping only WMS and true raster have type as 'Raster'. Thanks Murty -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Monday, April 27, 2009 4:41 PM To: mapserver-users at lists.osgeo.org; Murty Maganti Subject: Re: [mapserver-users] C# connectiontype issue Nothing wrong with the layer def. Why not just look at the layer type first in your application. Rasters will always have TYPE RASTER. Everything else, is vector I'm pretty sure. Steve >>> On 4/27/2009 at 2:41 PM, in message , "Murty Maganti" wrote: > Hi > > > > I have a raster layer in map file. When I load the map file using C# map > script, at run time it shows layerObj.connectiontype as > 'MS_CONNECTION_TYPE.MS_SHAPEFILE' though it is raster image. Is there > any syntax error with my map file definition. I need to know exactly > whether it is a raster or vector layer in my application. Some logic in > my application needs to handle them differently. > > > > This is the entry in map file > > > > LAYER > > DATA "14m_jpg_24bit.jpg" > > NAME " 14m Jpg 24bit" > > STATUS ON > > TYPE RASTER > > UNITS METERS > > END > > > > Thanks > > Murty From voas_acc at hotmail.com Mon Apr 27 18:26:06 2009 From: voas_acc at hotmail.com (Jim Strevinas) Date: Tue, 28 Apr 2009 04:26:06 +0300 Subject: [mapserver-users] Inconsistency between 5.4 and 5.2.1 concerning WhichShapes()? Message-ID: Hello list, I recently migrated to 5.4. I observed the following inconsistency and I would be grateful if someone can duplicate the problem too. In my (mapscript python) code i manually grab layer features using: layer.open() status = layer.whichShapes(map.extent) while (1): shape = layer.nextShape() if shape==None: break print shape.numvalues The last print returns the number of non-spatial attributes. In mapserver 5.2.1 it is returned correctly but in 5.4 is always 0 just like all the non spatial values are all null. One could also observer that: layer.open() print layer.numitems # Return the right value always status = layer.whichShapes(map.extent) print layer.numitems # Returns 0 ONLY in 5.4 My workaround now is to temporary store the whichShapes() returned features' indexes in a list and later access using layer.getFeature(i) which preserves the existance of non-spatial. I don;t know yet if this problem arised only for me, but i thought it would be wise to inform. _________________________________________________________________ Drag n? drop?Get easy photo sharing with Windows Live? Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Mon Apr 27 20:57:56 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 27 Apr 2009 22:57:56 -0500 Subject: [mapserver-users] Inconsistency between 5.4 and 5.2.1 concerningWhichShapes()? Message-ID: <49F638740200008F0002363E@co5.dnr.state.mn.us> What does your layer definition look like? Probably stems from the fix put in place for ticket #2689 (http://trac.osgeo.org/mapserver/ticket/2689). That fix may need more work as I imagine the msLayerWhichItems() is clobbering the item setup done when the layer is opened. Hmmm, how to fix... Steve >>> Jim Strevinas 04/27/09 8:27 PM >>> Hello list, I recently migrated to 5.4. I observed the following inconsistency and I would be grateful if someone can duplicate the problem too. In my (mapscript python) code i manually grab layer features using: layer.open() status = layer.whichShapes(map.extent) while (1): shape = layer.nextShape() if shape==None: break print shape.numvalues The last print returns the number of non-spatial attributes. In mapserver 5.2.1 it is returned correctly but in 5.4 is always 0 just like all the non spatial values are all null. One could also observer that: layer.open() print layer.numitems # Return the right value always status = layer.whichShapes(map.extent) print layer.numitems # Returns 0 ONLY in 5.4 My workaround now is to temporary store the whichShapes() returned features' indexes in a list and later access using layer.getFeature(i) which preserves the existance of non-spatial. I don;t know yet if this problem arised only for me, but i thought it would be wise to inform. _________________________________________________________________ Drag n? drop?Get easy photo sharing with Windows Live? Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx From vtammineni at roulacglobal.com Mon Apr 27 21:21:36 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 28 Apr 2009 09:51:36 +0530 Subject: [mapserver-users] C# connectiontype issue In-Reply-To: References: Message-ID: <004101c9c7b8$d3b7fc90$7b27f5b0$@com> Hi, I am using below map file code for loading raster data. below is my code. I think the problem with jpeg.convert into tiff or geo tiff etc.. it may work. ###### Heat Maps ####### Layer # Layer starts here Name "Hyderabad" GROUP "Heat Maps" Data "..\Raster\hyderabad.tif" PROCESSING "SCALE=1,15399.12305" // these are optional you need not use PROCESSING "SCALE_BUCKETS=10" // these are optional you need not use CLASSITEM "[pixel]" TYPE RASTER Status On CLASS Name "Class One" EXPRESSION ([pixel] > 1 AND [pixel] < 5133.041016) STYLE COLOR 255 255 0 END END CLASS Name "Class Two" EXPRESSION ([pixel] > 5133.041017 AND [pixel] < 10266.08203) STYLE COLOR 0 166 255 END END CLASS Name "Class Three" EXPRESSION ([pixel] > 10266.08204 AND [pixel] < 15399.12305 ) STYLE COLOR 255 0 0 END END End # end of the State Layer Thanks, Venkat From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Murty Maganti Sent: Tuesday, April 28, 2009 1:11 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] C# connectiontype issue Hi I have a raster layer in map file. When I load the map file using C# map script, at run time it shows layerObj.connectiontype as 'MS_CONNECTION_TYPE.MS_SHAPEFILE' though it is raster image. Is there any syntax error with my map file definition. I need to know exactly whether it is a raster or vector layer in my application. Some logic in my application needs to handle them differently. This is the entry in map file LAYER DATA "14m_jpg_24bit.jpg" NAME " 14m Jpg 24bit" STATUS ON TYPE RASTER UNITS METERS END Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From luigi.cardeles at gmail.com Mon Apr 27 21:35:54 2009 From: luigi.cardeles at gmail.com (Luigi Castro Cardeles) Date: Tue, 28 Apr 2009 01:35:54 -0300 Subject: [mapserver-users] Re: Mapserver native connection with oracle spatial In-Reply-To: References: Message-ID: Hi list, there are some problems with the hard drives (RAID) and maybe that is the cause. When the problem is solved and have some news, i will let you know. Thanks, Luigi Castro Cardeles 2009/4/27 Luigi Castro Cardeles > Hi list, > > I was trying to connect to a layer on oracle spatial using mapserver native > connection but i find some problems: > When i try to load the layer (using mapserver cgi or command line), this > message appears: > > > /var/www/cgi-bin/mapserv "QUERY_STRING=map=app.map&mode=map" > *** glibc detected *** /var/www/cgi-bin/mapserv: free(): invalid next size > (fast): 0x09c23740 *** > ======= Backtrace: ========= > /lib/libc.so.6[0x6c8d06] > /lib/libc.so.6(cfree+0x90)[0x6cc1e0] > /var/www/cgi-bin/mapserv[0x80f2b6e] > /var/www/cgi-bin/mapserv[0x80706be] > /var/www/cgi-bin/mapserv[0x80765e7] > /var/www/cgi-bin/mapserv[0x80529ca] > /var/www/cgi-bin/mapserv[0x8054ac0] > /lib/libc.so.6(__libc_start_main+0xdc)[0x675dec] > /var/www/cgi-bin/mapserv[0x80516f1] > > > Configuration: > > CentOS 5 - 2.6.18-92.1.22.el5.centos.plus x86. > Oracle 10.2.0.1 + Oracle Spatial. > Mapserver 5.4.0 > > ./mapserv -v > MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS > SUPPORTS=GEOS INPUT=TIFF INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR > INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE > > I already set the permission of the files and enviroment variables (at > /etc/profile and apache conf's). > > using sqlplus at that machine i can connect. > That mapfile has other layers from other fonts (postgis, shp), they load > without problem, > I can load the oracle spatial layer using a java client without problem. > > Any hint? > > > Luigi Castro Cardeles > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pbg at tragsa.es Mon Apr 27 23:14:43 2009 From: pbg at tragsa.es (=?iso-8859-1?Q?Pedro_Briones_Garc=EDa?=) Date: Tue, 28 Apr 2009 08:14:43 +0200 Subject: [mapserver-users] (no subject) Message-ID: What is the best way to map attribute data (non-geom) from Oracle (not * Spatial) using MapServer Un saludo. Pedro Briones Garc?a TRAGSATEC Gerencia de SIG y Consultor?a Departamento de Cartograf?a C/ Juli?n Camarillo 6, Edificio 6B - 2? Pl. Sector B 28037 Madrid mailto:pbg at tragsa.es Tfno.: +34 91 322 6489/+34 679 09 0001 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pbg at tragsa.es Mon Apr 27 23:41:15 2009 From: pbg at tragsa.es (=?iso-8859-1?Q?Pedro_Briones_Garc=EDa?=) Date: Tue, 28 Apr 2009 08:41:15 +0200 Subject: [mapserver-users] How to link Oracle attributes to SHAPEFILE Message-ID: Hello. I'm working with Oracle 10g and MapServer 5.2. My geographic layers are SHAPEFILES and the attributes of SHAPEFILES are stored in Oracle 10g (NOT Oracle Spatial or Locator) I need to link (or join) SHAPEFILES with attribute (NOT spatial) tables to do 3 things: - Draw only elements of SHAPEFILE that are related with some records in Oracle. A record (polygon, for example) in the SHAPEFILE should only draw if is related with a record in Oracle (they both have a common column). - Make a thematic map wich classifications depending on the values of Oracle records. - Draw only elements of SHAPEFILE that meet an Oracle condition I have found lots of examples of layers wich both, geometry and attribtes, in Oracle; or layers in Oracle Spatial, but none of how to link and use a SHAPEFILE with Oracle (not spatial). I too would like to do the same of the aforementioned, but in this case with DBF files instead of Oracle tables. I have seen an example in the documentation, but I don't know distinguish SHAPEFILES and the DBF files in the sentence. Please, could somebody send me an example to easily understand this? Thanks in advance. Pedro Briones Garc?a TRAGSATEC -------------- next part -------------- An HTML attachment was scrubbed... URL: From roald.dewit at lisasoft.com Mon Apr 27 23:59:47 2009 From: roald.dewit at lisasoft.com (Roald de Wit) Date: Tue, 28 Apr 2009 16:59:47 +1000 Subject: [mapserver-users] How to link Oracle attributes to SHAPEFILE In-Reply-To: References: Message-ID: <49F6A963.8030705@lisasoft.com> Hi Pedro, A number of years ago i had a situation like you describe below. The solution we chose was: - Create a postgresql/postgis datawarehouse - Import shapefiles into postgis (shp2psql or ogr2ogr) - Import attribute info from oracle into postgresql (we needed a commercial license for converting Oracle to Postgresql) - Either create a view or merge tables to join the geometry and attribute info - Serve the lot through MapServer WFS/WMS I hope this helps. Regards, Roald Pedro Briones Garc?a wrote: > Hello. > > I?m working with *Oracle 10g* and *MapServer 5.2*. My geographic layers are SHAPEFILES and the attributes of SHAPEFILES are stored in Oracle 10g (*NOT* Oracle Spatial or Locator) > > I need to link (or join) SHAPEFILES with attribute (NOT spatial) tables to do 3 things: > > - Draw only elements of SHAPEFILE that are related with some records in Oracle. A record (polygon, for example) in the SHAPEFILE should only draw if is related with a record in Oracle (they both have a common column). > - Make a thematic map wich classifications depending on the values of Oracle records. > - Draw only elements of SHAPEFILE that meet an Oracle condition > > > > > > I have found lots of examples of layers wich both, geometry and > attribtes, in Oracle; or layers in Oracle Spatial, but none of how to > link and use a SHAPEFILE with Oracle (not spatial). > > > > > > I too would like to do the same of the aforementioned, but in this > case with *DBF files* instead of Oracle tables. I have seen an example > in the documentation, but I don?t know distinguish SHAPEFILES and the > DBF files in the sentence. > > > > Please, could somebody send me an example to easily understand this? > > > > Thanks in advance. > > > > Pedro Briones Garc?a > > > > TRAGSATEC > > > -- Roald de Wit Software Engineer roald.dewit at lisasoft.com Commercial Support for Open Source GIS Software http://lisasoft.com/LISAsoft/SupportedProducts/ The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence. From voas_acc at hotmail.com Tue Apr 28 01:04:51 2009 From: voas_acc at hotmail.com (Jim Strevinas) Date: Tue, 28 Apr 2009 11:04:51 +0300 Subject: [mapserver-users] Inconsistency between 5.4 and 5.2.1 concerningWhichShapes()? In-Reply-To: <49F638740200008F0002363E@co5.dnr.state.mn.us> References: <49F638740200008F0002363E@co5.dnr.state.mn.us> Message-ID: Steve, you are absolutely right, according to #2689 i tried commenting out the msLayerWhichItems (layer.i) prior to msLayerWhichShapes in the 5.4 release. The item setup is thus maintained. While i'm afraid to mess with maplayer.c and maybe this will sound silly ,i observed that within maplayer.c in function msLayerWhichItems() at line 402, a cleanup of the previous item selections is performed: msLayerFreeItemInfo(layer); if(layer->items) { msFreeCharArray(layer->items, layer->numitems); layer->items = NULL; layer->numitems = 0; } I commented out the whole cleanup and observed that in the whole code below whenever needed (eg if classify is true) the elements subject to a cleanup are just safely overwritten. Moreover, commenting out the cleanup fixes the problem in my humble opinion. > >>> Steve.Lime at dnr.state.mn.us wrote: > > What does your layer definition look like? Probably stems from the fix > put in > place for ticket #2689 (http://trac.osgeo.org/mapserver/ticket/2689). > That fix > may need more work as I imagine the msLayerWhichItems() is clobbering > the > item setup done when the layer is opened. > > Hmmm, how to fix... > > Steve > > >>> Jim Strevinas 04/27/09 8:27 PM >>> > > > Hello list, I recently migrated to 5.4. I observed the following > > inconsistency > > and I would be grateful if someone can duplicate the problem too. > > In my (mapscript python) code i manually grab layer features using: > > > layer.open() > > status = layer.whichShapes(map.extent) > > while (1): > > shape = layer.nextShape() > > if shape==None: > > break > > print shape.numvalues > > > The last print returns the number of non-spatial attributes. > > In mapserver 5.2.1 it is returned correctly but in 5.4 is always 0 > > just like all the non spatial values are all null. _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -------------- next part -------------- An HTML attachment was scrubbed... URL: From pbg at tragsa.es Tue Apr 28 02:45:57 2009 From: pbg at tragsa.es (pbg) Date: Tue, 28 Apr 2009 02:45:57 -0700 (PDT) Subject: [mapserver-users] How to link Oracle attributes to SHAPEFILE In-Reply-To: <49F6A963.8030705@lisasoft.com> References: <49F6A963.8030705@lisasoft.com> Message-ID: <1240911957941-2732398.post@n2.nabble.com> Hi Roald. Thanks for the reply. In this project, we are required to use SHAPEFILES and Oracle, so we can't change this environment. Roald de Wit wrote: > > Hi Pedro, > > A number of years ago i had a situation like you describe below. The > solution we chose was: > - Create a postgresql/postgis datawarehouse > - Import shapefiles into postgis (shp2psql or ogr2ogr) > - Import attribute info from oracle into postgresql (we needed a > commercial license for converting Oracle to Postgresql) > - Either create a view or merge tables to join the geometry and > attribute info > - Serve the lot through MapServer WFS/WMS > > I hope this helps. > > Regards, Roald > > Pedro Briones Garc?a wrote: >> Hello. >> >> I?m working with *Oracle 10g* and *MapServer 5.2*. My geographic layers >> are SHAPEFILES and the attributes of SHAPEFILES are stored in Oracle 10g >> (*NOT* Oracle Spatial or Locator) >> >> I need to link (or join) SHAPEFILES with attribute (NOT spatial) tables >> to do 3 things: >> >> - Draw only elements of SHAPEFILE that are related with some >> records in Oracle. A record (polygon, for example) in the SHAPEFILE >> should only draw if is related with a record in Oracle (they both have a >> common column). >> - Make a thematic map wich classifications depending on the values >> of Oracle records. >> - Draw only elements of SHAPEFILE that meet an Oracle condition >> >> >> >> >> >> I have found lots of examples of layers wich both, geometry and >> attribtes, in Oracle; or layers in Oracle Spatial, but none of how to >> link and use a SHAPEFILE with Oracle (not spatial). >> >> >> >> >> >> I too would like to do the same of the aforementioned, but in this >> case with *DBF files* instead of Oracle tables. I have seen an example >> in the documentation, but I don?t know distinguish SHAPEFILES and the >> DBF files in the sentence. >> >> >> >> Please, could somebody send me an example to easily understand this? >> >> >> >> Thanks in advance. >> >> >> >> Pedro Briones Garc?a >> >> >> >> TRAGSATEC >> >> >> > > > -- > Roald de Wit > Software Engineer > roald.dewit at lisasoft.com > > Commercial Support for Open Source GIS Software > http://lisasoft.com/LISAsoft/SupportedProducts/ > > > > The contents of this email are confidential and may be subject to legal or > professional privilege and copyright. No representation is made that this > email is free of viruses or other defects. If you have received this > communication in error, you may not copy or distribute any part of it or > otherwise disclose its contents to anyone. Please advise the sender of > your incorrect receipt of this correspondence. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/How-to-link-Oracle-attributes-to-SHAPEFILE-tp2731838p2732398.html Sent from the Mapserver - User mailing list archive at Nabble.com. From iratxe.lejarreta at axios.es Tue Apr 28 04:33:32 2009 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Tue, 28 Apr 2009 13:33:32 +0200 Subject: [mapserver-users] mapserver error In-Reply-To: <1240569766327-2691761.post@n2.nabble.com> References: <200904212004.10735.iratxe.lejarreta@axios.es> <200904221253.29009.iratxe.lejarreta@axios.es> <1240569766327-2691761.post@n2.nabble.com> Message-ID: <200904281333.32982.iratxe.lejarreta@axios.es> On Friday 24 April 2009 12:42:46 Pano wrote: > Hi Iratxe, > Unfortunately I know very little about CentOS. Just a windows guy me :-) > But let me try: > Is it possible that you have multiple Oracle Homes setup? And sqlplus is > using the home where oracle server is installed whereas mapserver is using > another (oracle client?) home which does not have the tnsnames setup > correctly? In a windows setup i would first check the PATH environment > variable. If the oracle client install is the first on the list then this > is what mapserver would use. You mention a path > /usr/lib/oracle/10.2.0.3/client- does this folder also contains a > network\admin\tnsnames.ora file? Maybe this is the one you need to change > (again maybe talking complete rubish here as on idea abt this OS) > > Finally- another idea just to make sure its not a WFS problem. Are you able > to get an image by simply using cgi-bin e.g. > http://localhost/cgi-bin/mapserve?map=...,&mode=map etc?? > > Pano > > Iratxe Lejarreta wrote: > > On Wednesday 22 April 2009 08:54:57 Pano wrote: > >> Hi Iratxe, > >> > >> Looks like mapserver doesnt know the TNS name 'orcl' that you have > >> defined. > >> I assume that the machine where mapserver runs has an oracle client > >> installed? Can you log into sql plus i..e sqlplus mddata/@orcl > >> from > >> a command prompt on this box? I assume you will get the same TNS error. > >> Which will mean that your tnsnames.ora file is not set correctly. The > >> file > >> should be located under $ORACLE_HOME\network\admin\tnsnames.ora. There > >> should be an entry in there like: > >> > >> ORCL = > >> (DESCRIPTION = > >> (ADDRESS_LIST = > >> (ADDRESS = > >> (PROTOCOL = TCP) > >> (HOST = >> (PORT = ) > >> ) > >> ) > >> (CONNECT_DATA = > >> (SERVER = DEDICATED) > >> (SERVICE_NAME = ) > >> ) > >> ) > >> > >> Hope this helps, > >> Pano > >> > >> Iratxe Lejarreta wrote: > >> > Hi, > >> > > >> > I installed MapServer-5.2.0 on CentOS 5.2 with Oracle 10g, but when I > >> > >> run > >> > >> > the > >> > WFS service... > >> > > >> > http://localhost/cgi- > >> > bin/mywfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=cities > >> > > >> > ...the result is: > >> > ? > >> > >> > xsi:schemaLocation="http://www.opengis.net/ogc > >> > http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd"> > >> > ? > >> > > >> > > >> > msWFSGetFeature(): WFS server error. ms_error->code not found > >> > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > >> > Handlers. > >> > Connection failure. Check the connection string. Error: ORA-12154: > >> > TNS:could > >> > not resolve the connect identifier specified > >> > . > >> > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > >> > Handlers. > >> > Connection failure. Check the connection string. Error: ORA-12154: > >> > TNS:could > >> > not resolve the connect identifier specified > >> > . > >> > > >> > > >> > > >> > > >> > > >> > Mapfile: > >> > > >> > MAP > >> > NAME WFS_TEST > >> > STATUS ON > >> > SIZE 400 300 > >> > EXTENT -180 -90 180 90 > >> > UNITS METERS > >> > IMAGECOLOR 255 255 255 > >> > WEB > >> > METADATA > >> > "wfs_title" "WFS TEST" > >> > "wfs_onlineresource" "http://localhost/cgi-bin/mywfs?" > >> > "wfs_srs" "EPSG:4326" > >> > END > >> > END > >> > PROJECTION > >> > "init=epsg:4326" > >> > END > >> > LAYER > >> > NAME cities > >> > TYPE POINT > >> > CONNECTIONTYPE oraclespatial > >> > CONNECTION "MDDATA/*****@orcl" > >> > DATA "GEOM FROM CITIES USING UNIQUE FID SRID 4326 VERSION 10g" > >> > METADATA > >> > "wfs_title" "cities" > >> > "gml_featureid" "FID" > >> > "gml_include_items" "all" > >> > END > >> > STATUS ON > >> > DUMP TRUE > >> > CLASS > >> > STYLE > >> > OUTLINECOLOR 0 0 0 > >> > COLOR 0 128 128 > >> > END > >> > END > >> > END # Cities > >> > END # Map File > >> > > >> > > >> > Somebody can help me? > >> > > >> > Thanks in advance. > >> > > >> > -- > >> > Iratxe Lejarreta > >> > www.axios.es > >> > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > Hi Pano, > > > > Firstly, thanks for your answer! > > > > I have checked all configuration but I continue with the same error: > > > > 1.- I haven't got any error in logs. > > > > 2.- I installed Oracle Instat Client: > > # rpm -Uvh oracle-instantclient-basic-10.2.0.4-1.i386.rpm > > I have set the library loading path: > > # export LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.3/client/lib > > > > 3.- I can access with sqlplus and sqldeveloper without any problem: > > [oracle]$ sqlplus mddata/@orcl > > > > 4.- $ORACLE_HOME\network\admin\tnsnames.ora file: > > ORCL = > > (DESCRIPTION = > > (ADDRESS_LIST = > > (ADDRESS = > > (PROTOCOL = TCP) > > (HOST = 192.168.2.215) > > (PORT = 1521) > > ) > > ) > > (CONNECT_DATA = > > (SERVER = DEDICATED) > > (SERVICE_NAME = orcl) > > ) > > ) > > > > 5.- I try to access with the following URL: > > http://192.168.2.215/cgi- > > bin/mywfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=cities > > > > 6.- ...but the result it's the same: > > > xsi:schemaLocation="http://www.opengis.net/ogc > > http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd"> > > > > msWFSGetFeature(): WFS server error. ms_error->code not found > > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > > Handlers. > > Connection failure. Check the connection string. Error: ORA-12154: > > TNS:could > > not resolve the connect identifier specified. > > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > > Handlers. > > Connection failure. Check the connection string. Error: ORA-12154: > > TNS:could > > not resolve the connect identifier specified. > > > > > > > > Do you know where could be wrong? > > > > Thanks for your help!!!!! > > > > Regards, > > -- > > Iratxe Lejarreta > > www.axios.es > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users Hi Pano, Thanks, but I continue with the same problem. I have the following parameters in /etc/profile: export ORACLE_HOME=/usr/lib/oracle/10.2.0.4/client export ORACLE_SID=orcl export PATH=$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH export TNS_ADMIN==$ORACLE_HOME/network/admin And I have set MapServer with: ./configure ... --with- oraclespatial=$ORACLE_HOME I can't understood what is happening!! Thanks for your help! Regards, -- Iratxe Lejarreta www.axios.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From bestofmukul at gmail.com Tue Apr 28 05:08:46 2009 From: bestofmukul at gmail.com (Mukul Gupta) Date: Tue, 28 Apr 2009 17:38:46 +0530 Subject: [mapserver-users] Finding Lat-Long from shp file Message-ID: hi... I want to know if there is any method to automatically get the lat long of the particular point in the shape file and then store the corresponding values in mysql database file. Regards Mukul -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Tue Apr 28 05:24:33 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 28 Apr 2009 17:54:33 +0530 Subject: [mapserver-users] Finding Lat-Long from shp file In-Reply-To: References: Message-ID: <001501c9c7fc$4b24d1c0$e16e7540$@com> Hi, mapObj will have extents property ,where you can get your map extents. For example :- Alert(Map.extent.minx); Thanks, Venkat From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mukul Gupta Sent: Tuesday, April 28, 2009 5:39 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Finding Lat-Long from shp file hi... I want to know if there is any method to automatically get the lat long of the particular point in the shape file and then store the corresponding values in mysql database file. Regards Mukul -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcorti at gmail.com Tue Apr 28 05:51:29 2009 From: pcorti at gmail.com (Paolo Corti) Date: Tue, 28 Apr 2009 14:51:29 +0200 Subject: [mapserver-users] How to link Oracle attributes to SHAPEFILE Message-ID: > > Hi Roald. > > Thanks for the reply. > > In this project, we are required to use SHAPEFILES and Oracle, so we can't > change this environment. > > > Roald de Wit wrote: >> >> Hi Pedro, >> >> A number of years ago i had a situation like you describe below. The >> solution we chose was: >> - Create a postgresql/postgis datawarehouse >> - Import shapefiles into postgis (shp2psql or ogr2ogr) >> - Import attribute info from oracle into postgresql (we needed a >> commercial license for converting Oracle to Postgresql) >> - Either create a view or merge tables to join the geometry and >> attribute info >> - Serve the lot through MapServer WFS/WMS >> >> I hope this helps. >> >> Regards, Roald >> Pedro, the solution Roald is proposing is IMHO the closest one you have to obtain what you need with MapServer (et alii). according to this doc: http://mapserver.org/mapfile/join.html supported formats are: * DBF/XBase files * CSV (comma delimited text file) * PostgreSQL and PostGIS tables * MySQL tables So you have 5 options: 1. shapefile + dbf (exported from Oracle tables) 2. PostGIS 3. MySQL 4. Oracle Spatial 5. Oracle + ArcSde in 2. and 3. no need to join, you could use views. in 4 you need views. with 5 there are many limits with joins, so could be the wrong way to go. Note anyway that for what you need (join to make thematic map) according to the above doc there is no way. So the only solutions to go are 3, 4 I am not aware of other map web server software, neither OS or commercial, able to make mixed (from different sources) join for thematic mapping best regards Paolo From Steve.Lime at dnr.state.mn.us Tue Apr 28 05:59:43 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 28 Apr 2009 07:59:43 -0500 Subject: [mapserver-users] Inconsistency between 5.4 and 5.2.1concerningWhichShapes()? Message-ID: <49F6B76F0200008F0002365A@co5.dnr.state.mn.us> Stupid error on my part. I was worried about getting the right set of shapes out and spaced the correct item list part. Ugh... I'm not sure that removing the cleanup is the answer. Users could switch shapefile sources between layer open/close or change items used to label or classify features and you could leak memory. I'll look at that closer though. I have this fixed in a sandbox for 6.0 where msLayerWhichItems() was totally re-written, so I just need a band-aid for 5.4. Will re-open #2689... Steve >>> Jim Strevinas 04/28/09 3:05 AM >>> Steve, you are absolutely right, according to #2689 i tried commenting out the msLayerWhichItems (layer.i) prior to msLayerWhichShapes in the 5.4 release. The item setup is thus maintained. While i'm afraid to mess with maplayer.c and maybe this will sound silly ,i observed that within maplayer.c in function msLayerWhichItems() at line 402, a cleanup of the previous item selections is performed: msLayerFreeItemInfo(layer); if(layer->items) { msFreeCharArray(layer->items, layer->numitems); layer->items = NULL; layer->numitems = 0; } I commented out the whole cleanup and observed that in the whole code below whenever needed (eg if classify is true) the elements subject to a cleanup are just safely overwritten. Moreover, commenting out the cleanup fixes the problem in my humble opinion. > >>> Steve.Lime at dnr.state.mn.us wrote: > > What does your layer definition look like? Probably stems from the fix > put in > place for ticket #2689 (http://trac.osgeo.org/mapserver/ticket/2689). > That fix > may need more work as I imagine the msLayerWhichItems() is clobbering > the > item setup done when the layer is opened. > > Hmmm, how to fix... > > Steve > > >>> Jim Strevinas 04/27/09 8:27 PM >>> > > > Hello list, I recently migrated to 5.4. I observed the following > > inconsistency > > and I would be grateful if someone can duplicate the problem too. > > In my (mapscript python) code i manually grab layer features using: > > > layer.open() > > status = layer.whichShapes(map.extent) > > while (1): > > shape = layer.nextShape() > > if shape==None: > > break > > print shape.numvalues > > > The last print returns the number of non-spatial attributes. > > In mapserver 5.2.1 it is returned correctly but in 5.4 is always 0 > > just like all the non spatial values are all null. _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From wal3 at mindspring.com Tue Apr 28 06:14:05 2009 From: wal3 at mindspring.com (Worth Lutz) Date: Tue, 28 Apr 2009 09:14:05 -0400 Subject: [mapserver-users] PHP mapscript - QuerymapObj class Message-ID: <19361C6294884478A9377253EAB395FB@Worthlaptop> Is there any way to access the QuerymapObj from PHP mapscript? I cannot find the reference to the object or a method to get to it in the MapObj class. Is the only way to change size or color in the mapfile if using PHP mapscript? Thanks in advance for your help, Worth Lutz -------------- next part -------------- An HTML attachment was scrubbed... URL: From luigi.cardeles at gmail.com Tue Apr 28 06:19:07 2009 From: luigi.cardeles at gmail.com (Luigi Castro Cardeles) Date: Tue, 28 Apr 2009 10:19:07 -0300 Subject: [mapserver-users] How to link Oracle attributes to SHAPEFILE In-Reply-To: References: Message-ID: Hi list, hum, could he use ogr vrt? http://www.gdal.org/ogr/drv_vrt.html Luigi Castro Cardeles 2009/4/28 Paolo Corti > > > > Hi Roald. > > > > Thanks for the reply. > > > > In this project, we are required to use SHAPEFILES and Oracle, so we > can't > > change this environment. > > > > > > Roald de Wit wrote: > >> > >> Hi Pedro, > >> > >> A number of years ago i had a situation like you describe below. The > >> solution we chose was: > >> - Create a postgresql/postgis datawarehouse > >> - Import shapefiles into postgis (shp2psql or ogr2ogr) > >> - Import attribute info from oracle into postgresql (we needed a > >> commercial license for converting Oracle to Postgresql) > >> - Either create a view or merge tables to join the geometry and > >> attribute info > >> - Serve the lot through MapServer WFS/WMS > >> > >> I hope this helps. > >> > >> Regards, Roald > >> > > Pedro, the solution Roald is proposing is IMHO the closest one you > have to obtain what you need with MapServer (et alii). > > according to this doc: http://mapserver.org/mapfile/join.html > > supported formats are: > * DBF/XBase files > * CSV (comma delimited text file) > * PostgreSQL and PostGIS tables > * MySQL tables > > So you have 5 options: > 1. shapefile + dbf (exported from Oracle tables) > 2. PostGIS > 3. MySQL > 4. Oracle Spatial > 5. Oracle + ArcSde > > in 2. and 3. no need to join, you could use views. > in 4 you need views. > with 5 there are many limits with joins, so could be the wrong way to go. > > Note anyway that for what you need (join to make thematic map) > according to the above doc there is no way. > So the only solutions to go are 3, 4 > I am not aware of other map web server software, neither OS or > commercial, able to make mixed (from different sources) join for > thematic mapping > > best regards > Paolo > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From iratxe.lejarreta at axios.es Tue Apr 28 06:20:07 2009 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Tue, 28 Apr 2009 15:20:07 +0200 Subject: [mapserver-users] DescribeFeatureType Message-ID: <200904281520.07843.iratxe.lejarreta@axios.es> Hi, I have MapServer with Oracle Spatial and when I run the request "DescribeFeatureType", the result of types for all fiels is "string". http://localhost/cgi- bin/mywfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME= Is it possible to know the type of different fields of the layer as described in my database? Thanks in advance! -- Iratxe Lejarreta www.axios.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Tue Apr 28 06:30:43 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 28 Apr 2009 09:30:43 -0400 Subject: [mapserver-users] PHP mapscript - QuerymapObj class In-Reply-To: <19361C6294884478A9377253EAB395FB@Worthlaptop> References: <19361C6294884478A9377253EAB395FB@Worthlaptop> Message-ID: <49F70503.70900@dmsolutions.ca> Worth Lutz wrote: > Is there any way to access the QuerymapObj from PHP mapscript? > > > > I cannot find the reference to the object or a method to get to it in > the MapObj class. > It should be accessible from the map object: http://mapserver.org/mapscript/php/index.html#querymapobj-class > > > Is the only way to change size or color in the mapfile if using PHP > mapscript? > > > > > > Thanks in advance for your help, > > > > Worth Lutz > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From bartvde at osgis.nl Tue Apr 28 06:36:49 2009 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Tue, 28 Apr 2009 15:36:49 +0200 (CEST) Subject: [mapserver-users] DescribeFeatureType In-Reply-To: <200904281520.07843.iratxe.lejarreta@axios.es> References: <200904281520.07843.iratxe.lejarreta@axios.es> Message-ID: <28649.145.50.39.11.1240925809.squirrel@webmail.hostingdiscounter.nl> Hi, sorry but Mapserver does not support this (yet). Best regards, Bart > Hi, > > I have MapServer with Oracle Spatial and when I run the request > "DescribeFeatureType", the result of types for all fiels is "string". > > http://localhost/cgi- > bin/mywfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME= > > Is it possible to know the type of different fields of the layer as > described in > my database? > > Thanks in advance! > > -- > Iratxe Lejarreta > www.axios.es > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From wal3 at mindspring.com Tue Apr 28 06:48:32 2009 From: wal3 at mindspring.com (Worth Lutz) Date: Tue, 28 Apr 2009 09:48:32 -0400 Subject: [mapserver-users] PHP mapscript - QuerymapObj class In-Reply-To: <49F70503.70900@dmsolutions.ca> References: <19361C6294884478A9377253EAB395FB@Worthlaptop> <49F70503.70900@dmsolutions.ca> Message-ID: <47130B04290547E582CEFF369789D65A@Worthlaptop> Yes, I saw the page you referenced. That was what prompted my question. If you look in the documentation for the map object there is no reference to the querymapobj-class. In other words there is no member which points to the querymapobj and no method to get the object. The reference map objects are gotten by a member pointing to the object and the layer and class objects are gotten by a method. I was looking for a similar member or method to get the querymapobj. Have I overlooked something? Thanks, Worth -----Original Message----- From: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] Sent: Tuesday, April 28, 2009 9:31 AM To: Worth Lutz Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] PHP mapscript - QuerymapObj class Worth Lutz wrote: > Is there any way to access the QuerymapObj from PHP mapscript? > > > > I cannot find the reference to the object or a method to get to it in > the MapObj class. > It should be accessible from the map object: http://mapserver.org/mapscript/php/index.html#querymapobj-class > > > Is the only way to change size or color in the mapfile if using PHP > mapscript? > > > > > > Thanks in advance for your help, > > > > Worth Lutz > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From yassefa at dmsolutions.ca Tue Apr 28 07:08:30 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 28 Apr 2009 10:08:30 -0400 Subject: [mapserver-users] PHP mapscript - QuerymapObj class In-Reply-To: <47130B04290547E582CEFF369789D65A@Worthlaptop> References: <19361C6294884478A9377253EAB395FB@Worthlaptop> <49F70503.70900@dmsolutions.ca> <47130B04290547E582CEFF369789D65A@Worthlaptop> Message-ID: <49F70DDE.3050602@dmsolutions.ca> The member should be $oMap->querymap. I will update the doc to reflect that. Worth Lutz wrote: > Yes, I saw the page you referenced. That was what prompted my question. > > If you look in the documentation for the map object there is no reference to > the querymapobj-class. In other words there is no member which points to > the querymapobj and no method to get the object. > > The reference map objects are gotten by a member pointing to the object and > the layer and class objects are gotten by a method. I was looking for a > similar member or method to get the querymapobj. > > Have I overlooked something? > > > Thanks, > Worth > > -----Original Message----- > From: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] > Sent: Tuesday, April 28, 2009 9:31 AM > To: Worth Lutz > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] PHP mapscript - QuerymapObj class > > Worth Lutz wrote: >> Is there any way to access the QuerymapObj from PHP mapscript? >> >> >> >> I cannot find the reference to the object or a method to get to it in >> the MapObj class. >> > It should be accessible from the map object: > http://mapserver.org/mapscript/php/index.html#querymapobj-class >> >> >> Is the only way to change size or color in the mapfile if using PHP >> mapscript? >> >> >> >> >> >> Thanks in advance for your help, >> >> >> >> Worth Lutz >> >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Tom.Kralidis at ec.gc.ca Tue Apr 28 07:15:55 2009 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Tue, 28 Apr 2009 10:15:55 -0400 Subject: [mapserver-users] DescribeFeatureType In-Reply-To: <28649.145.50.39.11.1240925809.squirrel@webmail.hostingdiscounter.nl> References: <200904281520.07843.iratxe.lejarreta@axios.es> <28649.145.50.39.11.1240925809.squirrel@webmail.hostingdiscounter.nl> Message-ID: <23842457308FD64AA88A8EE62F2A7D5B83397B@OntExch3.ontario.int.ec.gc.ca> FYI there is an open ticket on this at http://trac.osgeo.org/mapserver/ticket/462 ..Tom > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > bartvde at osgis.nl > Sent: Tuesday, 28 April 2009 09:37 > To: Iratxe Lejarreta > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] DescribeFeatureType > > Hi, > > sorry but Mapserver does not support this (yet). > > Best regards, > Bart > > > Hi, > > > > I have MapServer with Oracle Spatial and when I run the request > > "DescribeFeatureType", the result of types for all fiels is > "string". > > > > http://localhost/cgi- > > > bin/mywfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENA > > ME= > > > > Is it possible to know the type of different fields of the layer as > > described in my database? > > > > Thanks in advance! > > > > -- > > Iratxe Lejarreta > > www.axios.es > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at dnr.state.mn.us Tue Apr 28 07:00:57 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 28 Apr 2009 09:00:57 -0500 Subject: [mapserver-users] DescribeFeatureType Message-ID: <49F6C5CB0200008F0002367E@co5.dnr.state.mn.us> To clarify, the support is not automatic. The developer of the service has the ability to define types in the service configuration but it must be done by hand. Steve >>> 04/28/09 8:37 AM >>> Hi, sorry but Mapserver does not support this (yet). Best regards, Bart > Hi, > > I have MapServer with Oracle Spatial and when I run the request > "DescribeFeatureType", the result of types for all fiels is "string". > > http://localhost/cgi- > bin/mywfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME= > > Is it possible to know the type of different fields of the layer as > described in > my database? > > Thanks in advance! > > -- > Iratxe Lejarreta > www.axios.es > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From MarkVolz at co.lyon.mn.us Tue Apr 28 09:26:44 2009 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 28 Apr 2009 11:26:44 -0500 Subject: [mapserver-users] total values from a shapefile? Message-ID: <3D56274B4A7874468F58FADDBFD09801073A368D@llmhs02.r8nssis.local> Hello, Can map server combine two fields and display a total for the values, or do we need to total the values ahead of time in the shapefile? Mark Volz GIS Specialist Lyon County, MN -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue Apr 28 09:39:57 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 28 Apr 2009 11:39:57 -0500 Subject: [mapserver-users] total values from a shapefile? In-Reply-To: <3D56274B4A7874468F58FADDBFD09801073A368D@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD09801073A368D@llmhs02.r8nssis.local> Message-ID: <49F6EB0C.5157.008F.0@dnr.state.mn.us> Depends, are you talking about for labeling, expression evaluation or template display? For labeling: No. For expression evaluation: Yes (using logical expressions you can do EXPRESSION ([item1] + [item2] > 50) For templates: Yes for HTML via javascript, e.g.: Steve >>> On 4/28/2009 at 11:26 AM, in message <3D56274B4A7874468F58FADDBFD09801073A368D at llmhs02.r8nssis.local>, "Mark Volz" wrote: > Hello, > > > > Can map server combine two fields and display a total for the values, or do > we need to total the values ahead of time in the shapefile? > > > > Mark Volz > > GIS Specialist > > Lyon County, MN > > From jmckenna at gatewaygeomatics.com Tue Apr 28 09:41:08 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 28 Apr 2009 12:41:08 -0400 Subject: [mapserver-users] total values from a shapefile? In-Reply-To: <3D56274B4A7874468F58FADDBFD09801073A368D@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD09801073A368D@llmhs02.r8nssis.local> Message-ID: <49F731A4.20202@gatewaygeomatics.com> Mark Volz wrote: > Can map server combine two fields and display a total for the values, or > do we need to total the values ahead of time in the shapefile? Hi Mark, Not that I'm aware of. Even if it could, I would always pre-process the data, so MapServer doesn't have to execute those extra functions on-the-fly, and therefore speed up my application. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From nelsonwc7 at hotmail.com Tue Apr 28 09:50:06 2009 From: nelsonwc7 at hotmail.com (Nelson Correia) Date: Tue, 28 Apr 2009 16:50:06 +0000 Subject: [mapserver-users] Outline on the roads label boxes Message-ID: Hi, Do you know how to write an outline on the roads label boxes, just like the ones that Google Maps has? In Mapserver docs I only see an outline for the letters and not for the background. Does Mapserver support it? You can see the labels (L2150, K2, K7) with white background and black outline at: http://maps.google.com/maps?ie=UTF8&ll=50.764911,10.953197&spn=0.038979,0.11158&z=14 Thanks, Nelson _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Tue Apr 28 09:53:24 2009 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 28 Apr 2009 11:53:24 -0500 Subject: [mapserver-users] total values from a shapefile? In-Reply-To: <49F6EB0C.5157.008F.0@dnr.state.mn.us> References: <3D56274B4A7874468F58FADDBFD09801073A368D@llmhs02.r8nssis.local> <49F6EB0C.5157.008F.0@dnr.state.mn.us> Message-ID: <3D56274B4A7874468F58FADDBFD09801073A36BF@llmhs02.r8nssis.local> Steve, Thank you for your reply. I will be using it for templates. Mark Volz GIS Specialist Lyon County, MN -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Tuesday, April 28, 2009 11:40 AM To: Mark Volz; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] total values from a shapefile? Depends, are you talking about for labeling, expression evaluation or template display? For labeling: No. For expression evaluation: Yes (using logical expressions you can do EXPRESSION ([item1] + [item2] > 50) For templates: Yes for HTML via javascript, e.g.: Steve >>> On 4/28/2009 at 11:26 AM, in message <3D56274B4A7874468F58FADDBFD09801073A368D at llmhs02.r8nssis.local>, "Mark Volz" wrote: > Hello, > > > > Can map server combine two fields and display a total for the values, or do > we need to total the values ahead of time in the shapefile? > > > > Mark Volz > > GIS Specialist > > Lyon County, MN > > From warmerdam at pobox.com Tue Apr 28 10:01:59 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 28 Apr 2009 13:01:59 -0400 Subject: [mapserver-users] C# connectiontype issue In-Reply-To: <004101c9c7b8$d3b7fc90$7b27f5b0$@com> References: <004101c9c7b8$d3b7fc90$7b27f5b0$@com> Message-ID: <49F73687.1000907@pobox.com> > I have a raster layer in map file. When I load the map file using C# map > script, at run time it shows layerObj.connectiontype as > ?MS_CONNECTION_TYPE.MS_SHAPEFILE? though it is raster image. Is there > any syntax error with my map file definition. I need to know exactly > whether it is a raster or vector layer in my application. Some logic in > my application needs to handle them differently. > > > > This is the entry in map file > > > > LAYER > > DATA "14m_jpg_24bit.jpg" > > NAME " 14m Jpg 24bit" > > STATUS ON > > TYPE RASTER > > UNITS METERS > > END Murty, I believe the connectiontype value is left to the default for raster layers, which happens to be MS_SHAPEFILE. The connectiontype does not really apply for layers of type RASTER. I think to distingish layer types properly you will need to examine both the TYPE and CONNECTIONTYPE fields. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From thomas.bonfort at camptocamp.com Tue Apr 28 10:10:31 2009 From: thomas.bonfort at camptocamp.com (Thomas Bonfort) Date: Tue, 28 Apr 2009 19:10:31 +0200 Subject: [mapserver-users] Outline on the roads label boxes In-Reply-To: References: Message-ID: <2922382e0904281010i47fadd9ds51346665bd481f51@mail.gmail.com> this isn't currently possible. best regards, thomas On Tue, Apr 28, 2009 at 6:50 PM, Nelson Correia wrote: > > Hi, > > Do you know how to write an outline on the roads label boxes, just like the > ones that Google Maps has? In Mapserver docs I only see an outline for the > letters and not for the background. Does Mapserver support it? > > You can see the labels (L2150, K2, K7)?with white background and black > outline at: > > http://maps.google.com/maps?ie=UTF8&ll=50.764911,10.953197&spn=0.038979,0.11158&z=14 > > Thanks, > > Nelson > > ________________________________ > Get news, entertainment and everything you care about at Live.com. Check it > out! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- www.camptocamp.com +33 4 79 26 57 97 From valiantheart at hotmail.com Tue Apr 28 10:15:48 2009 From: valiantheart at hotmail.com (jchampagne2) Date: Tue, 28 Apr 2009 10:15:48 -0700 (PDT) Subject: [mapserver-users] Automatically Clearing Old Map Images In-Reply-To: <49F2B916.6020201@hostgis.com> References: <1240608577679-2699631.post@n2.nabble.com> <49F2B916.6020201@hostgis.com> Message-ID: <1240938948121-2734870.post@n2.nabble.com> Thank you! I did a little research, and writing a .bat file to execute as a scheduled task is exactly what I needed. The file is simple: @echo off cd C:\OSGeo4W\tmp\ms_tmp del *.png cls echo Your MapServer cache has been cleared! echo. pause >nul Saved as 'clearCache.bat' and added it as a scheduled task through Windows System Tools. I added the message just for diagnostic purposes, but I'll probably delete it once I'm sure this will work. Gregor at HostGIS wrote: > > > Yeah, typical cronjob approaches. I can't say for Windows, but for Linux > systems you'd create a /etc/cron.hourly file that goes something like > one of these, depending on your version of "find": > > find /maps/images.tmp -mindepth 1 -ctime +1 -exec rm -f {} \; > > find /maps/images.tmp -mindepth 1 -ctime +1 -delete > > -- View this message in context: http://n2.nabble.com/Automatically-Clearing-Old-Map-Images-tp2699631p2734870.html Sent from the Mapserver - User mailing list archive at Nabble.com. From cnieman at dmsolutions.ca Tue Apr 28 10:16:02 2009 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Tue, 28 Apr 2009 13:16:02 -0400 Subject: [mapserver-users] Outline on the roads label boxes In-Reply-To: References: Message-ID: <49F739D2.7070008@dmsolutions.ca> Hi, You can use an annotation layer with a symbol. Something like: LAYER NAME "labels" TYPE ANNOTATION DATA "/your/data/path/" STATUS ON LABELITEM "RD_NUM" CLASS NAME "road_numbers" STYLE SYMBOL 'rectangle' COLOR 255 255 255 OUTLINECOLOR 0 0 0 SIZE 16 END LABEL TYPE TRUETYPE ANTIALIAS TRUE FONT "myfont" SIZE 8 POSITION CC COLOR 0 0 0 PARTIALS FALSE END END END and the symbol would be something like: SYMBOL NAME 'rectangle' TYPE VECTOR POINTS 0 0 0 14 25 14 25 0 0 0 END FILLED TRUE END Regards, -- Christy Nieman GIS Technician DM Solutions Group, Inc. Email: cnieman at dmsolutions.ca Web: http://dmsolutions.ca Web: http://research.dmsolutions.ca Nelson Correia wrote: > > Hi, > > Do you know how to write an outline on the roads label boxes, just > like the ones that Google Maps has? In Mapserver docs I only see an > outline for the letters and not for the background. Does Mapserver > support it? > > You can see the labels (L2150, K2, K7) with white background and black > outline at: > > http://maps.google.com/maps?ie=UTF8&ll=50.764911,10.953197&spn=0.038979,0.11158&z=14 > > > Thanks, > > Nelson > > ------------------------------------------------------------------------ > Get news, entertainment and everything you care about at Live.com. > Check it out! > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From rashadkm at gmail.com Tue Apr 28 10:17:11 2009 From: rashadkm at gmail.com (Mohammed Rashad) Date: Tue, 28 Apr 2009 22:47:11 +0530 Subject: [mapserver-users] RE: Finding Lat-Long from shp file Message-ID: <50c7e3a0904281017g35a564d9l91ccec8d1d61f097@mail.gmail.com> Hi, Here is the way you can find lat-long values from shp files. The method is ugly. I used this method to select lat-long values from a shape file consisting of about 150 records. Using this method all lat-long values from a shapefile consisting of place names of country can be selected and saved into files. I already told method is dirty. You can find using postgreSQL. first you should install postgis-postgresql package. and follow instructions in postgis manual. you want to import some files after installing postgis such as lwpostgis.sql etc... I think you added necessary attributes in shape files such as name of place etc,.. create a database in postgresql with postgis enabled (say db1) Now import .shp files into postgresql using cmd: you should have a database db1 with postgis support. shp2pgsql /root/vect1.shp vect1 db1 > /root/vect1.sql now you got vect1.sql file import sql file into postgresql. psql -d db1 -f /root/vect1.sql Now logon to postgresql admin tool such as phppgadmin or you can do these thing from postgresql interactive terminal. In the database db1 now you have another table name vect1. vect1 has some other attributes such as gid,the_geom etc.. other than attributes you have entered. 'the_geom' is the geometry of shape file. select X(the_geom) from vect1; query executes to display longitude all entries in shape files and select Y(the_geom) from vect1; query executes to display latitude all entries in shape files this data can also be inserted into table by inserting a new column for latitude and longitude. If you want table back to shp files using the cmd: pgsql2shp -f vect1 -p 5432 db1 vect1 Or You can also export column latitude and longtiude into mysql also as you wish -- Regards, Mohammed Rashad K.M http://keralainfo.web4all.in/ +919605476742 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue Apr 28 10:23:04 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 28 Apr 2009 12:23:04 -0500 Subject: [mapserver-users] Outline on the roads label boxes In-Reply-To: <2922382e0904281010i47fadd9ds51346665bd481f51@mail.gmail.com> References: <2922382e0904281010i47fadd9ds51346665bd481f51@mail.gmail.com> Message-ID: <49F6F528.5157.008F.0@dnr.state.mn.us> You can however, develop separate classes based on label length. You'd have different symbols to handle wide text vs. narrow. For example: LABELITEM 'myitem' CLASS EXPRESSION (length('[myitem]') > 5) # use a really wide shield STYLE SYMBOL 'reallywideshield' ... END END CLASS EXPRESSION (length('[myitem]') > 3) # use a wide marker STYLE SYMBOL 'wideshield' ... END END CLASS # default to a regular shield STYLE SYMBOL 'shield' ... END END Steve >>> On 4/28/2009 at 12:10 PM, in message <2922382e0904281010i47fadd9ds51346665bd481f51 at mail.gmail.com>, Thomas Bonfort wrote: > this isn't currently possible. > > best regards, > thomas > > On Tue, Apr 28, 2009 at 6:50 PM, Nelson Correia wrote: >> >> Hi, >> >> Do you know how to write an outline on the roads label boxes, just like the >> ones that Google Maps has? In Mapserver docs I only see an outline for the >> letters and not for the background. Does Mapserver support it? >> >> You can see the labels (L2150, K2, K7) with white background and black >> outline at: >> >> > http://maps.google.com/maps?ie=UTF8&ll=50.764911,10.953197&spn=0.038979,0.11158 > &z=14 >> >> Thanks, >> >> Nelson >> >> ________________________________ >> Get news, entertainment and everything you care about at Live.com. Check it >> out! >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > > -- > www.camptocamp.com > +33 4 79 26 57 97 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From cnieman at dmsolutions.ca Tue Apr 28 10:26:24 2009 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Tue, 28 Apr 2009 13:26:24 -0400 Subject: [mapserver-users] Outline on the roads label boxes In-Reply-To: <49F6F528.5157.008F.0@dnr.state.mn.us> References: <2922382e0904281010i47fadd9ds51346665bd481f51@mail.gmail.com> <49F6F528.5157.008F.0@dnr.state.mn.us> Message-ID: <49F73C40.4000803@dmsolutions.ca> Or you could have one class and have the name of the right shield to use in an attribute in your data and use attribute mapping STYLE SYMBOL [myShieldAttribute] ... END Regards, Christy Steve Lime wrote: > You can however, develop separate classes based on label length. You'd have different > symbols to handle wide text vs. narrow. For example: > > LABELITEM 'myitem' > CLASS > EXPRESSION (length('[myitem]') > 5) # use a really wide shield > STYLE > SYMBOL 'reallywideshield' > ... > END > END > CLASS > EXPRESSION (length('[myitem]') > 3) # use a wide marker > STYLE > SYMBOL 'wideshield' > ... > END > END > CLASS # default to a regular shield > STYLE > SYMBOL 'shield' > ... > END > END > > Steve > > >>>> On 4/28/2009 at 12:10 PM, in message >>>> > <2922382e0904281010i47fadd9ds51346665bd481f51 at mail.gmail.com>, Thomas Bonfort > wrote: > >> this isn't currently possible. >> >> best regards, >> thomas >> >> On Tue, Apr 28, 2009 at 6:50 PM, Nelson Correia wrote: >> >>> Hi, >>> >>> Do you know how to write an outline on the roads label boxes, just like the >>> ones that Google Maps has? In Mapserver docs I only see an outline for the >>> letters and not for the background. Does Mapserver support it? >>> >>> You can see the labels (L2150, K2, K7) with white background and black >>> outline at: >>> >>> >>> >> http://maps.google.com/maps?ie=UTF8&ll=50.764911,10.953197&spn=0.038979,0.11158 >> &z=14 >> >>> Thanks, >>> >>> Nelson >>> >>> ________________________________ >>> Get news, entertainment and everything you care about at Live.com. Check it >>> out! >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >> >> -- >> www.camptocamp.com >> +33 4 79 26 57 97 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at camptocamp.com Tue Apr 28 10:33:01 2009 From: thomas.bonfort at camptocamp.com (Thomas Bonfort) Date: Tue, 28 Apr 2009 19:33:01 +0200 Subject: [mapserver-users] Outline on the roads label boxes In-Reply-To: <49F6F528.5157.008F.0@dnr.state.mn.us> References: <2922382e0904281010i47fadd9ds51346665bd481f51@mail.gmail.com> <49F6F528.5157.008F.0@dnr.state.mn.us> Message-ID: <2922382e0904281033s55908caaqc04ff8ac53c830b2@mail.gmail.com> The label background is getting quite cluttered actually, we have backgroundcolor, backgroundshadowcolor, backgroundshadowsize, and maybe a couple of others I'm forgetting. maybe we could add something equivalent to backgroundstyle that would have the same syntax as a class STYLE, that would then be passed on as a normal style to msDrawShadeSymbol, along with the shapeobj corresponding to the background shade. we'd then have all the goodness of mapserver styles: outlines, symbols, opacity, etc... just a thought, thomas On Tue, Apr 28, 2009 at 7:23 PM, Steve Lime wrote: > You can however, develop separate classes based on label length. You'd have different > symbols to handle wide text vs. narrow. For example: > > LABELITEM 'myitem' > CLASS > ?EXPRESSION (length('[myitem]') > 5) # use a really wide shield > ?STYLE > ? ?SYMBOL 'reallywideshield' > ? ? ... > ?END > END > CLASS > ?EXPRESSION (length('[myitem]') > 3) # use a wide marker > ?STYLE > ? ?SYMBOL 'wideshield' > ? ? ... > ?END > END > CLASS # default to a regular shield > ?STYLE > ? ?SYMBOL 'shield' > ? ? ... > ?END > END > > Steve > >>>> On 4/28/2009 at 12:10 PM, in message > <2922382e0904281010i47fadd9ds51346665bd481f51 at mail.gmail.com>, Thomas Bonfort > wrote: >> this isn't currently possible. >> >> best regards, >> thomas >> >> On Tue, Apr 28, 2009 at 6:50 PM, Nelson Correia wrote: >>> >>> Hi, >>> >>> Do you know how to write an outline on the roads label boxes, just like the >>> ones that Google Maps has? In Mapserver docs I only see an outline for the >>> letters and not for the background. Does Mapserver support it? >>> >>> You can see the labels (L2150, K2, K7) with white background and black >>> outline at: >>> >>> >> http://maps.google.com/maps?ie=UTF8&ll=50.764911,10.953197&spn=0.038979,0.11158 >> &z=14 >>> >>> Thanks, >>> >>> Nelson >>> >>> ________________________________ >>> Get news, entertainment and everything you care about at Live.com. Check it >>> out! >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> >> >> -- >> www.camptocamp.com >> +33 4 79 26 57 97 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- www.camptocamp.com +33 4 79 26 57 97 From David.Fawcett at state.mn.us Tue Apr 28 10:51:38 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 28 Apr 2009 12:51:38 -0500 Subject: [mapserver-users] RE: Finding Lat-Long from shp file In-Reply-To: <50c7e3a0904281017g35a564d9l91ccec8d1d61f097@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA436@s-sp22.pca.state.mn.us> You could also write a fairly simple python script using the gdal/ogr python modules. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mohammed Rashad Sent: Tuesday, April 28, 2009 12:17 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: Finding Lat-Long from shp file Hi, Here is the way you can find lat-long values from shp files. The method is ugly. I used this method to select lat-long values from a shape file consisting of about 150 records. Using this method all lat-long values from a shapefile consisting of place names of country can be selected and saved into files. I already told method is dirty. You can find using postgreSQL. first you should install postgis-postgresql package. and follow instructions in postgis manual. you want to import some files after installing postgis such as lwpostgis.sql etc... I think you added necessary attributes in shape files such as name of place etc,.. create a database in postgresql with postgis enabled (say db1) Now import .shp files into postgresql using cmd: you should have a database db1 with postgis support. shp2pgsql /root/vect1.shp vect1 db1 > /root/vect1.sql now you got vect1.sql file import sql file into postgresql. psql -d db1 -f /root/vect1.sql Now logon to postgresql admin tool such as phppgadmin or you can do these thing from postgresql interactive terminal. In the database db1 now you have another table name vect1. vect1 has some other attributes such as gid,the_geom etc.. other than attributes you have entered. 'the_geom' is the geometry of shape file. select X(the_geom) from vect1; query executes to display longitude all entries in shape files and select Y(the_geom) from vect1; query executes to display latitude all entries in shape files this data can also be inserted into table by inserting a new column for latitude and longitude. If you want table back to shp files using the cmd: pgsql2shp -f vect1 -p 5432 db1 vect1 Or You can also export column latitude and longtiude into mysql also as you wish -- Regards, Mohammed Rashad K.M http://keralainfo.web4all.in/ +919605476742 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Tue Apr 28 11:09:55 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Tue, 28 Apr 2009 11:09:55 -0700 Subject: [mapserver-users] Automatically Clearing Old Map Images In-Reply-To: <1240938948121-2734870.post@n2.nabble.com> References: <1240608577679-2699631.post@n2.nabble.com> <49F2B916.6020201@hostgis.com> <1240938948121-2734870.post@n2.nabble.com> Message-ID: <49F74673.7070508@hostgis.com> jchampagne2 wrote: > Thank you! I did a little research, and writing a .bat file to execute as a > scheduled task is exactly what I needed Cool. > del *.png Just for future planning, you may want to add *.jpg and *.gif to it. Otherwise, three years from now when you're also generating JPEGs you'll wonder why your disk has filled up. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From paul_pag00 at hotmail.com Tue Apr 28 11:24:58 2009 From: paul_pag00 at hotmail.com (Paul Alarcon) Date: Tue, 28 Apr 2009 11:24:58 -0700 (PDT) Subject: [mapserver-users] avl files Message-ID: <1240943098308-2735327.post@n2.nabble.com> Hello forum does anyone know if there is a way to export the avl files from arcview to map files? thanks a lot Paul -- View this message in context: http://n2.nabble.com/avl-files-tp2735327p2735327.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nelsonwc7 at hotmail.com Tue Apr 28 11:41:21 2009 From: nelsonwc7 at hotmail.com (Nelson Correia) Date: Tue, 28 Apr 2009 18:41:21 +0000 Subject: [mapserver-users] Outline on the roads label boxes In-Reply-To: <2922382e0904281033s55908caaqc04ff8ac53c830b2@mail.gmail.com> References: <2922382e0904281010i47fadd9ds51346665bd481f51@mail.gmail.com> <49F6F528.5157.008F.0@dnr.state.mn.us> <2922382e0904281033s55908caaqc04ff8ac53c830b2@mail.gmail.com> Message-ID: I've done it with several rectangle symbols. Thank you all for the quick answers! :) Nelson > Date: Tue, 28 Apr 2009 19:33:01 +0200 > Subject: Re: [mapserver-users] Outline on the roads label boxes > From: thomas.bonfort at camptocamp.com > To: Steve.Lime at dnr.state.mn.us > CC: nelsonwc7 at hotmail.com; mapserver-users at lists.osgeo.org > > The label background is getting quite cluttered actually, we have > backgroundcolor, backgroundshadowcolor, backgroundshadowsize, and > maybe a couple of others I'm forgetting. > > maybe we could add something equivalent to backgroundstyle that would > have the same syntax as a class STYLE, that would then be passed on as > a normal style to msDrawShadeSymbol, along with the shapeobj > corresponding to the background shade. > > we'd then have all the goodness of mapserver styles: outlines, > symbols, opacity, etc... > > just a thought, > > thomas > > On Tue, Apr 28, 2009 at 7:23 PM, Steve Lime wrote: > > You can however, develop separate classes based on label length. You'd have different > > symbols to handle wide text vs. narrow. For example: > > > > LABELITEM 'myitem' > > CLASS > > EXPRESSION (length('[myitem]') > 5) # use a really wide shield > > STYLE > > SYMBOL 'reallywideshield' > > ... > > END > > END > > CLASS > > EXPRESSION (length('[myitem]') > 3) # use a wide marker > > STYLE > > SYMBOL 'wideshield' > > ... > > END > > END > > CLASS # default to a regular shield > > STYLE > > SYMBOL 'shield' > > ... > > END > > END > > > > Steve > > > >>>> On 4/28/2009 at 12:10 PM, in message > > <2922382e0904281010i47fadd9ds51346665bd481f51 at mail.gmail.com>, Thomas Bonfort > > wrote: > >> this isn't currently possible. > >> > >> best regards, > >> thomas > >> > >> On Tue, Apr 28, 2009 at 6:50 PM, Nelson Correia wrote: > >>> > >>> Hi, > >>> > >>> Do you know how to write an outline on the roads label boxes, just like the > >>> ones that Google Maps has? In Mapserver docs I only see an outline for the > >>> letters and not for the background. Does Mapserver support it? > >>> > >>> You can see the labels (L2150, K2, K7) with white background and black > >>> outline at: > >>> > >>> > >> http://maps.google.com/maps?ie=UTF8&ll=50.764911,10.953197&spn=0.038979,0.11158 > >> &z=14 > >>> > >>> Thanks, > >>> > >>> Nelson > >>> > >>> ________________________________ > >>> Get news, entertainment and everything you care about at Live.com. Check it > >>> out! > >>> _______________________________________________ > >>> mapserver-users mailing list > >>> mapserver-users at lists.osgeo.org > >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>> > >>> > >> > >> > >> > >> -- > >> www.camptocamp.com > >> +33 4 79 26 57 97 > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -- > www.camptocamp.com > +33 4 79 26 57 97 _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Tue Apr 28 11:28:59 2009 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Tue, 28 Apr 2009 20:28:59 +0200 Subject: [mapserver-users] avl files In-Reply-To: <1240943098308-2735327.post@n2.nabble.com> References: <1240943098308-2735327.post@n2.nabble.com> Message-ID: <49F74AEB.3070000@osgis.nl> Hi, you can try Avein: http://sourceforge.net/projects/avein/ Best regards, Bart Paul Alarcon wrote: > Hello forum does anyone know if there is a way to export the avl files from > arcview to map files? > thanks a lot > Paul > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From paul_pag00 at hotmail.com Tue Apr 28 12:58:47 2009 From: paul_pag00 at hotmail.com (Paul Alarcon) Date: Tue, 28 Apr 2009 12:58:47 -0700 (PDT) Subject: [mapserver-users] avl files In-Reply-To: <49F74AEB.3070000@osgis.nl> References: <1240943098308-2735327.post@n2.nabble.com> <49F74AEB.3070000@osgis.nl> Message-ID: <1240948727843-2736480.post@n2.nabble.com> Thanks a lot Bart im going to try it and thanks for the quickly reply :-D _______________________________________________ -- View this message in context: http://n2.nabble.com/avl-files-tp2735327p2736480.html Sent from the Mapserver - User mailing list archive at Nabble.com. From paul_pag00 at hotmail.com Tue Apr 28 13:43:13 2009 From: paul_pag00 at hotmail.com (Paul Alarcon) Date: Tue, 28 Apr 2009 13:43:13 -0700 (PDT) Subject: [mapserver-users] avl files In-Reply-To: <1240948727843-2736480.post@n2.nabble.com> References: <1240943098308-2735327.post@n2.nabble.com> <49F74AEB.3070000@osgis.nl> <1240948727843-2736480.post@n2.nabble.com> Message-ID: <1240951393822-2736762.post@n2.nabble.com> Helllo is me again, i tried it but it ask me for a installed mapserver on windows and i use a linux server for mapserver, there is another software for make it for linux server ? _______________________________________________ -- View this message in context: http://n2.nabble.com/avl-files-tp2735327p2736762.html Sent from the Mapserver - User mailing list archive at Nabble.com. From peterw at borstad.com Tue Apr 28 15:37:08 2009 From: peterw at borstad.com (Peter Willis) Date: Tue, 28 Apr 2009 15:37:08 -0700 Subject: [mapserver-users] Mapfile HDF 'DATA' element format Message-ID: <49F78514.4050408@borstad.com> Hello, Where can I find the specification for the 'DATA' entry in mapserver MAP files where HDF files are being used? I am mostly interested in using these in the context of WCS. Here is my current non-working example of an HDF file test in my current WCS map file: LAYER NAME chlorophyll METADATA "wcs_label" "L3MG8D9KM/Chlorophyll" "wcs_rangeset_name" "Range 1" "wcs_rangeset_label" "Chlorophyll_DN" END TYPE RASTER STATUS ON DATA 'HDF4:/public/A20081932008200.L3m_8D_CHLO_9.hdf://l3m_data' PROCESSING "BANDS=1" PROJECTION "init=epsg:4326" END DUMP TRUE END I am not sure I have the format of the DATA entity correct. Thanks for any pointers, Peter From warmerdam at pobox.com Tue Apr 28 15:49:08 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 28 Apr 2009 18:49:08 -0400 Subject: [mapserver-users] Mapfile HDF 'DATA' element format In-Reply-To: <49F78514.4050408@borstad.com> References: <49F78514.4050408@borstad.com> Message-ID: <49F787E4.3020005@pobox.com> Peter Willis wrote: > Hello, > > Where can I find the specification for the > 'DATA' entry in mapserver MAP files where > HDF files are being used? > > I am mostly interested in using these in > the context of WCS. > > Here is my current non-working example of an HDF > file test in my current WCS map file: ... > DATA 'HDF4:/public/A20081932008200.L3m_8D_CHLO_9.hdf://l3m_data' Peter, You need to use the gdalinfo command on the .hdf base file to get a list of subdatasets within the file. If the gdalinfo reports something like: SUBDATASET_16_NAME=HDF4_EOS:EOS_SWATH:"MOD07_L2.A2000110.0220.002.2000196104217.hdf":mod07:Retrieved_Moisture_Profile SUBDATASET_16_DESC=[20x406x270] Retrieved_Moisture_Profile mod07 (16-bit integer) SUBDATASET_17_NAME=HDF4_EOS:EOS_SWATH:"MOD07_L2.A2000110.0220.002.2000196104217.hdf":mod07:Retrieved_Height_Profile SUBDATASET_17_DESC=[20x406x270] Retrieved_Height_Profile mod07 (16-bit integer) Then you might put the following in your .map file: DATA 'HDF4_EOS:EOS_SWATH:"MOD07_L2.A2000110.0220.002.2000196104217.hdf":mod07:Retrieved_Moisture_Profile' The key is to use _NAME portion of the subdatasets reported by gdalinfo. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From peterw at borstad.com Tue Apr 28 16:26:00 2009 From: peterw at borstad.com (Peter Willis) Date: Tue, 28 Apr 2009 16:26:00 -0700 Subject: [mapserver-users] Mapfile HDF 'DATA' element format In-Reply-To: <49F787E4.3020005@pobox.com> References: <49F78514.4050408@borstad.com> <49F787E4.3020005@pobox.com> Message-ID: <49F79088.4050804@borstad.com> Frank Warmerdam wrote: > Peter Willis wrote: >> Hello, >> >> Where can I find the specification for the >> 'DATA' entry in mapserver MAP files where >> HDF files are being used? >> >> I am mostly interested in using these in >> the context of WCS. >> >> Here is my current non-working example of an HDF >> file test in my current WCS map file: > ... >> DATA 'HDF4:/public/A20081932008200.L3m_8D_CHLO_9.hdf://l3m_data' > > Peter, > > You need to use the gdalinfo command on the .hdf base file to get > a list of subdatasets within the file. If the gdalinfo reports something > like: > > > SUBDATASET_16_NAME=HDF4_EOS:EOS_SWATH:"MOD07_L2.A2000110.0220.002.2000196104217.hdf":mod07:Retrieved_Moisture_Profile > > SUBDATASET_16_DESC=[20x406x270] Retrieved_Moisture_Profile mod07 > (16-bit integer) > SUBDATASET_17_NAME=HDF4_EOS:EOS_SWATH:"MOD07_L2.A2000110.0220.002.2000196104217.hdf":mod07:Retrieved_Height_Profile > > SUBDATASET_17_DESC=[20x406x270] Retrieved_Height_Profile mod07 (16-bit > integer) > > Then you might put the following in your .map file: > > DATA > 'HDF4_EOS:EOS_SWATH:"MOD07_L2.A2000110.0220.002.2000196104217.hdf":mod07:Retrieved_Moisture_Profile' > > > > The key is to use _NAME portion of the subdatasets reported by gdalinfo. > > Best regards, Hello Frank, I don't get any of those entries when I run gdalinfo against the file. There is one SDS in the root of the HDF file called 'l3m_data'. Here is an example of what I get with gdalinfo: some_yokel at linux-svn:/public# gdalinfo A20081932008200.L3m_8D_CHLO_9.hdf Driver: HDF4Image/HDF4 Dataset Size is 4320, 2160 Coordinate System is `' Metadata: Product Name=A20081932008200.L3m_8D_CHLO_9 Sensor Name=MODISA Sensor= Title=MODISA Level-3 Standard Mapped Image Data Center= Station Name= Station Latitude=0 Station Longitude=0 Mission= Mission Characteristics= Sensor Characteristics= Product Type=8-day Replacement Flag=ORIGINAL Software Name=smigen Software Version=3.60 Processing Time=2008210202550000 Input Files=A20081932008200.L3b_8D.main Processing Control=smigen par=A20081932008200.L3m_8D_CHLO_9.param Input Parameters=IFILE = /data1/sdpsoper/vdc/vpu4/workbuf/A20081932008200.L3b_8D.main|OFILE = A20081932008200.L3m_8D_CHLO_9|PFILE = |PROD = chlor_a|PALFILE = DEFAULT|RFLAG = ORIGINAL|MEAS = 1|STYPE = 0|DATAMIN = 0.000000|DATAMAX = 0.000000|LONWEST = -180.000000|LONEAST = 180.000000|LATSOUTH = -90.000000|LATNORTH = 90.000000|RESOLUTION = 9km|PROJECTION = RECT|GAP_FILL = 0|SEAM_LON = -180.000000|PRECISION=I L2 Flag Names=ATMFAIL,LAND,HILT,HISATZEN,STRAYLIGHT,CLDICE,COCCOLITH,LOWLW,CHLFAIL,PRODFAIL,CHLWARN,NAVWARN,MAXAERITER,ATMWARN,HISOLZEN,NAVFAIL,FILTER,HIGLINT Period Start Year=2008 Period Start Day=193 Period End Year=2008 Period End Day=200 Start Time=2008193000007727 End Time=2008201023506024 Start Year=2008 Start Day=193 Start Millisec=7727 End Year=2008 End Day=201 End Millisec=9306024 Start Orbit=0 End Orbit=0 Orbit=0 Map Projection=Equidistant Cylindrical Latitude Units=degrees North Longitude Units=degrees East Northernmost Latitude=90 Southernmost Latitude=-90 Westernmost Longitude=-180 Easternmost Longitude=180 Latitude Step=0.08333334 Longitude Step=0.08333334 SW Point Latitude=-89.95834 SW Point Longitude=-179.9583 Data Bins=7128918 Number of Lines=2160 Number of Columns=4320 Parameter=Chlorophyll a concentration Measure=Mean Units=mg m^-3 Scaling=logarithmic Scaling Equation=Base**((Slope*l3m_data) + Intercept) = Parameter value Base=10 Slope=5.813776e-05 Intercept=-2 Scaled Data Minimum=0.01 Scaled Data Maximum=64.5654 Data Minimum=0.005747 Data Maximum=99.93153 Scaling=logarithmic Scaling Equation=Base**((Slope*l3m_data) + Intercept) = Parameter value Base=10 Slope=5.813776e-05 Intercept=-2 Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 2160.0) Upper Right ( 4320.0, 0.0) Lower Right ( 4320.0, 2160.0) Center ( 2160.0, 1080.0) Band 1 Block=4320x1 Type=UInt16, ColorInterp=Gray some_yokel at linux-svn:/public# From warmerdam at pobox.com Tue Apr 28 16:36:32 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 28 Apr 2009 19:36:32 -0400 Subject: [mapserver-users] Mapfile HDF 'DATA' element format In-Reply-To: <49F79088.4050804@borstad.com> References: <49F78514.4050408@borstad.com> <49F787E4.3020005@pobox.com> <49F79088.4050804@borstad.com> Message-ID: <49F79300.4040803@pobox.com> Peter Willis wrote: > Hello Frank, > > I don't get any of those entries when I run gdalinfo against the file. > There is one SDS in the root of the HDF file called 'l3m_data'. > > Here is an example of what I get with gdalinfo: ... Peter, Then the file appears to be a simple SDS dataset, and you don't need to do anything special. Just put the name of the file in the DATA statement. The more complex syntaxes are only needed when one hdf file contains many products. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From percyd at pdx.edu Tue Apr 28 16:32:22 2009 From: percyd at pdx.edu (percy) Date: Tue, 28 Apr 2009 16:32:22 -0700 Subject: [mapserver-users] avl files In-Reply-To: <1240951393822-2736762.post@n2.nabble.com> References: <1240943098308-2735327.post@n2.nabble.com> <49F74AEB.3070000@osgis.nl> <1240948727843-2736480.post@n2.nabble.com> <1240951393822-2736762.post@n2.nabble.com> Message-ID: <49F79206.70300@pdx.edu> give it fake directories as if you are using MS4W, then edit the mapfile it generates and substitute your linux paths... percy On 4/28/2009 1:43 PM, Paul Alarcon wrote: > Helllo is me again, i tried it but it ask me for a installed mapserver on > windows and i use a linux server for mapserver, there is another software > for make it for linux server ? > _______________________________________________ -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From adams at terrestris.de Tue Apr 28 23:55:36 2009 From: adams at terrestris.de (Till Adams) Date: Wed, 29 Apr 2009 08:55:36 +0200 Subject: [mapserver-users] avl files In-Reply-To: <49F79206.70300@pdx.edu> References: <1240943098308-2735327.post@n2.nabble.com> <49F74AEB.3070000@osgis.nl> <1240948727843-2736480.post@n2.nabble.com> <1240951393822-2736762.post@n2.nabble.com> <49F79206.70300@pdx.edu> Message-ID: <49F7F9E8.7040604@terrestris.de> percy schrieb: > give it fake directories as if you are using MS4W, then edit the > mapfile it generates and substitute your linux paths... > percy > > On 4/28/2009 1:43 PM, Paul Alarcon wrote: >> Helllo is me again, i tried it but it ask me for a installed >> mapserver on >> windows and i use a linux server for mapserver, there is another >> software >> for make it for linux server ? >> _______________________________________________ Dear Paul, sorry, I'm the one who crimed Avein ages ago. I really forgot about that software. Avein is made for use in ArcView GIs 3.x only, so you'll need this piece of software to run Avein. Undortunately Avein's last version goes on Mapserver v4.2 or so, which should'nt matter, but there are no opportunities for use of newer UMN functions. Also AveiN! does not translate avl files, it is only made as an interface between ArcViwew 3 projects and UMN. A newer version for ArcGIS called Amein! was made 4 years ago, there you can translate *some* of the symbols and patterns, but also not all. So the way to go (if softwarei s there() might be to use ameiN1, to iport the avl files into ArcGIs and try with that. Or forget about that and you try on your own :-) Regards, Till -- ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From iratxe.lejarreta at axios.es Wed Apr 29 01:42:12 2009 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Wed, 29 Apr 2009 10:42:12 +0200 Subject: [mapserver-users] mapserver error In-Reply-To: <1240569766327-2691761.post@n2.nabble.com> References: <200904212004.10735.iratxe.lejarreta@axios.es> <200904221253.29009.iratxe.lejarreta@axios.es> <1240569766327-2691761.post@n2.nabble.com> Message-ID: <200904291042.12495.iratxe.lejarreta@axios.es> On Friday 24 April 2009 12:42:46 Pano wrote: > Hi Iratxe, > Unfortunately I know very little about CentOS. Just a windows guy me :-) > But let me try: > Is it possible that you have multiple Oracle Homes setup? And sqlplus is > using the home where oracle server is installed whereas mapserver is using > another (oracle client?) home which does not have the tnsnames setup > correctly? In a windows setup i would first check the PATH environment > variable. If the oracle client install is the first on the list then this > is what mapserver would use. You mention a path > /usr/lib/oracle/10.2.0.3/client- does this folder also contains a > network\admin\tnsnames.ora file? Maybe this is the one you need to change > (again maybe talking complete rubish here as on idea abt this OS) > > Finally- another idea just to make sure its not a WFS problem. Are you able > to get an image by simply using cgi-bin e.g. > http://localhost/cgi-bin/mapserve?map=...,&mode=map etc?? > > Pano > > Iratxe Lejarreta wrote: > > On Wednesday 22 April 2009 08:54:57 Pano wrote: > >> Hi Iratxe, > >> > >> Looks like mapserver doesnt know the TNS name 'orcl' that you have > >> defined. > >> I assume that the machine where mapserver runs has an oracle client > >> installed? Can you log into sql plus i..e sqlplus mddata/@orcl > >> from > >> a command prompt on this box? I assume you will get the same TNS error. > >> Which will mean that your tnsnames.ora file is not set correctly. The > >> file > >> should be located under $ORACLE_HOME\network\admin\tnsnames.ora. There > >> should be an entry in there like: > >> > >> ORCL = > >> (DESCRIPTION = > >> (ADDRESS_LIST = > >> (ADDRESS = > >> (PROTOCOL = TCP) > >> (HOST = >> (PORT = ) > >> ) > >> ) > >> (CONNECT_DATA = > >> (SERVER = DEDICATED) > >> (SERVICE_NAME = ) > >> ) > >> ) > >> > >> Hope this helps, > >> Pano > >> > >> Iratxe Lejarreta wrote: > >> > Hi, > >> > > >> > I installed MapServer-5.2.0 on CentOS 5.2 with Oracle 10g, but when I > >> > >> run > >> > >> > the > >> > WFS service... > >> > > >> > http://localhost/cgi- > >> > bin/mywfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=cities > >> > > >> > ...the result is: > >> > ? > >> > >> > xsi:schemaLocation="http://www.opengis.net/ogc > >> > http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd"> > >> > ? > >> > > >> > > >> > msWFSGetFeature(): WFS server error. ms_error->code not found > >> > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > >> > Handlers. > >> > Connection failure. Check the connection string. Error: ORA-12154: > >> > TNS:could > >> > not resolve the connect identifier specified > >> > . > >> > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > >> > Handlers. > >> > Connection failure. Check the connection string. Error: ORA-12154: > >> > TNS:could > >> > not resolve the connect identifier specified > >> > . > >> > > >> > > >> > > >> > > >> > > >> > Mapfile: > >> > > >> > MAP > >> > NAME WFS_TEST > >> > STATUS ON > >> > SIZE 400 300 > >> > EXTENT -180 -90 180 90 > >> > UNITS METERS > >> > IMAGECOLOR 255 255 255 > >> > WEB > >> > METADATA > >> > "wfs_title" "WFS TEST" > >> > "wfs_onlineresource" "http://localhost/cgi-bin/mywfs?" > >> > "wfs_srs" "EPSG:4326" > >> > END > >> > END > >> > PROJECTION > >> > "init=epsg:4326" > >> > END > >> > LAYER > >> > NAME cities > >> > TYPE POINT > >> > CONNECTIONTYPE oraclespatial > >> > CONNECTION "MDDATA/*****@orcl" > >> > DATA "GEOM FROM CITIES USING UNIQUE FID SRID 4326 VERSION 10g" > >> > METADATA > >> > "wfs_title" "cities" > >> > "gml_featureid" "FID" > >> > "gml_include_items" "all" > >> > END > >> > STATUS ON > >> > DUMP TRUE > >> > CLASS > >> > STYLE > >> > OUTLINECOLOR 0 0 0 > >> > COLOR 0 128 128 > >> > END > >> > END > >> > END # Cities > >> > END # Map File > >> > > >> > > >> > Somebody can help me? > >> > > >> > Thanks in advance. > >> > > >> > -- > >> > Iratxe Lejarreta > >> > www.axios.es > >> > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > Hi Pano, > > > > Firstly, thanks for your answer! > > > > I have checked all configuration but I continue with the same error: > > > > 1.- I haven't got any error in logs. > > > > 2.- I installed Oracle Instat Client: > > # rpm -Uvh oracle-instantclient-basic-10.2.0.4-1.i386.rpm > > I have set the library loading path: > > # export LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.3/client/lib > > > > 3.- I can access with sqlplus and sqldeveloper without any problem: > > [oracle]$ sqlplus mddata/@orcl > > > > 4.- $ORACLE_HOME\network\admin\tnsnames.ora file: > > ORCL = > > (DESCRIPTION = > > (ADDRESS_LIST = > > (ADDRESS = > > (PROTOCOL = TCP) > > (HOST = 192.168.2.215) > > (PORT = 1521) > > ) > > ) > > (CONNECT_DATA = > > (SERVER = DEDICATED) > > (SERVICE_NAME = orcl) > > ) > > ) > > > > 5.- I try to access with the following URL: > > http://192.168.2.215/cgi- > > bin/mywfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=cities > > > > 6.- ...but the result it's the same: > > > xsi:schemaLocation="http://www.opengis.net/ogc > > http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd"> > > > > msWFSGetFeature(): WFS server error. ms_error->code not found > > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > > Handlers. > > Connection failure. Check the connection string. Error: ORA-12154: > > TNS:could > > not resolve the connect identifier specified. > > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > > Handlers. > > Connection failure. Check the connection string. Error: ORA-12154: > > TNS:could > > not resolve the connect identifier specified. > > > > > > > > Do you know where could be wrong? > > > > Thanks for your help!!!!! > > > > Regards, > > -- > > Iratxe Lejarreta > > www.axios.es > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users Hi, Finally I have achieved to solve my problem! The solution is to add $ORACLE_HOME in the apache configuration. Regards, -- Iratxe Lejarreta www.axios.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From iratxe.lejarreta at axios.es Wed Apr 29 01:54:47 2009 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Wed, 29 Apr 2009 10:54:47 +0200 Subject: [mapserver-users] DescribeFeatureType In-Reply-To: <49F6C5CB0200008F0002367E@co5.dnr.state.mn.us> References: <49F6C5CB0200008F0002367E@co5.dnr.state.mn.us> Message-ID: <200904291054.47834.iratxe.lejarreta@axios.es> On Tuesday 28 April 2009 16:00:57 Steve Lime wrote: > To clarify, the support is not automatic. The developer of the service > has the ability to define types in the service configuration but it must > be done by hand. > > Steve > > >>> 04/28/09 8:37 AM >>> > > Hi, > > sorry but Mapserver does not support this (yet). > > Best regards, > Bart > > > Hi, > > > > I have MapServer with Oracle Spatial and when I run the request > > "DescribeFeatureType", the result of types for all fiels is "string". > > > > http://localhost/cgi- > > bin/mywfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME= > > > > > > Is it possible to know the type of different fields of the layer as > > described in > > my database? > > > > Thanks in advance! > > > > -- > > Iratxe Lejarreta > > www.axios.es > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users Ok, thanks for the information. We could review the code and maybe we could make a patch to donate until this bug solved... Regards, -- Iratxe Lejarreta www.axios.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From iratxe.lejarreta at axios.es Wed Apr 29 02:07:17 2009 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Wed, 29 Apr 2009 11:07:17 +0200 Subject: [mapserver-users] Development environment Message-ID: <200904291107.17287.iratxe.lejarreta@axios.es> Hi, Could anybody tell me which is the recomended enviroment to develop in C++ language? Thanks! -- Iratxe Lejarreta www.axios.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From djabex at hotmail.com Wed Apr 29 03:56:50 2009 From: djabex at hotmail.com (=?iso-8859-1?Q?Alberto_Fern=E1ndez_S=E1nchez?=) Date: Wed, 29 Apr 2009 12:56:50 +0200 Subject: [mapserver-users] MapServer's documentation, mention in bibliography Message-ID: Hi companions, The question: How I must mention MapServer's 5.4.0 documentation in my bibliography? Thanks. _________________________________________________________________ El nuevo Windows Live te une a los que m?s quieres http://www.windowslive.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From nelsonwc7 at hotmail.com Wed Apr 29 05:03:31 2009 From: nelsonwc7 at hotmail.com (Nelson Correia) Date: Wed, 29 Apr 2009 12:03:31 +0000 Subject: [mapserver-users] Points and labels always together Message-ID: Hi all, Is it possible to have points and labels always drawn together when in a POINT layer? The objective is to draw localities on a map, and I don't want points or labels to appear alone. The problem is with LABELCACHE that when turned on, the points are all drawn, but only the labels that fit on the map will be drawn. This leads to some points without the correspondent labels. I think LABELCAHE turned off is not an option, because then the labels will be overlapped. Any ideas? Thanks, Nelson _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From cnieman at dmsolutions.ca Wed Apr 29 05:16:45 2009 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Wed, 29 Apr 2009 08:16:45 -0400 Subject: [mapserver-users] Points and labels always together In-Reply-To: References: Message-ID: <49F8452D.7020403@dmsolutions.ca> Hi, If you use an ANNOTATION layer instead of POINT, the only points that will be drawn are those where the labels will be drawn. Christy Nelson Correia wrote: > Hi all, > > Is it possible to have points and labels always drawn together when in > a POINT layer? The objective is to draw localities on a map, and I > don't want points or labels to appear alone. > > The problem is with LABELCACHE that when turned on, the points are all > drawn, but only the labels that fit on the map will be drawn. This > leads to some points without the correspondent labels. I think > LABELCAHE turned off is not an option, because then the labels will be > overlapped. > > Any ideas? > > Thanks, > > Nelson > > ------------------------------------------------------------------------ > Get news, entertainment and everything you care about at Live.com. > Check it out! > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at dnr.state.mn.us Wed Apr 29 06:50:24 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 29 Apr 2009 08:50:24 -0500 Subject: [mapserver-users] MapServer's documentation, mention in bibliography Message-ID: <49F814D10200008F000236E5@co5.dnr.state.mn.us> If you used a specific document then I would guess you'd just reference that URL. If you used many from the site then just referencing the website as a whole would be sufficient. There are lots of style guides out there on form. Steve >>> Alberto Fern?ndez S?nchez 04/29/09 6:12 AM >>> Hi companions, The question: How I must mention MapServer's 5.4.0 documentation in my bibliography? Thanks. _________________________________________________________________ El nuevo Windows Live te une a los que m?s quieres http://www.windowslive.es From djabex at hotmail.com Wed Apr 29 07:19:43 2009 From: djabex at hotmail.com (=?iso-8859-1?Q?Alberto_Fern=E1ndez_S=E1nchez?=) Date: Wed, 29 Apr 2009 16:19:43 +0200 Subject: [mapserver-users] MapServer's documentation, mention in bibliography In-Reply-To: <49F814D10200008F000236E5@co5.dnr.state.mn.us> References: <49F814D10200008F000236E5@co5.dnr.state.mn.us> Message-ID: Thank you Steve, this was my problem. Alberto > Date: Wed, 29 Apr 2009 08:50:24 -0500 > From: Steve.Lime at dnr.state.mn.us > To: djabex at hotmail.com; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] MapServer's documentation, mention in bibliography > > If you used a specific document then I would guess you'd just reference > that URL. If you used > many from the site then just referencing the website as a whole would be > sufficient. There are > lots of style guides out there on form. > > Steve > > >>> Alberto Fern?ndez S?nchez 04/29/09 6:12 AM >>> > > Hi companions, > > The question: How I must mention MapServer's 5.4.0 documentation in my > bibliography? > > Thanks. > > _________________________________________________________________ > El nuevo Windows Live te une a los que m?s quieres > http://www.windowslive.es _________________________________________________________________ El nuevo Windows Live te une a los que m?s quieres http://www.windowslive.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From nelsonwc7 at hotmail.com Wed Apr 29 07:22:43 2009 From: nelsonwc7 at hotmail.com (Nelson Correia) Date: Wed, 29 Apr 2009 14:22:43 +0000 Subject: [mapserver-users] Points and labels always together In-Reply-To: <49F8452D.7020403@dmsolutions.ca> References: <49F8452D.7020403@dmsolutions.ca> Message-ID: Thanks! > Date: Wed, 29 Apr 2009 08:16:45 -0400 > From: cnieman at dmsolutions.ca > To: nelsonwc7 at hotmail.com > CC: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Points and labels always together > > Hi, > > If you use an ANNOTATION layer instead of POINT, the only points that > will be drawn are those where the labels will be drawn. > > Christy > > Nelson Correia wrote: > > Hi all, > > > > Is it possible to have points and labels always drawn together when in > > a POINT layer? The objective is to draw localities on a map, and I > > don't want points or labels to appear alone. > > > > The problem is with LABELCACHE that when turned on, the points are all > > drawn, but only the labels that fit on the map will be drawn. This > > leads to some points without the correspondent labels. I think > > LABELCAHE turned off is not an option, because then the labels will be > > overlapped. > > > > Any ideas? > > > > Thanks, > > > > Nelson > > > > ------------------------------------------------------------------------ > > Get news, entertainment and everything you care about at Live.com. > > Check it out! > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -------------- next part -------------- An HTML attachment was scrubbed... URL: From peterw at borstad.com Wed Apr 29 08:20:34 2009 From: peterw at borstad.com (Peter Willis) Date: Wed, 29 Apr 2009 08:20:34 -0700 Subject: [mapserver-users] Mapfile HDF 'DATA' element format In-Reply-To: <49F7C64B.10109@pobox.com> References: <49F78514.4050408@borstad.com> <49F787E4.3020005@pobox.com> <49F79088.4050804@borstad.com> <49F79300.4040803@pobox.com> <49F7C264.8070001@borstad.com> <49F7C64B.10109@pobox.com> Message-ID: <49F87042.4060109@borstad.com> Frank Warmerdam wrote: > > One SDS with more than one band (ie. rank 3 with the third rank > more than a dimension of 1) is accessed normally as long as you want > to use the first three bands as RGB. If you want to control which bands > you use, add the BANDS PROCESSING option. > > eg. > > PROCESSING "BANDS=4,2,1" > > The tricky case is more than one SDS which is normally when you > start seeing subdatasets. Normally you would use gdalinfo to > identify what subdatasets are available. > Hello Frank, Thanks for clarifying. Maybe I should be filling out the wiki somewhere regarding this information. Peter From peterw at borstad.com Wed Apr 29 09:36:40 2009 From: peterw at borstad.com (Peter Willis) Date: Wed, 29 Apr 2009 09:36:40 -0700 Subject: [mapserver-users] What is the WCS 'mime type' for *RAW* HDF data? Message-ID: <49F88218.3050703@borstad.com> Hello, When I query WCS for information regarding an HDF file I am assuming that *I* need to define a mime type, for the data provided by the HDF file, since no mime type is apparent in the GetCapabilities request. What 'mime' type do I use in my 'GetCoverage' request if I just want to serve the raw binary record (ie: Scientific/Remote Sensing Data in D.N.) instead of an image format? Shouldn't I be able to just get the data? No I need to specify SOAP output, somehow, in my MAP file? Thanks for any pointers, Peter From bfischer at houstoneng.com Wed Apr 29 16:16:15 2009 From: bfischer at houstoneng.com (Fischer, Brian) Date: Wed, 29 Apr 2009 18:16:15 -0500 Subject: [mapserver-users] avl files In-Reply-To: <49F7F9E8.7040604@terrestris.de> References: <1240943098308-2735327.post@n2.nabble.com> <49F74AEB.3070000@osgis.nl> <1240948727843-2736480.post@n2.nabble.com> <1240951393822-2736762.post@n2.nabble.com><49F79206.70300@pdx.edu> <49F7F9E8.7040604@terrestris.de> Message-ID: <2EF6E1058C047344B4DE0FD141119167DEFC2C@hex01.houstonengineeringinc.com> There is an ArcMap extension that is going to be released by us later this summer that will essentially convert an ArcMap .mxd to a mapfile or GeoMOOSE app. So you could use ArcMap if you have it to import your .avl symbology and then export it to a mapfie. We are not sure at this point if the software will be open source or sold at small shareware cost for the extension. Brian Fischer Houston Engineering, Inc. 763-493-4522 -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Till Adams Sent: Wednesday, April 29, 2009 1:56 AM Cc: MapServer; Paul Alarcon Subject: Re: [mapserver-users] avl files percy schrieb: > give it fake directories as if you are using MS4W, then edit the > mapfile it generates and substitute your linux paths... > percy > > On 4/28/2009 1:43 PM, Paul Alarcon wrote: >> Helllo is me again, i tried it but it ask me for a installed >> mapserver on >> windows and i use a linux server for mapserver, there is another >> software >> for make it for linux server ? >> _______________________________________________ Dear Paul, sorry, I'm the one who crimed Avein ages ago. I really forgot about that software. Avein is made for use in ArcView GIs 3.x only, so you'll need this piece of software to run Avein. Undortunately Avein's last version goes on Mapserver v4.2 or so, which should'nt matter, but there are no opportunities for use of newer UMN functions. Also AveiN! does not translate avl files, it is only made as an interface between ArcViwew 3 projects and UMN. A newer version for ArcGIS called Amein! was made 4 years ago, there you can translate *some* of the symbols and patterns, but also not all. So the way to go (if softwarei s there() might be to use ameiN1, to iport the avl files into ArcGIs and try with that. Or forget about that and you try on your own :-) Regards, Till -- ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From mitchelljj98 at gmail.com Wed Apr 29 16:56:07 2009 From: mitchelljj98 at gmail.com (John Mitchell) Date: Wed, 29 Apr 2009 19:56:07 -0400 Subject: [mapserver-users] converting a multi-thousand polygon shapefile into a shapefile that just contains the exterior vertices Message-ID: Hi, I have created a shape file via gdaltindex based a few thousand geotiff's. I don't need all of the interior grids within this shape file just the exterior vertices's. How can I convert this shape file so that it does not have the interior grid and just the exterior vertices's. I am displaying this shape file within UMN MapServer and I want to increase the performance by eliminating the drawing of the interior grids. Thanks, John Mitchell -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidn at datalinktech.com.au Wed Apr 29 19:51:52 2009 From: davidn at datalinktech.com.au (David Nugent) Date: Thu, 30 Apr 2009 12:51:52 +1000 Subject: [mapserver-users] Mapserver 5.4 & SYMBOLSET Message-ID: <46D44121-7973-4ADB-AE7E-3483D1EC92EF@datalinktech.com.au> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello all, I've recently upgraded to mapserver 5.4 and hit a problem with SYMBOLSET. It seems that a file containing symbols referenced from the .map file must now contain a SYMBOLSET keyword at the start (and presumably end with END?). I made this change, but the parser still complains with the message "First token must be SYMBOLSET". Not really wanting to waste time on debugging the lex code, I simply removed the check that emits this error from mapsymbol.c and all works as expected. Obviously there is a deeper problem, whether it be the logic in that statement (which appears to be correct as far as I can tell) or the lex parser itself. I'm just wondering if anyone else had hit the same problem. Regards, David -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkn5EkgACgkQgyBtWyGDJqUwLwCcDdlZ1p/DUyTJ8/A9aOU8U6p1 c24AnjMwiSaNwPPQhDay/V3pTu1OnDtQ =pUQC -----END PGP SIGNATURE----- From Steve.Lime at dnr.state.mn.us Wed Apr 29 20:13:49 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 29 Apr 2009 22:13:49 -0500 Subject: [mapserver-users] Mapserver 5.4 & SYMBOLSET Message-ID: <49F8D11D0200008F000237DF@co5.dnr.state.mn.us> Can you share your symbolset file? I've not had an issue with that change. Steve >>> David Nugent 04/29/09 9:54 PM >>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello all, I've recently upgraded to mapserver 5.4 and hit a problem with SYMBOLSET. It seems that a file containing symbols referenced from the .map file must now contain a SYMBOLSET keyword at the start (and presumably end with END?). I made this change, but the parser still complains with the message "First token must be SYMBOLSET". Not really wanting to waste time on debugging the lex code, I simply removed the check that emits this error from mapsymbol.c and all works as expected. Obviously there is a deeper problem, whether it be the logic in that statement (which appears to be correct as far as I can tell) or the lex parser itself. I'm just wondering if anyone else had hit the same problem. Regards, David -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkn5EkgACgkQgyBtWyGDJqUwLwCcDdlZ1p/DUyTJ8/A9aOU8U6p1 c24AnjMwiSaNwPPQhDay/V3pTu1OnDtQ =pUQC -----END PGP SIGNATURE----- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From davidn at datalinktech.com.au Wed Apr 29 20:56:46 2009 From: davidn at datalinktech.com.au (David Nugent) Date: Thu, 30 Apr 2009 13:56:46 +1000 Subject: [mapserver-users] Mapserver 5.4 & SYMBOLSET In-Reply-To: <49F8D11D0200008F000237DF@co5.dnr.state.mn.us> References: <49F8D11D0200008F000237DF@co5.dnr.state.mn.us> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 It starts (and ends) like this: SYMBOLSET SYMBOL NAME "point" TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME "dashed" TYPE ELLIPSE POINTS 1 1 END FILLED TRUE STYLE 8 6 8 6 END END ... END Regards, David On 30/04/2009, at 1:13 PM, Steve Lime wrote: > Can you share your symbolset file? I've not had an issue with that > change. > > Steve > >>>> David Nugent 04/29/09 9:54 PM >>> > > Hello all, > > I've recently upgraded to mapserver 5.4 and hit a problem with > SYMBOLSET. > > It seems that a file containing symbols referenced from the .map file > must now contain a SYMBOLSET keyword at the start (and presumably end > with END?). I made this change, but the parser still complains with > the message "First token must be SYMBOLSET". > > Not really wanting to waste time on debugging the lex code, I simply > removed the check that emits this error from mapsymbol.c and all works > as expected. Obviously there is a deeper problem, whether it be the > logic in that statement (which appears to be correct as far as I can > tell) or the lex parser itself. > > I'm just wondering if anyone else had hit the same problem. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkn5IX4ACgkQgyBtWyGDJqVRXACfZnjgfrOnb7nQmKTF99gjA4WX bMEAn28/+mRNOk60rbeTX4BbQUBF1q4L =vbTf -----END PGP SIGNATURE----- From Jukka.Rahkonen at mmmtike.fi Wed Apr 29 21:27:57 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 30 Apr 2009 07:27:57 +0300 Subject: [mapserver-users] converting a multi-thousand polygon shapefileinto a shapefile that just contains the exterior vertices References: Message-ID: Hi, What you want is the union of all the individual image polygons. At least it can be made with GIS applications like QGis or OpenJUMP. I don't know of any tool that could do it directly from command line but such can exist, though. -Jukka Rahkonen- John Mitchell wrote: Hi, I have created a shape file via gdaltindex based a few thousand geotiff's. I don't need all of the interior grids within this shape file just the exterior vertices's. How can I convert this shape file so that it does not have the interior grid and just the exterior vertices's. I am displaying this shape file within UMN MapServer and I want to increase the performance by eliminating the drawing of the interior grids. Thanks, John Mitchell -- John J. Mitchell From Jukka.Rahkonen at mmmtike.fi Thu Apr 30 01:04:46 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 30 Apr 2009 11:04:46 +0300 Subject: [mapserver-users] Suggestion: simple way to support several WMS bounding boxes In-Reply-To: <49EA2FF9.9010301@flora.ca> References: <4FBC13C3CB49244088DD095B32B5D4CD0ABE21@KS-EVS1.smi.sachsen.de> <49EA2FF9.9010301@flora.ca> Message-ID: Hi, It is possible to set the WMS bounding box for each layer by hand by adding "wms_metadata" into layer metadata. On the other hand some users have felt that it would be useful sometimes to have bounding boxes for more than one output projection in addition to latlon bounding box. See http://trac.osgeo.org/mapserver/ticket/1905 Could it be thinkable to make a minory change to "wms_extent" system so that it would be acceptable to give more than one "WMS_extent" lines, and that the actual bounding box that is now presented as "minx miny maxx maxy" should be followed by the corresponding projection code? Regards, -Jukka Rahkonen- From dmorissette at mapgears.com Thu Apr 30 07:36:42 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 30 Apr 2009 10:36:42 -0400 Subject: [mapserver-users] Mapserver 5.4 & SYMBOLSET In-Reply-To: References: <49F8D11D0200008F000237DF@co5.dnr.state.mn.us> Message-ID: <49F9B77A.9020602@mapgears.com> Are you sure that the file you are editing is really the one used by your mapfile? That's a common mistake... to verify that, try inserting an invalid keyword in place of the SYMBOLSET keyword in your file and verify that MapServer produces a parser error about it. If it doesn't then it's probably not using the file you think it is. Daniel David Nugent wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > It starts (and ends) like this: > > SYMBOLSET > > SYMBOL > NAME "point" > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED TRUE > END > > SYMBOL > NAME "dashed" > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED TRUE > STYLE > 8 6 8 6 > END > END > > ... > > END > > > Regards, > David > > > On 30/04/2009, at 1:13 PM, Steve Lime wrote: > >> Can you share your symbolset file? I've not had an issue with that >> change. >> >> Steve >> >>>>> David Nugent 04/29/09 9:54 PM >>> >> >> Hello all, >> >> I've recently upgraded to mapserver 5.4 and hit a problem with >> SYMBOLSET. >> >> It seems that a file containing symbols referenced from the .map file >> must now contain a SYMBOLSET keyword at the start (and presumably end >> with END?). I made this change, but the parser still complains with >> the message "First token must be SYMBOLSET". >> >> Not really wanting to waste time on debugging the lex code, I simply >> removed the check that emits this error from mapsymbol.c and all works >> as expected. Obviously there is a deeper problem, whether it be the >> logic in that statement (which appears to be correct as far as I can >> tell) or the lex parser itself. >> >> I'm just wondering if anyone else had hit the same problem. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.8 (Darwin) > > iEYEARECAAYFAkn5IX4ACgkQgyBtWyGDJqVRXACfZnjgfrOnb7nQmKTF99gjA4WX > bMEAn28/+mRNOk60rbeTX4BbQUBF1q4L > =vbTf > -----END PGP SIGNATURE----- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From no-reply at neogeo-online.net Thu Apr 30 08:20:38 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Thu, 30 Apr 2009 17:20:38 +0200 Subject: [mapserver-users] Mapserver 5.4 & SYMBOLSET In-Reply-To: <49F9B77A.9020602@mapgears.com> References: <49F8D11D0200008F000237DF@co5.dnr.state.mn.us> <49F9B77A.9020602@mapgears.com> Message-ID: <49F9C1C6.6000208@neogeo-online.net> Hi, I think what David meant was about getting an error when SYMBOLSET is not declared in the symbol file since 5.4. I ran into the same problem, and had to add SYMBOLSET ... END to my symbol files to have them running fine with MapServer 5.4. Is it something newly added, or just a long lasting requisite become mandatory ? Regards, Guillaume Daniel Morissette a ?crit : > Are you sure that the file you are editing is really the one used by > your mapfile? That's a common mistake... to verify that, try inserting > an invalid keyword in place of the SYMBOLSET keyword in your file and > verify that MapServer produces a parser error about it. If it doesn't > then it's probably not using the file you think it is. > > Daniel > > > David Nugent wrote: > It starts (and ends) like this: > > SYMBOLSET > > SYMBOL > NAME "point" > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED TRUE > END > > SYMBOL > NAME "dashed" > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED TRUE > STYLE > 8 6 8 6 > END > END > > ... > > END > > > Regards, > David > > > On 30/04/2009, at 1:13 PM, Steve Lime wrote: > >>>> Can you share your symbolset file? I've not had an issue with that >>>> change. >>>> >>>> Steve >>>> >>>>>>> David Nugent 04/29/09 9:54 PM >>> >>>> >>>> Hello all, >>>> >>>> I've recently upgraded to mapserver 5.4 and hit a problem with >>>> SYMBOLSET. >>>> >>>> It seems that a file containing symbols referenced from the .map file >>>> must now contain a SYMBOLSET keyword at the start (and presumably end >>>> with END?). I made this change, but the parser still complains with >>>> the message "First token must be SYMBOLSET". >>>> >>>> Not really wanting to waste time on debugging the lex code, I simply >>>> removed the check that emits this error from mapsymbol.c and all works >>>> as expected. Obviously there is a deeper problem, whether it be the >>>> logic in that statement (which appears to be correct as far as I can >>>> tell) or the lex parser itself. >>>> >>>> I'm just wondering if anyone else had hit the same problem. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From cnieman at dmsolutions.ca Thu Apr 30 08:23:27 2009 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Thu, 30 Apr 2009 11:23:27 -0400 Subject: [mapserver-users] Mapserver 5.4 & SYMBOLSET In-Reply-To: <49F9C1C6.6000208@neogeo-online.net> References: <49F8D11D0200008F000237DF@co5.dnr.state.mn.us> <49F9B77A.9020602@mapgears.com> <49F9C1C6.6000208@neogeo-online.net> Message-ID: <49F9C26F.9040204@dmsolutions.ca> Hi, It was addressing some potential security problems: http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060600.html Christy Guillaume Sueur wrote: > Hi, > > I think what David meant was about getting an error when SYMBOLSET is > not declared in the symbol file since 5.4. > > I ran into the same problem, and had to add SYMBOLSET ... END to my > symbol files to have them running fine with MapServer 5.4. > > Is it something newly added, or just a long lasting requisite become > mandatory ? > > Regards, > > Guillaume > > Daniel Morissette a ?crit : > >> Are you sure that the file you are editing is really the one used by >> your mapfile? That's a common mistake... to verify that, try inserting >> an invalid keyword in place of the SYMBOLSET keyword in your file and >> verify that MapServer produces a parser error about it. If it doesn't >> then it's probably not using the file you think it is. >> >> Daniel >> >> >> David Nugent wrote: >> It starts (and ends) like this: >> >> SYMBOLSET >> >> SYMBOL >> NAME "point" >> TYPE ELLIPSE >> POINTS >> 1 1 >> END >> FILLED TRUE >> END >> >> SYMBOL >> NAME "dashed" >> TYPE ELLIPSE >> POINTS >> 1 1 >> END >> FILLED TRUE >> STYLE >> 8 6 8 6 >> END >> END >> >> ... >> >> END >> >> >> Regards, >> David >> >> >> On 30/04/2009, at 1:13 PM, Steve Lime wrote: >> >> >>>>> Can you share your symbolset file? I've not had an issue with that >>>>> change. >>>>> >>>>> Steve >>>>> >>>>> >>>>>>>> David Nugent 04/29/09 9:54 PM >>> >>>>>>>> >>>>> Hello all, >>>>> >>>>> I've recently upgraded to mapserver 5.4 and hit a problem with >>>>> SYMBOLSET. >>>>> >>>>> It seems that a file containing symbols referenced from the .map file >>>>> must now contain a SYMBOLSET keyword at the start (and presumably end >>>>> with END?). I made this change, but the parser still complains with >>>>> the message "First token must be SYMBOLSET". >>>>> >>>>> Not really wanting to waste time on debugging the lex code, I simply >>>>> removed the check that emits this error from mapsymbol.c and all works >>>>> as expected. Obviously there is a deeper problem, whether it be the >>>>> logic in that statement (which appears to be correct as far as I can >>>>> tell) or the lex parser itself. >>>>> >>>>> I'm just wondering if anyone else had hit the same problem. >>>>> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From no-reply at neogeo-online.net Thu Apr 30 08:25:10 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Thu, 30 Apr 2009 17:25:10 +0200 Subject: [mapserver-users] Mapserver 5.4 & SYMBOLSET In-Reply-To: <49F9C26F.9040204@dmsolutions.ca> References: <49F8D11D0200008F000237DF@co5.dnr.state.mn.us> <49F9B77A.9020602@mapgears.com> <49F9C1C6.6000208@neogeo-online.net> <49F9C26F.9040204@dmsolutions.ca> Message-ID: <49F9C2D6.9020705@neogeo-online.net> Good to know ! Thanks ! Christy Nieman a ?crit : > Hi, > > It was addressing some potential security problems: > http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060600.html > > Christy > > Guillaume Sueur wrote: >> Hi, >> >> I think what David meant was about getting an error when SYMBOLSET is >> not declared in the symbol file since 5.4. >> >> I ran into the same problem, and had to add SYMBOLSET ... END to my >> symbol files to have them running fine with MapServer 5.4. >> >> Is it something newly added, or just a long lasting requisite become >> mandatory ? >> >> Regards, >> >> Guillaume >> >> Daniel Morissette a ?crit : >> >>> Are you sure that the file you are editing is really the one used by >>> your mapfile? That's a common mistake... to verify that, try inserting >>> an invalid keyword in place of the SYMBOLSET keyword in your file and >>> verify that MapServer produces a parser error about it. If it doesn't >>> then it's probably not using the file you think it is. >>> >>> Daniel >>> >>> >>> David Nugent wrote: >>> It starts (and ends) like this: >>> >>> SYMBOLSET >>> >>> SYMBOL >>> NAME "point" >>> TYPE ELLIPSE >>> POINTS >>> 1 1 >>> END >>> FILLED TRUE >>> END >>> >>> SYMBOL >>> NAME "dashed" >>> TYPE ELLIPSE >>> POINTS >>> 1 1 >>> END >>> FILLED TRUE >>> STYLE >>> 8 6 8 6 >>> END >>> END >>> >>> ... >>> >>> END >>> >>> >>> Regards, >>> David >>> >>> >>> On 30/04/2009, at 1:13 PM, Steve Lime wrote: >>> >>> >>>>>> Can you share your symbolset file? I've not had an issue with that >>>>>> change. >>>>>> >>>>>> Steve >>>>>> >>>>>> >>>>>>>>> David Nugent 04/29/09 9:54 PM >>> >>>>>>>>> >>>>>> Hello all, >>>>>> >>>>>> I've recently upgraded to mapserver 5.4 and hit a problem with >>>>>> SYMBOLSET. >>>>>> >>>>>> It seems that a file containing symbols referenced from the .map file >>>>>> must now contain a SYMBOLSET keyword at the start (and presumably end >>>>>> with END?). I made this change, but the parser still complains with >>>>>> the message "First token must be SYMBOLSET". >>>>>> >>>>>> Not really wanting to waste time on debugging the lex code, I simply >>>>>> removed the check that emits this error from mapsymbol.c and all >>>>>> works >>>>>> as expected. Obviously there is a deeper problem, whether it be the >>>>>> logic in that statement (which appears to be correct as far as I can >>>>>> tell) or the lex parser itself. >>>>>> >>>>>> I'm just wondering if anyone else had hit the same problem. >>>>>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From randre at gmail.com Thu Apr 30 12:47:14 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 30 Apr 2009 12:47:14 -0700 Subject: [mapserver-users] Development environment In-Reply-To: <200904291107.17287.iratxe.lejarreta@axios.es> References: <200904291107.17287.iratxe.lejarreta@axios.es> Message-ID: <9c2015090904301247h6d2ef23fg44b2ad821951ca4b@mail.gmail.com> vi and gcc? Roger -- On Wed, Apr 29, 2009 at 2:07 AM, Iratxe Lejarreta wrote: > Hi, > > Could anybody tell me which is the recomended enviroment to develop in C++ > language? > > Thanks! > > -- > > Iratxe Lejarreta > > www.axios.es > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Thu Apr 30 13:22:55 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 30 Apr 2009 13:22:55 -0700 Subject: [mapserver-users] Development environment In-Reply-To: <9c2015090904301247h6d2ef23fg44b2ad821951ca4b@mail.gmail.com> References: <200904291107.17287.iratxe.lejarreta@axios.es> <9c2015090904301247h6d2ef23fg44b2ad821951ca4b@mail.gmail.com> Message-ID: <49FA089F.6050502@hostgis.com> I'm a big fan of Komodo. Not only is it free, but it handles FTP and SFTP connections. I dig it. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From ivan.lucena at pmldnet.com Thu Apr 30 15:00:10 2009 From: ivan.lucena at pmldnet.com (Ivan) Date: Thu, 30 Apr 2009 18:00:10 -0400 Subject: [mapserver-users] Development environment In-Reply-To: <9c2015090904301247h6d2ef23fg44b2ad821951ca4b@mail.gmail.com> References: <200904291107.17287.iratxe.lejarreta@axios.es> <9c2015090904301247h6d2ef23fg44b2ad821951ca4b@mail.gmail.com> Message-ID: <49FA1F6A.8070302@pmldnet.com> NetBeans IDE does the trick for me (netbeans.org) I can do C/C++ and Java, auto-complete, find definition, debugging and connects with a SVN server! Roger Andr? wrote: > vi and gcc? > > Roger > -- > > On Wed, Apr 29, 2009 at 2:07 AM, Iratxe Lejarreta > > wrote: > > Hi, > > Could anybody tell me which is the recomended enviroment to develop > in C++ language? > > Thanks! > > -- > > Iratxe Lejarreta > > www.axios.es > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From vsaraf.gmu at gmail.com Thu Apr 30 15:30:30 2009 From: vsaraf.gmu at gmail.com (Varun saraf) Date: Thu, 30 Apr 2009 18:30:30 -0400 Subject: [mapserver-users] Dynamic data loading using Google maps and Mapserver Message-ID: <6db14d250904301530w457991c6m50111b694ed69ba1@mail.gmail.com> Hi, I have successfully drawn layers on of google maps as base using mapserver. However, I am trying to figure out how to get data dynamically displayed on the web page when a user clicks on a certain area. For example, I have divided the entire state of virginia into many sectors (using a polygon shp file). My requirement is that I want data to come up on the map/web page when the user selects a particular sector. I know google provides me with an event api for clicking on the map but how do I pass this event to mapserver so it can send me the label for that sector from the shape file? I need to be able to recognize what sector the user has clicked. Is this possible using just the mapserv cgi script and a map file or a MapScript has to be written/used? Can someone point me in the right direction here? Even providing the link for a previous discussion on this topic would help. Thanks, Varun