From steve.hall at MERCATORGEOSYSTEMS.CO.UK Wed Nov 1 01:27:19 2006 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Wed, 1 Nov 2006 09:27:19 +0000 Subject: Limiting the viewable extent... In-Reply-To: <45478C1A.6020601@swoodbridge.com> Message-ID: Thanks all for the suggestions, i'll have a look through and see what works best for me. I'm using MapScript so perhaps that may be the best way forward. The multiple INCLUDEs is a nice thought too. Cheers, Steve H Stephen Woodbridge wrote: > Steve, > > I may be confusing this with a feature of ka-map, but I'm not sure. > Steve L do you know if there is such a feature in mapserver? > > -Steve W > > ps: lots of Steve is confusing! > > Steve Hall wrote: >> Stephen Woodbridge wrote: >>> Steve Hall wrote: >>>> Hi all, >>>> >>>> Is it possible to restrict the users viewable extent of the map >>>> through the map file? For example, I have data loaded for the >>>> whole of the country but I want it to be impossible for any client >>>> tool to view data beyond a defined and fixed extent. >>>> >>>> The EXTENT parameters just seem to set the initial extent and you >>>> can easily zoom out beyond this extent. >>>> >>>> I appreciate this is fairly easy to do through code but though that >>>> if this was possible via a mapfile then it would be done at the >>>> 'lowest' level... >>> >>> Yes, I believe you can do it by setting METADATA values for the MAP >>> object. I just check the mapfile reference and it is not described >>> there. Could you please write a documentation bug to request all >>> METADATA controls be documented. >>> >>> -Steve W. >>> >> Thanks for this Steve, do you happen to know off hand any of the >> relevant keywords to this problem (to get me started). I could take >> a look through the code and dig deeper if I have somewhere to >> start. This will also enable me to file a more accurate and useful >> bug... >> >> Cheers, >> Steve H > > -- Steve Hall Technical Consultant Mercator GeoSystems Ltd Tel (UK) : +44 (0) 114 235 3409 Tel (US) : +1 (562) 735 3541 Fax : +44 (0) 114 235 3409 Mobile : +44 (0) 771 828 6323 Email : steve.hall at mercatorgeosystems.com Web : www.mercatorgeosystems.com Skype : mercatorgeosystems From williampaul28 at YAHOO.COM Wed Nov 1 03:08:06 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 1 Nov 2006 03:08:06 -0800 Subject: dbox imagepath, imageurl In-Reply-To: Message-ID: Hi, I think so. I don't know how to setup the rights. I used IIS to create an virtual directory and than I gave the write rights What other setups should be made? William Barend K?bben wrote: Hi, Are you sure that the Mapserver process has access rights to write to the temp dir? This was a problem initially in my setup... __ Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 On 01-11-2006 08:04, "william paul" wrote: > Hi: > > I am trying to use dBox. I managed to install it, but when I load the page I > don't see the image. If I click on it I get the busy image. I think that the > IMAGEPATH and IMAGEURL are not properly setup. I use IIS and Mapserver 4.6.0 > and I have everything in inetput/wwwroot. I have created and temp folder where > I want to store the temporal images. I have setup in MAP file the imagepath > and imageurl: > > IMAGEPATH "c:\inetpub\wwwroot\tmp" > IMAGEURL "/tmp/" > > but nothing it is written there and no image is created. If I test on a new > browser window the URL that is created when I load the main web page, then I > get the image. > > Should I make other setups for dBox? > > Thank you > > William > > > --------------------------------- > Everyone is raving about the all-new Yahoo! Mail. --------------------------------- Everyone is raving about the all-new Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From williampaul28 at YAHOO.COM Wed Nov 1 03:37:28 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 1 Nov 2006 03:37:28 -0800 Subject: mapserver 4.10 compiled? Message-ID: Hi, Is it possible to download the latest stable compiled version on mapserver 4.10? Thank you William --------------------------------- Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Nov 1 03:38:30 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Wed, 1 Nov 2006 12:38:30 +0100 Subject: mapserver 4.10 compiled? Message-ID: You mean for Windows? Check: http://www.maptools.org/ms4w/index.phtml Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens william paul Verzonden: woensdag 1 november 2006 12:37 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] mapserver 4.10 compiled? Hi, Is it possible to download the latest stable compiled version on mapserver 4.10? Thank you William _____ Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call rates. Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From williampaul28 at YAHOO.COM Wed Nov 1 03:58:51 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 1 Nov 2006 03:58:51 -0800 Subject: dbox imagepath, imageurl In-Reply-To: Message-ID: Hi I have solved the problem. It was a misspelling, but I have another now. When I point the browser to the main web page I don't see the image, but if I click on it the image appears. It still don't write anything on tmp folder, but I can zoom in, zoom out and pan the image :( William Barend K?bben wrote: > virtual directory and than I gave the write rights Write rights to what/whom? There is in most setups a special account for web applications/processes, I think it's called IWAM_ or something like that (don't have access to a IIS WindowsBox right now). That's the user that has to have the write rights, and of course the anonymous Web user account (IUSR_) has to have read rights to be able to 'collect' the temp files... Barend --------------------------------- Check out the New Yahoo! Mail - Fire up a more powerful email and get things done faster. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmichelli at GMAIL.COM Wed Nov 1 04:27:40 2006 From: mmichelli at GMAIL.COM (Mario) Date: Wed, 1 Nov 2006 12:27:40 +0000 Subject: converting a .map file into php mapscript Message-ID: I'm trying to learn mapscript by converting a .map file into php mapscript that does not use the file. It's going well except for not being able to duplicate a very simple piece of mapfile to mapscript. The main problem is FEATURE I think. I have also manipulating the layer with php and have success except for changing the text or the point, again the features. Anyone got a spare minute to set me straight LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 200 150 END TEXT 'Hello world. Mapserver rocks.' END CLASS LABEL TYPE BITMAP COLOR 0 0 0 END END END This is my attempt: //credits //add layer to map $layerCredits = ms_newLayerObj($map); $layerCredits->set("name", "writeSomething"); $layerCredits->set("type", MS_LAYER_ANNOTATION); $layerCredits->set("transform", MS_FALSE); $layerCredits->set("status", MS_DEFAULT); //make shape $shapeCredits = ms_newShapeObj(MS_SHAPE_POINT); $shapeCredits->text ="This should be on the map but is not"; //make line $lineCredits = ms_newLineObj(); //make point $pointCredits = ms_newPointObj(); $pointCredits->setXY(50,20); //add point to line $lineCredits->add($pointCredits); //add line to shape $shapeCredits->add($lineCredits); //add shape to layer $layerCredits->addFeature($shapeCredits); //set up class $classCredits = ms_newClassObj($layerCredits); //set up label $classCredits->label->set("position", MS_CR); $classCredits->label->set("type", MS_BITMAP); $classCredits->label->color->setRGB(255,0,125); -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Wed Nov 1 05:49:07 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 1 Nov 2006 06:49:07 -0700 Subject: dbox imagepath, imageurl In-Reply-To: <20061101115851.12239.qmail@web42410.mail.scd.yahoo.com> Message-ID: On 11/1/06, william paul wrote: > Hi > I have solved the problem. It was a misspelling, but I have another now. > When I point the browser to the main web page I don't see the image, but if > I click on it the image appears. It still don't write anything on tmp > folder, but I can zoom in, zoom out and pan the image dBox uses mode=map for pan and zoom operations. In mode=map no image is written to the tmp dir. Your problem is probably that dLegend is not configured correctly. First, comment out the 3 dLegend lines in the onopen() functin and see if that fixes it. Also look at the Javascript consloe. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From williampaul28 at YAHOO.COM Wed Nov 1 07:21:54 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 1 Nov 2006 07:21:54 -0800 Subject: dbox imagepath, imageurl In-Reply-To: Message-ID: Thank you Rich: This was the problem William Richard Greenwood wrote: On 11/1/06, william paul wrote: > Hi > I have solved the problem. It was a misspelling, but I have another now. > When I point the browser to the main web page I don't see the image, but if > I click on it the image appears. It still don't write anything on tmp > folder, but I can zoom in, zoom out and pan the image dBox uses mode=map for pan and zoom operations. In mode=map no image is written to the tmp dir. Your problem is probably that dLegend is not configured correctly. First, comment out the 3 dLegend lines in the onopen() functin and see if that fixes it. Also look at the Javascript consloe. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com --------------------------------- Check out the New Yahoo! Mail - Fire up a more powerful email and get things done faster. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpeil at CITYOFPT.US Wed Nov 1 11:17:21 2006 From: mpeil at CITYOFPT.US (Mark Peil) Date: Wed, 1 Nov 2006 11:17:21 -0800 Subject: Stumped Message-ID: Hello there. I am brand new to Map Server. I have my map up and running: http://maps.cityofpt.us but I am having difficulties trying to "zoom to" a feature, in this case a Parcel. As you can see from the website, if you start at the full extent, the Parcel Search and Parcel Layers are highlighted. If you plug in a parcel number (931402302 for example) then click on the map, you can see a small RED highlighted shape. If you zoom in manually, you will see that this is the parcel number entered above. Here is my issue, I can't figure out how to zoom in automatically when the Parcel and Parcel Layers are active & a vaild Parcel Number is entered & the map is clicked. I am sure there is a way to do this but I can't figure out how. Is there something obvious I have over looked? Any help would be greatly appreciated. Mark Peil -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Wed Nov 1 20:26:55 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 1 Nov 2006 21:26:55 -0700 Subject: Stumped In-Reply-To: Message-ID: On 11/1/06, Mark Peil wrote: > > > > Hello there. I am brand new to Map Server. I have my map up and running: > > http://maps.cityofpt.us > > but I am having difficulties trying to "zoom to" a feature, in this case a > Parcel. > > As you can see from the website, if you start at the full extent, the Parcel > Search and Parcel Layers are highlighted. If you plug in a parcel number > (931402302 for example) then click on the map, you can see a small RED > highlighted shape. If you zoom in manually, you will see that this is the > parcel number entered above. > > Here is my issue, I can't figure out how to zoom in automatically when the > Parcel and Parcel Layers are active & a vaild Parcel Number is entered & the > map is clicked. I am sure there is a way to do this but I can't figure out > how. Is there something obvious I have over looked? Any help would be > greatly appreciated. > > > Mark Peil Try mode=itemnquery example: www2.tetonwyo.org/mapserver -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From bob.b at GRITECHNOLOGIES.COM Wed Nov 1 20:44:52 2006 From: bob.b at GRITECHNOLOGIES.COM (Bob Basques) Date: Wed, 1 Nov 2006 22:44:52 -0600 Subject: Stumped In-Reply-To: Message-ID: Works from here. Richard Greenwood wrote: > On 11/1/06, Mark Peil wrote: >> >> >> >> Hello there. I am brand new to Map Server. I have my map up and running: >> >> http://maps.cityofpt.us >> >> but I am having difficulties trying to "zoom to" a feature, in this >> case a >> Parcel. >> >> As you can see from the website, if you start at the full extent, the >> Parcel >> Search and Parcel Layers are highlighted. If you plug in a parcel number >> (931402302 for example) then click on the map, you can see a small RED >> highlighted shape. If you zoom in manually, you will see that this is >> the >> parcel number entered above. >> >> Here is my issue, I can't figure out how to zoom in automatically >> when the >> Parcel and Parcel Layers are active & a vaild Parcel Number is >> entered & the >> map is clicked. I am sure there is a way to do this but I can't >> figure out >> how. Is there something obvious I have over looked? Any help would be >> greatly appreciated. >> >> >> Mark Peil > > > Try mode=itemnquery > example: > www2.tetonwyo.org/mapserver > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: moz-screenshot-1.jpg Type: image/jpeg Size: 17019 bytes Desc: not available URL: From williampaul28 at YAHOO.COM Wed Nov 1 23:29:33 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 1 Nov 2006 23:29:33 -0800 Subject: mapping query results Message-ID: Hi, I have a database on MS SQL Server Express and an ASPX application. I managed, with help from the list, to install dBox. I want to map the query results on the mapserver, but I don't know how to do it with dBox. Example: after a query I get point or polygon features that represent elements at risk or areas with high risk. Is it possible to see them on the map by clicking on one of the query results? Thank you William --------------------------------- Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at DEBLOIS.NL Thu Nov 2 01:46:32 2006 From: mark at DEBLOIS.NL (mark@deblois.nl) Date: Thu, 2 Nov 2006 10:46:32 +0100 Subject: Winkel Triple Projection WMS trouble In-Reply-To: <2638.62.6.153.248.1162459516.squirrel@webmail.solcon.nl> Message-ID: Hi all, I am struggling getting a proper WMS service going in Winkel Triple projection. I am using the code below as I have not been able to find an EPSG code for Winkel Triple. PROJECTION "proj=wintri" "ellps=WGS84" "lat_1=45" END The data itself is in EPSG:4326. The GetMap request spits out a good looking projected image but getting the WMS up and running is causing the trouble. I have a feeling the problem is related to the WMS_SRS tag belonging to the MAP section. As I don?t have a EPSG code I do not know what information to include. Any advice would be greatly appreciated. Regards, Mark From higon_jos at GVA.ES Thu Nov 2 04:42:37 2006 From: higon_jos at GVA.ES (=?ISO-8859-1?Q?Jos=E9_Vicente_Higon?=) Date: Thu, 2 Nov 2006 13:42:37 +0100 Subject: Blank images with mapscript in redhat enterprise 4 Message-ID: Hello, I have a problem with an application developped with mapscript, I recive empty images randomly. Initially, the application was developped in windows and it worked fine, when we put it in linux it began to fail (readhat enterprise 4 Nahant). Now, we have installed these versions: httpd-2.0.55 php-5.0.5 postgres-8.0.3 mapserver-4.8.4 gdal-1.3.2 gd-2.0.33 .... I've tried with newer and older versions of mapsrver, gd, php (php4 too) , ... but it continues failing. I'm desperate !! All layers are in debug mode, however when the appplication crashes, the output log (error_log apache's) stops be writed and any messages can give me any clue. Can someone help me? Thanks in advance -- Jos? Vicente Hig?n Grupo de desarrollo de gvSIG Conselleria de Infraestructuras y Transporte Generalitat Valenciana Valencia - Spain http://www.gvsig.gva.es From dmorissette at MAPGEARS.COM Thu Nov 2 05:18:07 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 2 Nov 2006 08:18:07 -0500 Subject: Blank images with mapscript in redhat enterprise 4 In-Reply-To: <4549E7BD.6080607@gva.es> Message-ID: Please do not cross-post questions to the -users and -dev list. I have intentionally sent this response only to the -users list since that's where it belongs. A few things to try/check: 1- You write that the application crashes? Do you mean that you see segmentation fault messages in the error_log? If not then what are the symptoms of the "crash"? You also write that you get blank images randomly... so is the problem that you get blank images, or that the requests crash/abort and return only partial responses? 2- Is it possible that your RHE system is running PHP as an Apache module and not PHP as a CGI? Can you please confirm that? 3- I'd recommend that your use MapServer 4.10 for your tests, it contains a fix for bug 1322 that might be related to your problem 4- In general when you get intermittent seg faults they are caused by conflicting libraries used by one of Apache, PHP or MapServer/MapScript. For instance if your PHP includes the GD extension and uses PHP's built-in version of GD then that might be a source of conflicts with the system GD used by MapScript. You could try rebuilding PHP without the GD extension, or if you need the GD extension then use the system GD, i.e. the same GD that is used by MapServer and PHP MapScript. Daniel Jos? Vicente Higon wrote: > Hello, > I have a problem with an application developped with mapscript, I recive > empty images randomly. Initially, the application was developped in > windows and it worked fine, when we put it in linux it began to fail > (readhat enterprise 4 Nahant). Now, we have installed these versions: > > httpd-2.0.55 > php-5.0.5 > postgres-8.0.3 > mapserver-4.8.4 > gdal-1.3.2 > gd-2.0.33 > .... > > I've tried with newer and older versions of mapsrver, gd, php (php4 too) > , ... but it continues failing. I'm desperate !! > All layers are in debug mode, however when the appplication crashes, the > output log (error_log apache's) stops be writed and any messages can > give me any clue. > > Can someone help me? > > Thanks in advance > -- Daniel Morissette http://www.mapgears.com/ From richard.greenwood at GMAIL.COM Thu Nov 2 05:48:16 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 2 Nov 2006 06:48:16 -0700 Subject: mapping query results In-Reply-To: <20061102072933.67972.qmail@web42406.mail.scd.yahoo.com> Message-ID: On 11/2/06, william paul wrote: > Hi, > > I have a database on MS SQL Server Express and an ASPX application. I > managed, with help from the list, to install dBox. I want to map the query > results on the mapserver, but I don't know how to do it with dBox. Example: > after a query I get point or polygon features that represent elements at > risk or areas with high risk. Is it possible to see them on the map by > clicking on one of the query results? > > Thank you > > William I do something like that in one of my applications. An ASP page displays data from a SQL Server db. Each record has a "Map It" link. There has to be at least one common field in the SQL Server data and the shape files. When the link gets clicked it calls mapserver with smoething like: mapserv.exe?map=my.map &mode=itemnquery &qitem=pidn &qlayer=join_region_spatial &mapext=shapes &savequery=true &qstring=22-41-16-33-4-11-004 itemnquery tells mapserver to highlight, and zoom to, the objects qitem is the name of the field that is common qlayer is the layer that the objects are on mapext tells it to zoom to that object(s) savequery is optional qstring is the value of the object.qitem you want slected Also you need to setup a querymap in your map file. My example is at: http://www2.tetonwyo.org/mapserver/ From stephane.colzy at MAGELLIUM.FR Thu Nov 2 06:15:39 2006 From: stephane.colzy at MAGELLIUM.FR (=?iso-8859-1?Q?St=E9phane_COLZY?=) Date: Thu, 2 Nov 2006 15:15:39 +0100 Subject: SIZEITEM howto ? Message-ID: Hi, Could someone give us a brief description on how to use the STYLE / SIZEITEM property on points data ? Like: what are the other related properties, what kind of attributes/fields are supported ? It would be very helpful stephane -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Thu Nov 2 06:25:34 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 2 Nov 2006 08:25:34 -0600 Subject: SIZEITEM howto ? In-Reply-To: A<000801c6fe89$62574920$8001a8c0@PC128> Message-ID: Stephane, To use this, you would add a column to your shapefile or dataset that contained an integer value for how large you would like the symbol for that feature to be drawn. This allows you to set different symbol sizes for each feature as opposed to setting up separate classes with distinctive styles in the layer in the map file. http://mapserver.gis.umn.edu/docs/reference/mapfile/style David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of St?phane COLZY Sent: Thursday, November 02, 2006 8:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Hi, Could someone give us a brief description on how to use the STYLE / SIZEITEM property on points data ? Like: what are the other related properties, what kind of attributes/fields are supported ? It would be very helpful... stephane -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.colzy at MAGELLIUM.FR Thu Nov 2 07:51:19 2006 From: stephane.colzy at MAGELLIUM.FR (=?iso-8859-1?Q?St=E9phane_COLZY?=) Date: Thu, 2 Nov 2006 16:51:19 +0100 Subject: SIZEITEM howto ? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB0B03@s-sp22.pca.state.mn.us> Message-ID: Ok, but the problem is that when I do this nothing happens (the map doesn?t change) So I thought may be I?m missing something Here?s the layer definition : onu_id is an int4 ranging from 1 to 900 LAYER CONNECTION "user=scy password=scy dbname=vmap host=localhost port=5432" CONNECTIONTYPE POSTGIS DATA "the_geom from join_onu_wc USING UNIQUE ogc_fid using srid=4326" MAXSCALE 500 METADATA END NAME "Cities" PROJECTION "init=EPSG:4326" END SIZEUNITS PIXELS STATUS ON TOLERANCEUNITS PIXELS TYPE ANNOTATION UNITS METERS CLASS NAME "DEFAULT" LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT "verdana" MAXSIZE 256 MINSIZE 4 SIZE 8 TYPE TRUETYPE BUFFER 0 COLOR 104 104 104 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE 35 OFFSET 0 0 PARTIALS TRUE POSITION AUTO END METADATA END STYLE ANGLE 360 COLOR 255 30 0 SIZEITEM onu_id SYMBOL 7 END TEXT ([ONU_CITY_NAME]) END END _____ De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fawcett, David Envoy? : jeudi 2 novembre 2006 15:26 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Stephane, To use this, you would add a column to your shapefile or dataset that contained an integer value for how large you would like the symbol for that feature to be drawn. This allows you to set different symbol sizes for each feature as opposed to setting up separate classes with distinctive styles in the layer in the map file. http://mapserver.gis.umn.edu/docs/reference/mapfile/style David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of St?phane COLZY Sent: Thursday, November 02, 2006 8:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Hi, Could someone give us a brief description on how to use the STYLE / SIZEITEM property on points data ? Like: what are the other related properties, what kind of attributes/fields are supported ? It would be very helpful stephane -------------- next part -------------- An HTML attachment was scrubbed... URL: From volunteer at SPATIALLINK.ORG Thu Nov 2 08:14:35 2006 From: volunteer at SPATIALLINK.ORG (siva) Date: Thu, 2 Nov 2006 09:14:35 -0700 Subject: idea Message-ID: hello i think in future mapserver map file be xml file sincerely sshekar From sandeepkumar.jakkaraju at GMAIL.COM Thu Nov 2 08:16:36 2006 From: sandeepkumar.jakkaraju at GMAIL.COM (Sandeep Kumar Jakkaraju) Date: Thu, 2 Nov 2006 21:46:36 +0530 Subject: idea In-Reply-To: <20061102091435.b22b5ede89d48a4249261b5ab56693f4.75d59d01ad.wbe@email.secureserver.net> Message-ID: ANd J2EE based !! On 11/2/06, siva wrote: > > hello > i think in future mapserver map file be xml file > > sincerely > sshekar > -- Sandeep Kumar Jakkaraju WeBlog: http://jakkarajus.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Thu Nov 2 07:59:54 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 2 Nov 2006 09:59:54 -0600 Subject: SIZEITEM howto ? In-Reply-To: A<001601c6fe96$bd560ac0$8001a8c0@PC128> Message-ID: You may want to try 'ONU_ID', I notice that for the label text you use uppercase for the field name. I am not sure if case sensitivity is an issue in this case with PostGIS. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of St?phane COLZY Sent: Thursday, November 02, 2006 9:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Ok, but the problem is that when I do this nothing happens (the map doesn't change) So I thought may be I'm missing something... Here's the layer definition : onu_id is an int4 ranging from 1 to 900 LAYER CONNECTION "user=scy password=scy dbname=vmap host=localhost port=5432" CONNECTIONTYPE POSTGIS DATA "the_geom from join_onu_wc USING UNIQUE ogc_fid using srid=4326" MAXSCALE 500 METADATA END NAME "Cities" PROJECTION "init=EPSG:4326" END SIZEUNITS PIXELS STATUS ON TOLERANCEUNITS PIXELS TYPE ANNOTATION UNITS METERS CLASS NAME "DEFAULT" LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT "verdana" MAXSIZE 256 MINSIZE 4 SIZE 8 TYPE TRUETYPE BUFFER 0 COLOR 104 104 104 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE 35 OFFSET 0 0 PARTIALS TRUE POSITION AUTO END METADATA END STYLE ANGLE 360 COLOR 255 30 0 SIZEITEM onu_id SYMBOL 7 END TEXT ([ONU_CITY_NAME]) END END ________________________________ De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fawcett, David Envoy? : jeudi 2 novembre 2006 15:26 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Stephane, To use this, you would add a column to your shapefile or dataset that contained an integer value for how large you would like the symbol for that feature to be drawn. This allows you to set different symbol sizes for each feature as opposed to setting up separate classes with distinctive styles in the layer in the map file. http://mapserver.gis.umn.edu/docs/reference/mapfile/style David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of St?phane COLZY Sent: Thursday, November 02, 2006 8:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Hi, Could someone give us a brief description on how to use the STYLE / SIZEITEM property on points data ? Like: what are the other related properties, what kind of attributes/fields are supported ? It would be very helpful... stephane -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.colzy at MAGELLIUM.FR Thu Nov 2 08:27:56 2006 From: stephane.colzy at MAGELLIUM.FR (=?iso-8859-1?Q?St=E9phane_COLZY?=) Date: Thu, 2 Nov 2006 17:27:56 +0100 Subject: SIZEITEM howto ? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB0B05@s-sp22.pca.state.mn.us> Message-ID: Nope ;) Already tried this (I think that for shapefiles you have to use uppercase but for postgis it doesn?t seem to matter) _____ De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fawcett, David Envoy? : jeudi 2 novembre 2006 17:00 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ? You may want to try 'ONU_ID', I notice that for the label text you use uppercase for the field name. I am not sure if case sensitivity is an issue in this case with PostGIS. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of St?phane COLZY Sent: Thursday, November 02, 2006 9:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Ok, but the problem is that when I do this nothing happens (the map doesn?t change) So I thought may be I?m missing something Here?s the layer definition : onu_id is an int4 ranging from 1 to 900 LAYER CONNECTION "user=scy password=scy dbname=vmap host=localhost port=5432" CONNECTIONTYPE POSTGIS DATA "the_geom from join_onu_wc USING UNIQUE ogc_fid using srid=4326" MAXSCALE 500 METADATA END NAME "Cities" PROJECTION "init=EPSG:4326" END SIZEUNITS PIXELS STATUS ON TOLERANCEUNITS PIXELS TYPE ANNOTATION UNITS METERS CLASS NAME "DEFAULT" LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT "verdana" MAXSIZE 256 MINSIZE 4 SIZE 8 TYPE TRUETYPE BUFFER 0 COLOR 104 104 104 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE 35 OFFSET 0 0 PARTIALS TRUE POSITION AUTO END METADATA END STYLE ANGLE 360 COLOR 255 30 0 SIZEITEM onu_id SYMBOL 7 END TEXT ([ONU_CITY_NAME]) END END _____ De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fawcett, David Envoy? : jeudi 2 novembre 2006 15:26 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Stephane, To use this, you would add a column to your shapefile or dataset that contained an integer value for how large you would like the symbol for that feature to be drawn. This allows you to set different symbol sizes for each feature as opposed to setting up separate classes with distinctive styles in the layer in the map file. http://mapserver.gis.umn.edu/docs/reference/mapfile/style David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of St?phane COLZY Sent: Thursday, November 02, 2006 8:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Hi, Could someone give us a brief description on how to use the STYLE / SIZEITEM property on points data ? Like: what are the other related properties, what kind of attributes/fields are supported ? It would be very helpful stephane -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschulz at WEBGIS.DE Thu Nov 2 08:49:11 2006 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Thu, 2 Nov 2006 17:49:11 +0100 Subject: WMS GetFeatureInfo on joined PostGIS layer In-Reply-To: Message-ID: Hi, unfortunately i have only to report the same problem. A getfeatureinfo request on a postgis layer with data coming from a select that uses a join returns always "no results". Changing the data to a simple "select *" gives wonderful results. Cheers, Michael P.S.: details, if needed, coming shortly On 10/26/06, James Perrins wrote: > Hi, > > This has got me stumped > > > mapserv481 (or 4.10) > > Windows XP / IIS > > PostGIS / PostGres 8.1 > > > > http://127.0.0.1/scripts/mapserv481.exe?map=C:/Inetpub/wwwroot/WMSServices/marine.map&SERVICE=WMS&SRS=EPSG:4326&VERSION=1.1.1&REQUEST=GetFeatureInfo&X=145&Y=84&QUERY_LAYERS=SurveyPoints&LAYERS=SurveyPoints&BBOX=-5.480804443359375,51.163844261348245,-4.519500732421875,51.76274043738508&WIDTH=700&HEIGHT=700 > > > > The above feature Info request works on a PostGIS single data layer > (full layer definition appended at end for info) > > (e.g. DATA "the_geom from sample") > > > > But the same request fails when I change the DATA to a joined table > > (e.g. DATA "the_geom from (select sample.sample_key as id, > sample.the_geom, species.name as name from sample inner join species > on species.sample_key = sample.sample_key where species.name= 'Mytilus > edulis' ) as foo USING UNIQUE id using srid=4326") > > > > Both data layers display data on the map OK ? its just the > GetFeatureInfo that fails on the joined PostGIS layer with the > following error: > > > > GetFeatureInfo results: > > Layer 'SurveyPoints' > Content-type: application/vnd.ogc.se_xml > > > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > > > > > If no data is returned then it works OK (GetFeatureInfo results: > Search returned no results.) > ? so it must be something to do with how either I / > mapserver is failing to interpret / match the joined fields from the > data statement ? but I just can't see it > > I've also tried using a view in PostGreSQL: > SELECT foo.id, foo.sample_key, foo.the_geom, foo.name > FROM ( SELECT species.taxon_key AS id, sample.sample_key, > sample.the_geom, species.name > FROM sample > JOIN species ON species.sample_key::text = sample.sample_key::text > WHERE species.name::text = 'Mytilus edulis'::text) foo; > > And - DATA "the_geom from mytilus USING UNIQUE id using srid=4326" > or DATA "the_geom from mytilus" > > Both these display the data on a map OK ? but produce the same error > with GetFeatureInfo > > Anyone any ideas ? > > > Many Thanks > > James > > > > LAYER > > NAME "SurveyPoints" > > CONNECTION "user=gisdb password=gisdb dbname=gisdb > host=127.0.0.1 port=5432" > > CONNECTIONTYPE postgis > > DATA "the_geom from sample" > > #DATA "the_geom from mytilus USING UNIQUE id using srid=4326" > > #DATA "the_geom from (select sample.sample_key as id, > sample.the_geom, species.name as name from sample inner join species > on species.sample_key = sample.sample_key where species.name= > '%speciesname%' ) as foo USING UNIQUE id using srid=4326" > > #DATA "the_geom from (select species.taxon_key as id, > sample.sample_key, sample.the_geom, species.name as name from sample > inner join species on species.sample_key = sample.sample_key where > species.name= 'Mytilus edulis' ) as foo USING UNIQUE id using > srid=4326" > > > > > > #for WMS attributes > > TEMPLATE "marinetemplate.htm" > > DUMP true > > METADATA > > "wms_title" "SurveyPoints" > > "wms_srs" "EPSG:27700 EPSG:4326 EPSG:54004" > > "gml_include_items" "all" > > END > > TYPE POINT > > PROJECTION > > "init=epsg:4326" > > END > > STATUS ON > > LABELITEM "id" > > LABELMAXSCALE 50000 > > LABELMINSCALE 0 > > LABELCACHE ON > > CLASS > > LABEL > > ANTIALIAS TRUE > > SIZE small > > POSITION AUTO > > OFFSET 1 1 > > BUFFER 1 > > COLOR 255 0 0 > > OUTLINECOLOR 255 255 255 > > END > > SYMBOL 'circle' > > SIZE 4 > > OUTLINECOLOR 255 0 0 > > END # end of class object > > TOLERANCE 100 > > END # end of layer object > > mapserv481 > > Windows XP / IIS > > PostGIS / PostGres 8.1 > > > > http://127.0.0.1/scripts/mapserv481.exe?map=C:/Inetpub/wwwroot/WMSServices/marine.map&SERVICE=WMS&SRS=EPSG:4326&VERSION=1.1.1&REQUEST=GetFeatureInfo&X=145&Y=84&QUERY_LAYERS=SurveyPoints&LAYERS=SurveyPoints&BBOX=-5.480804443359375,51.163844261348245,-4.519500732421875,51.76274043738508&WIDTH=700&HEIGHT=700 > > > > The above feature Info request works on a PostGIS single data layer > (full layer definition appended at end for info) > > (e.g. DATA "the_geom from sample") > > > > But the same request fails when I change the DATA to a joined table > > (e.g. DATA "the_geom from (select sample.sample_key as id, > sample.the_geom, species.name as name from sample inner join species > on species.sample_key = sample.sample_key where species.name= 'Mytilus > edulis' ) as foo USING UNIQUE id using srid=4326") > > > > Both data layers display data on the map OK ? its just the > GetFeatureInfo that fails on the joined PostGIS layer with the > following error: > > > > GetFeatureInfo results: > > Layer 'SurveyPoints' > Content-type: application/vnd.ogc.se_xml > > > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > > > > > If no data is returned then it works OK (GetFeatureInfo results: > Search returned no results.) > ? so it must be something to do with how either I / > mapserver is failing to interpret / match the joined fields from the > data statement ? but I just can't see it > > I've also tried using a view in PostGreSQL: > SELECT foo.id, foo.sample_key, foo.the_geom, foo.name > FROM ( SELECT species.taxon_key AS id, sample.sample_key, > sample.the_geom, species.name > FROM sample > JOIN species ON species.sample_key::text = sample.sample_key::text > WHERE species.name::text = 'Mytilus edulis'::text) foo; > > And - DATA "the_geom from mytilus USING UNIQUE id using srid=4326" > or DATA "the_geom from mytilus" > > Both these display the data on a map OK ? but produce the same error > with GetFeatureInfo > > Anyone any ideas ? > > > Many Thanks > > James > > > > > > > > > > > > LAYER > > NAME "SurveyPoints" > > CONNECTION "user=gisdb password=gisdb dbname=gisdb > host=127.0.0.1 port=5432" > > CONNECTIONTYPE postgis > > DATA "the_geom from sample" > > #DATA "the_geom from mytilus USING UNIQUE id using srid=4326" > > #DATA "the_geom from (select sample.sample_key as id, > sample.the_geom, species.name as name from sample inner join species > on species.sample_key = sample.sample_key where species.name= > '%speciesname%' ) as foo USING UNIQUE id using srid=4326" > > #DATA "the_geom from (select species.taxon_key as id, > sample.sample_key, sample.the_geom, species.name as name from sample > inner join species on species.sample_key = sample.sample_key where > species.name= 'Mytilus edulis' ) as foo USING UNIQUE id using > srid=4326" > > > > > > #for WMS attributes > > TEMPLATE "marinetemplate.htm" > > DUMP true > > METADATA > > "wms_title" "SurveyPoints" > > "wms_srs" "EPSG:27700 EPSG:4326 EPSG:54004" > > "gml_include_items" "all" > > END > > TYPE POINT > > PROJECTION > > "init=epsg:4326" > > END > > STATUS ON > > LABELITEM "id" > > LABELMAXSCALE 50000 > > LABELMINSCALE 0 > > LABELCACHE ON > > CLASS > > LABEL > > ANTIALIAS TRUE > > SIZE small > > POSITION AUTO > > OFFSET 1 1 > > BUFFER 1 > > COLOR 255 0 0 > > OUTLINECOLOR 255 255 255 > > END > > SYMBOL 'circle' > > SIZE 4 > > OUTLINECOLOR 255 0 0 > > END # end of class object > > TOLERANCE 100 > > END # end of layer object > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From mschulz at WEBGIS.DE Thu Nov 2 12:04:59 2006 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Thu, 2 Nov 2006 21:04:59 +0100 Subject: WMS GetFeatureInfo on joined PostGIS layer In-Reply-To: Message-ID: Hi, oops, I was just again reading through the manuals, and for my problem i'm pretty sure, that the missing oid column/index, when using a special select clause, prevents mapserver/postgis from returning results. Could that be the problem with your postgis-joined-tables problem, James? Excerpt from postgis docs: "Mapserver requires unique identifiers for each spatial record when doing queries, and the PostGIS module of Mapserver uses the PostgreSQL oid value to provide these unique identifiers." We'll see. Cheers, Michael On 11/2/06, Michael Schulz wrote: > Hi, > > unfortunately i have only to report the same problem. > > A getfeatureinfo request on a postgis layer with data coming from a > select that uses a join returns always "no results". Changing the data > to a simple "select *" gives wonderful results. > > Cheers, Michael > > P.S.: details, if needed, coming shortly > > > On 10/26/06, James Perrins wrote: > > Hi, > > > > This has got me stumped > > > > > > mapserv481 (or 4.10) > > > > Windows XP / IIS > > > > PostGIS / PostGres 8.1 > > > > > > > > http://127.0.0.1/scripts/mapserv481.exe?map=C:/Inetpub/wwwroot/WMSServices/marine.map&SERVICE=WMS&SRS=EPSG:4326&VERSION=1.1.1&REQUEST=GetFeatureInfo&X=145&Y=84&QUERY_LAYERS=SurveyPoints&LAYERS=SurveyPoints&BBOX=-5.480804443359375,51.163844261348245,-4.519500732421875,51.76274043738508&WIDTH=700&HEIGHT=700 > > > > > > > > The above feature Info request works on a PostGIS single data layer > > (full layer definition appended at end for info) > > > > (e.g. DATA "the_geom from sample") > > > > > > > > But the same request fails when I change the DATA to a joined table > > > > (e.g. DATA "the_geom from (select sample.sample_key as id, > > sample.the_geom, species.name as name from sample inner join species > > on species.sample_key = sample.sample_key where species.name= 'Mytilus > > edulis' ) as foo USING UNIQUE id using srid=4326") > > > > > > > > Both data layers display data on the map OK ? its just the > > GetFeatureInfo that fails on the joined PostGIS layer with the > > following error: > > > > > > > > GetFeatureInfo results: > > > > Layer 'SurveyPoints' > > Content-type: application/vnd.ogc.se_xml > > > > > > > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > > > > > > > > > > > If no data is returned then it works OK (GetFeatureInfo results: > > Search returned no results.) > > ? so it must be something to do with how either I / > > mapserver is failing to interpret / match the joined fields from the > > data statement ? but I just can't see it > > > > I've also tried using a view in PostGreSQL: > > SELECT foo.id, foo.sample_key, foo.the_geom, foo.name > > FROM ( SELECT species.taxon_key AS id, sample.sample_key, > > sample.the_geom, species.name > > FROM sample > > JOIN species ON species.sample_key::text = sample.sample_key::text > > WHERE species.name::text = 'Mytilus edulis'::text) foo; > > > > And - DATA "the_geom from mytilus USING UNIQUE id using srid=4326" > > or DATA "the_geom from mytilus" > > > > Both these display the data on a map OK ? but produce the same error > > with GetFeatureInfo > > > > Anyone any ideas ? > > > > > > Many Thanks > > > > James > > > > > > > > LAYER > > > > NAME "SurveyPoints" > > > > CONNECTION "user=gisdb password=gisdb dbname=gisdb > > host=127.0.0.1 port=5432" > > > > CONNECTIONTYPE postgis > > > > DATA "the_geom from sample" > > > > #DATA "the_geom from mytilus USING UNIQUE id using srid=4326" > > > > #DATA "the_geom from (select sample.sample_key as id, > > sample.the_geom, species.name as name from sample inner join species > > on species.sample_key = sample.sample_key where species.name= > > '%speciesname%' ) as foo USING UNIQUE id using srid=4326" > > > > #DATA "the_geom from (select species.taxon_key as id, > > sample.sample_key, sample.the_geom, species.name as name from sample > > inner join species on species.sample_key = sample.sample_key where > > species.name= 'Mytilus edulis' ) as foo USING UNIQUE id using > > srid=4326" > > > > > > > > > > > > #for WMS attributes > > > > TEMPLATE "marinetemplate.htm" > > > > DUMP true > > > > METADATA > > > > "wms_title" "SurveyPoints" > > > > "wms_srs" "EPSG:27700 EPSG:4326 EPSG:54004" > > > > "gml_include_items" "all" > > > > END > > > > TYPE POINT > > > > PROJECTION > > > > "init=epsg:4326" > > > > END > > > > STATUS ON > > > > LABELITEM "id" > > > > LABELMAXSCALE 50000 > > > > LABELMINSCALE 0 > > > > LABELCACHE ON > > > > CLASS > > > > LABEL > > > > ANTIALIAS TRUE > > > > SIZE small > > > > POSITION AUTO > > > > OFFSET 1 1 > > > > BUFFER 1 > > > > COLOR 255 0 0 > > > > OUTLINECOLOR 255 255 255 > > > > END > > > > SYMBOL 'circle' > > > > SIZE 4 > > > > OUTLINECOLOR 255 0 0 > > > > END # end of class object > > > > TOLERANCE 100 > > > > END # end of layer object > > > > mapserv481 > > > > Windows XP / IIS > > > > PostGIS / PostGres 8.1 > > > > > > > > http://127.0.0.1/scripts/mapserv481.exe?map=C:/Inetpub/wwwroot/WMSServices/marine.map&SERVICE=WMS&SRS=EPSG:4326&VERSION=1.1.1&REQUEST=GetFeatureInfo&X=145&Y=84&QUERY_LAYERS=SurveyPoints&LAYERS=SurveyPoints&BBOX=-5.480804443359375,51.163844261348245,-4.519500732421875,51.76274043738508&WIDTH=700&HEIGHT=700 > > > > > > > > The above feature Info request works on a PostGIS single data layer > > (full layer definition appended at end for info) > > > > (e.g. DATA "the_geom from sample") > > > > > > > > But the same request fails when I change the DATA to a joined table > > > > (e.g. DATA "the_geom from (select sample.sample_key as id, > > sample.the_geom, species.name as name from sample inner join species > > on species.sample_key = sample.sample_key where species.name= 'Mytilus > > edulis' ) as foo USING UNIQUE id using srid=4326") > > > > > > > > Both data layers display data on the map OK ? its just the > > GetFeatureInfo that fails on the joined PostGIS layer with the > > following error: > > > > > > > > GetFeatureInfo results: > > > > Layer 'SurveyPoints' > > Content-type: application/vnd.ogc.se_xml > > > > > > > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > > > > > > > > > > > If no data is returned then it works OK (GetFeatureInfo results: > > Search returned no results.) > > ? so it must be something to do with how either I / > > mapserver is failing to interpret / match the joined fields from the > > data statement ? but I just can't see it > > > > I've also tried using a view in PostGreSQL: > > SELECT foo.id, foo.sample_key, foo.the_geom, foo.name > > FROM ( SELECT species.taxon_key AS id, sample.sample_key, > > sample.the_geom, species.name > > FROM sample > > JOIN species ON species.sample_key::text = sample.sample_key::text > > WHERE species.name::text = 'Mytilus edulis'::text) foo; > > > > And - DATA "the_geom from mytilus USING UNIQUE id using srid=4326" > > or DATA "the_geom from mytilus" > > > > Both these display the data on a map OK ? but produce the same error > > with GetFeatureInfo > > > > Anyone any ideas ? > > > > > > Many Thanks > > > > James > > > > > > > > > > > > > > > > > > > > > > > > LAYER > > > > NAME "SurveyPoints" > > > > CONNECTION "user=gisdb password=gisdb dbname=gisdb > > host=127.0.0.1 port=5432" > > > > CONNECTIONTYPE postgis > > > > DATA "the_geom from sample" > > > > #DATA "the_geom from mytilus USING UNIQUE id using srid=4326" > > > > #DATA "the_geom from (select sample.sample_key as id, > > sample.the_geom, species.name as name from sample inner join species > > on species.sample_key = sample.sample_key where species.name= > > '%speciesname%' ) as foo USING UNIQUE id using srid=4326" > > > > #DATA "the_geom from (select species.taxon_key as id, > > sample.sample_key, sample.the_geom, species.name as name from sample > > inner join species on species.sample_key = sample.sample_key where > > species.name= 'Mytilus edulis' ) as foo USING UNIQUE id using > > srid=4326" > > > > > > > > > > > > #for WMS attributes > > > > TEMPLATE "marinetemplate.htm" > > > > DUMP true > > > > METADATA > > > > "wms_title" "SurveyPoints" > > > > "wms_srs" "EPSG:27700 EPSG:4326 EPSG:54004" > > > > "gml_include_items" "all" > > > > END > > > > TYPE POINT > > > > PROJECTION > > > > "init=epsg:4326" > > > > END > > > > STATUS ON > > > > LABELITEM "id" > > > > LABELMAXSCALE 50000 > > > > LABELMINSCALE 0 > > > > LABELCACHE ON > > > > CLASS > > > > LABEL > > > > ANTIALIAS TRUE > > > > SIZE small > > > > POSITION AUTO > > > > OFFSET 1 1 > > > > BUFFER 1 > > > > COLOR 255 0 0 > > > > OUTLINECOLOR 255 255 255 > > > > END > > > > SYMBOL 'circle' > > > > SIZE 4 > > > > OUTLINECOLOR 255 0 0 > > > > END # end of class object > > > > TOLERANCE 100 > > > > END # end of layer object > > > > > -- > ----------------------------------------------------------- > Michael Schulz > mschulz at webgis.de > > in medias res > Gesellschaft f?r Informationstechnologie mbH > > In den Weihermatten 66 > 79108 Freiburg > > Tel +49 (0)761 556959-5 > Fax +49 (0)761 556959-6 > > http://www.webgis.de / http://www.zopecms.de > ----------------------------------------------------------- > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From erics at AMERI-TITLE.COM Thu Nov 2 12:15:14 2006 From: erics at AMERI-TITLE.COM (Eric Shuman) Date: Thu, 2 Nov 2006 12:15:14 -0800 Subject: INCLUDE not working Message-ID: I am trying to update a functioning map file to use the INCLUDE directive for all of my layer definitions. I have used one of my LAYER directives as a new map file and inserted an INCLUDE in my current map file. INCLUDE "/full-path-to-file/newfile.map" I get this error Warning: [MapServer Error]: msLoadMap(): Parsing error near (INCLUDE):(line 133) in .... I have upgraded my mapserver version to 4.10.0. See below for my full version info. The Layer directive and the map file work without the INCLUDE. What am I missing?? ~Eric MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE * FGS API version : 0.2 * NAME VERSION * apache-base 1.3.34 * curl-lib 7.15.0 * expat-base 1.95.8 * freetype-lib 2.1.9 * gdal-base 1.3.2 * gd-lib 2.0.33 * geos-lib 2.1.3 * jpeg-lib 6b * libgeotiff-lib 1.2.2 * libiconv-base 1.9.1 * libpng-lib 1.2.8 * libungif-base 4.1.3 * mapserver-base 4.10.0 * mapserver-php 4.6.2 * netcdf-lib 3.5.1 * openssl-lib 0.9.8b * pdflib_lite-base 5.0.4p1 * php-base 4.3.11 * php_pdf-module 4.3.11 * php_pgsql-module 4.3.11 * postgis-lib 1.0.4 * postgresql-lib 8.0.7 * postgresql-server 8.0.4 * proj4_epsg42xxx-support 1.0.0 * proj-lib 4.4.8 * tiff-lib 3.7.2 * unixODBC-base 2.2.10 * xerces_c-base 2_6_0 From szekerest at GMAIL.COM Thu Nov 2 12:52:31 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 2 Nov 2006 21:52:31 +0100 Subject: mapserv stdout png problem In-Reply-To: <4549DF03.1050008@univie.ac.at> Message-ID: Hubert, I've forgot that the TEMPLATEPATTERN should also be set in the mapfile like: MAP ... TEMPLATEPATTERN "" .. END I've also attached my template.html should be placed along with the mapfile. If you would rather set the templatepattern with the query string like ..&map_templatepattern=&.. we could modify msLoadMapString accordingly. Best Regards, Tamas Szekeres 2006/11/2, Hubert Asamer : > Tamas, > I've tried the following command: > C:\Programme\FWTools1.0.6>mapserv > "QUERY_STRING=mode=browse&map=C:\ms4w\apps\maplab-2.2.1\tutorial\mymap2.map& id=_&map_web_imagepath=images&map_web_template=template.html" > > But the result was a error message like this: mapserv(): Web application > error. No template provided.
> I think my template is not correct, or my query string is wrong > (path....). Can you give me a more detailed description of how invoking > the template (or please send your template) ? > Thank you for your support, > Hubert > > Tamas Szekeres wrote: > > Hi, > > > > AFAIK the only solution to workaround this issue is to create a > > template and create the map image using this template. For example > > create a template 'template.html' with > > the following contents: > > > > [img] > > > > Then invoke mapserv with the query string against this template as for > > example: > > > > mapserv > > "QUERY_STRING=mode=browse&map=MyMap.map&id=_&map_web_imagepath=samples\&map_ web_template=template.html&map_reference_status=off&map_scalebar_status=embe d&map_legend_status=embed&mapsize=1000+1000" > > > > > > Using the browse mode is required. The 'id' parameter will be appended > > to your image name. The output image will be created relative to your > > mapfile in the directory given to the 'map_web_imagepath' parameter. > > > > Best Regards, > > > > Tamas Szekeres > > > > > > > > > > 2006/10/30, Hubert Asamer : > >> > >> > >> > >> > >> ---------- Tov?b?tott lev?l ---------- > >> From: Frank Warmerdam > >> To: Hubert Asamer > >> Date: Thu, 26 Oct 2006 15:55:24 -0400 > >> Subject: Re: mapserv stdout png problem > >> Hubert Asamer wrote: > >> > Frank, > >> > one more question regarding the FW_Tools mapserv.exe: > >> > When i make a query like this: mapserv > >> "Query_string=map=.....&mode=map" > >> > > out.png > >> > i get a png with following header: Content-type: image/png > >> > > >> > Then i must remove the first two lines of the png file and i can > >> view my > >> > result-everthing ok! > >> > Do you know how to configure my query to avoid these two header lines? > >> > >> Hubert, > >> > >> There was some talk recently about adding a commandline switch to > >> mapserv > >> to supress this, but looking in the code it looks like nothing was done. > >> > >> So, no, there is nothing that can be done. > >> > >> My msautotest test suite has special python code to strip off these mime > >> types, and the WxS mapscript wrappers include a mechanism to strip off > >> the mime type. But I can't think of anything you can do when > >> invoking mapserv > >> at the commandline. > >> > >> 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 | President OSGeo, > >> http://osgeo.org > >> > >> > >> __________ NOD32 1.1831 (20061024) Information __________ > >> > >> Diese E-Mail wurde vom NOD32 antivirus system gepr?ft > >> http://www.nod32.com > >> > >> > >> > >> > >> > >> > > > -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.23/513 - Release Date: 2006.11.02. From Steve.Lime at DNR.STATE.MN.US Thu Nov 2 13:36:05 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 2 Nov 2006 15:36:05 -0600 Subject: SIZEITEM howto ? In-Reply-To: <002701c6fe9b$dbfec250$8001a8c0@PC128> Message-ID: This could be a bug specific to annotation layers. If you turn your layer type to POINT does it work? Steve >>> St?phane COLZY 11/2/2006 10:27:56 AM >>> Nope ;) Already tried this*(I think that for shapefiles you have to use uppercase but for postgis it doesn?t seem to matter) _____ De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fawcett, David Envoy? : jeudi 2 novembre 2006 17:00 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ? You may want to try 'ONU_ID', I notice that for the label text you use uppercase for the field name. I am not sure if case sensitivity is an issue in this case with PostGIS. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of St?phane COLZY Sent: Thursday, November 02, 2006 9:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Ok, but the problem is that when I do this nothing happens (the map doesn?t change) So I thought may be I?m missing something* Here?s the layer definition : onu_id is an int4 ranging from 1 to 900 LAYER CONNECTION "user=scy password=scy dbname=vmap host=localhost port=5432" CONNECTIONTYPE POSTGIS DATA "the_geom from join_onu_wc USING UNIQUE ogc_fid using srid=4326" MAXSCALE 500 METADATA END NAME "Cities" PROJECTION "init=EPSG:4326" END SIZEUNITS PIXELS STATUS ON TOLERANCEUNITS PIXELS TYPE ANNOTATION UNITS METERS CLASS NAME "DEFAULT" LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT "verdana" MAXSIZE 256 MINSIZE 4 SIZE 8 TYPE TRUETYPE BUFFER 0 COLOR 104 104 104 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE 35 OFFSET 0 0 PARTIALS TRUE POSITION AUTO END METADATA END STYLE ANGLE 360 COLOR 255 30 0 SIZEITEM onu_id SYMBOL 7 END TEXT ([ONU_CITY_NAME]) END END _____ De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fawcett, David Envoy? : jeudi 2 novembre 2006 15:26 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Stephane, To use this, you would add a column to your shapefile or dataset that contained an integer value for how large you would like the symbol for that feature to be drawn. This allows you to set different symbol sizes for each feature as opposed to setting up separate classes with distinctive styles in the layer in the map file. http://mapserver.gis.umn.edu/docs/reference/mapfile/style David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of St?phane COLZY Sent: Thursday, November 02, 2006 8:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Hi, Could someone give us a brief description on how to use the STYLE / SIZEITEM property on points data ? Like: what are the other related properties, what kind of attributes/fields are supported ? It would be very helpful* stephane From Steve.Lime at DNR.STATE.MN.US Thu Nov 2 13:34:30 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 2 Nov 2006 15:34:30 -0600 Subject: CGI or Mapscript In-Reply-To: Message-ID: He's refering to the Mapserv object. It may have been called something different earlier in its life. Yes, the extent can change and there are two reasons: 1) the user has explicitly triggered something that computes a new scale (e.g. a zoom, pan or box zoom) 2) that computed extent must be adjusted to the map size (imagine dragging a tall, thin zoom box) Depending on where you put alerts in mapserv.js you may see changes before or after these cases. I've not implemented accessor functions everywhere so you need to access the object members directly. For example, the extent member contains the extent of the currently displayed map. When you say your zoombox doesn't work. Is that a dBox zoombox or your own code? If I remember back to the days when I started dBox an error like that has to do with the order of coordinates handed to whatever is drawing the rectangle. Perhaps it is expecting minx. miny, maxx, maxy and your sending the reverse? Just a thought. Steve >>> John Smith 10/31/2006 4:22:23 PM >>> map object?? i've popped up using alert(this.extent) but depending on where you insert that alert() in mapserv.js its value changes! i've looked through http://maps.dnr.state.mn.us/tools/dbox/docs/jsdocs/ but can't get the values contained in the map object. is there a dbox guru lurking on this list ;)? i've also tried making my own zoombox but can't get the zoombox to follow the cursor if the cursor is dragged from right-bottom to left-top in the negative direction. any help with that? i admit this is not strictly a mapserver question but then again there's no dbox list. jzs On 10/18/06, Richard Greenwood wrote: > On 10/18/06, John Smith wrote: > > thks. yeah dbox is cool but i got another question- i'm trying to output > > [imgext] and other cgi variables from dbox. how do i grab them? i'd > really > > want to use the backward and forward browser buttons. i think navigation > is > > way cooler that way. > > When you reload a whole page, you can get mapserver (on the server) to > provide values for variables in [...] but with dBox you are usually > not reloading the whole page from the server, you are usually only > requesting a new map image. So the new extent needs to be calculated > on the client (the browser). Thanks to mapserv.js, this is no harder > than requesting the new values from the server, and a lot more > elegant. The extent, scale, size, etc. are contained in the map > object, and are updated each time you make a new map request. > > But by not relaoding the whole page, the browser's back and forward > buttons don't do what you would expect, and you can not book mark the > URL. There are a couple thing you might try: you could maintain a > "history" stack and add your own back & forward buttons to your user > interface (ArcIMS, MapBuilder, and many others do this), or you could > try pushing the current map parameters into the browser's history. > Don't know what problems you'd encounter, but that always seemed more > elegant to me. I just haven't gotten around to trying to implemet it. > > Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com From joe at OTSYS.COM Thu Nov 2 13:47:10 2006 From: joe at OTSYS.COM (Joe Bussell) Date: Thu, 2 Nov 2006 13:47:10 -0800 Subject: idea In-Reply-To: <20061102091435.b22b5ede89d48a4249261b5ab56693f4.75d59d01ad.wbe@email.secureserver.net> Message-ID: Old idea, with lots of history. Troll the history of this group for an interesting tour of various opinions on this matter. Joe Bussell siva wrote: > hello > i think in future mapserver map file be xml file > > sincerely > sshekar > > From ravikapoor101 at GMAIL.COM Thu Nov 2 17:09:39 2006 From: ravikapoor101 at GMAIL.COM (Ravi) Date: Thu, 2 Nov 2006 17:09:39 -0800 Subject: where to find county/block group shape files clipped to shoreline? Message-ID: Hi everybody, I need US county and block group shape files that have been clipped to shoreline and other water bodies. Anybody knows where can I find this data? Thanks Ravi From stefan.schwarzer at GRID.UNEP.CH Thu Nov 2 23:15:51 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Fri, 3 Nov 2006 08:15:51 +0100 Subject: DrawQuery results in grey-colored map Message-ID: Hi there, must have changed something over the last couple of weeks that mapserver didn't liked... When querying a country on my worldmap the country normally is highlighted in yellow and all other countries appear in the given classification color. But now all countries are colored in different grey tones, but still representing correctly the classes. It seems almost as if the PNG had been transformed into grayscale; but as the ocean still appears in blue, it's not the case. Has anybody an idea what could cause that problem? Thanks for any hints, Stefan PS: I am working with PostGres 8.1.0 & PostGIS, PHP Version 4.4.2, MapServer version 4.8.3 -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.colzy at MAGELLIUM.FR Fri Nov 3 00:42:39 2006 From: stephane.colzy at MAGELLIUM.FR (=?iso-8859-1?Q?St=E9phane_COLZY?=) Date: Fri, 3 Nov 2006 09:42:39 +0100 Subject: SIZEITEM howto ? In-Reply-To: <454A10650200008F00003A88@co5.dnr.state.mn.us> Message-ID: That's it !! Thank you, I didn't notice it was an annotation layer (I got it from another mapfile...) -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Steve Lime Envoy??: jeudi 2 novembre 2006 22:36 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ? This could be a bug specific to annotation layers. If you turn your layer type to POINT does it work? Steve >>> St?phane COLZY 11/2/2006 10:27:56 AM >>> Nope ;) Already tried this*(I think that for shapefiles you have to use uppercase but for postgis it doesn?t seem to matter) _____ De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fawcett, David Envoy? : jeudi 2 novembre 2006 17:00 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ? You may want to try 'ONU_ID', I notice that for the label text you use uppercase for the field name. I am not sure if case sensitivity is an issue in this case with PostGIS. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of St?phane COLZY Sent: Thursday, November 02, 2006 9:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Ok, but the problem is that when I do this nothing happens (the map doesn?t change) So I thought may be I?m missing something* Here?s the layer definition : onu_id is an int4 ranging from 1 to 900 LAYER CONNECTION "user=scy password=scy dbname=vmap host=localhost port=5432" CONNECTIONTYPE POSTGIS DATA "the_geom from join_onu_wc USING UNIQUE ogc_fid using srid=4326" MAXSCALE 500 METADATA END NAME "Cities" PROJECTION "init=EPSG:4326" END SIZEUNITS PIXELS STATUS ON TOLERANCEUNITS PIXELS TYPE ANNOTATION UNITS METERS CLASS NAME "DEFAULT" LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT "verdana" MAXSIZE 256 MINSIZE 4 SIZE 8 TYPE TRUETYPE BUFFER 0 COLOR 104 104 104 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE 35 OFFSET 0 0 PARTIALS TRUE POSITION AUTO END METADATA END STYLE ANGLE 360 COLOR 255 30 0 SIZEITEM onu_id SYMBOL 7 END TEXT ([ONU_CITY_NAME]) END END _____ De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fawcett, David Envoy? : jeudi 2 novembre 2006 15:26 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Stephane, To use this, you would add a column to your shapefile or dataset that contained an integer value for how large you would like the symbol for that feature to be drawn. This allows you to set different symbol sizes for each feature as opposed to setting up separate classes with distinctive styles in the layer in the map file. http://mapserver.gis.umn.edu/docs/reference/mapfile/style David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of St?phane COLZY Sent: Thursday, November 02, 2006 8:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Hi, Could someone give us a brief description on how to use the STYLE / SIZEITEM property on points data ? Like: what are the other related properties, what kind of attributes/fields are supported ? It would be very helpful* stephane From nataprivate at HOTMAIL.COM Fri Nov 3 02:13:12 2006 From: nataprivate at HOTMAIL.COM (=?iso-8859-1?B?TnVyaWEgR29ueuFsZXo=?=) Date: Fri, 3 Nov 2006 11:13:12 +0100 Subject: space of characters in labels Message-ID: Hi, I want to display labels with a space between the characters. For example, the label "RIVER" I would like to display as "R I V E R". How can I do this? TIA. _________________________________________________________________ Hor?scopo, tarot, numerolog?a... Escucha lo que te dicen los astros. http://astrocentro.msn.es/ From williampaul28 at YAHOO.COM Fri Nov 3 04:29:41 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Fri, 3 Nov 2006 04:29:41 -0800 Subject: how to use pictures as labels In-Reply-To: <454A17550200008F00003A9A@co5.dnr.state.mn.us> Message-ID: Hi, yes I will try to illustrate: I have attached 2 pictures: image1 and image2 Image1 shows a point and around the point are 4 labels as text. I want to replace the labels as text with images (png files) Thank you William Steve Lime wrote: Maybe, can you post a picture of what you're after? >>> william paul 11/1/2006 1:12:57 AM >>> Hi Is it possible to use images to represent labels? I have a point. Arround the point I need to represent some labels. I can do this by setting-up the ANGLE in LABELS in MAP file. My question is if I can replace the text from the labels with some images. Example: in the central-upper part should be a image with an compass instead of writing North and on the central-right side should be an image with the sun instead of writing Sunrise Is it possible? Thank you in advance William --------------------------------- Everyone is raving about the all-new Yahoo! Mail. --------------------------------- Want to start your own business? Learn how on Yahoo! Small Business. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image1.jpg Type: image/pjpeg Size: 2191 bytes Desc: 383602333-image1.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image2.jpg Type: image/pjpeg Size: 1916 bytes Desc: 3877366307-image2.jpg URL: From kristjan at TARKVARASTUUDIO.EE Fri Nov 3 05:05:05 2006 From: kristjan at TARKVARASTUUDIO.EE (kristjan) Date: Fri, 3 Nov 2006 15:05:05 +0200 Subject: status embed scalebar not working Message-ID: Hello, after upgrading to Mapserver4.8.4 my status=embed scalebars stopped working. Searching the documentation about this problem I found that there is written: --------- Please note that embedding scalebars require that you define a markerset. In essence the scalebar becomes a custom marker that is handled just like any other annotation.) --------- what kind of markerset is it (I couldn't find any more references to it)? Does anybody have an example of the mapfile and markerset file where embed scalebar is working? Scalebar definition from my map-file SCALEBAR STATUS embed INTERVALS 3 SIZE 150 3 COLOR 0 0 0 position lr TRANSPARENT OFF OUTLINECOLOR 0 0 0 UNITS kilometers STYLE 1 LABEL COLOR 0 0 0 SIZE tiny END END thanks Kristjan From williampaul28 at YAHOO.COM Fri Nov 3 06:22:02 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Fri, 3 Nov 2006 06:22:02 -0800 Subject: python mapscript with IIS Message-ID: Hi again to everybody: I am trying to use the example provided with dBox, and to combine mapscript python with dbox on IIS. I have installed dBox and seems to work, but I have problems with mapscript python. These are steps which I did so far: I have downloaded a installed on windows xp sp 2 with IIS, mapserver 4.10. I used the the binaries from MS4W, latest stable version from www.maptools.org I have downloaded and installed Python 2.4.3 I have copied mapscript.py, mapscript.pyd and _mapscript.pyd into Python24/Lib/site-packages I have copied make_dlegend_xml.py. make_dlegend_xml_cgi.py, make_dlegend_xml.pyc into c:/inetput/scripts/ I have modified the example.html to point the correct path In javascript console I get the error: Error: objDomTree.getElements("server")[0] has no properties Yet another dlegend initialization error. Implies that dlegend.js has received some data, but not in the expected form When I test the mapscript python installation I get the error: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Traceback (most recent call last): File "c:\inetpub\wwwroot\mapscript_test.py", line 2, in ? import mapscript File "C:\Inetpub\wwwroot\mapscript.py", line 8, in ? map = mapscript.mapObj(map_path+map_file) AttributeError: 'module' object has no attribute 'mapObj' I have attached the file for testing mapscript installation Does someone already use mapscript python with IIS? or someone successfully installed dBox example on IIS? Unfortunately I need to use IIS and not Apache, so I can't change IIS with Apache Any help would be appreciated William --------------------------------- Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: mapscript.py URL: From miklos.geyer at ELKB.DE Fri Nov 3 05:56:49 2006 From: miklos.geyer at ELKB.DE (Miklos Geyer) Date: Fri, 3 Nov 2006 14:56:49 +0100 Subject: Legend in SVG Message-ID: Im using Mapserver to create SVG-Maps in an GIS-Application. The only problem is, that the legend is not displayed. Is it possible to get the Legends as svg? Has anyone a good example, tutorial, etc.? thanx for any help or hints miklos From cozzolongo at PLANETEK.IT Fri Nov 3 06:03:55 2006 From: cozzolongo at PLANETEK.IT (Salvatore Cozzolongo) Date: Fri, 3 Nov 2006 15:03:55 +0100 Subject: Mapserver in a cluster Message-ID: I would put mapserver cgi in a cluster (HA or HPC). The web server should get up the cgi in this environment. According to you, is it possible? what type of cluster do you try to use? Best Regards to all -- Salvatore Cozzolongo From hubert.asamer at UNIVIE.AC.AT Fri Nov 3 07:06:46 2006 From: hubert.asamer at UNIVIE.AC.AT (Hubert Asamer) Date: Fri, 3 Nov 2006 16:06:46 +0100 Subject: [Fwd: Re: [UMN_MAPSERVER-USERS] [Fwd: Re: mapserv stdout png problem]] Message-ID: Wow-now it works! Thanks a lot -------------- next part -------------- An embedded message was scrubbed... From: "Tamas Szekeres" Subject: Re: [UMN_MAPSERVER-USERS] [Fwd: Re: mapserv stdout png problem] Date: Mon, 30 Oct 2006 23:48:49 +0100 Size: 4437 URL: From jdege at KORTERRA.COM Fri Nov 3 07:49:44 2006 From: jdege at KORTERRA.COM (Jeff Dege) Date: Fri, 3 Nov 2006 09:49:44 -0600 Subject: Bentley Redline Message-ID: Has anyone configured Mapserver to access Bentley Redline maps? Is it possible? Any hints? From jayzee.smith at GMAIL.COM Fri Nov 3 08:37:39 2006 From: jayzee.smith at GMAIL.COM (John Smith) Date: Fri, 3 Nov 2006 11:37:39 -0500 Subject: CGI or Mapscript In-Reply-To: <454A10060200008F00003A83@co5.dnr.state.mn.us> Message-ID: so mapserv()'s an object with cgi variables stored in array as properties? well i insert the alert after line 50 and then it pops up 3 different values on a simple reload. me thinks it might be easier if i can just get dbox to spit out the variable values as get. about my zoombox, it's a dhtml problem- the damn zoombox won't draw from right-bottom to left-top >:( jzs On 11/2/06, Steve Lime wrote: > > He's refering to the Mapserv object. It may have been called something > different earlier > in its life. > > Yes, the extent can change and there are two reasons: > > 1) the user has explicitly triggered something that computes a new > scale (e.g. a zoom, pan or > box zoom) > > 2) that computed extent must be adjusted to the map size (imagine > dragging a tall, thin zoom > box) > > Depending on where you put alerts in mapserv.js you may see changes > before or after these > cases. I've not implemented accessor functions everywhere so you need > to access the object > members directly. For example, the extent member contains the extent of > the currently > displayed map. > > When you say your zoombox doesn't work. Is that a dBox zoombox or your > own code? If I > remember back to the days when I started dBox an error like that has to > do with the order > of coordinates handed to whatever is drawing the rectangle. Perhaps it > is expecting > minx. miny, maxx, maxy and your sending the reverse? Just a thought. > > Steve > > >>> John Smith 10/31/2006 4:22:23 PM >>> > map object?? > > i've popped up using alert(this.extent) but depending on where you > insert > that alert() in mapserv.js its value changes! i've looked through > http://maps.dnr.state.mn.us/tools/dbox/docs/jsdocs/ but can't get the > values > contained in the map object. is there a dbox guru lurking on this list > ;)? > > i've also tried making my own zoombox but can't get the zoombox to > follow > the cursor if the cursor is dragged from right-bottom to left-top in > the > negative direction. any help with that? > i admit this is not strictly a mapserver question but then again > there's no > dbox list. > jzs > On 10/18/06, Richard Greenwood wrote: > > > On 10/18/06, John Smith wrote: > > > thks. yeah dbox is cool but i got another question- i'm trying to > output > > > [imgext] and other cgi variables from dbox. how do i grab them? > i'd > > really > > > want to use the backward and forward browser buttons. i think > navigation > > is > > > way cooler that way. > > > > When you reload a whole page, you can get mapserver (on the server) > to > > provide values for variables in [...] but with dBox you are usually > > not reloading the whole page from the server, you are usually only > > requesting a new map image. So the new extent needs to be calculated > > on the client (the browser). Thanks to mapserv.js, this is no > harder > > than requesting the new values from the server, and a lot more > > elegant. The extent, scale, size, etc. are contained in the map > > object, and are updated each time you make a new map request. > > > > But by not relaoding the whole page, the browser's back and forward > > buttons don't do what you would expect, and you can not book mark > the > > URL. There are a couple thing you might try: you could maintain a > > "history" stack and add your own back & forward buttons to your user > > interface (ArcIMS, MapBuilder, and many others do this), or you > could > > try pushing the current map parameters into the browser's history. > > Don't know what problems you'd encounter, but that always seemed > more > > elegant to me. I just haven't gotten around to trying to implemet > it. > > > > Rich > > > > -- > > Richard Greenwood > > richard.greenwood at gmail.com > > www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbw2003 at EARTHLINK.NET Fri Nov 3 09:30:44 2006 From: jbw2003 at EARTHLINK.NET (Jim White) Date: Fri, 3 Nov 2006 12:30:44 -0500 Subject: Problems using querymap with php/mapscript Message-ID: I want to use a querymap to add transparent hatch symbols to a true color WMS layer. I have been able to create transparent hatch symbols in 256 color mode that work as a regular map and also as a querymap. When I change the outputformat to RGBA, then the regular output correctly display transparent hatch symbols, but the hatch pattern produced by the querymap is not transparent. Here is an example code amd mapfile: $this_layer = $map->getLayerByName('gapman'); $this_layer->set('status', MS_OFF); if (isset($key_gapman)) $this_layer->set('status', MS_ON); $layer_index = $this_layer->index; for($i=0; $iqueryByIndex($layer_index,1,$key_gapman[$i], MS_TRUE); } LAYER CONNECTIONTYPE postgis NAME "gapman" CONNECTION "user=postgres dbname=mydb host=localhost" DATA "wkb_geometry FROM steward_gap_man" STATUS OFF TYPE POLYGON TRANSPARENCY alpha CLASS STYLE SYMBOL 'hatch-lines' COLOR 255 0 0 ANGLE 60 SIZE 10 END STYLE WIDTH 2 OUTLINECOLOR 255 0 0 END TEMPLATE "dummy.html" END END I have a second problem related to displaying the WMS layer map. When I output the standard map the WMS layer displays correctly. However, when I display the querymap the WMS layer is not correct. When it is first displayed it does not align with the other layers, and when I zoom it gets worse. Here is my code: //creating main map $mapname = "map".rand(0,9999999).".png"; $mspath = "/var/www/html/temp/"; $maploc = "{$mspath}{$mapname}"; $map->setSize($win_w, $win_h); $map->zoompoint($zoom, $click_point, $win_w, $win_h, $old_extent); //creating querymap //$map->querymap->set('width', $win_w); //$map->querymap->set('height', $win_h); $queryimage = $map->drawQuery(); $queryimage->saveImage($maploc); //display main map, not used if querymap displayed //$mapimage = $map->draw(); //$mapimage->saveImage($maploc); -- Jim White Biological and Spatial Information Center North Carolina State University http://www.basic.ncsu.edu/ From piero.cavalieri at HEIDI.IT Fri Nov 3 09:28:57 2006 From: piero.cavalieri at HEIDI.IT (piero cavalieri) Date: Fri, 3 Nov 2006 18:28:57 +0100 Subject: no output for web template with 4.10 cgi Message-ID: Hi all, I use cgi 4.10 (tried both from DMSolutions and TWtools) and do a request like this: http://localhost/Scripts/mapserv.exe?map=D:/Web/Site/HGis/trentino.map&layer=DTM&layer=ECW&mode=browse My web template file is an xml file: With 4.6 cgi this worked fine. Then I had to format/reinstall my WindowsXp and tried 4.10, but with the same web application I have the following cgi output: msDrawMap(): Layer 5 (laghi), 0.079s msDrawMap(): Layer 11 (i_dep_p), 0.078s instead of the xml file from web template. In temp dir I have all the images created for the request (map, scalebar ecc.), so cgi installation seems to be ok. I don't try using the old 4.6 (because I don't have it any more). Anyone could give an advice please ? Thanks Piero From percyd at PDX.EDU Fri Nov 3 10:21:07 2006 From: percyd at PDX.EDU (percy) Date: Fri, 3 Nov 2006 10:21:07 -0800 Subject: Mapserver in a cluster In-Reply-To: Message-ID: we are interested in this as well. we have a beowulf cluster, and would like to explore load-balancing in anticipation of increased demand for our geospatial data. I wonder what Ed over at Topozone does :-) Salvatore Cozzolongo wrote: > I would put mapserver cgi in a cluster (HA or HPC). The web server should get up the cgi in this environment. According to you, is it possible? what type of cluster > do you try to use? > Best Regards to all > -- > Salvatore Cozzolongo > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From sberg at MISSISSIPPI.COM Fri Nov 3 10:30:26 2006 From: sberg at MISSISSIPPI.COM (Steve Berg) Date: Fri, 3 Nov 2006 12:30:26 -0600 Subject: Installing older version Message-ID: Can somebody point me to install instructions for outdated versions of mapserver? I'm trying to install what I beleive is version 3.3.something and the INSTALL document just points to the umn.edu website. Where I find that this version isn't even available these days. Where in the source files can I confirm exactly which version this is? The original downloaded file is long gone. Beleive me I'd love to just install the current version but that's not an option at this time. I'm installing on a RHEL ES 3 system. An alternative would be to copy over any necessary files from a RH 7 system to a RHEL ES 3 system if that's possible but I would need to find out what files would be needed and any configuration changes required. -- * Stephen Berg * * sberg at mississippi.com * * http://iceberg.3c0x1.com * * Sinners can repent, * * But stupid is forever. * From woodbri at SWOODBRIDGE.COM Fri Nov 3 11:13:08 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 3 Nov 2006 14:13:08 -0500 Subject: Mapserver in a cluster In-Reply-To: <454B8893.8050906@pdx.edu> Message-ID: percy wrote: > we are interested in this as well. we have a beowulf cluster, and would > like to explore load-balancing in anticipation of increased demand for > our geospatial data. > > I wonder what Ed over at Topozone does :-) > > Salvatore Cozzolongo wrote: >> I would put mapserver cgi in a cluster (HA or HPC). The web server >> should get up the cgi in this environment. According to you, is it >> possible? what type of cluster >> do you try to use? Best Regards to all >> -- >> Salvatore Cozzolongo >> > I can speak to how this was originally set up. I believe Ed has made some changes. There are approximately 10 servers with the USGS DOQQ data organized into one degree blocks and spread across the servers in a somewhat random order. When a map request comes it it is directed to the system that owns the one degree block at the center of the map. All systems are cross mounted using a Samba file system because of its ability to recover from connection failures, which NFS can not do, so every system looks like it has the full compliment of DOQQS. I'll let Ed jump in to say more if he wants. At Where2getit, we have a cluster with 8-9 servers behind a linux load balancer. The load balancer monitors the client systems and their load and dispatches requests to them respectively. These systems are all severing vector data, and each is full compliment of data and software. In fact each is a mirror of the master for that cluster. We can pull any server from the load for maintenance and the remainder will handle the load. If a server has a hardware failure the load balancer will remove it from the load and sysadmins are paged. If we need more capacity, we can load the basic OS on a box, mirror it from the master and add it to the load. -Steve From samnyoung at HOTMAIL.COM Fri Nov 3 11:19:13 2006 From: samnyoung at HOTMAIL.COM (Sam Young) Date: Fri, 3 Nov 2006 10:19:13 -0900 Subject: Transparent Layer Question? Message-ID: As a background for my application I would like to overlay a colored shape file on top of a black and white hillshade .tif. Is it possible, in the map file, to set the colored shape file to have some transparency so that the hillshade is visible? Thanks, Sam Young _________________________________________________________________ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From David.Fawcett at STATE.MN.US Fri Nov 3 11:39:32 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 3 Nov 2006 13:39:32 -0600 Subject: Transparent Layer Question? In-Reply-To: A Message-ID: A quick search of the list on transparency would probably get you a good answer. Take a look at TRANSPARENCY here: http://mapserver.gis.umn.edu/docs/reference/mapfile/layer Remember that TRANSPARENCY actually acts like you might expect a term called OPACITY to work. In other words TRANSPARENCY 10 is quite see-through and TRANSPARENCY 90 is not very see-through. Of course, pick TRANSPARENCY 50 and it won't be confusing at all! ; / David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Sam Young Sent: Friday, November 03, 2006 1:19 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Transparent Layer Question? As a background for my application I would like to overlay a colored shape file on top of a black and white hillshade .tif. Is it possible, in the map file, to set the colored shape file to have some transparency so that the hillshade is visible? Thanks, Sam Young _________________________________________________________________ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http:/ /spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mk t=en-us From Steve.Lime at DNR.STATE.MN.US Fri Nov 3 12:40:08 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 3 Nov 2006 14:40:08 -0600 Subject: SIZEITEM howto ? Message-ID: Would you be so kind as to file a quick bug about this? It should work with annotation as well... Steve >>> St?phane COLZY 11/03/06 2:42 AM >>> That's it !! Thank you, I didn't notice it was an annotation layer (I got it from another mapfile...) -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Steve Lime Envoy? : jeudi 2 novembre 2006 22:36 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ? This could be a bug specific to annotation layers. If you turn your layer type to POINT does it work? Steve >>> St?phane COLZY 11/2/2006 10:27:56 AM >>> Nope ;) Already tried this*(I think that for shapefiles you have to use uppercase but for postgis it doesn?t seem to matter) _____ De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fawcett, David Envoy? : jeudi 2 novembre 2006 17:00 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ? You may want to try 'ONU_ID', I notice that for the label text you use uppercase for the field name. I am not sure if case sensitivity is an issue in this case with PostGIS. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of St?phane COLZY Sent: Thursday, November 02, 2006 9:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Ok, but the problem is that when I do this nothing happens (the map doesn?t change) So I thought may be I?m missing something* Here?s the layer definition : onu_id is an int4 ranging from 1 to 900 LAYER CONNECTION "user=scy password=scy dbname=vmap host=localhost port=5432" CONNECTIONTYPE POSTGIS DATA "the_geom from join_onu_wc USING UNIQUE ogc_fid using srid=4326" MAXSCALE 500 METADATA END NAME "Cities" PROJECTION "init=EPSG:4326" END SIZEUNITS PIXELS STATUS ON TOLERANCEUNITS PIXELS TYPE ANNOTATION UNITS METERS CLASS NAME "DEFAULT" LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT "verdana" MAXSIZE 256 MINSIZE 4 SIZE 8 TYPE TRUETYPE BUFFER 0 COLOR 104 104 104 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE 35 OFFSET 0 0 PARTIALS TRUE POSITION AUTO END METADATA END STYLE ANGLE 360 COLOR 255 30 0 SIZEITEM onu_id SYMBOL 7 END TEXT ([ONU_CITY_NAME]) END END _____ De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fawcett, David Envoy? : jeudi 2 novembre 2006 15:26 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Stephane, To use this, you would add a column to your shapefile or dataset that contained an integer value for how large you would like the symbol for that feature to be drawn. This allows you to set different symbol sizes for each feature as opposed to setting up separate classes with distinctive styles in the layer in the map file. http://mapserver.gis.umn.edu/docs/reference/mapfile/style David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of St?phane COLZY Sent: Thursday, November 02, 2006 8:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] SIZEITEM howto ? Hi, Could someone give us a brief description on how to use the STYLE / SIZEITEM property on points data ? Like: what are the other related properties, what kind of attributes/fields are supported ? It would b From kippster at YAHOO.COM Fri Nov 3 13:55:47 2006 From: kippster at YAHOO.COM (Kipp Jones) Date: Fri, 3 Nov 2006 16:55:47 -0500 Subject: php mapscript error Message-ID: This may be a configuration error, but I'm stumped. I'm getting an error when trying to use ogr to connect to mysql via phpmapscript. The error: PHP Warning: [MapServer Error]: msOGRLayerOpen(): OGR support is not available. I'm running on Mac OS X 10.4.8. Things seem to be happy, gmap is working just fine. My output from phpinfo shows: MapServer Version MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG PHP MapScript Version ($Revision: 1.260 $ $Date: 2006/09/06 16:42:36 $) The layer in my map is pretty simple: LAYER NAME "scanner" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "/Users/kippster/tiger/scanner.ovf" DATA "scanner" CLASS NAME "scanner" STYLE SYMBOL 2 SIZE 15 COLOR 0 255 0 END END END My ovf file is: MYSQL:db,user=xxxx,password=xxxxxx,host=127.0.0.1,port=33 06,tables=GpsLogs SELECT scannerId, latitude, longitude FROM GpsLogs wkbPoint When I perform ' ogrinfo /Users/kippster/tiger/scanner.ovf -al' it spews out all of the data points in the db just fine. Any ideas? Thanks! Kipp -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaronr at Z-PULLEY.COM Fri Nov 3 14:12:33 2006 From: aaronr at Z-PULLEY.COM (Aaron Racicot) Date: Fri, 3 Nov 2006 14:12:33 -0800 Subject: php mapscript error In-Reply-To: Message-ID: You need INPUT=OGR to have access to vector functions in GDAL/OGR via Mapserver. It looks like you only have GDAL enabled. Look at the --with-ogr switch when building Mapserver. A +----------------------------------------+ | Aaron Racicot? | aaronr at ecotrust.org?? | | GIS Programmer | 360.221.2441????????? | +----------------------------------------+ | e c o t r u s t??????????????????????? | | Jean Vollum Natural Capital Center???? | | 721 NW Ninth Avenue??????????????????? | | Suite 200????????????????????????????? | | Portland, OR 97209???????????????????? | | www.ecotrust.org?????????????????????? | +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kipp Jones Sent: Friday, November 03, 2006 1:56 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] php mapscript error This may be a configuration error, but I'm stumped.? I'm getting an error when trying to use ogr to connect to mysql via phpmapscript.? The error: PHP Warning:? [MapServer Error]: msOGRLayerOpen(): OGR support is not available. I'm running on Mac OS X 10.4.8. Things seem to be happy, gmap is working just fine.?? My output from phpinfo shows: MapServer Version MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG PHP MapScript Version ($Revision: 1.260 $ $Date: 2006/09/06 16:42:36 $) The?layer in my map is pretty simple: LAYER ? ? NAME "scanner" ? ? STATUS DEFAULT ? ? TYPE POINT ? ? CONNECTIONTYPE OGR ? ? CONNECTION "/Users/kippster/tiger/scanner.ovf" ? ? DATA "scanner" ? ? CLASS ? ? ?? NAME "scanner" ? ? ? ? ?? STYLE ? ? ? ? ? ? ?? SYMBOL 2 ? ? ? ? ? ? ?? SIZE 15 ? ? ? ? ? ? ?? COLOR 0 255 0 ? ? ? ? ?? END ? ? END END My ovf file is: ? ? ? ? ? ? MYSQL:db,user=xxxx,password=xxxxxx,host=127.0.0.1,port=3306,t ables=GpsLogs ? ? ? ? SELECT scannerId, latitude, longitude FROM GpsLogs ? ? ? ? wkbPoint ? ? ? ? ? ? When I perform '?ogrinfo /Users/kippster/tiger/scanner.ovf -al' it spews out all of the data points in the db just fine. Any ideas? Thanks! Kipp From woklist at KYNGCHAOS.COM Fri Nov 3 14:43:32 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Fri, 3 Nov 2006 16:43:32 -0600 Subject: php mapscript error In-Reply-To: Message-ID: Did you build MapServer and GDAL yourself? A Aaron pointed out, you might have missed the --with-ogr option in mapserver, it's not automatic when you enable gdal support. Alternatively, have you looked at my MapServer package for OSX? If there is something missing that you need, let me know. On Nov 3, 2006, at 3:55 PM, Kipp Jones wrote: > This may be a configuration error, but I'm stumped. I'm getting an > error when trying to use ogr to connect to mysql via phpmapscript. > The error: > > PHP Warning: [MapServer Error]: msOGRLayerOpen(): OGR support is > not available. > > I'm running on Mac OS X 10.4.8. > > Things seem to be happy, gmap is working just fine. > > My output from phpinfo shows: > > MapServer Version > MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=GDAL > INPUT=SHAPEFILE DEBUG=MSDEBUG > PHP MapScript Version > ($Revision: 1.260 $ $Date: 2006/09/06 16:42:36 $) > ----- William Kyngesburye http://www.kyngchaos.com/ Earth: "Mostly harmless" - revised entry in the HitchHiker's Guide to the Galaxy From tylermitchell at SHAW.CA Fri Nov 3 15:25:39 2006 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri, 3 Nov 2006 15:25:39 -0800 Subject: idea In-Reply-To: <454A675E.8090000@otsys.com> Message-ID: Is anyone already implementing this? I assume someone has written some transformers to help make a transition to XML-based map files. QGIS has a python script for converting from QGIS project files (XML) into MapServer map files. Perhaps there are already some well- used XML formats that we can simply use? Perhaps no one cares, that's fine too ;) Tyler On 2-Nov-06, at 1:47 PM, Joe Bussell wrote: > Old idea, with lots of history. Troll the history of this group > for an interesting tour of various opinions on this matter. > > Joe Bussell > > > siva wrote: >> hello >> i think in future mapserver map file be xml file >> >> sincerely >> sshekar >> >> From kippster at YAHOO.COM Fri Nov 3 15:27:08 2006 From: kippster at YAHOO.COM (Kipp Jones) Date: Fri, 3 Nov 2006 18:27:08 -0500 Subject: php mapscript error In-Reply-To: <2FEE1DD1-A21D-4302-8705-1A61A85FB6B1@kyngchaos.com> Message-ID: Thanks William & Aaron...great to have such quick response. I did end up building it on my own -- and boy was that fun :-) I was following the information (thanks btw!) on http://www.kyngchaos.com/ macosx/install/mapserv -- but grabbed the 4.10.0 version instead of the 4.6.0 version... Here is the configure comman I used: ./configure --mandir=/usr/local/share/man --with-proj=/usr/local -- with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal- config --with-gd=/usr/local --with-xpm=/usr/X11R6 --with-php=/usr/ local --with-geos=/usr/local/bin/geos-config --with-wfs --with-wcs -- with-wfsclient --with-wmsclient --with-freetype=/usr/:qX11R6/bin/ freetype-config I swear I tried to use a package install earlier on in the process, but perhaps I should drop back and try that again... Thanks again, Kipp On Nov 3, 2006, at 5:43 PM, William Kyngesburye wrote: > Did you build MapServer and GDAL yourself? A Aaron pointed out, > you might have missed the --with-ogr option in mapserver, it's not > automatic when you enable gdal support. > > Alternatively, have you looked at my MapServer package for OSX? If > there is something missing that you need, let me know. > > On Nov 3, 2006, at 3:55 PM, Kipp Jones wrote: > >> This may be a configuration error, but I'm stumped. I'm getting >> an error when trying to use ogr to connect to mysql via >> phpmapscript. The error: >> >> PHP Warning: [MapServer Error]: msOGRLayerOpen(): OGR support is >> not available. >> >> I'm running on Mac OS X 10.4.8. >> >> Things seem to be happy, gmap is working just fine. >> >> My output from phpinfo shows: >> >> MapServer Version >> MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >> OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE >> SUPPORTS=WMS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=GDAL >> INPUT=SHAPEFILE DEBUG=MSDEBUG >> PHP MapScript Version >> ($Revision: 1.260 $ $Date: 2006/09/06 16:42:36 $) >> > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > Earth: "Mostly harmless" > > - revised entry in the HitchHiker's Guide to the Galaxy From aaronr at Z-PULLEY.COM Fri Nov 3 15:34:19 2006 From: aaronr at Z-PULLEY.COM (Aaron Racicot) Date: Fri, 3 Nov 2006 15:34:19 -0800 Subject: php mapscript error In-Reply-To: <29907734-98BA-4B20-ACDB-28067E0AA237@yahoo.com> Message-ID: Well... did you build GDAL with OGR support? Do the following: [aaronr at pearl ~]$ /usr/local/bin/gdal-config --ogr-enabled yes [aaronr at pearl ~]$ Does gdal-config say that OGR is enabled? If not you need to go back one more step and look at how you built GDAL/OGR. Did you use the ogr-all target when building? Here is an example: ./configure make ogr-all make install Don't give up yet... you are close! A +----------------------------------------+ | Aaron Racicot | aaronr at ecotrust.org | | GIS Programmer | 360.221.2441 | +----------------------------------------+ | e c o t r u s t | | Jean Vollum Natural Capital Center | | 721 NW Ninth Avenue | | Suite 200 | | Portland, OR 97209 | | www.ecotrust.org | +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kipp Jones Sent: Friday, November 03, 2006 3:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] php mapscript error Thanks William & Aaron...great to have such quick response. I did end up building it on my own -- and boy was that fun :-) I was following the information (thanks btw!) on http://www.kyngchaos.com/ macosx/install/mapserv -- but grabbed the 4.10.0 version instead of the 4.6.0 version... Here is the configure comman I used: ./configure --mandir=/usr/local/share/man --with-proj=/usr/local -- with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal- config --with-gd=/usr/local --with-xpm=/usr/X11R6 --with-php=/usr/ local --with-geos=/usr/local/bin/geos-config --with-wfs --with-wcs -- with-wfsclient --with-wmsclient --with-freetype=/usr/:qX11R6/bin/ freetype-config I swear I tried to use a package install earlier on in the process, but perhaps I should drop back and try that again... Thanks again, Kipp On Nov 3, 2006, at 5:43 PM, William Kyngesburye wrote: > Did you build MapServer and GDAL yourself? A Aaron pointed out, > you might have missed the --with-ogr option in mapserver, it's not > automatic when you enable gdal support. > > Alternatively, have you looked at my MapServer package for OSX? If > there is something missing that you need, let me know. > > On Nov 3, 2006, at 3:55 PM, Kipp Jones wrote: > >> This may be a configuration error, but I'm stumped. I'm getting >> an error when trying to use ogr to connect to mysql via >> phpmapscript. The error: >> >> PHP Warning: [MapServer Error]: msOGRLayerOpen(): OGR support is >> not available. >> >> I'm running on Mac OS X 10.4.8. >> >> Things seem to be happy, gmap is working just fine. >> >> My output from phpinfo shows: >> >> MapServer Version >> MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >> OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE >> SUPPORTS=WMS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=GDAL >> INPUT=SHAPEFILE DEBUG=MSDEBUG >> PHP MapScript Version >> ($Revision: 1.260 $ $Date: 2006/09/06 16:42:36 $) >> > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > Earth: "Mostly harmless" > > - revised entry in the HitchHiker's Guide to the Galaxy From woklist at KYNGCHAOS.COM Fri Nov 3 15:40:51 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Fri, 3 Nov 2006 17:40:51 -0600 Subject: php mapscript error In-Reply-To: <29907734-98BA-4B20-ACDB-28067E0AA237@yahoo.com> Message-ID: On Nov 3, 2006, at 5:27 PM, Kipp Jones wrote: > Thanks William & Aaron...great to have such quick response. > > I did end up building it on my own -- and boy was that fun :-) I > was following the information (thanks btw!) on http:// > www.kyngchaos.com/macosx/install/mapserv -- but grabbed the > 4.10.0 version instead of the 4.6.0 version... > Those directions are out-of-date, though they may still be usable - I'm focusing on the binaries nowadays. > Here is the configure comman I used: > > ./configure --mandir=/usr/local/share/man --with-proj=/usr/local -- > with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal- > config --with-gd=/usr/local --with-xpm=/usr/X11R6 --with-php=/usr/ > local --with-geos=/usr/local/bin/geos-config --with-wfs --with-wcs > --with-wfsclient --with-wmsclient --with-freetype=/usr/:qX11R6/bin/ > freetype-config > > I swear I tried to use a package install earlier on in the process, > but perhaps I should drop back and try that again... > Well, since the ogrinfo command works, there's nothing wrong with OGR. But that build line for mapserver could be a problem - you don't need to specify the gdal-config path for the --with-ogr option, and in fact that may break the option. Try it as: --with-gdal=/usr/local/bin/gdal-config --with-ogr ----- William Kyngesburye http://www.kyngchaos.com/ "Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings. And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence.... - the wisdom of Tarzan From kippster at YAHOO.COM Fri Nov 3 19:20:04 2006 From: kippster at YAHOO.COM (Kipp Jones) Date: Fri, 3 Nov 2006 22:20:04 -0500 Subject: php mapscript error In-Reply-To: Message-ID: You gents are great...I really appreciate the help, and I can see how focus on the binary would be most helpful for all involved! Sorry I went old school and tested out the aged instructions, a shame since they are so good. I thought maybe I was going nuts (which is still not out of the question). But the issue seems to be that my gdal-config is located in /usr/local/bin/ but the configure script was looking for it in /sw/ bin/. When I initially tried the --ogr-enabled without the path, it yelled at me...your comments led me to the answer. I added a symbolic link in /sw/bin/, re-ran the configure without the path info (for either the gdal or the ogr option), make clean, make, re-installed, and life is good. The final configure command I used: ./configure --mandir=/usr/local/share/man --with-proj=/usr/local -- with-gdal --with-ogr --with-gd=/usr/local --with-xpm=/usr/X11R6 -- with-php=/usr/local --with-geos --with-wfs --with-wcs --with- wfsclient --with-wmsclient --with-freetype=/usr/:qX11R6/bin/freetype- config And what php now tells me: MapServer Version MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks for the quick responses, the great directions and all of your help! Kipp On Nov 3, 2006, at 6:40 PM, William Kyngesburye wrote: > On Nov 3, 2006, at 5:27 PM, Kipp Jones wrote: > >> Thanks William & Aaron...great to have such quick response. >> >> I did end up building it on my own -- and boy was that fun :-) I >> was following the information (thanks btw!) on http:// >> www.kyngchaos.com/macosx/install/mapserv -- but grabbed the >> 4.10.0 version instead of the 4.6.0 version... >> > Those directions are out-of-date, though they may still be usable - > I'm focusing on the binaries nowadays. > >> Here is the configure comman I used: >> >> ./configure --mandir=/usr/local/share/man --with-proj=/usr/local -- >> with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/ >> gdal-config --with-gd=/usr/local --with-xpm=/usr/X11R6 --with-php=/ >> usr/local --with-geos=/usr/local/bin/geos-config --with-wfs --with- >> wcs --with-wfsclient --with-wmsclient --with-freetype=/usr/:qX11R6/ >> bin/freetype-config >> >> I swear I tried to use a package install earlier on in the >> process, but perhaps I should drop back and try that again... >> > Well, since the ogrinfo command works, there's nothing wrong with > OGR. But that build line for mapserver could be a problem - you > don't need to specify the gdal-config path for the --with-ogr > option, and in fact that may break the option. Try it as: > > --with-gdal=/usr/local/bin/gdal-config --with-ogr > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "Mon Dieu! but they are all alike. Cheating, murdering, lying, > fighting, and all for things that the beasts of the jungle would > not deign to possess - money to purchase the effeminate pleasures > of weaklings. And yet withal bound down by silly customs that make > them slaves to their unhappy lot while firm in the belief that they > be the lords of creation enjoying the only real pleasures of > existence.... > > - the wisdom of Tarzan From woklist at KYNGCHAOS.COM Fri Nov 3 20:04:38 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Fri, 3 Nov 2006 22:04:38 -0600 Subject: php mapscript error In-Reply-To: <67702825-2C1F-41F3-89C1-2E619E3D960F@yahoo.com> Message-ID: Hm, Fink isn't a 'bad' thing. But it can get in the way when you start off on your own. If there's nothing you know that you use fom it, it would be a good idea to remove it. If the /sw folder is there, there might be an uninstall program or script there or in your Applications folder. I don't know everything that it installs, but at least /sw and any bits in your shell init, maybe some applications. On Nov 3, 2006, at 9:53 PM, Kipp Jones wrote: > Yessir, I did in fact install fink at some point in the past. Is > that a bad thing? > > My .bash_profile has this line: > > test -r /sw/bin/init.sh && . /sw/bin/init.sh > > Which would seem like a likely culprit, eh? > > Any recommendations on that? I was wondering what all this /sw/ > stuff was, must've installed that in one of those late night > install fests... > ----- William Kyngesburye http://www.kyngchaos.com/ "Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings. And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence.... - the wisdom of Tarzan From Dejan.Gambin at PULA.HR Thu Nov 2 23:45:23 2006 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri, 3 Nov 2006 08:45:23 +0100 Subject: One-to-many attribute queries Message-ID: Hi, As a part of my new project, I need to support one-to-many queries. I have a layer with objects/buildings and each object/building can have one or more locations inside. I have to implement a query mechanism that can give me the attributes of each location inside a building when I click on that building. Is it only related to the application I am using or there is "something" on the mapserver side that could help me? I am using Chameleon for this project. Any suggestions? thanks very much regards, dejan From w.blanken at GEON.NL Sat Nov 4 01:23:21 2006 From: w.blanken at GEON.NL (Wim Blanken) Date: Sat, 4 Nov 2006 10:23:21 +0100 Subject: One-to-many attribute queries In-Reply-To: Message-ID: Hello Dejan, In the past I have used the join function of mapserver in combination with some data pre-processing. I used a desktop GIS program to assign the locations the ID of the building that they belonged to. After that it is a simple join operation in mapserver. I did not have the possibility to use a Geodatabase of some sort, if you can this can offer a better solutions. ================================================== the content of the layer buildings in my mapfile ================================================== LAYER NAME Buildings DATA 'buildings.shp' STATUS ON TEMPLATE 'q_building.html' TYPE POLYGON CLASS COLOR 100 100 100 END #CLASS JOIN NAME locations TABLE "locations.dbf" FROM BUILDING_ID TO BUILDING_ID TYPE one-to-many TEMPLATE 'q_locations.html' END END # LAYER ================================================== And the content of the query file: q_building.html ================================================== [NAME] [join_locations] ================================================== And the content of the query file: q_locations.html ================================================== [locations_STREET] [locations_ADDRESS] =================================================== In this example both tables have a field called: BUILDING_ID which is a primary key of the BUILDINGS Table and a Foreign key inside the LOCATIONS table. The buildings Table has a NAME attribute and the locations Table has a STREET and a ADDRESS attribute. So you put the [join_locations] tag inside the main layer template which will execute the joined records template for locations that are related to this building. Joined template you have to put the name of the join before the attribute name like: [locations_STREET]. I do not know if Chameleon has limitations of working with joins. Maybe someone else knows this. Regards, Wim Blanken The Netherlands -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gambin Dejan Sent: vrijdag 3 november 2006 8:45 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] One-to-many attribute queries Hi, As a part of my new project, I need to support one-to-many queries. I have a layer with objects/buildings and each object/building can have one or more locations inside. I have to implement a query mechanism that can give me the attributes of each location inside a building when I click on that building. Is it only related to the application I am using or there is "something" on the mapserver side that could help me? I am using Chameleon for this project. Any suggestions? thanks very much regards, dejan From williampaul28 at YAHOO.COM Sat Nov 4 04:03:58 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Sat, 4 Nov 2006 04:03:58 -0800 Subject: mapscript error Message-ID: Hi, I managed to install dBox demo from www.maptools.org, but I can run only part of the application. When I start the application I can see only the foreground layers. I check the javascript console and I get this error which I attached as html file. It seems that it can write the xml file How can I solve it? Cheers, William --------------------------------- Access over 1 million songs - Yahoo! Music Unlimited Try it today. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Sat Nov 4 06:13:47 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sat, 4 Nov 2006 07:13:47 -0700 Subject: python mapscript with IIS In-Reply-To: <20061103142202.9078.qmail@web42401.mail.scd.yahoo.com> Message-ID: On 11/3/06, william paul wrote: > Hi again to everybody: > > I am trying to use the example provided with dBox, and to combine mapscript > python with dbox on IIS. I have installed dBox and seems to work, but I have > problems with mapscript python. These are steps which I did so far: > > I have downloaded a installed on windows xp sp 2 with IIS, mapserver 4.10. I > used the the binaries from MS4W, latest stable version from www.maptools.org > I have downloaded and installed Python 2.4.3 > I have copied mapscript.py, mapscript.pyd and _mapscript.pyd into > Python24/Lib/site-packages > I have copied make_dlegend_xml.py. make_dlegend_xml_cgi.py, > make_dlegend_xml.pyc into c:/inetput/scripts/ > I have modified the example.html to point the correct path > In javascript console I get the error: > Error: objDomTree.getElements("server")[0] has no properties > Yet another dlegend initialization error. Implies that dlegend.js has > received some data, but not in the expected form > > When I test the mapscript python installation I get the error: > CGI Error > The specified CGI application misbehaved by not returning a complete set of > HTTP headers. The headers it did return are: I don't think you have IIS configured to render any Python scripts. IIS does not recognize the #!C:\Python24\python.exe convention. Instead, you use IIS manager to map the .py extension to the Python inturperter. Open IIS manager, and properties for your web site, pick "configuration" from the "Home Directory" tab. Under the "mappings" tab, pick "Add": Executable: C:\Python24\python.exe -u %s %s Extension: .py Verbs: All Now try your test Python script. If you are having troubles with make_dlegend_xml_cgi.py, call it directly with something like: http://localhost/make_dlegend_xml_cgi.py?map=/path/to/yourMapFile.map?server=localhost This way you will see errors that make_dlegend_xml_cgi.py produces, not the downstream errors that is has created in your JavaScript. e.g. objDomTree.getElements("server")[0] has no properties Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From jmckenna at DMSOLUTIONS.CA Sat Nov 4 06:25:44 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Sat, 4 Nov 2006 09:25:44 -0500 Subject: INCLUDE not working In-Reply-To: Message-ID: Good question. I can tell you that I used includes again a few days ago on Windows, full paths, 4.10.0, with no problems. If you think you have found a bug, maybe post a small testcase (mapfile and data) to the original include bug (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=279). jeff Eric Shuman wrote: > I am trying to update a functioning map file to use the INCLUDE directive > for all of my layer definitions. I have used one of my LAYER directives as a > new map file and inserted an INCLUDE in my current map file. > > INCLUDE "/full-path-to-file/newfile.map" > > I get this error > > Warning: [MapServer Error]: msLoadMap(): Parsing error near > (INCLUDE):(line 133) in .... > > I have upgraded my mapserver version to 4.10.0. See below for my full > version info. The Layer directive and the map file work without the INCLUDE. > > What am I missing?? > > ~Eric > > MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > * FGS API version : 0.2 > * NAME VERSION > * apache-base 1.3.34 > * curl-lib 7.15.0 > * expat-base 1.95.8 > * freetype-lib 2.1.9 > * gdal-base 1.3.2 > * gd-lib 2.0.33 > * geos-lib 2.1.3 > * jpeg-lib 6b > * libgeotiff-lib 1.2.2 > * libiconv-base 1.9.1 > * libpng-lib 1.2.8 > * libungif-base 4.1.3 > * mapserver-base 4.10.0 > * mapserver-php 4.6.2 > * netcdf-lib 3.5.1 > * openssl-lib 0.9.8b > * pdflib_lite-base 5.0.4p1 > * php-base 4.3.11 > * php_pdf-module 4.3.11 > * php_pgsql-module 4.3.11 > * postgis-lib 1.0.4 > * postgresql-lib 8.0.7 > * postgresql-server 8.0.4 > * proj4_epsg42xxx-support 1.0.0 > * proj-lib 4.4.8 > * tiff-lib 3.7.2 > * unixODBC-base 2.2.10 > * xerces_c-base 2_6_0 > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From williampaul28 at YAHOO.COM Sat Nov 4 07:44:14 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Sat, 4 Nov 2006 07:44:14 -0800 Subject: python mapscript with IIS In-Reply-To: Message-ID: Hi Rich: IIS was configured to work with Python scripts. I did the configuration according to http://support.microsoft.com/kb/276494 I have removed #! c:\python24\python -u from the make_dlegend_xml.py and make_dlegend_xml_cgi.py. I tried as you told me to test the script, and I get the error: This XML file does not appear to have any style information associated with it. The document tree is shown below. - Missing required parameter "server" When I look at the javascript console I see: Error: xml declaration not at start of external entity Source File: http://localhost/scripts/make_dlegend_xml_cgi.py?map=c:/inetpub/wwwroot/demo/example/itasca.map&server=localhost Line: 2, Column: 1 Source Code: ^ What is strange is that the legend appears OK and I can work with it, but it is obvious that somewhere something is wrong and I can understand where! Thank you again William Richard Greenwood wrote: On 11/3/06, william paul wrote: > Hi again to everybody: > > I am trying to use the example provided with dBox, and to combine mapscript > python with dbox on IIS. I have installed dBox and seems to work, but I have > problems with mapscript python. These are steps which I did so far: > > I have downloaded a installed on windows xp sp 2 with IIS, mapserver 4.10. I > used the the binaries from MS4W, latest stable version from www.maptools.org > I have downloaded and installed Python 2.4.3 > I have copied mapscript.py, mapscript.pyd and _mapscript.pyd into > Python24/Lib/site-packages > I have copied make_dlegend_xml.py. make_dlegend_xml_cgi.py, > make_dlegend_xml.pyc into c:/inetput/scripts/ > I have modified the example.html to point the correct path > In javascript console I get the error: > Error: objDomTree.getElements("server")[0] has no properties > Yet another dlegend initialization error. Implies that dlegend.js has > received some data, but not in the expected form > > When I test the mapscript python installation I get the error: > CGI Error > The specified CGI application misbehaved by not returning a complete set of > HTTP headers. The headers it did return are: I don't think you have IIS configured to render any Python scripts. IIS does not recognize the #!C:\Python24\python.exe convention. Instead, you use IIS manager to map the .py extension to the Python inturperter. Open IIS manager, and properties for your web site, pick "configuration" from the "Home Directory" tab. Under the "mappings" tab, pick "Add": Executable: C:\Python24\python.exe -u %s %s Extension: .py Verbs: All Now try your test Python script. If you are having troubles with make_dlegend_xml_cgi.py, call it directly with something like: http://localhost/make_dlegend_xml_cgi.py?map=/path/to/yourMapFile.map?server=localhost This way you will see errors that make_dlegend_xml_cgi.py produces, not the downstream errors that is has created in your JavaScript. e.g. objDomTree.getElements("server")[0] has no properties Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com --------------------------------- Want to start your own business? Learn how on Yahoo! Small Business. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cozzolongo at PLANETEK.IT Sat Nov 4 08:29:46 2006 From: cozzolongo at PLANETEK.IT (cozzolongo) Date: Sat, 4 Nov 2006 17:29:46 +0100 Subject: Mapserver in a cluster Message-ID: -----Original message----- From: Stephen Woodbridge woodbri at SWOODBRIDGE.COM Date: Fri, 3 Nov 2006 20:11:58 +0100 To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Mapserver in a cluster > percy wrote: > > we are interested in this as well. we have a beowulf cluster, and would > > like to explore load-balancing in anticipation of increased demand for > > our geospatial data. > > > > I wonder what Ed over at Topozone does :-) > > > > Salvatore Cozzolongo wrote: > >> I would put mapserver cgi in a cluster (HA or HPC). The web server > >> should get up the cgi in this environment. According to you, is it > >> possible? what type of cluster > >> do you try to use? Best Regards to all > >> -- > >> Salvatore Cozzolongo > >> > > > I can speak to how this was originally set up. I believe Ed has made > some changes. There are approximately 10 servers with the USGS DOQQ data > organized into one degree blocks and spread across the servers in a > somewhat random order. When a map request comes it it is directed to the > system that owns the one degree block at the center of the map. All > systems are cross mounted using a Samba file system because of its > ability to recover from connection failures, which NFS can not do, so > every system looks like it has the full compliment of DOQQS. > > I'll let Ed jump in to say more if he wants. > > At Where2getit, we have a cluster with 8-9 servers behind a linux load > balancer. The load balancer monitors the client systems and their load > and dispatches requests to them respectively. These systems are all > severing vector data, and each is full compliment of data and software. > In fact each is a mirror of the master for that cluster. We can pull any > server from the load for maintenance and the remainder will handle the > load. If a server has a hardware failure the load balancer will remove > it from the load and sysadmins are paged. If we need more capacity, we > can load the basic OS on a box, mirror it from the master and add it to > the load. > > -Steve > Is this a somewhat HA-type cluster with all data replicated on all nodes in a certain mode? do i understand well? May a linux HA heartbeat system good for this kind of cluster, no? Your reply is very interesting for my studies. Very Very Very thanx... -------------- next part -------------- An embedded message was scrubbed... From: unknown sender Subject: no subject Date: no date Size: 2841 URL: From richard.greenwood at GMAIL.COM Sat Nov 4 08:41:54 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sat, 4 Nov 2006 09:41:54 -0700 Subject: python mapscript with IIS In-Reply-To: <20061104154414.88918.qmail@web42408.mail.scd.yahoo.com> Message-ID: On 11/4/06, william paul wrote: > Hi Rich: > > IIS was configured to work with Python scripts. I did the configuration > according to http://support.microsoft.com/kb/276494 > > I have removed #! c:\python24\python -u from the make_dlegend_xml.py and > make_dlegend_xml_cgi.py. I tried as you told me to test the script, and I > get the error: > > This XML file does not appear to have any style information associated with > it. The document tree is shown below. > > > - > > > Missing required parameter "server" > Are you trying with make_dlegend_xml_cgi.py or make_dlegend_xml.py? I think you've got two different errors. Be sure you're testing with make_dlegend_xml_CGI.py. Also, try it in IE because it won't bitch about the blank first line (see below). > When I look at the javascript console I see: > > Error: xml declaration not at start of external entity > Source File: > http://localhost/scripts/make_dlegend_xml_cgi.py?map=c:/inetpub/wwwroot/demo/example/itasca.map&server=localhost > Line: 2, Column: 1 > Source Code: > ^ That doesn't matter. Firefox always warns about that but it is not detrimental. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From woodbri at SWOODBRIDGE.COM Sat Nov 4 11:46:17 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 4 Nov 2006 14:46:17 -0500 Subject: Mapserver in a cluster In-Reply-To: Message-ID: cozzolongo wrote: > > -----Original message----- From: Stephen Woodbridge > woodbri at SWOODBRIDGE.COM Date: Fri, 3 Nov 2006 20:11:58 +0100 To: > MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] > Mapserver in a cluster > >> percy wrote: >>> we are interested in this as well. we have a beowulf cluster, and >>> would like to explore load-balancing in anticipation of increased >>> demand for our geospatial data. >>> >>> I wonder what Ed over at Topozone does :-) >>> >>> Salvatore Cozzolongo wrote: >>>> I would put mapserver cgi in a cluster (HA or HPC). The web >>>> server should get up the cgi in this environment. According to >>>> you, is it possible? what type of cluster do you try to use? >>>> Best Regards to all -- Salvatore Cozzolongo >>>> >> I can speak to how this was originally set up. I believe Ed has >> made some changes. There are approximately 10 servers with the USGS >> DOQQ data organized into one degree blocks and spread across the >> servers in a somewhat random order. When a map request comes it it >> is directed to the system that owns the one degree block at the >> center of the map. All systems are cross mounted using a Samba file >> system because of its ability to recover from connection failures, >> which NFS can not do, so every system looks like it has the full >> compliment of DOQQS. >> >> I'll let Ed jump in to say more if he wants. >> >> At Where2getit, we have a cluster with 8-9 servers behind a linux >> load balancer. The load balancer monitors the client systems and >> their load and dispatches requests to them respectively. These >> systems are all severing vector data, and each is full compliment >> of data and software. In fact each is a mirror of the master for >> that cluster. We can pull any server from the load for maintenance >> and the remainder will handle the load. If a server has a hardware >> failure the load balancer will remove it from the load and >> sysadmins are paged. If we need more capacity, we can load the >> basic OS on a box, mirror it from the master and add it to the >> load. >> >> -Steve >> > > Is this a somewhat HA-type cluster with all data replicated on all > nodes in a certain mode? do i understand well? May a linux HA > heartbeat system good for this kind of cluster, no? Your reply is > very interesting for my studies. Very Very Very thanx... > > > ------------------------------------------------------------------------ > > > > 000000000000000000000000 Date: Sat, 04 Nov 2006 17:17:09 +0100 From: > cozzolongo To: "Stephen Woodbridge" > Reply-To: cozzolongo at planetek.it Subject: > Re: [UMN_MAPSERVER-USERS] Mapserver in a cluster Message-ID: > <2eead1c61edecd4a60783be43b0c6f01 at planetek.it> X-Mailer: IceWarp Web > Mail 5.3.0 X-Originating-IP: 213.203.172.165 MIME-Version: 1.0 > Content-Type: text/plain; charset="none" Content-Transfer-Encoding: > 7bit > > > -----Original message----- From: Stephen Woodbridge > woodbri at SWOODBRIDGE.COM Date: Fri, 3 Nov 2006 20:11:58 +0100 To: > MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] > Mapserver in a cluster > >> percy wrote: >>> we are interested in this as well. we have a beowulf cluster, and >>> would like to explore load-balancing in anticipation of increased >>> demand for our geospatial data. >>> >>> I wonder what Ed over at Topozone does :-) >>> >>> Salvatore Cozzolongo wrote: >>>> I would put mapserver cgi in a cluster (HA or HPC). The web >>>> server should get up the cgi in this environment. According to >>>> you, is it possible? what type of cluster do you try to use? >>>> Best Regards to all -- Salvatore Cozzolongo >>>> >> I can speak to how this was originally set up. I believe Ed has >> made some changes. There are approximately 10 servers with the USGS >> DOQQ data organized into one degree blocks and spread across the >> servers in a somewhat random order. When a map request comes it it >> is directed to the system that owns the one degree block at the >> center of the map. All systems are cross mounted using a Samba file >> system because of its ability to recover from connection failures, >> which NFS can not do, so every system looks like it has the full >> compliment of DOQQS. >> >> I'll let Ed jump in to say more if he wants. >> >> At Where2getit, we have a cluster with 8-9 servers behind a linux >> load balancer. The load balancer monitors the client systems and >> their load and dispatches requests to them respectively. These >> systems are all severing vector data, and each is full compliment >> of data and software. In fact each is a mirror of the master for >> that cluster. We can pull any server from the load for maintenance >> and the remainder will handle the load. If a server has a hardware >> failure the load balancer will remove it from the load and >> sysadmins are paged. If we need more capacity, we can load the >> basic OS on a box, mirror it from the master and add it to the >> load. >> >> -Steve >> > > Is this an HA-type cluster? With all data replicated on all nodes in > a certain mode? do i understand well? is A linux HA heartbeat system > good for this kind of cluster? Your reply was very interesting for > my studies. Very Very Very thanx for your reply.. We use a bunch of components similar to Ultramonkey. check out their site or google for "LVS" or "Linux Virtual Server" would be a good starting place. Yes it is a HA-type cluster with a heart-beat. -Steve From bigj at COLUMBUS.RR.COM Sat Nov 4 15:34:19 2006 From: bigj at COLUMBUS.RR.COM (Jason R. Moore) Date: Sat, 4 Nov 2006 18:34:19 -0500 Subject: Merging data sources And blocking out sections Message-ID: I would like to know the best way to merge data from different sources. For example I have a large over view 1:20000 map and several smaller areas of higher resolution what is the best way of overlying the two and not letting the lower resolution data show threw? When you just stack the layers on top of each other you can see the lines on the lower resolution map meandering back en forth under the higher resolution data. So is there a command to clear the extent of a layer or what is the best way to do this? Jason From mgleahy at GOLDEN.NET Sat Nov 4 22:35:29 2006 From: mgleahy at GOLDEN.NET (Mike Leahy) Date: Sun, 5 Nov 2006 01:35:29 -0500 Subject: Compiling mapscript-csharp on Linux Message-ID: Hello list, I just finished compiling MapServer on FC6, and I was wondering about some errors I had when I compiled the C# mapscript library. There is a line related to the MySQL support in the csharp Makefile that looks like so: MYGIS_INC= -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv If I leave it as-is, I get the following errors when I attempt to compile the module with make: swig error : Unrecognized option -g swig error : Unrecognized option -pipe swig error : Unrecognized option -Wp,-D_FORTIFY_SOURCE=2 swig error : Unrecognized option -fexceptions swig error : Unrecognized option -fstack-protector swig error : Unrecognized option --param=ssp-buffer-size=4 swig error : Unrecognized option -m64 swig error : Unrecognized option -mtune=generic swig error : Unrecognized option -fno-strict-aliasing swig error : Unrecognized option -fwrapv Use 'swig -help' for available options. make: *** [interface] Error 1 So...I removed everthing on that line starting with '-g', and it compiled fine. My question is whether this is something that I'm likely to run into trouble with later on - I don't generally use MySQL, so my guess is no. If anyone has any insight related to this, I'd be interested to hear it. Thanks, Mike From williampaul28 at YAHOO.COM Sun Nov 5 05:02:44 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Sun, 5 Nov 2006 05:02:44 -0800 Subject: python mapscript with IIS In-Reply-To: Message-ID: Thank you again Rich It's working with IE without errors William Richard Greenwood wrote: On 11/4/06, william paul wrote: > Hi Rich: > > IIS was configured to work with Python scripts. I did the configuration > according to http://support.microsoft.com/kb/276494 > > I have removed #! c:\python24\python -u from the make_dlegend_xml.py and > make_dlegend_xml_cgi.py. I tried as you told me to test the script, and I > get the error: > > This XML file does not appear to have any style information associated with > it. The document tree is shown below. > > > - > > > Missing required parameter "server" > Are you trying with make_dlegend_xml_cgi.py or make_dlegend_xml.py? I think you've got two different errors. Be sure you're testing with make_dlegend_xml_CGI.py. Also, try it in IE because it won't bitch about the blank first line (see below). > When I look at the javascript console I see: > > Error: xml declaration not at start of external entity > Source File: > http://localhost/scripts/make_dlegend_xml_cgi.py?map=c:/inetpub/wwwroot/demo/example/itasca.map&server=localhost > Line: 2, Column: 1 > Source Code: > ^ That doesn't matter. Firefox always warns about that but it is not detrimental. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com --------------------------------- Get your email and see which of your friends are online - Right on the new Yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pearsondave at HOTMAIL.COM Sun Nov 5 08:16:56 2006 From: pearsondave at HOTMAIL.COM (Dave Pearson) Date: Sun, 5 Nov 2006 16:16:56 +0000 Subject: How to stop raster layer being manipulated? Message-ID: I have the Andes raster mapping for the UK in OSGB36 format. In addition, I have vector GPS information in lat/long decimal degree WGS84 format. Additionally, I have some extra data sets also in WGS84 format (mainly NAVTEQ). The mapserver is interfacing to another system through mapscript that requires to recieve and send lat/long co-ordinates in decimal degrees. My problem is this: when I display the composite map, I get a vertical "squishing" of the raster layer as (presumably) gdal is translating the image on the fly into WGS84 space. OSGB36 is a pretty flat (and square!) projection, but I end up with a nicely curved and vertically foreshortened one with text that is then very difficult to read. What I would ideally like is for mapserver to not attempt to manipulate the raster at all, but allow it to be projected effectively in OSGB dimensions but with lat / long units of measure instead of the OSGB units. This would ideally mean that my WGS84 data would reproject into effectively a "flat" space but still with lat /long units. Hope that makes sense, is it possible? Or is it something daft I'm doing with the PROJECTION that's causing all this fuss, I hope so! Can anybody offer me some guidance? Here's my map def: OUTPUTFORMAT NAME png DRIVER "GD/PNG" IMAGEMODE pc256 END MAP STATUS ON SIZE 500 380 EXTENT -11.0 44.0 9.0 59.0 UNITS dd SHAPEPATH "/var/gis/live" IMAGECOLOR 247 245 222 FONTSET "/var/gis/live/fonts/fonts.txt" PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" "nodefs" END LAYER NAME andesl7 PROJECTION "proj=tmerc" "lat_0=49.000000000" "lon_0=-2.000000000" "k=0.9996012717" "x_0=400000.000" "y_0=-100000.000" "ellps=airy" "datum=OSGB36" "no_defs" END STATUS DEFAULT TILEINDEX "al7.shp" TILEITEM "location" TYPE RASTER END LAYER CONNECTIONTYPE postgis NAME custpoi_poly PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END DATA "the_geom from custpoi_poly" CONNECTION "user=user password=password dbname=dbname host=127.0.0.1" STATUS DEFAULT TYPE POLYGON LABELITEM "description" CLASSITEM "symbol" TRANSPARENCY 30 CLASS STYLE COLOR 255 0 0 END LABEL ANTIALIAS TRUE SIZE medium COLOR 255 0 0 TYPE bitmap FORCE TRUE BACKGROUNDCOLOR 255 255 255 BACKGROUNDSHADOWCOLOR 255 0 0 POSITION AUTO END END END # END # Map File Many thanks in advance, Dave Pearson _________________________________________________________________ Windows Live? Messenger has arrived. Click here to download it for free! http://imagine-msn.com/messenger/launch80/?locale=en-gb From akrherz at IASTATE.EDU Sun Nov 5 17:36:45 2006 From: akrherz at IASTATE.EDU (Daryl Herzmann) Date: Sun, 5 Nov 2006 19:36:45 -0600 Subject: Mapserver in a cluster In-Reply-To: <454CEE09.7000005@swoodbridge.com> Message-ID: On Sat, 4 Nov 2006, Stephen Woodbridge wrote: >> Is this an HA-type cluster? With all data replicated on all nodes in >> a certain mode? do i understand well? is A linux HA heartbeat system >> good for this kind of cluster? Your reply was very interesting for >> my studies. Very Very Very thanx for your reply.. > > We use a bunch of components similar to Ultramonkey. check out their site or > google for "LVS" or "Linux Virtual Server" would be a good starting place. > Yes it is a HA-type cluster with a heart-beat. Me too :) I have a modest LVS cluster using Mapserver CGI / Mapscript extensively. Seems to work very well. The one trick is to use a LVS scheduler that keeps clients on the same "real server". The main issue is when mapscript generates temporary files and the client has to make subsequent calls to the web cluster to get those temporary files. If you use a round-robin scheme and not share /tmp space, you will get missing files. I can't address the shared storage aspect. HTH, daryl -- /** * Daryl Herzmann, RHCE * Program Assistant -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ From listario at GMAIL.COM Mon Nov 6 02:49:00 2006 From: listario at GMAIL.COM (J. Parapar) Date: Mon, 6 Nov 2006 11:49:00 +0100 Subject: no output for web template with 4.10 cgi In-Reply-To: <454B7C59.6050502@heidi.it> Message-ID: Hi Piero. We are also having problems with HTML templates using MapServer 4.10 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1946). It works well using MapServer 4.8.4 so it seems there has been some changes in version 4.10 which have affected to the HTML templates but we do not know what. But it is rare that there are not more people affected by this so perhaps we are doing something wrong. Best regards, Jorge 2006/11/3, piero cavalieri : > Hi all, > I use cgi 4.10 (tried both from DMSolutions and TWtools) and do a > request like this: > http://localhost/Scripts/mapserv.exe?map=D:/Web/Site/HGis/trentino.map&layer=DTM&layer=ECW&mode=browse > > > My web template file is an xml file: > > > > > > > > > > > > [legend] > ]]> > > > > > With 4.6 cgi this worked fine. > Then I had to format/reinstall my WindowsXp and tried 4.10, but with the > same web application I have the following cgi output: > > msDrawMap(): Layer 5 (laghi), 0.079s msDrawMap(): Layer 11 (i_dep_p), 0.078s > > instead of the xml file from web template. In temp dir I have all the > images created for the request (map, scalebar ecc.), so cgi installation > seems to be ok. > > I don't try using the old 4.6 (because I don't have it any more). Anyone > could give an advice please ? > > Thanks > Piero > From mmichelli at GMAIL.COM Mon Nov 6 03:10:27 2006 From: mmichelli at GMAIL.COM (Mario) Date: Mon, 6 Nov 2006 11:10:27 +0000 Subject: no output for web template with 4.10 cgi In-Reply-To: <4ac992660611060249y6084d1d1y1576aacadee02d73@mail.gmail.com> Message-ID: I have a mapfile that will only accept degrees for extents so between -180 and 180, but I need to have it working in meters. I do this: $map->setProjection("+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.999601 +x_0=400000 +y_0=-100000 +ellps=airy +units=m +no_defs", MS_TRUE); but with no luck, any idea what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmichelli at GMAIL.COM Mon Nov 6 03:23:19 2006 From: mmichelli at GMAIL.COM (Mario) Date: Mon, 6 Nov 2006 11:23:19 +0000 Subject: wrong extents Message-ID: I have a mapfile that will only accept degrees for extents so between -180 and 180, but I need to have it working in meters. I do this: $map->setProjection("+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.999601 +x_0=400000 +y_0=-100000 +ellps=airy +units=m +no_defs", MS_TRUE); but with no luck, any idea what I'm doing wrong? I've resent this mail as i sent it to with the wrong subject before -------------- next part -------------- An HTML attachment was scrubbed... URL: From miklos.geyer at ELKB.DE Mon Nov 6 05:41:58 2006 From: miklos.geyer at ELKB.DE (Miklos Geyer) Date: Mon, 6 Nov 2006 14:41:58 +0100 Subject: SVG-Legend Message-ID: Hi, I'm still struggling with Legends in SVG. The same Mapfile with IMAGETYPE png shows the Legend (and Scalebar). Ist this not implemented in MapServer 4.8 ? Any help / hints / examples appreciated. Mikl?s From piero.cavalieri at HEIDI.IT Mon Nov 6 05:52:54 2006 From: piero.cavalieri at HEIDI.IT (piero cavalieri) Date: Mon, 6 Nov 2006 14:52:54 +0100 Subject: no output for web template with 4.10 cgi In-Reply-To: <4ac992660611060249y6084d1d1y1576aacadee02d73@mail.gmail.com> Message-ID: I found I have a problem with some layers. One of this is: LAYER NAME laghi DEBUG on METADATA "wms_title" "laghi" "DESCRIPTION" "Laghi" "RESULT_FIELDS" "ASTA DES INDIVIDUAZ" END PROJECTION "init=epsg:26591" END TYPE polygon STATUS ON DATA idrlag LABELITEM "des" LABELMAXSCALE 30000 CLASS NAME "Laghi" COLOR 0 0 250 TEMPLATE "templates/laghi.xml" LABEL POSITION CC SIZE MEDIUM COLOR 0 0 250 OUTLINECOLOR 220 220 220 END END #TRANSPARENCY 50 TOLERANCE 5 HEADER "templates/layer_header.xml" FOOTER "templates/layer_footer.xml" END (I think templates/laghi.xml is ininfluent here because the layer crashes in browse mode). Do you see something strange ? Also on 3 other layers, I have images in temp dir are built correctly, but in the html they are not refreshed, i.e.: I do a zoom with the trouble layer present, the images are build (all images: map, scalebar, html legend icons, reference), but then html interface is not updated with the new images. I did never had this kind of problems with previous mapserver releses (but maybe this time I did something wrong in setting up cgi...) Piero J. Parapar ha scritto: > Hi Piero. > > We are also having problems with HTML templates using MapServer 4.10 > (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1946). It works > well using MapServer 4.8.4 so it seems there has been some changes in > version 4.10 which have affected to the HTML templates but we do not > know what. But it is rare that there are not more people affected by > this so perhaps we are doing something wrong. > > Best regards, > > Jorge > > > 2006/11/3, piero cavalieri : >> Hi all, >> I use cgi 4.10 (tried both from DMSolutions and TWtools) and do a >> request like this: >> http://localhost/Scripts/mapserv.exe?map=D:/Web/Site/HGis/trentino.map&layer=DTM&layer=ECW&mode=browse >> >> >> >> My web template file is an xml file: >> >> >> >> >> >> >> >> >> >> >> >> > [legend] >> ]]> >> >> >> >> >> With 4.6 cgi this worked fine. >> Then I had to format/reinstall my WindowsXp and tried 4.10, but with the >> same web application I have the following cgi output: >> >> msDrawMap(): Layer 5 (laghi), 0.079s msDrawMap(): Layer 11 (i_dep_p), >> 0.078s >> >> instead of the xml file from web template. In temp dir I have all the >> images created for the request (map, scalebar ecc.), so cgi >> installation >> seems to be ok. >> >> I don't try using the old 4.6 (because I don't have it any more). Anyone >> could give an advice please ? >> >> Thanks >> Piero >> > From assefa at DMSOLUTIONS.CA Mon Nov 6 06:31:43 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 6 Nov 2006 09:31:43 -0500 Subject: SVG-Legend In-Reply-To: Message-ID: Hi There, Only Map output is supported in SVG. Such things as Legend and Scalebar are not supported. Miklos Geyer wrote: > Hi, > > I'm still struggling with Legends in SVG. > > The same Mapfile with IMAGETYPE png shows the Legend (and Scalebar). > > Ist this not implemented in MapServer 4.8 ? > > Any help / hints / examples appreciated. > > Mikl?s -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From David.Fawcett at STATE.MN.US Mon Nov 6 06:16:35 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 6 Nov 2006 08:16:35 -0600 Subject: FW: Info on MapServer Message-ID: Raj, I am forwarding this on to the MapServer Users listserv for comment. The answers to several of your questions are found on the home page of the MapServer site. http://mapserver.gis.umn.edu/ To answer your most basic question, the software is free and opensource and has no restrictions on number of users. Most of the avaible documentation for MapServer can be found at: http://mapserver.gis.umn.edu/docs David. -----Original Message----- From: Rajashekar G [mailto:raj at vidwath.com] Sent: Monday, November 06, 2006 7:06 AM To: Fawcett, David Subject: Info on MapServer Importance: High Dear Mr. David, We are company based out of Bangalore, India. We offer solutions and services to logistics segment where we use GIS also as a technology. We have worked on both ESRI and MapInfo GIS engines. We are currently looking for an open source GIS engine so that we can reduce the cost of our solution to our esteemed customers. In this regard we are thinking of exploring MapServer for our web based application which is on .Net technology. Kindly inform us whether this engine supports the following features so that we could consider the same. 1. Is this a complete web based engine where we could offer a web based solution on the same with around 200-300 users accessing the application simultaneously for map viewing. 2. Do you have any benchmarks on the map rendering speed on the web with the above load? If so kindly furnish us the same. 3. Does the map engine support the following features. a. Map navigating tools zoom in, zoom out, distance, info tool, auto pan, centering b. Does it support both vector and rastor map data set? c. Does it support MS-SQL and Oracle as backend database for the attributes? d. Does it support animation layer? i.e. creating point objects on the fly over web ?for eg. Vehicle tracking. e. Does it support radial distance / search? f. Does it support buffering for line and point objects? g. Does it support editing the layers on the web - like creating points, drawing lines etc. h. Does it have a distance calculator? i. Which is map data format supported? Does it support both shape files (ESRI), MapInfo format as well Oracle spatial or any other geo-database format. 4. Does the map server have a licensing cost and does it have any restrictions with respect to number of simultaneous users? 5. What is the level of support and documentation provided for a serious user like us? 6. Can you forward any We request you to kindly revert on the above at the earliest. Best regards, Raj. =================== Rajashekar G. Vidwath Consulting Bangalore India HP:+91-9845505663 -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Mon Nov 6 06:08:41 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 6 Nov 2006 08:08:41 -0600 Subject: Merging data sources And blocking out sections In-Reply-To: A<454D237B.6020804@columbus.rr.com> Message-ID: Jason, If you are trying to have only the low res data show up when you are zoomed out and then have the high res data show up as you zoom in, take a look at LAYER MINSCALE and MAXSCALE in the Mapfile Reference Document. You can set the minimum and maximum scales at which you want a layer to display. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jason R. Moore Sent: Saturday, November 04, 2006 5:34 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Merging data sources And blocking out sections I would like to know the best way to merge data from different sources. For example I have a large over view 1:20000 map and several smaller areas of higher resolution what is the best way of overlying the two and not letting the lower resolution data show threw? When you just stack the layers on top of each other you can see the lines on the lower resolution map meandering back en forth under the higher resolution data. So is there a command to clear the extent of a layer or what is the best way to do this? Jason From miklos.geyer at ELKB.DE Mon Nov 6 06:53:36 2006 From: miklos.geyer at ELKB.DE (Miklos Geyer) Date: Mon, 6 Nov 2006 15:53:36 +0100 Subject: SVG-Legend In-Reply-To: <454F474F.3080804@dmsolutions.ca> Message-ID: Hi, thanks for the info, although it's not the best message ;-) Are there any plans to implement Lengends / Scalebars in SVG? Am 06.11.2006 um 15:31 schrieb Yewondwossen Assefa: > Hi There, > > Only Map output is supported in SVG. Such things as Legend and > Scalebar are not supported. > > Miklos Geyer wrote: >> Hi, >> I'm still struggling with Legends in SVG. >> The same Mapfile with IMAGETYPE png shows the Legend (and Scalebar). >> Ist this not implemented in MapServer 4.8 ? >> Any help / hints / examples appreciated. >> Mikl?s > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > From warmerdam at POBOX.COM Mon Nov 6 07:05:31 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 6 Nov 2006 10:05:31 -0500 Subject: FW: Info on MapServer In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB0B24@s-sp22.pca.state.mn.us> Message-ID: Raj writes: > 1. Is this a complete web based engine where we could offer a web > based solution on the same with around 200-300 users accessing the > application simultaneously for map viewing. Raj, MapServer will support 200-300 users with an appropriately configured application, though I'd consider that a high load for a single machine serving maps and you would likely need to be quite careful about how your application is setup. I'm not sure what you mean by a "complete web based engine". MapServer is not a GIS and does not endevour to have a complete set of GIS functionality. You may also find you need a variety of related projects to achieve some ends. In particular there are many layered software packages that can be used with mapserver to make building web applications easier. Packages such as CartoWeb, Chameleon, Mapbender, MapBuilder, and ka-Map (as a few examples). You will want to review some of these higher level packages as part of your review of mapserver. > 2. Do you have any benchmarks on the map rendering speed on the web > with the above load? If so kindly furnish us the same. I do not, perhaps others do. Generally speaking you are best off doing some benchmarking yourself, and understanding that performance can be very sensitive to a variety of issues (data organization, machine memory, etc). > 3. Does the map engine support the following features. > 1. Map navigating tools zoom in, zoom out, distance, info > tool, auto pan, centering yes > 2. Does it support both vector and rastor map data set? yes > 3. Does it support MS-SQL and Oracle as backend database for > the attributes? Yes, though the normal MapServer model is for the attributes to be conceptually stored with the spatial geometry. Trying to do joins on the fly can be problematic, especially in performance sensitive situations. Note that there is good Oracle Spatial support built in. Access to MS-SQL is via the OGR ODBC driver and can be considered weaker. > 4. Does it support animation layer? i.e. creating point objects > on the fly over web ?for eg. Vehicle tracking. I believe you would need to use a client side toolkit such as MapBuilder to have AJAX style client side animation. Or perhaps you just mean rendering from dynamic datasets? This is quite possible. > 5. Does it support radial distance / search? yes > 6. Does it support buffering for line and point objects? yes, though this is a new feature, I think accessible only in mapscript. > 7. Does it support editing the layers on the web ? like > creating points, drawing lines etc. Generally speaking no, MapServer does not support feature editing well. There are some environments (Mapbender?) that address this sort of need, but I think they post changes back to transactional WFS'es like GeoServer. Use of GeoServer as a WFS and MapServer as a WMS is a fairly common configuration for such requirements. > 8. Does it have a distance calculator? I am not aware of one built in, though environments like Chameleon may include this. > 9. Which is map data format supported? Does it support both > shape files (ESRI), MapInfo format as well Oracle spatial or > any other geo-database format. The "native" format is shapefiles (in the sense this is the original and in many ways best optimized format), but Oracle Spatial is also well supported. Via OGR a variety of formats are supported including mapinfo (mid/mif and tab), etc. http://www.gdal.org/ogr/ > 4. Does the map server have a licensing cost and does it have any > restrictions with respect to number of simultaneous users? No, sorry. We are missing this feature. > 5. What is the level of support and documentation provided for a > serious user like us? I'd suggest you visit the mapserver website to judge the available documentation. If you want support you can call on the mapserver mailing lists but for serious support you may consider contracting with experienced mapserver consultants including firms like DM Solutions, or MapGears, and individuals such as Steve Lime, or Howard Butler. I personally think that MapServer and related projects is a great solution for consultants and integrators willing to spend some time learning MapServer and who have the experience and knowledge to customize and extend things when required. This gives great flexibility in providing exactly the solution a client needs, and ensures you aren't trapped into the licensing/pricing scheme of a vendor who may be insensitive to your needs or the needs of some of your clients. 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 | President OSGeo, http://osgeo.org From listario at GMAIL.COM Mon Nov 6 07:06:20 2006 From: listario at GMAIL.COM (J. Parapar) Date: Mon, 6 Nov 2006 16:06:20 +0100 Subject: no output for web template with 4.10 cgi In-Reply-To: <454F3E36.5000207@heidi.it> Message-ID: Hi Piero Sorry, I misunderstood your first mail. At first glance I do not see anything strange. You can try to isolate the problem by using different modes (map, legend, scalebar, ...) and simplifying the layer defintion. Sorry I can not help much. Best regards, Jorge 2006/11/6, piero cavalieri : > I found I have a problem with some layers. One of this is: > > LAYER > NAME laghi > DEBUG on > METADATA > "wms_title" "laghi" > "DESCRIPTION" "Laghi" > "RESULT_FIELDS" "ASTA DES INDIVIDUAZ" > END > PROJECTION > "init=epsg:26591" > END > TYPE polygon > STATUS ON > DATA idrlag > LABELITEM "des" > LABELMAXSCALE 30000 > CLASS > NAME "Laghi" > COLOR 0 0 250 > TEMPLATE "templates/laghi.xml" > LABEL > POSITION CC > SIZE MEDIUM > COLOR 0 0 250 > OUTLINECOLOR 220 220 220 > END > END > #TRANSPARENCY 50 > TOLERANCE 5 > HEADER "templates/layer_header.xml" > FOOTER "templates/layer_footer.xml" > END > > (I think templates/laghi.xml is ininfluent here because the layer > crashes in browse mode). Do you see something strange ? > Also on 3 other layers, I have images in temp dir are built correctly, > but in the html they are not refreshed, i.e.: > I do a zoom with the trouble layer present, the images are build (all > images: map, scalebar, html legend icons, reference), but then html > interface is not updated with the new images. I did never had this kind > of problems with previous mapserver releses (but maybe this time I did > something wrong in setting up cgi...) > > Piero > > > J. Parapar ha scritto: > > Hi Piero. > > > > We are also having problems with HTML templates using MapServer 4.10 > > (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1946). It works > > well using MapServer 4.8.4 so it seems there has been some changes in > > version 4.10 which have affected to the HTML templates but we do not > > know what. But it is rare that there are not more people affected by > > this so perhaps we are doing something wrong. > > > > Best regards, > > > > Jorge > > > > > > 2006/11/3, piero cavalieri : > >> Hi all, > >> I use cgi 4.10 (tried both from DMSolutions and TWtools) and do a > >> request like this: > >> http://localhost/Scripts/mapserv.exe?map=D:/Web/Site/HGis/trentino.map&layer=DTM&layer=ECW&mode=browse > >> > >> > >> > >> My web template file is an xml file: > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> >> [legend] > >> ]]> > >> > >> > >> > >> > >> With 4.6 cgi this worked fine. > >> Then I had to format/reinstall my WindowsXp and tried 4.10, but with the > >> same web application I have the following cgi output: > >> > >> msDrawMap(): Layer 5 (laghi), 0.079s msDrawMap(): Layer 11 (i_dep_p), > >> 0.078s > >> > >> instead of the xml file from web template. In temp dir I have all the > >> images created for the request (map, scalebar ecc.), so cgi > >> installation > >> seems to be ok. > >> > >> I don't try using the old 4.6 (because I don't have it any more). Anyone > >> could give an advice please ? > >> > >> Thanks > >> Piero > >> > > > > From punkish at EIDESIS.ORG Mon Nov 6 07:13:58 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Mon, 6 Nov 2006 09:13:58 -0600 Subject: FW: Info on MapServer In-Reply-To: <454F4F3B.7040807@pobox.com> Message-ID: Good golly... this should be converted into a FAQ, or, into a "What you need to know about MapServer before you begin." Very well explained answers Frank. On 11/6/06, Frank Warmerdam wrote: > Raj writes: > > 1. Is this a complete web based engine where we could offer a web > > based solution on the same with around 200-300 users accessing the > > application simultaneously for map viewing. > > Raj, > > MapServer will support 200-300 users with an appropriately configured > application, though I'd consider that a high load for a single machine > serving maps and you would likely need to be quite careful about how > your application is setup. > > I'm not sure what you mean by a "complete web based engine". MapServer > is not a GIS and does not endevour to have a complete set of GIS > functionality. You may also find you need a variety of related projects > to achieve some ends. In particular there are many layered software > packages that can be used with mapserver to make building web applications > easier. Packages such as CartoWeb, Chameleon, Mapbender, MapBuilder, > and ka-Map (as a few examples). You will want to review some of these > higher level packages as part of your review of mapserver. > > > 2. Do you have any benchmarks on the map rendering speed on the web > > with the above load? If so kindly furnish us the same. > > I do not, perhaps others do. Generally speaking you are best off > doing some benchmarking yourself, and understanding that performance can > be very sensitive to a variety of issues (data organization, machine > memory, etc). > > > 3. Does the map engine support the following features. > > 1. Map navigating tools zoom in, zoom out, distance, info > > tool, auto pan, centering > > yes > > > 2. Does it support both vector and rastor map data set? > > yes > > > 3. Does it support MS-SQL and Oracle as backend database for > > the attributes? > > Yes, though the normal MapServer model is for the attributes to be > conceptually stored with the spatial geometry. Trying to do joins on the > fly can be problematic, especially in performance sensitive situations. > > Note that there is good Oracle Spatial support built in. Access to > MS-SQL is via the OGR ODBC driver and can be considered weaker. > > > 4. Does it support animation layer? i.e. creating point objects > > on the fly over web ?for eg. Vehicle tracking. > > I believe you would need to use a client side toolkit such as MapBuilder > to have AJAX style client side animation. Or perhaps you just mean > rendering from dynamic datasets? This is quite possible. > > > 5. Does it support radial distance / search? > > yes > > > 6. Does it support buffering for line and point objects? > > yes, though this is a new feature, I think accessible only in mapscript. > > > 7. Does it support editing the layers on the web ? like > > creating points, drawing lines etc. > > Generally speaking no, MapServer does not support feature editing well. > There are some environments (Mapbender?) that address this sort of need, > but I think they post changes back to transactional WFS'es like GeoServer. > Use of GeoServer as a WFS and MapServer as a WMS is a fairly common > configuration for such requirements. > > > 8. Does it have a distance calculator? > > I am not aware of one built in, though environments like Chameleon may > include this. > > > 9. Which is map data format supported? Does it support both > > shape files (ESRI), MapInfo format as well Oracle spatial or > > any other geo-database format. > > The "native" format is shapefiles (in the sense this is the original and > in many ways best optimized format), but Oracle Spatial is also well > supported. Via OGR a variety of formats are supported including mapinfo > (mid/mif and tab), etc. > > http://www.gdal.org/ogr/ > > > 4. Does the map server have a licensing cost and does it have any > > restrictions with respect to number of simultaneous users? > > No, sorry. We are missing this feature. > > > 5. What is the level of support and documentation provided for a > > serious user like us? > > I'd suggest you visit the mapserver website to judge the available > documentation. If you want support you can call on the mapserver > mailing lists but for serious support you may consider contracting > with experienced mapserver consultants including firms like DM Solutions, > or MapGears, and individuals such as Steve Lime, or Howard Butler. > > I personally think that MapServer and related projects is a great solution > for consultants and integrators willing to spend some time learning MapServer > and who have the experience and knowledge to customize and extend things > when required. This gives great flexibility in providing exactly the solution > a client needs, and ensures you aren't trapped into the licensing/pricing > scheme of a vendor who may be insensitive to your needs or the needs of > some of your clients. > > 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 | President OSGeo, http://osgeo.org > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ ------------------------------------------------------------------------------------------------------- collaborate, communicate, compete ==================================================== From assefa at DMSOLUTIONS.CA Mon Nov 6 07:31:08 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 6 Nov 2006 10:31:08 -0500 Subject: SVG-Legend In-Reply-To: <729A34A2-EF60-42E1-8209-1DB149E69F49@ELKB.DE> Message-ID: Miklos Geyer wrote: > Hi, > > thanks for the info, although it's not the best message ;-) > Are there any plans to implement Lengends / Scalebars in SVG? > There is no current plan to add these functions. The initial project was limited to do the map output only. If you are familiar with mapscript, It should be possible to generate an svg legend by looping through the map/layer/class objects. > > > Am 06.11.2006 um 15:31 schrieb Yewondwossen Assefa: > >> Hi There, >> >> Only Map output is supported in SVG. Such things as Legend and >> Scalebar are not supported. >> >> Miklos Geyer wrote: >> >>> Hi, >>> I'm still struggling with Legends in SVG. >>> The same Mapfile with IMAGETYPE png shows the Legend (and Scalebar). >>> Ist this not implemented in MapServer 4.8 ? >>> Any help / hints / examples appreciated. >>> Mikl?s >> >> >> >> -- >> ---------------------------------------------------------------- >> 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 ---------------------------------------------------------------- From woodbri at SWOODBRIDGE.COM Mon Nov 6 08:08:32 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 6 Nov 2006 11:08:32 -0500 Subject: FW: Info on MapServer In-Reply-To: Message-ID: Kishor, I would add to Frank's excellent assessment, that we have excellent support of PostGIS, a Postgresql spatial extension. It has significantly less connection overhead then Oracle and is OpenSource. It is also fully capable of doing multiple table attribute and spatial joins for rendering and querying. I also supports multi-user data updates for editing spatial data. -Steve P Kishor wrote: > Good golly... this should be converted into a FAQ, or, into a "What > you need to know about MapServer before you begin." > > Very well explained answers Frank. > > On 11/6/06, Frank Warmerdam wrote: >> Raj writes: >> > 1. Is this a complete web based engine where we could offer a web >> > based solution on the same with around 200-300 users accessing >> the >> > application simultaneously for map viewing. >> >> Raj, >> >> MapServer will support 200-300 users with an appropriately configured >> application, though I'd consider that a high load for a single machine >> serving maps and you would likely need to be quite careful about how >> your application is setup. >> >> I'm not sure what you mean by a "complete web based engine". MapServer >> is not a GIS and does not endevour to have a complete set of GIS >> functionality. You may also find you need a variety of related projects >> to achieve some ends. In particular there are many layered software >> packages that can be used with mapserver to make building web >> applications >> easier. Packages such as CartoWeb, Chameleon, Mapbender, MapBuilder, >> and ka-Map (as a few examples). You will want to review some of these >> higher level packages as part of your review of mapserver. >> >> > 2. Do you have any benchmarks on the map rendering speed on the web >> > with the above load? If so kindly furnish us the same. >> >> I do not, perhaps others do. Generally speaking you are best off >> doing some benchmarking yourself, and understanding that performance can >> be very sensitive to a variety of issues (data organization, machine >> memory, etc). >> >> > 3. Does the map engine support the following features. >> > 1. Map navigating tools zoom in, zoom out, distance, info >> > tool, auto pan, centering >> >> yes >> >> > 2. Does it support both vector and rastor map data set? >> >> yes >> >> > 3. Does it support MS-SQL and Oracle as backend database for >> > the attributes? >> >> Yes, though the normal MapServer model is for the attributes to be >> conceptually stored with the spatial geometry. Trying to do joins on the >> fly can be problematic, especially in performance sensitive situations. >> >> Note that there is good Oracle Spatial support built in. Access to >> MS-SQL is via the OGR ODBC driver and can be considered weaker. >> >> > 4. Does it support animation layer? i.e. creating point >> objects >> > on the fly over web ?for eg. Vehicle tracking. >> >> I believe you would need to use a client side toolkit such as MapBuilder >> to have AJAX style client side animation. Or perhaps you just mean >> rendering from dynamic datasets? This is quite possible. >> >> > 5. Does it support radial distance / search? >> >> yes >> >> > 6. Does it support buffering for line and point objects? >> >> yes, though this is a new feature, I think accessible only in mapscript. >> >> > 7. Does it support editing the layers on the web ? like >> > creating points, drawing lines etc. >> >> Generally speaking no, MapServer does not support feature editing well. >> There are some environments (Mapbender?) that address this sort of need, >> but I think they post changes back to transactional WFS'es like >> GeoServer. >> Use of GeoServer as a WFS and MapServer as a WMS is a fairly common >> configuration for such requirements. >> >> > 8. Does it have a distance calculator? >> >> I am not aware of one built in, though environments like Chameleon may >> include this. >> >> > 9. Which is map data format supported? Does it support both >> > shape files (ESRI), MapInfo format as well Oracle >> spatial or >> > any other geo-database format. >> >> The "native" format is shapefiles (in the sense this is the original and >> in many ways best optimized format), but Oracle Spatial is also well >> supported. Via OGR a variety of formats are supported including mapinfo >> (mid/mif and tab), etc. >> >> http://www.gdal.org/ogr/ >> >> > 4. Does the map server have a licensing cost and does it have any >> > restrictions with respect to number of simultaneous users? >> >> No, sorry. We are missing this feature. >> >> > 5. What is the level of support and documentation provided for a >> > serious user like us? >> >> I'd suggest you visit the mapserver website to judge the available >> documentation. If you want support you can call on the mapserver >> mailing lists but for serious support you may consider contracting >> with experienced mapserver consultants including firms like DM Solutions, >> or MapGears, and individuals such as Steve Lime, or Howard Butler. >> >> I personally think that MapServer and related projects is a great >> solution >> for consultants and integrators willing to spend some time learning >> MapServer >> and who have the experience and knowledge to customize and extend things >> when required. This gives great flexibility in providing exactly the >> solution >> a client needs, and ensures you aren't trapped into the licensing/pricing >> scheme of a vendor who may be insensitive to your needs or the needs of >> some of your clients. >> >> 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 | President OSGeo, >> http://osgeo.org >> > > From mhwang4 at UIUC.EDU Mon Nov 6 08:08:57 2006 From: mhwang4 at UIUC.EDU (myunghwa Hwang) Date: Mon, 6 Nov 2006 10:08:57 -0600 Subject: FW: Info on MapServer In-Reply-To: Message-ID: I agree with you. And I wonder one more thing. What's major difference between server types such as Map Server, GeoServer and client types such as Map Builder, Cartoweb? I know I can search it. But if some experienced people tell us the major distinctions, it might be very helpful for many novices. from Myunghwa Hwang On Nov 6, 2006, at 9:13 AM, P Kishor wrote: > Good golly... this should be converted into a FAQ, or, into a "What > you need to know about MapServer before you begin." > > Very well explained answers Frank. > > On 11/6/06, Frank Warmerdam wrote: >> Raj writes: >> > 1. Is this a complete web based engine where we could offer a >> web >> > based solution on the same with around 200-300 users >> accessing the >> > application simultaneously for map viewing. >> >> Raj, >> >> MapServer will support 200-300 users with an appropriately configured >> application, though I'd consider that a high load for a single >> machine >> serving maps and you would likely need to be quite careful about how >> your application is setup. >> >> I'm not sure what you mean by a "complete web based engine". >> MapServer >> is not a GIS and does not endevour to have a complete set of GIS >> functionality. You may also find you need a variety of related >> projects >> to achieve some ends. In particular there are many layered software >> packages that can be used with mapserver to make building web >> applications >> easier. Packages such as CartoWeb, Chameleon, Mapbender, MapBuilder, >> and ka-Map (as a few examples). You will want to review some of >> these >> higher level packages as part of your review of mapserver. >> >> > 2. Do you have any benchmarks on the map rendering speed on >> the web >> > with the above load? If so kindly furnish us the same. >> >> I do not, perhaps others do. Generally speaking you are best off >> doing some benchmarking yourself, and understanding that >> performance can >> be very sensitive to a variety of issues (data organization, machine >> memory, etc). >> >> > 3. Does the map engine support the following features. >> > 1. Map navigating tools zoom in, zoom out, distance, info >> > tool, auto pan, centering >> >> yes >> >> > 2. Does it support both vector and rastor map data set? >> >> yes >> >> > 3. Does it support MS-SQL and Oracle as backend >> database for >> > the attributes? >> >> Yes, though the normal MapServer model is for the attributes to be >> conceptually stored with the spatial geometry. Trying to do joins >> on the >> fly can be problematic, especially in performance sensitive >> situations. >> >> Note that there is good Oracle Spatial support built in. Access to >> MS-SQL is via the OGR ODBC driver and can be considered weaker. >> >> > 4. Does it support animation layer? i.e. creating point >> objects >> > on the fly over web ?for eg. Vehicle tracking. >> >> I believe you would need to use a client side toolkit such as >> MapBuilder >> to have AJAX style client side animation. Or perhaps you just mean >> rendering from dynamic datasets? This is quite possible. >> >> > 5. Does it support radial distance / search? >> >> yes >> >> > 6. Does it support buffering for line and point objects? >> >> yes, though this is a new feature, I think accessible only in >> mapscript. >> >> > 7. Does it support editing the layers on the web ? like >> > creating points, drawing lines etc. >> >> Generally speaking no, MapServer does not support feature editing >> well. >> There are some environments (Mapbender?) that address this sort of >> need, >> but I think they post changes back to transactional WFS'es like >> GeoServer. >> Use of GeoServer as a WFS and MapServer as a WMS is a fairly common >> configuration for such requirements. >> >> > 8. Does it have a distance calculator? >> >> I am not aware of one built in, though environments like Chameleon >> may >> include this. >> >> > 9. Which is map data format supported? Does it support >> both >> > shape files (ESRI), MapInfo format as well Oracle >> spatial or >> > any other geo-database format. >> >> The "native" format is shapefiles (in the sense this is the >> original and >> in many ways best optimized format), but Oracle Spatial is also well >> supported. Via OGR a variety of formats are supported including >> mapinfo >> (mid/mif and tab), etc. >> >> http://www.gdal.org/ogr/ >> >> > 4. Does the map server have a licensing cost and does it have >> any >> > restrictions with respect to number of simultaneous users? >> >> No, sorry. We are missing this feature. >> >> > 5. What is the level of support and documentation provided for a >> > serious user like us? >> >> I'd suggest you visit the mapserver website to judge the available >> documentation. If you want support you can call on the mapserver >> mailing lists but for serious support you may consider contracting >> with experienced mapserver consultants including firms like DM >> Solutions, >> or MapGears, and individuals such as Steve Lime, or Howard Butler. >> >> I personally think that MapServer and related projects is a great >> solution >> for consultants and integrators willing to spend some time >> learning MapServer >> and who have the experience and knowledge to customize and extend >> things >> when required. This gives great flexibility in providing exactly >> the solution >> a client needs, and ensures you aren't trapped into the licensing/ >> pricing >> scheme of a vendor who may be insensitive to your needs or the >> needs of >> some of your clients. >> >> 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 | President OSGeo, http:// >> osgeo.org >> > > > -- > Puneet Kishor http://punkish.eidesis.org/ > Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ > Open Source Geospatial Foundation https://edu.osgeo.org/ > ---------------------------------------------------------------------- > --------------------------------- > collaborate, communicate, compete > ==================================================== From work at XWB.COM Mon Nov 6 09:12:44 2006 From: work at XWB.COM (Chip Taylor) Date: Mon, 6 Nov 2006 09:12:44 -0800 Subject: Raster tiling not working In-Reply-To: Message-ID: I have as series of georeferenced TIF files in the path d:/wwwroot/shapefiles/rasters. Using gdaltindex I produced an index file in the same directory as the rasters. I then created a layer in the mapfile like so: LAYER NAME "TacomaArea" STATUS default TILEINDEX " d:/wwwroot/shapefiles/rasters/tacoma_index.shp" TILEITEM "Location" TYPE RASTER END The map serves up fine but the rasters are never displayed. Any ideas would be greatly appreciated. Chip Taylor From warmerdam at POBOX.COM Mon Nov 6 09:40:34 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 6 Nov 2006 12:40:34 -0500 Subject: Raster tiling not working In-Reply-To: <04a101c701c6$c77e6410$025aa8c0@DevChip> Message-ID: Chip Taylor wrote: > I have as series of georeferenced TIF files in the path > d:/wwwroot/shapefiles/rasters. Using gdaltindex I produced an index file in > the same directory as the rasters. I then created a layer in the mapfile > like so: > > LAYER > NAME "TacomaArea" > STATUS default > > TILEINDEX " d:/wwwroot/shapefiles/rasters/tacoma_index.shp" > TILEITEM "Location" > TYPE RASTER > END > > The map serves up fine but the rasters are never displayed. Any ideas would > be greatly appreciated. Chip, When the location filename in tileindexes is evaluated in mapserver, it is evaluated relate to the SHAPEPATH or mapfile if the path is relative. Not, as might be expected, relative to the tileindex. I suspect this is your problem. 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 | President OSGeo, http://osgeo.org From paul at DUGAS.CC Mon Nov 6 09:46:47 2006 From: paul at DUGAS.CC (Paul Dugas) Date: Mon, 6 Nov 2006 12:46:47 -0500 Subject: LABEL BUFFER question Message-ID: I'm annotating some polygons using a POINT layer so I can put the label along with a dot. I've got a BUFFER value for the LABEL and it's removing those that are too close but it's not removing the corresponding dots. Is there a way to have them linked so the dot is removed when the label doesn't fit? Paul Paul Dugas Computer Engineer Dugas Enterprises, LLC 522 Black Canyon Park Canton, GA 30114 phone: 404.932.1355 fax: 866.751.6494 paul at dugas.cc http://DugasEnterprises.com This e-mail and any attachments are confidential. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From woodbri at SWOODBRIDGE.COM Mon Nov 6 09:51:59 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 6 Nov 2006 12:51:59 -0500 Subject: LABEL BUFFER question In-Reply-To: <1162835207.3229.49.camel@localhost.localdomain> Message-ID: Try change the LAYER type from POINT to ANNOTATION. -Steve W Paul Dugas wrote: > I'm annotating some polygons using a POINT layer so I can put the > label along with a dot. I've got a BUFFER value for the LABEL and it's > removing those that are too close but it's not removing the > corresponding dots. Is there a way to have them linked so the dot is > removed when the label doesn't fit? > > Paul > > * Paul Dugas * > / Computer Engineer / * Dugas Enterprises, LLC * > 522 Black Canyon Park > Canton, GA 30114 > phone: 404.932.1355 > fax: 866.751.6494 > paul at dugas.cc http://DugasEnterprises.com > > > / This e-mail and any attachments are confidential. If you receive this > message in error or are not the intended recipient, you should not > retain, distribute, disclose or use any of this information and you > should destroy the e-mail and any attachments or copies. / > From Steve.Lime at DNR.STATE.MN.US Mon Nov 6 11:02:57 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 6 Nov 2006 13:02:57 -0600 Subject: no output for web template with 4.10 cgi In-Reply-To: <454B7C59.6050502@heidi.it> Message-ID: Checking into this... Steve >>> piero cavalieri 11/3/2006 11:28:57 AM >>> Hi all, I use cgi 4.10 (tried both from DMSolutions and TWtools) and do a request like this: http://localhost/Scripts/mapserv.exe?map=D:/Web/Site/HGis/trentino.map&layer=DTM&layer=ECW&mode=browse My web template file is an xml file: With 4.6 cgi this worked fine. Then I had to format/reinstall my WindowsXp and tried 4.10, but with the same web application I have the following cgi output: msDrawMap(): Layer 5 (laghi), 0.079s msDrawMap(): Layer 11 (i_dep_p), 0.078s instead of the xml file from web template. In temp dir I have all the images created for the request (map, scalebar ecc.), so cgi installation seems to be ok. I don't try using the old 4.6 (because I don't have it any more). Anyone could give an advice please ? Thanks Piero From Steve.Lime at DNR.STATE.MN.US Mon Nov 6 11:45:06 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 6 Nov 2006 13:45:06 -0600 Subject: no output for web template with 4.10 cgi In-Reply-To: <454F32810200008F00003BCE@co5.dnr.state.mn.us> Message-ID: I can confirm the template works ok, see: http://maps.dnr.state.mn.us/cgi-bin/mapserv410?map=/usr/local/www/docs_maps/mapserver_demos/itasca/test.map I'm not using an HTML legend in this case. Seems like a layer problem as you noted in follow-up messages. Steve >>> Steve Lime 11/6/2006 1:02:57 PM >>> Checking into this... Steve >>> piero cavalieri 11/3/2006 11:28:57 AM >>> Hi all, I use cgi 4.10 (tried both from DMSolutions and TWtools) and do a request like this: http://localhost/Scripts/mapserv.exe?map=D:/Web/Site/HGis/trentino.map&layer=DTM&layer=ECW&mode=browse My web template file is an xml file: With 4.6 cgi this worked fine. Then I had to format/reinstall my WindowsXp and tried 4.10, but with the same web application I have the following cgi output: msDrawMap(): Layer 5 (laghi), 0.079s msDrawMap(): Layer 11 (i_dep_p), 0.078s instead of the xml file from web template. In temp dir I have all the images created for the request (map, scalebar ecc.), so cgi installation seems to be ok. I don't try using the old 4.6 (because I don't have it any more). Anyone could give an advice please ? Thanks Piero From miklos.geyer at ELKB.DE Mon Nov 6 14:41:23 2006 From: miklos.geyer at ELKB.DE (Miklos Geyer) Date: Mon, 6 Nov 2006 23:41:23 +0100 Subject: SVG-Legend In-Reply-To: <454F553C.2020403@dmsolutions.ca> Message-ID: Am 06.11.2006 um 16:31 schrieb Yewondwossen Assefa: > Miklos Geyer wrote: >> Hi, >> thanks for the info, although it's not the best message ;-) >> Are there any plans to implement Lengends / Scalebars in SVG? > > There is no current plan to add these functions. The initial > project was limited to do the map output only. > If you are familiar with mapscript, It should be possible to > generate an svg legend by looping through the map/layer/class objects. yes, my applicatioin is based on php mapscript. Because I offer SVG- Downloads, the best thing would be to emded the legend into the map. Is ist possible to get and modify /add the svg-xml direct before it is written in the tmp-Dir? ... maybe a stupid question? > > >> Am 06.11.2006 um 15:31 schrieb Yewondwossen Assefa: >>> Hi There, >>> >>> Only Map output is supported in SVG. Such things as Legend and >>> Scalebar are not supported. >>> >>> Miklos Geyer wrote: >>> >>>> Hi, >>>> I'm still struggling with Legends in SVG. >>>> The same Mapfile with IMAGETYPE png shows the Legend (and >>>> Scalebar). >>>> Ist this not implemented in MapServer 4.8 ? >>>> Any help / hints / examples appreciated. >>>> Mikl?s >>> >>> >>> >>> -- >>> ---------------------------------------------------------------- >>> 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 > ---------------------------------------------------------------- > > From mgleahy at GOLDEN.NET Mon Nov 6 15:20:48 2006 From: mgleahy at GOLDEN.NET (Mike Leahy) Date: Mon, 6 Nov 2006 18:20:48 -0500 Subject: Compiling mapscript-csharp on Linux In-Reply-To: <454D8631.30809@golden.net> Message-ID: Hello again, It looks like I am having problems with the mapscript_csharp library. Earlier, I had neglected to run 'make test', and now that I do, I find I'm getting an Unhandled Exception (see below). It seems that it is the libmapscript.so that has this problem, since if I use the mapscript_csharp.dll in windows with a pre-compiled copy of mapscript.dll, it works fine as far as I can tell. Once I try to do the same in Linux with the libmapscript.so that I compiled, it fails with the same errors as the make test output. I'm not sure why I would get a System.DllNotFoundException - I tried copying the library to my lib folder. If it try 'ldd libmapscript.so', the output also looks okay. I might also point out that I had a number of funny error messages about incompatible libraries at the end of the compile process, when the php_mapscript.so library is created. These messages look something like "/usr/bin/ld: skipping incompatible /usr/lib/lxml2.so when searching for -lxml2", and the list is pretty long. So far, it seems the library loads fine in PHP, though I haven't had a chance to test it with an actual map yet. Could the fact that I'm running on an x86_64 version of Fedora 6 be a problem? I hope somebody on the list can give me some insight into this problem. Mike ============ output from 'make test' in mapscript/csharp ========== mgleahy at localhost csharp]$ make test LC_ALL=C mono ./shpdump.exe ../../tests/point.shp Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for mapscriptPINVOKE ---> System.TypeInitializationException: An exception was thrown by the type initializer for SWIGExceptionHelper ---> System.DllNotFoundException: libmapscript.so at (wrapper managed-to-native) SWIGExceptionHelper:SWIGRegisterExceptionCallbacks_mapscript (mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate) at mapscriptPINVOKE+SWIGExceptionHelper..cctor () [0x00000] --- End of inner exception stack trace --- at <0x00000> at mapscriptPINVOKE..cctor () [0x00000] --- End of inner exception stack trace --- at <0x00000> at shapefileObj..ctor (System.String filename, Int32 type) [0x00000] at ShapeDump.Main (System.String[] args) [0x00000] make: *** [test] Error 1 Mike Leahy wrote: > Hello list, > > I just finished compiling MapServer on FC6, and I was wondering about > some errors I had when I compiled the C# mapscript library. There is a > line related to the MySQL support in the csharp Makefile that looks like > so: > > MYGIS_INC= -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 > -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 > -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE > -fno-strict-aliasing -fwrapv > > If I leave it as-is, I get the following errors when I attempt to > compile the module with make: > > swig error : Unrecognized option -g > swig error : Unrecognized option -pipe > swig error : Unrecognized option -Wp,-D_FORTIFY_SOURCE=2 > swig error : Unrecognized option -fexceptions > swig error : Unrecognized option -fstack-protector > swig error : Unrecognized option --param=ssp-buffer-size=4 > swig error : Unrecognized option -m64 > swig error : Unrecognized option -mtune=generic > swig error : Unrecognized option -fno-strict-aliasing > swig error : Unrecognized option -fwrapv > Use 'swig -help' for available options. > make: *** [interface] Error 1 > > So...I removed everthing on that line starting with '-g', and it > compiled fine. My question is whether this is something that I'm likely > to run into trouble with later on - I don't generally use MySQL, so my > guess is no. If anyone has any insight related to this, I'd be > interested to hear it. > > Thanks, > Mike > From Steve.Lime at DNR.STATE.MN.US Mon Nov 6 15:39:33 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 6 Nov 2006 17:39:33 -0600 Subject: dBox howto ? In-Reply-To: <003701c701a6$11d6fed0$510a000a@jasper1.com> Message-ID: Hi Lawrence: Here's a simple example I did: http://maps.socsci.umn.edu/~lime/2006/test_dbox.html It's a simple dbox implementation that does use mapserv.js to manage coordinates on the client side, that is, MapServer is used to create images and respond to queries, nothing more. It doesn't have the button handling and all that other crap that can get in the way of seeing what's going on. Note that this is not the most naive implementation using dbox. It is possible to use dbox with a normal templated pan/zoom application (without mapserv.js at all). In this case a dbox event is used to populate a CGI variable such as imgbox or imgxy and then submit the form. I tend to prefer using mapserv.js though and do away with templates. To be clear: - dbox.js is the code that handles a rubber-band box zoom, measure and area tools, basically any interaction with the map - mapserv.js is the code that does all the coordinate handling (e.g. zoom in, out, box zoom, ...) on the client and builds MapServer CGI URLs They do not have to be used together, but have been designed to do so. Any of the other code (dlegend.js, dcontainer.js) is related to legend handling which may or may not be of interest. You certainly need not use it as the example above shows. Please let me know if you have other questions. Steve >>> "Lawrence Hartpence" 11/6/2006 7:18:35 AM >>> Hello, I have downloaded dbox and looked at different examples that implement it. I get confused trying to understand which JavaScript libraries do what. Is there anyone who has a very simple example of implementing the drag zoom functionality and nothing else? My little mind needs to chew on things in small increments to be able to understand. Thanks, Lawrence Hartpence From assefa at DMSOLUTIONS.CA Mon Nov 6 17:31:01 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 6 Nov 2006 20:31:01 -0500 Subject: SVG-Legend In-Reply-To: <11E2DA26-01D4-4DDD-9B3F-770F9ACA0792@elkb.de> Message-ID: Miklos Geyer wrote: > > Am 06.11.2006 um 16:31 schrieb Yewondwossen Assefa: > >> Miklos Geyer wrote: >> >>> Hi, >>> thanks for the info, although it's not the best message ;-) >>> Are there any plans to implement Lengends / Scalebars in SVG? >> >> >> There is no current plan to add these functions. The initial >> project was limited to do the map output only. >> If you are familiar with mapscript, It should be possible to generate >> an svg legend by looping through the map/layer/class objects. > > > yes, my applicatioin is based on php mapscript. Because I offer SVG- > Downloads, the best thing would be to emded the legend into the map. > Is ist possible to get and modify /add the svg-xml direct before it is > written in the tmp-Dir? > ... maybe a stupid question? > If I understand correctly, you could possibly do a $map->save("myfile.svg"), then load this svg with php and insert features that you want and return the result to the user. > >> >> >>> Am 06.11.2006 um 15:31 schrieb Yewondwossen Assefa: >>> >>>> Hi There, >>>> >>>> Only Map output is supported in SVG. Such things as Legend and >>>> Scalebar are not supported. >>>> >>>> Miklos Geyer wrote: >>>> >>>>> Hi, >>>>> I'm still struggling with Legends in SVG. >>>>> The same Mapfile with IMAGETYPE png shows the Legend (and Scalebar). >>>>> Ist this not implemented in MapServer 4.8 ? >>>>> Any help / hints / examples appreciated. >>>>> Mikl?s >>>> >>>> >>>> >>>> >>>> -- >>>> ---------------------------------------------------------------- >>>> 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 >> ---------------------------------------------------------------- >> >> > > > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From mgleahy at GOLDEN.NET Mon Nov 6 21:50:18 2006 From: mgleahy at GOLDEN.NET (Mike Leahy) Date: Tue, 7 Nov 2006 00:50:18 -0500 Subject: Compiling mapscript-csharp on Linux [solved] In-Reply-To: <454FC350.7080004@golden.net> Message-ID: Hello again, I finally figured out my problem. I found that if I tried compiling MapServer/MapScript-CSharp with minimal options, it seemed to work okay. After this, I was ultimately able to determine that the error comes after I compile MapServer with FastCGI enabled, then compile the mapscript csharp module. Once I dropped this option, from my configuration, it worked fine (though I still have the original issue I posted about the MySQL-related "Unrecognized options" reported by SWIG, which have to be commented-out in the Makefile). I figure it should be safe to recompile the mapserver CGI executables with FastCGI after I've finished making the csharp module. Beside this problem I've found with the mapscript module, is there any reason should I not enable FastCGI? Thanks again for any info, Mike Mike Leahy wrote: > Hello again, > > It looks like I am having problems with the mapscript_csharp library. > > Earlier, I had neglected to run 'make test', and now that I do, I find > I'm getting an Unhandled Exception (see below). It seems that it is the > libmapscript.so that has this problem, since if I use the > mapscript_csharp.dll in windows with a pre-compiled copy of > mapscript.dll, it works fine as far as I can tell. Once I try to do the > same in Linux with the libmapscript.so that I compiled, it fails with > the same errors as the make test output. I'm not sure why I would get a > System.DllNotFoundException - I tried copying the library to my lib > folder. If it try 'ldd libmapscript.so', the output also looks okay. > > I might also point out that I had a number of funny error messages about > incompatible libraries at the end of the compile process, when the > php_mapscript.so library is created. These messages look something like > "/usr/bin/ld: skipping incompatible /usr/lib/lxml2.so when searching for > -lxml2", and the list is pretty long. So far, it seems the library > loads fine in PHP, though I haven't had a chance to test it with an > actual map yet. Could the fact that I'm running on an x86_64 version of > Fedora 6 be a problem? > > I hope somebody on the list can give me some insight into this problem. > > Mike > > ============ output from 'make test' in mapscript/csharp ========== > > > mgleahy at localhost csharp]$ make test > LC_ALL=C mono ./shpdump.exe ../../tests/point.shp > > Unhandled Exception: System.TypeInitializationException: An exception > was thrown by the type initializer for mapscriptPINVOKE ---> > System.TypeInitializationException: An exception was thrown by the type > initializer for SWIGExceptionHelper ---> System.DllNotFoundException: > libmapscript.so > at (wrapper managed-to-native) > SWIGExceptionHelper:SWIGRegisterExceptionCallbacks_mapscript > (mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate) > > at mapscriptPINVOKE+SWIGExceptionHelper..cctor () [0x00000] --- End of > inner exception stack trace --- > > at <0x00000> > at mapscriptPINVOKE..cctor () [0x00000] --- End of inner exception > stack trace --- > > at <0x00000> > at shapefileObj..ctor (System.String filename, Int32 type) [0x00000] > at ShapeDump.Main (System.String[] args) [0x00000] > make: *** [test] Error 1 > > > > > Mike Leahy wrote: >> Hello list, >> >> I just finished compiling MapServer on FC6, and I was wondering about >> some errors I had when I compiled the C# mapscript library. There is >> a line related to the MySQL support in the csharp Makefile that looks >> like so: >> >> MYGIS_INC= -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 >> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 >> -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 >> -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv >> >> If I leave it as-is, I get the following errors when I attempt to >> compile the module with make: >> >> swig error : Unrecognized option -g >> swig error : Unrecognized option -pipe >> swig error : Unrecognized option -Wp,-D_FORTIFY_SOURCE=2 >> swig error : Unrecognized option -fexceptions >> swig error : Unrecognized option -fstack-protector >> swig error : Unrecognized option --param=ssp-buffer-size=4 >> swig error : Unrecognized option -m64 >> swig error : Unrecognized option -mtune=generic >> swig error : Unrecognized option -fno-strict-aliasing >> swig error : Unrecognized option -fwrapv >> Use 'swig -help' for available options. >> make: *** [interface] Error 1 >> >> So...I removed everthing on that line starting with '-g', and it >> compiled fine. My question is whether this is something that I'm >> likely to run into trouble with later on - I don't generally use >> MySQL, so my guess is no. If anyone has any insight related to this, >> I'd be interested to hear it. >> >> Thanks, >> Mike >> > From williampaul28 at YAHOO.COM Mon Nov 6 23:52:22 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Mon, 6 Nov 2006 23:52:22 -0800 Subject: how to use pictures as labels In-Reply-To: <20061103122941.69989.qmail@web42409.mail.scd.yahoo.com> Message-ID: Hi, I have put a question some time ago, if is possible to replace labels with pictures? I have attached 2 images that show I want to do. Is it possible to do it in mapserver? Thank you in advance William william paul wrote: Hi, yes I will try to illustrate: I have attached 2 pictures: image1 and image2 Image1 shows a point and around the point are 4 labels as text. I want to replace the labels as text with images (png files) Thank you William Steve Lime wrote: Maybe, can you post a picture of what you're after? >>> william paul 11/1/2006 1:12:57 AM >>> Hi Is it possible to use images to represent labels? I have a point. Arround the point I need to represent some labels. I can do this by setting-up the ANGLE in LABELS in MAP file. My question is if I can replace the text from the labels with some images. Example: in the central-upper part should be a image with an compass instead of writing North and on the central-right side should be an image with the sun instead of writing Sunrise Is it possible? Thank you in advance William --------------------------------- Everyone is raving about the all-new Yahoo! Mail. --------------------------------- Want to start your own business? Learn how on Yahoo! Small Business. --------------------------------- Sponsored Link For just $24.99/mo., Vonage offers unlimited local and long- distance calling. Sign up now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hal at MOBILEGEOGRAPHICS.COM Tue Nov 7 00:16:05 2006 From: hal at MOBILEGEOGRAPHICS.COM (Hal Mueller) Date: Tue, 7 Nov 2006 00:16:05 -0800 Subject: how to use pictures as labels In-Reply-To: <20061107075222.66215.qmail@web42402.mail.scd.yahoo.com> Message-ID: Are the surrounding labels data-dependent? Or is there a small number of states? One way to approach this is to pre-render the point icon plus "labels", and use that image as the icon for your plot. Another way to do it would be to have 5 different layers, one for each of the different images. The trick is that for the 4 layers representing the layers, you use a large icon, but with the image off-centered. That is, make 4 copies of your "image 2". In each copy, delete the red circle. In copy one, delete all but the green rectangle. In copy two, delete all but the purple diamond. Hal From lolivieri at IMTEAM.IT Tue Nov 7 01:12:18 2006 From: lolivieri at IMTEAM.IT (Leonardo Olivieri) Date: Tue, 7 Nov 2006 10:12:18 +0100 Subject: Too Many Symbols Message-ID: Hello, I used PhpMapscript on Windows. I have a total of 131 symbols in my symbol file and am getting this error: [MapServer Error]: msLoadSymbolSet(): Too many symbols defined. Has anyone come across this? Can I extend the capacity of the symbol file somehow? Thank in advanced. Leonardo From bartvde at OSGIS.NL Tue Nov 7 01:26:12 2006 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 7 Nov 2006 10:26:12 +0100 Subject: Too Many Symbols Message-ID: This unfortunately still requires a recompile of Mapserver. In mapsymbol.h it says: #define MS_MAXSYMBOLS 64 So you would need to increase this value and recompile the source. If you cannot compile Mapserver yourself, you can for instance ask DM Solutions Group to compile one for you (they might charge you for it though). Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Leonardo Olivieri Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Too Many Symbols Datum: 07/11/06 07:10 > Hello, > I used PhpMapscript on Windows. > > I have a total of 131 symbols in my symbol file and am getting this error: > > [MapServer Error]: msLoadSymbolSet(): Too many symbols defined. > > Has anyone come across this? Can I extend the capacity of the symbol file > somehow? > > Thank in advanced. > Leonardo > > From adams at TERRESTRIS.DE Tue Nov 7 01:23:28 2006 From: adams at TERRESTRIS.DE (Till Adams) Date: Tue, 7 Nov 2006 10:23:28 +0100 Subject: Too Many Symbols In-Reply-To: <7C2921E7CC18CF4AAD2F9DF56E49F64FF2847B@produzione02.IMTEAM.LOCAL> Message-ID: Leonardo, you can edit this in the mapserver source in the file mapsymbol.h. There you'll find a reference to #MS_MAXSYMBOLS 64 Set this value to what you need and recompile your mapserver Till Leonardo Olivieri schrieb: >Hello, >I used PhpMapscript on Windows. > >I have a total of 131 symbols in my symbol file and am getting this error: > >[MapServer Error]: msLoadSymbolSet(): Too many symbols defined. > >Has anyone come across this? Can I extend the capacity of the symbol file >somehow? > >Thank in advanced. >Leonardo > > -- ***************************************** * www.webmapcenter.de - Hosting * * GDIdevL 'Start GDI from CD' * * http://www.terrestris.de * ***************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From szajbel at WIDEMANN.DE Tue Nov 7 01:48:42 2006 From: szajbel at WIDEMANN.DE (Rafael Szajbel) Date: Tue, 7 Nov 2006 10:48:42 +0100 Subject: Too Many Symbols Message-ID: Hi Leonardo, at http://www.cartoweb.org/downloads.html#winInstall you can download Mapserver/Mapscript 4.6.1 where the number of possible symbols has been increased to 500. Best regards, Rafael ----- Original Message ----- From: "Till Adams" To: Sent: Tuesday, November 07, 2006 10:23 AM Subject: [*->SUSPECT<-*] Re: [UMN_MAPSERVER-USERS] Too Many Symbols > Leonardo, > > you can edit this in the mapserver source in the file mapsymbol.h. There > you'll find a reference to > > #MS_MAXSYMBOLS 64 > > Set this value to what you need and recompile your mapserver > > Till > > Leonardo Olivieri schrieb: > >>Hello, >>I used PhpMapscript on Windows. >> >>I have a total of 131 symbols in my symbol file and am getting this >>error: >> >>[MapServer Error]: msLoadSymbolSet(): Too many symbols defined. >> >>Has anyone come across this? Can I extend the capacity of the symbol file >>somehow? >> >>Thank in advanced. >>Leonardo >> > > -- > ***************************************** > * www.webmapcenter.de - Hosting * > * GDIdevL 'Start GDI from CD' * > * http://www.terrestris.de * > ***************************************** > > ------------------------------------------ > > Dipl. Geogr. Till Adams > terrestris, H. Paulsen& T. Adams GbR > Siemensstr. 8 * 53121 Bonn > Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 > info at terrestris.de * http://www.terrestris.de > From yjacolin at FREE.FR Tue Nov 7 01:29:27 2006 From: yjacolin at FREE.FR (Jacolin Yves) Date: Tue, 7 Nov 2006 10:29:27 +0100 Subject: Too Many Symbols In-Reply-To: <7C2921E7CC18CF4AAD2F9DF56E49F64FF2847B@produzione02.IMTEAM.LOCAL> Message-ID: Hello, The number of the symbol is limited to 64 symbols. You can change this by editing the mapsymbol.h file and change : #define MS_MAXSYMBOLS 64 /* maximum number of symbols in a symbol file */ Regards, Y. Le Mardi 7 Novembre 2006 10:12, Leonardo Olivieri a ?crit?: > Hello, > I used PhpMapscript on Windows. > > I have a total of 131 symbols in my symbol file and am getting this error: > > [MapServer Error]: msLoadSymbolSet(): Too many symbols defined. > > Has anyone come across this? Can I extend the capacity of the symbol file > somehow? > > Thank in advanced. > Leonardo -- ---- Yves Jacolin htp://yjacolin.gloobe.org From piero.cavalieri at HEIDI.IT Tue Nov 7 02:52:39 2006 From: piero.cavalieri at HEIDI.IT (piero cavalieri) Date: Tue, 7 Nov 2006 11:52:39 +0100 Subject: no output for web template with 4.10 cgi In-Reply-To: <454F3C620200008F00003BDB@co5.dnr.state.mn.us> Message-ID: I think it's not a layer problem, because this map file was used also 2 years ago with gmap demo application (that from dmsolutions, with php and the java applet), then with a .net (pure post) and then with .net/ajax, and never had this problem. Tested on a WinXp and Win2003Server and was ok. I think I'll try to take exatly the same configuration I still have on the Win2003 (which uses 4.6), and then replace with 4.10. If I'll still have the problem, I'll try to isolate it. Thanks P. Steve Lime ha scritto: > > I'm not using an HTML legend in this case. Seems like a layer problem > as you noted in follow-up messages. > > Steve > > >>>> Steve Lime 11/6/2006 1:02:57 PM >>> >>>> > Checking into this... > > Steve > > >>>> piero cavalieri 11/3/2006 11:28:57 AM >>>> >>>> > Hi all, > I use cgi 4.10 (tried both from DMSolutions and TWtools) and do a > request like this: > http://localhost/Scripts/mapserv.exe?map=D:/Web/Site/HGis/trentino.map&layer=DTM&layer=ECW&mode=browse > > > > > My web template file is an xml file: > > > > > > > > > > > > [legend] > ]]> > > > > > With 4.6 cgi this worked fine. > Then I had to format/reinstall my WindowsXp and tried 4.10, but with > the > same web application I have the following cgi output: > > msDrawMap(): Layer 5 (laghi), 0.079s msDrawMap(): Layer 11 (i_dep_p), > 0.078s > > instead of the xml file from web template. In temp dir I have all the > > images created for the request (map, scalebar ecc.), so cgi > installation > seems to be ok. > > I don't try using the old 4.6 (because I don't have it any more). > Anyone > could give an advice please ? > > Thanks > Piero > > From piero.cavalieri at HEIDI.IT Tue Nov 7 03:30:12 2006 From: piero.cavalieri at HEIDI.IT (piero cavalieri) Date: Tue, 7 Nov 2006 12:30:12 +0100 Subject: no output for web template with 4.10 cgi In-Reply-To: <455068A6.7080101@heidi.it> Message-ID: And, I repeat, I have the images (also with the problematic layers) correctly saved in the temp dir. Simply the xml output have additional (mapserver logs ??) lines, sometimes at the beginning, sometimes at the end of the output stream (so an exception thorws during the xml parsing, which is after mapserver produced the jpegs; if I would like to make a dirty patch in this moment, I could simply remove the log lines form the output template before doing the xml parse). A question: msDrawMap(): Layer 8 (sma_cob), 0.000s means really that mapsrver take less than 0.001s to render the layer or has to be interpreted as an error message? P. piero cavalieri ha scritto: > Yes, your output is clean. However also for me the output is clean, > with some layers. For other it's not. I have additional lines like > > msDrawMap(): Layer 8 (sma_cob), 0.000s > msDrawMap(): Layer 9 (sma_con), 0.000s > > at the end of the file. So I'll try to isolate the prblem (when I'll > have a bit of time). > > Thanks > P. > > > Steve Lime ha scritto: >> I can confirm the template works ok, see: >> >> >> http://maps.dnr.state.mn.us/cgi-bin/mapserv410?map=/usr/local/www/docs_maps/mapserver_demos/itasca/test.map >> >> >> I'm not using an HTML legend in this case. Seems like a layer problem >> as you noted in follow-up messages. >> >> Steve >> >> >>>>> Steve Lime 11/6/2006 1:02:57 PM >>> >>>>> >> Checking into this... >> >> Steve >> >> >>>>> piero cavalieri 11/3/2006 11:28:57 AM >>>>> >>>>> >> Hi all, >> I use cgi 4.10 (tried both from DMSolutions and TWtools) and do a >> request like this: >> http://localhost/Scripts/mapserv.exe?map=D:/Web/Site/HGis/trentino.map&layer=DTM&layer=ECW&mode=browse >> >> >> >> >> >> My web template file is an xml file: >> >> >> >> >> >> >> >> >> >> >> >> > [legend] >> ]]> >> >> >> >> >> With 4.6 cgi this worked fine. >> Then I had to format/reinstall my WindowsXp and tried 4.10, but with >> the same web application I have the following cgi output: >> >> msDrawMap(): Layer 5 (laghi), 0.079s msDrawMap(): Layer 11 (i_dep_p), >> 0.078s >> >> instead of the xml file from web template. In temp dir I have all the >> >> images created for the request (map, scalebar ecc.), so cgi >> installation >> seems to be ok. >> >> I don't try using the old 4.6 (because I don't have it any more). >> Anyone could give an advice please ? >> >> Thanks >> Piero >> >> > > From bwragg at TPG.COM.AU Tue Nov 7 04:15:16 2006 From: bwragg at TPG.COM.AU (Benjamin Wragg) Date: Tue, 7 Nov 2006 23:15:16 +1100 Subject: limiting layer visibility by extent Message-ID: Hi All, I was wondering if anyone knows if it's possible to limit a layers visibility by the current extent? E.g if the current extent is within the layers extent, turn the layer on I looked around and all I could find was this feature request http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=786 . It seems like Howard Butler may have got something going but I can't see mention of it in the mapfile reference on the site? Cheers, Benjamin -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.29/520 - Release Date: 6/11/2006 From janeks.kamerovskis at SILVA.LV Tue Nov 7 05:14:29 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Tue, 7 Nov 2006 15:14:29 +0200 Subject: help: getInteger(): Symbol definition error. Parsing error near ():(line 138) Message-ID: Hi, Mapserver users! Could somebody help me with error in subj.? I have symbol file that looks o'k, but I am getting error on last line of it (f.ex. 138 in this case). Nothing changes if I am changing places of different simbol's definintions! What could be wrong? Thanks in advance Janeks Kamerovskis Me?saimniec?bas konsultants Metsaliitto Latvia Sia tel. +371 7804352 fax. +371 7804340 mob. +37129191109 From szekerest at GMAIL.COM Tue Nov 7 05:17:09 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 7 Nov 2006 14:17:09 +0100 Subject: Compiling mapscript-csharp on Linux [solved] In-Reply-To: <45501E9A.8060609@golden.net> Message-ID: Mike, I consider this issue might be dedicated to a configuration issue rather than solely a mapscript C# issue. But in fact the csharp makefile.in passes the FLAGS parameter to the swig command line so as to avoid some further problems. Normally the FLAGS contains the configure specific switches and the includes. From this aspect it is slightly unfriendly that the mygis specific MYGIS_INC contains other funky options that the SWIG cannot recognize. I will look into this for a workaround ASAP. I think the fastcgi dependency is not needed for the mapscript csharp library and should be disabled when compiling the code. However it would be difficult to support all of these variations during the same configuration phase. So I guess you should make different compilations accordingly. Best Regards, Tamas Szekeres 2006/11/7, Mike Leahy : > Hello again, > > I finally figured out my problem. I found that if I tried compiling > MapServer/MapScript-CSharp with minimal options, it seemed to work okay. > After this, I was ultimately able to determine that the error comes > after I compile MapServer with FastCGI enabled, then compile the > mapscript csharp module. Once I dropped this option, from my > configuration, it worked fine (though I still have the original issue I > posted about the MySQL-related "Unrecognized options" reported by SWIG, > which have to be commented-out in the Makefile). I figure it should be > safe to recompile the mapserver CGI executables with FastCGI after I've > finished making the csharp module. Beside this problem I've found with > the mapscript module, is there any reason should I not enable FastCGI? > > Thanks again for any info, > Mike > > > Mike Leahy wrote: > > Hello again, > > > > It looks like I am having problems with the mapscript_csharp library. > > > > Earlier, I had neglected to run 'make test', and now that I do, I find > > I'm getting an Unhandled Exception (see below). It seems that it is the > > libmapscript.so that has this problem, since if I use the > > mapscript_csharp.dll in windows with a pre-compiled copy of > > mapscript.dll, it works fine as far as I can tell. Once I try to do the > > same in Linux with the libmapscript.so that I compiled, it fails with > > the same errors as the make test output. I'm not sure why I would get a > > System.DllNotFoundException - I tried copying the library to my lib > > folder. If it try 'ldd libmapscript.so', the output also looks okay. > > > > I might also point out that I had a number of funny error messages about > > incompatible libraries at the end of the compile process, when the > > php_mapscript.so library is created. These messages look something like > > "/usr/bin/ld: skipping incompatible /usr/lib/lxml2.so when searching for > > -lxml2", and the list is pretty long. So far, it seems the library > > loads fine in PHP, though I haven't had a chance to test it with an > > actual map yet. Could the fact that I'm running on an x86_64 version of > > Fedora 6 be a problem? > > > > I hope somebody on the list can give me some insight into this problem. > > > > Mike > > > > ============ output from 'make test' in mapscript/csharp ========== > > > > > > mgleahy at localhost csharp]$ make test > > LC_ALL=C mono ./shpdump.exe ../../tests/point.shp > > > > Unhandled Exception: System.TypeInitializationException: An exception > > was thrown by the type initializer for mapscriptPINVOKE ---> > > System.TypeInitializationException: An exception was thrown by the type > > initializer for SWIGExceptionHelper ---> System.DllNotFoundException: > > libmapscript.so > > at (wrapper managed-to-native) > > SWIGExceptionHelper:SWIGRegisterExceptionCallbacks_mapscript > > (mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate) > > > > at mapscriptPINVOKE+SWIGExceptionHelper..cctor () [0x00000] --- End of > > inner exception stack trace --- > > > > at <0x00000> > > at mapscriptPINVOKE..cctor () [0x00000] --- End of inner exception > > stack trace --- > > > > at <0x00000> > > at shapefileObj..ctor (System.String filename, Int32 type) [0x00000] > > at ShapeDump.Main (System.String[] args) [0x00000] > > make: *** [test] Error 1 > > > > > > > > > > Mike Leahy wrote: > >> Hello list, > >> > >> I just finished compiling MapServer on FC6, and I was wondering about > >> some errors I had when I compiled the C# mapscript library. There is > >> a line related to the MySQL support in the csharp Makefile that looks > >> like so: > >> > >> MYGIS_INC= -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 > >> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 > >> -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 > >> -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv > >> > >> If I leave it as-is, I get the following errors when I attempt to > >> compile the module with make: > >> > >> swig error : Unrecognized option -g > >> swig error : Unrecognized option -pipe > >> swig error : Unrecognized option -Wp,-D_FORTIFY_SOURCE=2 > >> swig error : Unrecognized option -fexceptions > >> swig error : Unrecognized option -fstack-protector > >> swig error : Unrecognized option --param=ssp-buffer-size=4 > >> swig error : Unrecognized option -m64 > >> swig error : Unrecognized option -mtune=generic > >> swig error : Unrecognized option -fno-strict-aliasing > >> swig error : Unrecognized option -fwrapv > >> Use 'swig -help' for available options. > >> make: *** [interface] Error 1 > >> > >> So...I removed everthing on that line starting with '-g', and it > >> compiled fine. My question is whether this is something that I'm > >> likely to run into trouble with later on - I don't generally use > >> MySQL, so my guess is no. If anyone has any insight related to this, > >> I'd be interested to hear it. > >> > >> Thanks, > >> Mike > >> > > > From karpi.lists at EMAIL.CZ Tue Nov 7 07:02:19 2006 From: karpi.lists at EMAIL.CZ (karpi) Date: Tue, 7 Nov 2006 16:02:19 +0100 Subject: itemquery by cgi mapserver (2nd-p) Message-ID: Hello.. There is one mapserver application, which im some time ago working on: http://localhost/cgi-bin/mapserv?map=/var/www/localhost/htdocs/newmap/czrep.map (MapServer version 4.8.3) If user enters a search string "Praha" result is ok, but unfortunatelly: - Serarching works only if entered qstring is exactly identical with database item (which is "Praha"). No case insensitiving. So -> qstring "praha" fails. - Searching fails on substrings, so searching "aha" fails on "Praha", and searching "Kralupy" fails on "Kralupy nad Vltavou" - Searching is limited on displayed map extents. If im zoomed out, even correct string "Praha" fails Do you solved someone some of this points before? Any expiriences? (second post - the first one disappeard somewere..) -- karpi from http://gismaster.liberix.cz From dmorissette at MAPGEARS.COM Tue Nov 7 07:04:44 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 7 Nov 2006 10:04:44 -0500 Subject: no output for web template with 4.10 cgi In-Reply-To: <45506E44.5060704@heidi.it> Message-ID: piero cavalieri wrote: > And, I repeat, I have the images (also with the problematic layers) > correctly saved in the temp dir. Simply the xml output have additional > (mapserver logs ??) lines, sometimes at the beginning, sometimes at the > end of the output stream (so an exception thorws during the xml parsing, > which is after mapserver produced the jpegs; if I would like to make a > dirty patch in this moment, I could simply remove the log lines form the > output template before doing the xml parse). There is a known issue with IIS, DEBUG messages end up mixed with the regular mapserv.exe output: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1783 The way around this is to disable the DEBUG statements in your mapfile. Another alternative is to use Apache which doesn't suffer from this problem even on Windows. > A question: msDrawMap(): Layer 8 (sma_cob), 0.000s means really that > mapsrver take less than 0.001s to render the layer or has to be > interpreted as an error message? > That's correct, that means that less than 0.001s is septn rendering that layer, either because it's a very light layer or because it is out of scale. Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at DNR.STATE.MN.US Tue Nov 7 07:16:24 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 7 Nov 2006 09:16:24 -0600 Subject: help: getInteger(): Symbol definition error. Parsing error near ():(line 138) Message-ID: You'd need to post the offending portion of the mapfile... Steve >>> Janeks Kamerovskis 11/07/06 7:14 AM >>> Hi, Mapserver users! Could somebody help me with error in subj.? I have symbol file that looks o'k, but I am getting error on last line of it (f.ex. 138 in this case). Nothing changes if I am changing places of different simbol's definintions! What could be wrong? Thanks in advance Janeks Kamerovskis Me?saimniec?bas konsultants Metsaliitto Latvia Sia tel. +371 7804352 fax. +371 7804340 mob. +37129191109 From ramen at TUTOPIA.COM Tue Nov 7 07:17:05 2006 From: ramen at TUTOPIA.COM (Pedro Meneses) Date: Tue, 7 Nov 2006 12:17:05 -0300 Subject: Configureing mapserver in someone else server Message-ID: Hello to the list I'm trying to use mapserver as cgi in two hired web hostings . In windows based server I put the following in cgi-bin directory: libcurl.dll libpq.dll NCScnet.dll NSCEcw.dll NSCEcwC.dll NSCEUtil.dll xerces-c_1_6_0.dll zlib1.dll mapserv.exe and everything goes OK In the other side, in linux based server when I put in cgi-bin directory the following : libc-2.3.2.so libcurl.so.3.0.0 libfreetype.so.6.3.5 libgc.so.1.0.2 libgdal.so.1.7.0 libidn.so.11.5.6 libjpeg.so.62.0.0 libpng12.so.0.1.2.8 libpq.so.3.1 libproj.so.0.5.0 libssl.so.0.9.7 libxerces-c.so.26.0 mapserv it does not work. What I'm missing here? Thanks in advance Pedro ______________________________ Visita http://www.tutopia.com y comienza a navegar m?s r?pido en Internet. Tutopia es Internet para todos. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kobben at ITC.NL Tue Nov 7 07:22:35 2006 From: kobben at ITC.NL (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Tue, 7 Nov 2006 16:22:35 +0100 Subject: help: getInteger(): Symbol definition error. Parsing error near ():(line 138) Message-ID: if it's always the last line, my bets are on a missing or superfluous END statement somewhere.... -- Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31-(0)534874253; mobile: +31-(0)622344955 ________________________________ Van: UMN MapServer Users List namens Steve Lime Verzonden: di 11/7/06 16:16 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] help: getInteger(): Symbol definition error. Parsing error near ():(line 138) You'd need to post the offending portion of the mapfile... Steve >>> Janeks Kamerovskis 11/07/06 7:14 AM >>> Hi, Mapserver users! Could somebody help me with error in subj.? I have symbol file that looks o'k, but I am getting error on last line of it (f.ex. 138 in this case). Nothing changes if I am changing places of different simbol's definintions! What could be wrong? Thanks in advance Janeks Kamerovskis Mezsaimniecibas konsultants Metsaliitto Latvia Sia tel. +371 7804352 fax. +371 7804340 mob. +37129191109 From Steve.Lime at DNR.STATE.MN.US Tue Nov 7 07:28:30 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 7 Nov 2006 09:28:30 -0600 Subject: limiting layer visibility by extent Message-ID: If I understand you correctly MapServer does this automatically if you set STATUS DEFAULT. The layer is always on and is shown if it's extent overlaps the view extent. Steve >>> Benjamin Wragg 11/07/06 6:15 AM >>> Hi All, I was wondering if anyone knows if it's possible to limit a layers visibility by the current extent? E.g if the current extent is within the layers extent, turn the layer on I looked around and all I could find was this feature request http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=786 . It seems like Howard Butler may have got something going but I can't see mention of it in the mapfile reference on the site? Cheers, Benjamin -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.29/520 - Release Date: 6/11/2006 From Steve.Lime at DNR.STATE.MN.US Tue Nov 7 07:25:52 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 7 Nov 2006 09:25:52 -0600 Subject: itemquery by cgi mapserver (2nd-p) Message-ID: What you describe is how things are supposed to work. There are alternatives: - case insensitivity, by default string and regular expressions are case insensitive. You can get around that by including an i at the end of the qstring. For a case-insensitive string search you'd need to delimit the string with quotes and then append the i. qstring=/Praha/i qstring='Praha'i - substrings, you need to use regular expressions to do substring matches - limited by extents, again this is the default behaviour. You often deal with it through application design. For example, if you have your search by keyword form element inside the main mapserver form then it will take on the displayed extent. Alternatively you could use a seperate form altogether. You can also use a bit of javascript to construct a query URL with the correct global extent and then submit. You'll probably need to do that anyway to format your qstring appropriately. Remember that if no extent is supplied then the search uses the default extent set in the mapfile. Steve >>> karpi 11/07/06 9:02 AM >>> Hello.. There is one mapserver application, which im some time ago working on: http://localhost/cgi-bin/mapserv?map=/var/www/localhost/htdocs/newmap/czrep.map (MapServer version 4.8.3) If user enters a search string "Praha" result is ok, but unfortunatelly: - Serarching works only if entered qstring is exactly identical with database item (which is "Praha"). No case insensitiving. So -> qstring "praha" fails. - Searching fails on substrings, so searching "aha" fails on "Praha", and searching "Kralupy" fails on "Kralupy nad Vltavou" - Searching is limited on displayed map extents. If im zoomed out, even correct string "Praha" fails Do you solved someone some of this points before? Any expiriences? (second post - the first one disappeard somewere..) -- karpi from http://gismaster.liberix.cz From Tom.Kralidis at EC.GC.CA Tue Nov 7 07:53:41 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 7 Nov 2006 10:53:41 -0500 Subject: Configureing mapserver in someone else server Message-ID: What do you mean by "it does not work"? What happens when you try a ./mapserv -v, or http://host/cgi-bin/mapserv ? ..Tom ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Pedro Meneses Sent: 07 November, 2006 10:17 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Configureing mapserver in someone else server Hello to the list I'm trying to use mapserver as cgi in two hired web hostings . In windows based server I put the following in cgi-bin directory: libcurl.dll libpq.dll NCScnet.dll NSCEcw.dll NSCEcwC.dll NSCEUtil.dll xerces-c_1_6_0.dll zlib1.dll mapserv.exe and everything goes OK In the other side, in linux based server when I put in cgi-bin directory the following : libc-2.3.2.so libcurl.so.3.0.0 libfreetype.so.6.3.5 libgc.so.1.0.2 libgdal.so.1.7.0 libidn.so.11.5.6 libjpeg.so.62.0.0 libpng12.so.0.1.2.8 libpq.so.3.1 libproj.so.0.5.0 libssl.so.0.9.7 libxerces-c.so.26.0 mapserv it does not work. What I'm missing here? Thanks in advance Pedro ________________________________ Visita www.tutopia.com y comienza a navegar m?s r?pido en Internet. Tutopia es Internet para todos. From siki at AGT.BME.HU Tue Nov 7 11:25:56 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 7 Nov 2006 18:25:56 -0100 Subject: Configureing mapserver in someone else server {Scanned} {Scanned} In-Reply-To: <003801c70280$51682e40$f72e49c8@q8f5x4> Message-ID: Hi, The behavior of windows and linux different. Windows looking for dll-s in the current directory then in the system directories. Linux uses LD_LIBRARY_PATH or /etc/ld.so.conf for the directories to search for .so files. Zoltan On Tue, 7 Nov 2006, Pedro Meneses wrote: > > Hello to the list > I'm trying to use mapserver as cgi in two hired web hostings . > In windows based server I put the following in cgi-bin directory: > > libcurl.dll > libpq.dll > NCScnet.dll > NSCEcw.dll > NSCEcwC.dll > NSCEUtil.dll > xerces-c_1_6_0.dll > zlib1.dll > mapserv.exe > > and everything goes OK > > > In the other side, in linux based server when I put in cgi-bin directory the following : > > libc-2.3.2.so > libcurl.so.3.0.0 > libfreetype.so.6.3.5 > libgc.so.1.0.2 > libgdal.so.1.7.0 > libidn.so.11.5.6 > libjpeg.so.62.0.0 > libpng12.so.0.1.2.8 > libpq.so.3.1 > libproj.so.0.5.0 > libssl.so.0.9.7 > libxerces-c.so.26.0 > mapserv > > it does not work. What I'm missing here? > Thanks in advance > Pedro > ______________________________ > Visita http://www.tutopia.com y comienza a navegar m?s r?pido en Internet. Tutopia es Internet para todos. > From nbarker at ITTVIS.COM Tue Nov 7 08:56:38 2006 From: nbarker at ITTVIS.COM (Norman Barker) Date: Tue, 7 Nov 2006 16:56:38 -0000 Subject: Configureing mapserver in someone else server {Scanned} {Scanned} Message-ID: Hi, Create a shell script in the CGI-BIN directory that in turn calls mapserver this will allow you to configure the path variables for the process that gets executed so that MapServer can find its dependencies. More here - http://mapserver.gis.umn.edu/docs/howto/cgi-wrapper-script As you say this is shared hosting the I guess you can't set the path in httpd.conf which is what I sometimes do, so try export LD_LIBRARY_PATH=/var/www/cgi-bin:$LD_LIBRARY_PATH in the script. (sorry - meant to send this to the list not just Zoltan!!) Norman -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Siki Zoltan Sent: 07 November 2006 19:26 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Configureing mapserver in someone else server {Scanned} {Scanned} Hi, The behavior of windows and linux different. Windows looking for dll-s in the current directory then in the system directories. Linux uses LD_LIBRARY_PATH or /etc/ld.so.conf for the directories to search for .so files. Zoltan On Tue, 7 Nov 2006, Pedro Meneses wrote: > > Hello to the list > I'm trying to use mapserver as cgi in two hired web hostings . > In windows based server I put the following in cgi-bin directory: > > libcurl.dll > libpq.dll > NCScnet.dll > NSCEcw.dll > NSCEcwC.dll > NSCEUtil.dll > xerces-c_1_6_0.dll > zlib1.dll > mapserv.exe > > and everything goes OK > > > In the other side, in linux based server when I put in cgi-bin directory the following : > > libc-2.3.2.so > libcurl.so.3.0.0 > libfreetype.so.6.3.5 > libgc.so.1.0.2 > libgdal.so.1.7.0 > libidn.so.11.5.6 > libjpeg.so.62.0.0 > libpng12.so.0.1.2.8 > libpq.so.3.1 > libproj.so.0.5.0 > libssl.so.0.9.7 > libxerces-c.so.26.0 > mapserv > > it does not work. What I'm missing here? > Thanks in advance > Pedro > ______________________________ > Visita http://www.tutopia.com y comienza a navegar m?s r?pido en Internet. Tutopia es Internet para todos. > From piero.cavalieri at HEIDI.IT Tue Nov 7 10:11:57 2006 From: piero.cavalieri at HEIDI.IT (piero cavalieri) Date: Tue, 7 Nov 2006 19:11:57 +0100 Subject: no output for web template with 4.10 cgi; solved In-Reply-To: <4550A08C.4070800@mapgears.com> Message-ID: Daniel Morissette ha scritto: > piero cavalieri wrote: >> And, I repeat, I have the images (also with the problematic layers) >> correctly saved in the temp dir. Simply the xml output have >> additional (mapserver logs ??) lines, sometimes at the beginning, >> sometimes at the end of the output stream (so an exception thorws >> during the xml parsing, which is after mapserver produced the jpegs; >> if I would like to make a dirty patch in this moment, I could simply >> remove the log lines form the output template before doing the xml >> parse). > > > There is a known issue with IIS, DEBUG messages end up mixed with the > regular mapserv.exe output: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1783 > > The way around this is to disable the DEBUG statements in your mapfile. > That solved! Thank you! > Another alternative is to use Apache which doesn't suffer from this > problem even on Windows. > Do you think I tell my boss to change WebServer for an application bug ? I want to stay alive... ;-) >> A question: msDrawMap(): Layer 8 (sma_cob), 0.000s means really that >> mapsrver take less than 0.001s to render the layer or has to be >> interpreted as an error message? >> > > That's correct, that means that less than 0.001s is septn rendering > that layer, either because it's a very light layer or because it is > out of scale. > In fact I realized just after sending the post, that the layer was out of scale .... ;-) > Daniel Thank u Piero From williampaul28 at YAHOO.COM Tue Nov 7 11:34:06 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Tue, 7 Nov 2006 11:34:06 -0800 Subject: ovf query error Message-ID: Hi: I have created a OVF file to generate point files from MS SqlServer and it's working OK. I can see the point but When I try to query I get: msQueryByPoint() Search returned no results. No matching record(s) found In the ovf file I have: .... UID .... In Map file: class template.html end header header_template.html footer footer_template.html in template I have: .....[UID] The table in the SQL Server I have 3 columns: UID type uniqueidentifier x_coord type float y_coord type float I don't see where I do wrong Thank you in advance William --------------------------------- Sponsored Link Talk more and pay less. Vonage can save you up to $300 a year on your phone bill. Sign up now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bwragg at TPG.COM.AU Tue Nov 7 14:02:22 2006 From: bwragg at TPG.COM.AU (Benjamin Wragg) Date: Wed, 8 Nov 2006 09:02:22 +1100 Subject: limiting layer visibility by extent In-Reply-To: <455051BF0200008F00003C84@co5.dnr.state.mn.us> Message-ID: Thanks for the response, not quite what I mean't though. I need the layer to turn only when your view extent is completely within the extent of the layer. Its what a client whats for some raster tiles. E.g if your completely within a tile turn it on but if your half over the extent of one tile and half over the extent of another, turn them both off. I know it sounds a little silly to do this (why not just display both tiles!) but this what the client watns and I'm just trying to figure out if its possible. :) Cheers, Benjamin -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime Sent: Wednesday, 8 November 2006 2:29 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] limiting layer visibility by extent If I understand you correctly MapServer does this automatically if you set STATUS DEFAULT. The layer is always on and is shown if it's extent overlaps the view extent. Steve >>> Benjamin Wragg 11/07/06 6:15 AM >>> Hi All, I was wondering if anyone knows if it's possible to limit a layers visibility by the current extent? E.g if the current extent is within the layers extent, turn the layer on I looked around and all I could find was this feature request http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=786 . It seems like Howard Butler may have got something going but I can't see mention of it in the mapfile reference on the site? Cheers, Benjamin -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.29/520 - Release Date: 6/11/2006 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.29/520 - Release Date: 6/11/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.29/520 - Release Date: 6/11/2006 From Debbie.Pagurek at EC.GC.CA Tue Nov 7 14:09:30 2006 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Tue, 7 Nov 2006 17:09:30 -0500 Subject: ovf query error Message-ID: in your mapfile, make sure you have DUMP TRUE (you can put this somewhere in your layer) Hope that works, D. Pagurek _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of william paul Sent: Tuesday, November 07, 2006 2:34 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] ovf query error Hi: I have created a OVF file to generate point files from MS SqlServer and it's working OK. I can see the point but When I try to query I get: msQueryByPoint() Search returned no results. No matching record(s) found In the ovf file I have: .... UID .... In Map file: class template.html end header header_template.html footer footer_template.html in template I have: .....[UID] The table in the SQL Server I have 3 columns: UID type uniqueidentifier x_coord type float y_coord type float I don't see where I do wrong Thank you in advance William _____ Sponsored Link Talk more and pay less. Vonage can save you up to $300 a year on your phone bill. Sign up now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From williampaul28 at YAHOO.COM Tue Nov 7 14:28:06 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Tue, 7 Nov 2006 14:28:06 -0800 Subject: ovf query error In-Reply-To: <3F34A5A15450C74C813BA20E31DBB45103714539@ncrx3.ncr.int.ec.gc.ca> Message-ID: Thank you, but it didn't solved the problem. I have created in the SQL Server a column called FID. With this column and removing the ... line from the ovf file I can make query, but when I click on different point I get the same result: the first tupple from Sql Server table. For each point I query I get only the records for the first point. Any ideas? or whe I can setup mycolumnid? William "Pagurek,Debbie [NCR]" wrote: in your mapfile, make sure you have DUMP TRUE (you can put this somewhere in your layer) Hope that works, D. Pagurek --------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of william paul Sent: Tuesday, November 07, 2006 2:34 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] ovf query error Hi: I have created a OVF file to generate point files from MS SqlServer and it's working OK. I can see the point but When I try to query I get: msQueryByPoint() Search returned no results. No matching record(s) found In the ovf file I have: .... UID .... In Map file: class template.html end header header_template.html footer footer_template.html in template I have: .....[UID] The table in the SQL Server I have 3 columns: UID type uniqueidentifier x_coord type float y_coord type float I don't see where I do wrong Thank you in advance William --------------------------------- Sponsored Link Talk more and pay less. Vonage can save you up to $300 a year on your phone bill. Sign up now. --------------------------------- Sponsored Link Free Uniden 5.8GHz Phone System with Packet8 Internet Phone Service -------------- next part -------------- An HTML attachment was scrubbed... URL: From gluker at SCU.EDU.AU Tue Nov 7 14:53:53 2006 From: gluker at SCU.EDU.AU (Greg Luker) Date: Wed, 8 Nov 2006 09:53:53 +1100 Subject: ovf query error Message-ID: Hi William, I have not been able to successfully do this sort of thing, but one workaround is to try nquery, it seems to return all related records. Thanks, Greg. Greg Luker GIS Lab Manager, Southern Cross University Lismore, AUSTRALIA. gluker at scu.edu.au phone 61 2 66203026 From azza at LISASOFT.COM Mon Nov 6 14:55:32 2006 From: azza at LISASOFT.COM (Andrew Hughes) Date: Tue, 7 Nov 2006 09:25:32 +1030 Subject: Mapserver WMS ECW Datasource(s) Message-ID: An HTML attachment was scrubbed... URL: From hal at MOBILEGEOGRAPHICS.COM Tue Nov 7 17:28:18 2006 From: hal at MOBILEGEOGRAPHICS.COM (Hal Mueller) Date: Tue, 7 Nov 2006 17:28:18 -0800 Subject: how to use pictures as labels In-Reply-To: <20061107160424.56693.qmail@web42410.mail.scd.yahoo.com> Message-ID: I don't have an example, but let me try explaining another way. For option one, I was suggesting that you figure out, in advance, all possible combinations of all possible symbols, and generate all possible icons that correspond to those states. In retrospect I don't like that idea as much. For option two, think of it in two steps. Consider only the image that will be drawn to the upper-right of the mapped location. Say you're mapping towns: if the town's economy is industrial draw a red circle, and if it's agricultural draw a green square. Now hopefully you understand how to map just that much of it, drawing the red circle or green square at the exact location of the town: define two classes in your layer for "economy type", with SYMBOL definitions for the red circle and green square. At that point you have a map which draws one of the components of your compound symbol, but it draws it dead center on the city location, and you need it offset. Let's say your symbol fits in a box 8 pixels by 8 pixels. Now redefine your symbol. Put it in a box that's 24 pixels by 24 pixels. But don't put it in the center of that box--put it in the upper right corner instead, and leave the other 8 cells blank. You can draw that 24x24 symbol at the center point of the city, and your red circle/green square will be offset. Now repeat that for each of your other "image labels", with one LAYER per "label", and one CLASS for each different symbol that could appear in that corner of the icon. Hal At 8:04 AM -0800 11/7/06, william paul wrote: >Hi Hal: > >Do you have an example with a MAP file? I don't understand the first >option. In the second one how can I use OFF- Centered? > >The icons depends on the attribute data, which means that some >points will have less symbols and other points will have more symbols > >William > >Hal Mueller wrote: > >Are the surrounding labels data-dependent? Or is there a small >number of states? > >One way to approach this is to pre-render the point icon plus >"labels", and use that image as the icon for your plot. > >Another way to do it would be to have 5 different layers, one for >each of the different images. The trick is that for the 4 layers >representing the layers, you use a large icon, but with the image >off-centered. That is, make 4 copies of your "image 2". In each >copy, delete the red circle. In copy one, delete all but the green >rectangle. In copy two, delete all but the purple diamond. > >Hal > > > > >Everyone is raving about >the >all-new Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From grabiel at MYWAY.COM Tue Nov 7 23:32:27 2006 From: grabiel at MYWAY.COM (grabiel@myway.com) Date: Wed, 8 Nov 2006 02:32:27 -0500 Subject: Adding Dynamic polygon using PHP Mapscript? Message-ID: Hi I have added the dynamic lines on the map using PHP mapscript on client side browser. Now i want to add a polygon in the sameway, i can use the dynamic lines algo to add a polygon to the map but the shape feature that i will add dynamically will be of type line(Inline point for dynamic point or inline line for dynamic line in the mapfile). Can anyone guide me howto add the polygon using a shape that will be also of type polygon so that i can calculate the area of the polygon. Any idea will be highly appreciated With regards Grabiel _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From neumann at KARTO.BAUG.ETHZ.CH Wed Nov 8 01:30:30 2006 From: neumann at KARTO.BAUG.ETHZ.CH (Andreas Neumann) Date: Wed, 8 Nov 2006 10:30:30 +0100 Subject: Springer Encyclopedia of GIS, UMN entry Message-ID: Hello, I am a contributing author for the upcoming Springer Encyclopedia of GIS (Entries for SVG and Webmapping) and noticed that they have entries for some commercial GIS and spatial DB products (e.g. Oracle, Smallworld) but don't mention OS or other commercial alternatives, such as UMN Mapserver, Postgis, etc. I asked the editors and they agree to include additional entries into the encyclopedia if they can be written until december. Are there any volunteers that would be willing to write an entry for UMN? Additional information is available at http://refworks.springer-sbm.com/geograph/ If you are interested in writing such an entry (3000-4000 words, 8-12 pages incl figures), please contact me and I'll send you the emails of the editors and responsible person at Springer. Entries can be written in Word or Latex. Thanks for your interest, Andreas -- ---------------------------------------------- Andreas Neumann Institute of Cartography ETH Zurich Wolfgang-Paulistrasse 15 CH-8093 Zurich, Switzerland Phone: ++41-44-633 3031, Fax: ++41-44-633 1153 e-mail: neumann at karto.baug.ethz.ch www: http://www.carto.net/neumann/ SVG.Open: http://www.svgopen.org/ Carto.net: http://www.carto.net/ From williampaul28 at YAHOO.COM Wed Nov 8 01:42:29 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 8 Nov 2006 01:42:29 -0800 Subject: ovf query error In-Reply-To: <008901c702bf$98fc5030$155a820a@WSG204Giga> Message-ID: Thank you Greg: But it didn't solved the problem. When I query I get only the first tupple from the database, despite the layer I query It is a common problem that OVF files don't work all the time? I really don't see where I do wrong and why I can setup my FID column William Greg Luker wrote: Hi William, I have not been able to successfully do this sort of thing, but one workaround is to try nquery, it seems to return all related records. Thanks, Greg. Greg Luker GIS Lab Manager, Southern Cross University Lismore, AUSTRALIA. gluker at scu.edu.au phone 61 2 66203026 --------------------------------- Access over 1 million songs - Yahoo! Music Unlimited. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramen at TUTOPIA.COM Wed Nov 8 03:40:25 2006 From: ramen at TUTOPIA.COM (Pedro Meneses) Date: Wed, 8 Nov 2006 08:40:25 -0300 Subject: Configureing mapserver in someone else server Message-ID: Thanks for your e-mails Well I mean that when i do http://host/cgi-bin/mapserv I get the typical: " 500 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. " I will try tyhe cgi-wrapper-script... Pedro ---------------------------------------------------------- Tom Kralidis wrotre: What do you mean by "it does not work"? What happens when you try a ./mapserv -v, or http://host/cgi-bin/mapserv ? ..Tom ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Pedro Meneses Sent: 07 November, 2006 10:17 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Configureing mapserver in someone else server Hello to the list I'm trying to use mapserver as cgi in two hired web hostings . In windows based server I put the following in cgi-bin directory: libcurl.dll libpq.dll NCScnet.dll NSCEcw.dll NSCEcwC.dll NSCEUtil.dll xerces-c_1_6_0.dll zlib1.dll mapserv.exe and everything goes OK In the other side, in linux based server when I put in cgi-bin directory the following : libc-2.3.2.so libcurl.so.3.0.0 libfreetype.so.6.3.5 libgc.so.1.0.2 libgdal.so.1.7.0 libidn.so.11.5.6 libjpeg.so.62.0.0 libpng12.so.0.1.2.8 libpq.so.3.1 libproj.so.0.5.0 libssl.so.0.9.7 libxerces-c.so.26.0 mapserv it does not work. What I'm missing here? Thanks in advance Pedro ______________________________ Visita http://www.tutopia.com y comienza a navegar m?s r?pido en Internet. Tutopia es Internet para todos. From Z.Rynduch at ECOFYS.PL Wed Nov 8 05:03:39 2006 From: Z.Rynduch at ECOFYS.PL (Zygmunt Rynduch) Date: Wed, 8 Nov 2006 14:03:39 +0100 Subject: Adding Dynamic polygon using PHP Mapscript? Message-ID: Maybe this is what you want: --------- Mapfile content: ---------- LAYER NAME "layer_name" STATUS DEFAULT TYPE POLYGON PROJECTION # projection definition END CLASS # class definition e.g. COLOR 255 0 0 END END -------- Mapscript file content: -------- $MyLayer = $map->getLayerByName("layer_name"); $NewLine = ms_newLineObj(); $NewLine->addXY($X1,$Y1); $NewLine->addXY($X2,$Y2); $NewLine->addXY($X3,$Y3); ... $NewLine->addXY($X1,$Y1); $NewShape = ms_newShapeObj(MS_SHAPE_POLYGON); $NewShape->add($NewLine); $label = "some text"; $NewShape->set("text",$label); $MyLayer->AddFeature($NewShape); $NewShape->free(); $NewLine->free(); I hope this work. On my configuration works (Mapserver 4.8, PHP 5.1.4, IIS 5.0, Windows 2000 Server) Zygmunt -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of grabiel at myway.com Sent: Wednesday, November 08, 2006 8:32 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Adding Dynamic polygon using PHP Mapscript? Hi I have added the dynamic lines on the map using PHP mapscript on client side browser. Now i want to add a polygon in the sameway, i can use the dynamic lines algo to add a polygon to the map but the shape feature that i will add dynamically will be of type line(Inline point for dynamic point or inline line for dynamic line in the mapfile). Can anyone guide me howto add the polygon using a shape that will be also of type polygon so that i can calculate the area of the polygon. Any idea will be highly appreciated With regards Grabiel _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From jmckenna at DMSOLUTIONS.CA Wed Nov 8 05:37:24 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 8 Nov 2006 08:37:24 -0500 Subject: Too Many Symbols In-Reply-To: <7C2921E7CC18CF4AAD2F9DF56E49F64FF2847B@produzione02.IMTEAM.LOCAL> Message-ID: For the record the MS4W limit is 128 symbols, but that doesn't help your problem. jeff Leonardo Olivieri wrote: > Hello, > I used PhpMapscript on Windows. > > I have a total of 131 symbols in my symbol file and am getting this error: > > [MapServer Error]: msLoadSymbolSet(): Too many symbols defined. > > Has anyone come across this? Can I extend the capacity of the symbol file > somehow? > > Thank in advanced. > Leonardo > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From Debbie.Pagurek at EC.GC.CA Wed Nov 8 06:28:38 2006 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Wed, 8 Nov 2006 09:28:38 -0500 Subject: ovf query error Message-ID: Hmm - interesting. The symptom that you discuss here - the fact that without the FID specified you only get the first record - indicated that you need to specify a FID in your OVF file. What version on SQL Server are you using? And, is your FID column defined in SQL server as the primary key on the table? By the way - I use SQL Server 2000 and I do not have to specify FID in my OVF to get my queries working. Anyone else have any suggestions?? D. Pagurek _____ From: william paul [mailto:williampaul28 at yahoo.com] Sent: Tuesday, November 07, 2006 5:28 PM To: Pagurek,Debbie [NCR]; mapserver mapserver Subject: Re: [UMN_MAPSERVER-USERS] ovf query error Thank you, but it didn't solved the problem. I have created in the SQL Server a column called FID. With this column and removing the ... line from the ovf file I can make query, but when I click on different point I get the same result: the first tupple from Sql Server table. For each point I query I get only the records for the first point. Any ideas? or whe I can setup mycolumnid? William "Pagurek,Debbie [NCR]" wrote: in your mapfile, make sure you have DUMP TRUE (you can put this somewhere in your layer) Hope that works, D. Pagurek _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of william paul Sent: Tuesday, November 07, 2006 2:34 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] ovf query error Hi: I have created a OVF file to generate point files from MS SqlServer and it's working OK. I can see the point but When I try to query I get: msQueryByPoint() Search returned no results. No matching record(s) found In the ovf file I have: .... UID .... In Map file: class template.html end header header_template.html footer footer_template.html in template I have: .....[UID] The table in the SQL Server I have 3 columns: UID type uniqueidentifier x_coord type float y_coord type float I don't see where I do wrong Thank you in advance William _____ Sponsored Link Talk more and pay less. Vonage can save you up to $300 a year on your phone bill. Sign up now. _____ Sponsored Link Free Uniden 5.8GHz Phone System with Packet8 Internet Phone Service -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dejan.Gambin at PULA.HR Wed Nov 8 06:48:57 2006 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Wed, 8 Nov 2006 15:48:57 +0100 Subject: Oracle attribute query Message-ID: Hi, Is it possible to join the polygon shapefile that has a "key column" in its dbf file with the table in my Oracle 9i database for attribute query? Is it possible to configure through the map file? regards, dejan From M.vanExel at BRIDGIS.NL Wed Nov 8 07:20:28 2006 From: M.vanExel at BRIDGIS.NL (Martijn van Exel) Date: Wed, 8 Nov 2006 16:20:28 +0100 Subject: Display raster at 'actual' size Message-ID: Hello, dear mappers, I'm trying to accomplish the following: * Have user upload a polygon as a SHP file * Return a map with a topographic background (raster file) and the poly as a layer on top of this. I use ASP.NET and the C# implementation of MapScript to accomplish this in a simple web interface. All works well, BUT for one thing: The output should be at a *calculated* scale, such that that the raster background is always displayed at its 'native' size. And ideally it should output at 300DPI to be suitable for printing. The current method I employ is: * Init MapObj with a mapfile that has the background raster file * Read in SHP as a ShapeObj and add to the map. * Get the extent of the ShapeObj * Add a margin * Use this extent to set the map.width and map.height * Draw. But I don't want to set the w/h and calculate the scale, what I want to do is SET the scale and have the W/H calculated. Is this an option? And how about outputting @ 300DPI? I know at least tiff supports internal resolution. Thanks a bundle. Met vriendelijke groeten, Bridgis B.V. ? Martijn van Exel Manager Data Service Centre ? Sint Walburgkerkpad 3 4001 MG? Tiel T?(0344)?63 62 42 M (06) 534 75 786 ?? *Kijk op onze vernieuwde website www.bridgis.nl* From funkbucket at GMAIL.COM Wed Nov 8 08:02:50 2006 From: funkbucket at GMAIL.COM (Ben Tuttle) Date: Wed, 8 Nov 2006 09:02:50 -0700 Subject: WCS return image naming Message-ID: Hi all- I am working on a server that will be primarily for WMS and WCS. Whenever I make a request for an image from through WCS the resulting image is named mapserv.tif. I am wondering if there is a way to set the name of the file returned so it is more meaningful to the user? An example of my mapfile is below in case it helps. NAME DMSP-Test STATUS ON SIZE 864 312 EXTENT -180 -65 180 65 UNITS dd SHAPEPATH "/mnt/anchor1/eogmaps/data/" IMAGECOLOR 255 255 255 WEB IMAGEPATH "/mnt/anchor1/eogmaps/www/html/tmp/" IMAGEURL "/tmp/" METADATA "wms_title" "DMSP Demo Server" ##required "wms_onlineresource" "http://eogmaps.ngdc.noaa.gov/cgi-bin/mapserv.exe?" ##required "wms_srs" "EPSG:4326" ##recommended END END PROJECTION "init=epsg:4326" ##required END OUTPUTFORMAT NAME GEOTIFF DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "BYTE" EXTENSION "tif" END SYMBOL NAME "BigLine" TYPE ellipse POINTS 1 1 END END LAYER NAME "Countries" METADATA "wms_title" "Countries" ##required END STATUS on TYPE polygon DATA "world_adm0.shp" CLASS NAME "Countries" STYLE SYMBOL BigLine SIZE 2 OUTLINECOLOR 255 75 0 END END # class PROJECTION "init=epsg:4326" END END # layer LAYER NAME "F152003_stretched" METADATA "wms_title" "F152003_stretched" ##required END STATUS on #PROCESSING "SCALE=AUTO" PROCESSING "SCALE_1=0,63" TILEINDEX "tiles/F152003_v2_stable_lights_index.shp" TILEITEM "Location" # DATA "F152003_stretched.tif" TYPE raster PROJECTION "init=epsg:4326" END END LAYER NAME "F152003_v2_stable_lights" METADATA wcs_description "F152003 v2 stable lights" wcs_name "DMSP Annual Composite" wcs_label "F152003" ows_srs "EPSG:4326" ows_extent "-180 -65 180 65" wcs_resolution "0.0083 -0.0083" wcs_bandcount "1" wcs_formats "GEOTIFF" wcs_nativeformat "8-bit GeoTIF" wcs_rangeset_name "F152003_v2_stable_lights" wcs_rangeset_label "F152003" wcs_rangeset_axes "bands" wcs_bands_rangeitem "_bands" wcs_bands_name "bands" wcs_bands_semantic "http://www.ngdc.noaa.gov/dmsp/" wcs_bands_refSys "European Petroleum Survey Group (EPSG)" wcs_bands_label "F152003" wcs_bands_values "VIS" END STATUS off DUMP true TILEINDEX "tiles/F152003_v2_stable_lights_index.shp" TILEITEM "Location" TYPE raster PROJECTION "init=epsg:4326" END END END #Mapfile From Ken.Boss at DNR.STATE.MN.US Wed Nov 8 08:36:02 2006 From: Ken.Boss at DNR.STATE.MN.US (Ken Boss) Date: Wed, 8 Nov 2006 10:36:02 -0600 Subject: Mapserver WMS ECW Datasource(s) Message-ID: Hello Andrew-- Mailing list: If you can't search at http://lists.umn.edu/archives/mapserver-users.html (?), maybe try the gmane archive at http://dir.gmane.org/gmane.comp.gis.mapserver.user. Debugging: You can set DEBUG ON in either the MAP or LAYER object(s) in your mapfile. The MapServer website is your friend - at http://mapserver.gis.umn.edu, type "debug" into the search box at upper right, and follow the links for Map and Layer for more info. ECW support: is provided through GDAL. GDAL must be linked against the ECW external libraries. The easiest way to manage that is to get it all pre-built in FWTools (http://fwtools.maptools.org/); both Linux and Windows distros are available. HTH, --Ken >>> Andrew Hughes 11/6/2006 4:55 PM >>> Hey All, I would like to use ECW as a data source and have tried with the latest fgs (mapserver v4.6 and also tried with another install v4.8.1) but I am obviously having some trouble...... I have "rtfm" : http://mapserver.gis.umn.edu/docs/howto/raster_data/#how-are-rasters-added-to-a-map-file I apologise going to the list for this information because I'm sure it has been covered before! But apparently you need a "LISTSERV password" to search the mailing list archieve's (wtf???) and signing up to the list did not provide me with a "LISTSERV password".... --------------------------------------------------------------------------------------------------------------------- Firstly.... is there a way to turn debugging on??? My only debug message is "msDrawMap(): Failed to draw layer named 'ecw'." Which is kind of obvious ;) ... --------------------------------------------------------------------------------------------------------------------- Secondly... perhaps there is something wrong with my layer definition (my other layers in this file work perfect)??? LAYER NAME "ecw" DATA "/var/ecw/my.ecw" TYPE RASTER STATUS ON MINSCALE 00000.0 MAXSCALE 1000000.0 END --------------------------------------------------------------------------------------------------------------------- Thirdly, perhaps my "FGS" installation does not allow me to read ecw???????? azzabox:/opt/fgs# ./www/cgi-bin/mapserv -v MapServer version 4.6.0-beta2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE --------------------------------------------------------------------------------------------------------------------- Finally, while I have you attention I know there are several free and public datasources.... I have found some Landsat available here: http://www.geotorrent.org/ and would welcome any further data sources! --------------------------------------------------------------------------------------------------------------------- Many thanks in advance --AH p.s. I'm @ #mapserver From skgstyle at YAHOO.COM Wed Nov 8 09:21:54 2006 From: skgstyle at YAHOO.COM (Sean Grimland) Date: Wed, 8 Nov 2006 09:21:54 -0800 Subject: PHP Mapscript connection to PostGIS In-Reply-To: Message-ID: Hello List, Can someone please tell me what I am doing wrong in the below code. I cannot connect to a PostGIS database, I get ths error - msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with connect string 'Resource id #2'. Error reported was 'missing "=" after "Resource" in connection info string '. $db_handle = pg_connect("user=* dbname=* host=* password=* port=5432") or die('Could not connect: ' . pg_last_error()); $admin = ms_newLayerObj($oMap); $admin->set( "name", "admin" ); $admin->set( "type", MS_LAYER_POLYGON); $admin->set( "connectiontype", MS_POSTGIS ); $admin->set( "connection", $db_handle ); $admin->set( "status", MS_ON) ; $admin->set( "data", "the_geom from cadastre.world_admin_2002" ); I've tried this too with no luck - //$admin->set( "data", "the_geom from ( select * from cadastre.world_admin_2002 ) as foo using unique gid using SRID=4326" ); $oImage = $oMap->draw(); $url = $oImage->saveImage($img_path.$image_name); I am using ms4w2.2 with PHP 5, Postgresql 8.1 Thanks in advance! Sean Grimland ____________________________________________________________________________________ Sponsored Link Mortgage rates near 39yr lows. $420k for $1,399/mo. Calculate new payment! http://www.LowerMyBills.com/lre From samnyoung at HOTMAIL.COM Wed Nov 8 10:50:17 2006 From: samnyoung at HOTMAIL.COM (Sam Young) Date: Wed, 8 Nov 2006 09:50:17 -0900 Subject: modify info window in dbox for ms4w Message-ID: Where do I modify the properties for the window that opens using the info tool in the dbox application? I would like to change the size, get rid of the toolbar, etc. Thanks, Sam _________________________________________________________________ Get today's hot entertainment gossip http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001 From samnyoung at HOTMAIL.COM Wed Nov 8 11:44:23 2006 From: samnyoung at HOTMAIL.COM (Sam Young) Date: Wed, 8 Nov 2006 10:44:23 -0900 Subject: dbox legend in ms4w Message-ID: I am having trouble getting my legend to display and function properly using the dbox application (which is a really great application thanks to the author!). It was suggested to me that I put an alert in the code to debug it, however I'm not making anyway. Does anyone have any suggestions? Below is the code where I think the error is located, but I'm not sure. window.onload = function() { main.initialize(); reference.initialize(); container.initialize(); domouseclick('zoomin'); // legend setup var legend_xml = get_content(config.dlegend_xml_executable + "?map=" + config.mapfile + "&server=" + config.dlegend_server); alert(legend_xml); legend.initialize("legend_container", legend_xml); legend.setHandler(DLEGEND_CLICK, ms.setLayer); ms.draw(); } Thanks, Sam _________________________________________________________________ Try Search Survival Kits: Fix up your home and better handle your cash with Live Search! http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmtagline From Ken.Boss at DNR.STATE.MN.US Wed Nov 8 11:44:34 2006 From: Ken.Boss at DNR.STATE.MN.US (Ken Boss) Date: Wed, 8 Nov 2006 13:44:34 -0600 Subject: modify info window in dbox for ms4w In-Reply-To: Message-ID: In the querying callback function. If you are working off the dbox example.html template, it looks like: // // querying callback // ms.setHandler(MAPSERV_QUERY, ms_query); function ms_query() { querywin = window.open(ms.url, 'querywin'); querywin.focus(); } You can add the normal options string to the window.open() call, e.g.: querywin = window.open(ms.url, 'querywin', 'height=725,width=750,resizable,scrollbars'); HTH, --Ken >>> Sam Young 11/8/2006 12:50:17 PM >>> Where do I modify the properties for the window that opens using the info tool in the dbox application? I would like to change the size, get rid of the toolbar, etc. Thanks, Sam _________________________________________________________________ Get today's hot entertainment gossip http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001 From kevin at PEOPLEGIS.COM Wed Nov 8 12:08:27 2006 From: kevin at PEOPLEGIS.COM (Kevin Flanders) Date: Wed, 8 Nov 2006 15:08:27 -0500 Subject: check for adobe reader Message-ID: Does anyone know of a php check for Adobe Reader.....I have found that my pdf maps can cause alot of windows to open if a client does not have Adobe Reader and they are using Firefox. Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From volunteer at SPATIALLINK.ORG Wed Nov 8 12:16:37 2006 From: volunteer at SPATIALLINK.ORG (siva) Date: Wed, 8 Nov 2006 13:16:37 -0700 Subject: check for adobe reader Message-ID: strstr($_SERVER["HTTP_USER_AGENT"], "WebCapture") > -------- Original Message -------- > Subject: [UMN_MAPSERVER-USERS] check for adobe reader > From: Kevin Flanders > Date: Wed, November 08, 2006 3:08 pm > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Does anyone know of a php check for Adobe Reader.....I have found that my pdf maps can cause alot of windows to open if a client does not have Adobe Reader and they are using Firefox. > > Kevin From williampaul28 at YAHOO.COM Wed Nov 8 12:26:14 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 8 Nov 2006 12:26:14 -0800 Subject: write coordinates into SQL Server Message-ID: Hi: I would like to create point data by clicking on the map and write the coordinates into SQl Server 2005. It's the opposite of OVF file for creating points from 2 columns from a DBMS (like Sql Server, MySql) When I click on the map I would like to take automatically the coordinates and record them together with other attributes into a table (Sql Server|) with 2 columns for x and y coordinates Is it possible to do it? I am using mapserver 4.10, dBox on IIS server and ASPX with Sql Server 2005 Thank you in advance William --------------------------------- Sponsored Link For just $24.99/mo., Vonage offers unlimited local and long- distance calling. Sign up now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ken.Boss at DNR.STATE.MN.US Wed Nov 8 12:29:59 2006 From: Ken.Boss at DNR.STATE.MN.US (Ken Boss) Date: Wed, 8 Nov 2006 14:29:59 -0600 Subject: dbox legend in ms4w In-Reply-To: Message-ID: What shows up in the alert box? Most likely there is a problem with the mapscript configuration on your server. A javascript console window might prove helpful as well. There is some (admittedly sketchy) documentation at http://maps.dnr.state.mn.us/tools/dbox/README_install.html (also in the dbox demo distro) that might provide a further clue or two. Also search the list for dbox. A good explanation of how the mapfile metadata items are used to configure the legend is at http://article.gmane.org/gmane.comp.gis.mapserver.user/20286/. --Ken >>> Sam Young 11/8/2006 1:44:23 PM >>> I am having trouble getting my legend to display and function properly using the dbox application (which is a really great application thanks to the author!). It was suggested to me that I put an alert in the code to debug it, however I'm not making anyway. Does anyone have any suggestions? Below is the code where I think the error is located, but I'm not sure. window.onload = function() { main.initialize(); reference.initialize(); container.initialize(); domouseclick('zoomin'); // legend setup var legend_xml = get_content(config.dlegend_xml_executable + "?map=" + config.mapfile + "&server=" + config.dlegend_server); alert(legend_xml); legend.initialize("legend_container", legend_xml); legend.setHandler(DLEGEND_CLICK, ms.setLayer); ms.draw(); } Thanks, Sam _________________________________________________________________ Try Search Survival Kits: Fix up your home and better handle your cash with Live Search! http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmtagline From samnyoung at HOTMAIL.COM Wed Nov 8 13:43:54 2006 From: samnyoung at HOTMAIL.COM (Sam Young) Date: Wed, 8 Nov 2006 12:43:54 -0900 Subject: dbox legend question Message-ID: Thanks for the help with my previous questions. The 2 javascript Console Errors I get when I load my html file are: Error: xEvent is not defined Source File: http://localhost/src/javascript/mapserver/dbox.js Line: 486 Error: this.treeLegend has no properties Source File: http://localhost/src/javascript/mapserver/dlegend.js Line: 56 The alert(legend_xml) produces an alert that is probably too lenghty to post in an e-mail, but I'd be more than happy to get it to someone if they are interested. Thanks for all the help and the great dbox application! Sam _________________________________________________________________ All-in-one security and maintenance for your PC. Get a free 90-day trial! http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=http://www.windowsonecare.com/?sc_cid=msn_hotmail From kaneda at JHU.EDU Wed Nov 8 14:26:26 2006 From: kaneda at JHU.EDU (Keith Kaneda) Date: Wed, 8 Nov 2006 17:26:26 -0500 Subject: Actual location of True Type font files for fonts in Font Suitcases under Mac OS X 10.4. Message-ID: Hello List, I recently installed the MapServer 4.10.0 cgi binaries for OS X on a dual 2.0 GHz PowerPC G5 system running OS X 10.4.8 and started working through the exercises from Bill Kropla's "Beginning MapServer: Open Source GIS Development" book. When trying to work through several map examples which use True Type fonts, I would keep getting the error message similar to the following: msGetLabelSize(): TrueType Font error. Requested font (arialbd) not found. This would occur when I would try to point to the OS X installed fonts in /Library/Fonts or ~/Library/Fonts in my font.list file, e.g. arial /Library/Fonts/Arial The pathname I listed above points to a file of Kind "Font Suitcase". In the case of the Arial font, the Finder lists the size of this file as 312 KB. When you open the font in Font Book, it is possible to see which files are included in the Font Suitcase and by choosing Preview | Show Font Info, you can confirm that a font (e.g. Arial Regular) is indeed a TrueType font. Font Book lists the location of the font as either /Library/Fonts or ~/Library/Fonts. When I go to the /Library/Fonts and ~/Library/Fonts directories using the Terminal, the font files of type "Font Suitcase" have a file size of 0! Many of the fonts in the example Font Set file on the MapServer web site (e.g. Arial family, Georgia family, Times family, Trebuchet-MS, Verdana family) seem to be in Font Suitcase files under OS X 10.4. I was finally able to complete several of these exercises by using the folder of Vera family fonts bundled in the MapServer 4.6 tutorial so that error wasn't caused by an erroneous pathname in the FONTSET statement. My question is this - where do the .ttf files for True Type fonts listed as type/kind Font Suitcase actually reside under OS X 10.4? If someone is succssfully running MapServer under OS X 10.4 and using the standard True Type fonts installed by OS X 10.4, I would appreciate it if you could post or send me a copy of your font.list file. Thanks for any info, -Keith ------------------------------------------------------------------------------ Keith Kaneda INTERNET : kaneda at jhu.edu Senior Information Technology Specialist, VOICE : (410) 516-7741 Basic and Social Sciences FAX : (410) 516-6229 Library Digital Programs, The Sheridan Libraries Johns Hopkins University 3400 North Charles Street Baltimore, MD 21218 ------------------------------------------------------------------------------ From woklist at KYNGCHAOS.COM Wed Nov 8 15:18:54 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Wed, 8 Nov 2006 17:18:54 -0600 Subject: Actual location of True Type font files for fonts in Font Suitcases under Mac OS X 10.4. In-Reply-To: Message-ID: Using Mac suitcase-packaged fonts is a bit tricky. As you know, a suitcase (or other font package such as dfonts) can contain many actual font faces, usually the different styles of the font. FreeType can read these, but by default only returns the first face in the file. There is no guarantee of the order of the faces in the suitcase, and MapServer doesn't have a way to specify a face index or name (that would be a nice wish). TrueType and PostScript fonts can be packaged in many ways in OSX - in a suitcase, in a dfont (dfonts are a flat-file replacement for suitcases), in an OTF file (usually 1 face, but can contain multiple faces), and in a Unix/Windows flat file (ttf/pfa/pfb). The Microsoft fonts that come with OSX and MS Office are all in suitcases. Your safest bets for MapServer are Unix flat files (.ttf) and single- face OTF fonts. The only ttf fonts that come with OSX are a bunch of language fonts. You'll have to raid a Windows system to get the MS ttf versions (you might be able to download them from MS). You can also look around for free fonts (like those Vera fonts you found). Or scrounge up some OTF fonts from recent Adobe products. If you have a font conversion tool, you could also convert the MS suitcases to Unix format. On Nov 8, 2006, at 4:26 PM, Keith Kaneda wrote: > Hello List, > > I recently installed the MapServer 4.10.0 cgi binaries for OS X > on a dual 2.0 GHz PowerPC G5 system running OS X 10.4.8 and > started working through the exercises from Bill Kropla's "Beginning > MapServer: Open Source GIS Development" book. When trying to work > through several map examples which use True Type fonts, I would > keep getting the error message similar to the following: > > msGetLabelSize(): TrueType Font error. Requested font (arialbd) not > found. > > This would occur when I would try to point to the OS X installed > fonts in /Library/Fonts or ~/Library/Fonts in my font.list file, e.g. > > arial /Library/Fonts/Arial > > The pathname I listed above points to a file of Kind "Font > Suitcase". In the case of the Arial font, the Finder lists the size > of this file as 312 KB. When you open the font in Font Book, it > is possible to see which files are included in the Font Suitcase > and by choosing Preview | Show Font Info, you can confirm that a > font (e.g. Arial Regular) is indeed a TrueType font. Font Book > lists the location of the font as either /Library/Fonts or ~/ > Library/Fonts. When I go to the /Library/Fonts and ~/Library/Fonts > directories using the Terminal, the font files of type "Font > Suitcase" have a file size of 0! Many of the fonts in the example > Font Set file on the MapServer web site (e.g. Arial family, Georgia > family, Times family, Trebuchet-MS, Verdana family) seem to be in > Font Suitcase files under OS X 10.4. > > I was finally able to complete several of these exercises by > using the folder of Vera family fonts bundled in the MapServer 4.6 > tutorial so that error wasn't caused by an erroneous pathname in > the FONTSET statement. My question is this - where do the .ttf > files for True Type fonts listed as type/kind Font Suitcase > actually reside under OS X 10.4? If someone is succssfully running > MapServer under OS X 10.4 and using the standard True Type fonts > installed by OS X 10.4, I would appreciate it if you could post or > send me a copy of your font.list file. > ----- William Kyngesburye http://www.kyngchaos.com/ "History is an illusion caused by the passage of time, and time is an illusion caused by the passage of history." - Hitchhiker's Guide to the Galaxy From hal at MOBILEGEOGRAPHICS.COM Wed Nov 8 18:15:34 2006 From: hal at MOBILEGEOGRAPHICS.COM (Hal Mueller) Date: Wed, 8 Nov 2006 18:15:34 -0800 Subject: (intermittent) poor text quality on ANNOTATION layers Message-ID: I have long had a nuisance-level problem with the quality of TrueType font text, where sometimes a label will appear fuzzy, as if it is being drawn twice, one or two pixels apart. When I upgraded to 4.10 last week the problem became much worse, so I am trying to fix it. I have tried lots of variations in my mapfile, but I still end up with text that causes headaches. I would appreciate any suggestions. I suspect that I am tickling some boundary condition in the antialiasing code. An example can be seen at http://www.sailwx.info/shiptrack/shiplocations.phtml?lat=40&lon=-72&radius=100 If I switch to primary colors (e.g. 255 0 0), quality is much improved. If I use a white background (BACKGROUNDCOLOR 255 255 255), quality is perfect. It makes no difference whether I use JPEG, PNG, or GIF output. I am using only default drivers--haven't tried things like DRIVER "GDAL/JPEG" yet, nor have I tinkered with IMAGEMODE. Here's a sample CLASS definition: CLASS LABEL BUFFER 1 ANTIALIAS TRUE COLOR 156 156 156 # BACKGROUNDCOLOR 255 255 255 FONT "OptimaItalic" SIZE 3 MAXSIZE 10 MINSIZE 8 Type truetype POSITION AUTO END END I'm running 4.10 on a Redhat box. Library versions: gdlib 2.0.33 freetype 2.1.10 gdal 1.3.1 MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I guess the next thing I try is picking other colors for text/land/sea, but before I do that I'd like to hear ideas on things I can try with the image model or other parts of the system. TIA, Hal From Steve.Lime at DNR.STATE.MN.US Wed Nov 8 20:25:38 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 8 Nov 2006 22:25:38 -0600 Subject: (intermittent) poor text quality on ANNOTATION layers Message-ID: Ugh, that's not good is it. Can you share the full mapfile (perhaps with all but the offending layer stripped out, but the header portion intact)? For some reason I think I've seen this before, recently, but I can't remember where. The other thing to look at is your PHP code. It's like the label cache is being rendered twice, not being cleared between draws or something like that. I notice you also have some collisions so I don't think this is an antialiasing problem. Steve >>> Hal Mueller 11/08/06 8:15 PM >>> I have long had a nuisance-level problem with the quality of TrueType font text, where sometimes a label will appear fuzzy, as if it is being drawn twice, one or two pixels apart. When I upgraded to 4.10 last week the problem became much worse, so I am trying to fix it. I have tried lots of variations in my mapfile, but I still end up with text that causes headaches. I would appreciate any suggestions. I suspect that I am tickling some boundary condition in the antialiasing code. An example can be seen at http://www.sailwx.info/shiptrack/shiplocations.phtml?lat=40&lon=-72&radius=100 If I switch to primary colors (e.g. 255 0 0), quality is much improved. If I use a white background (BACKGROUNDCOLOR 255 255 255), quality is perfect. It makes no difference whether I use JPEG, PNG, or GIF output. I am using only default drivers--haven't tried things like DRIVER "GDAL/JPEG" yet, nor have I tinkered with IMAGEMODE. Here's a sample CLASS definition: CLASS LABEL BUFFER 1 ANTIALIAS TRUE COLOR 156 156 156 # BACKGROUNDCOLOR 255 255 255 FONT "OptimaItalic" SIZE 3 MAXSIZE 10 MINSIZE 8 Type truetype POSITION AUTO END END I'm running 4.10 on a Redhat box. Library versions: gdlib 2.0.33 freetype 2.1.10 gdal 1.3.1 MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I guess the next thing I try is picking other colors for text/land/sea, but before I do that I'd like to hear ideas on things I can try with the image model or other parts of the system. TIA, Hal From John.C.Cartwright at NOAA.GOV Wed Nov 8 20:53:39 2006 From: John.C.Cartwright at NOAA.GOV (John Cartwright) Date: Wed, 8 Nov 2006 21:53:39 -0700 Subject: python mapscript segfault Message-ID: Hello All, I'm trying to use python mapscript (4.10.0) on MacOS 10.4 to create a map dynamically and output the image. Code seems to segfault at the termination of the program. Can anyone see what I'm doing wrong or suggest a method of tracing the problem? Thanks! -- john import mapscript; map = mapscript.mapObj() map.name = "CustomMap" map.setSize(600,300) map.setExtent(-180.0,-90.0,180.0,90.0) map.imagecolor.setRGB(180,180,250) map.units = mapscript.MS_DD layer = mapscript.layerObj(map) layer.name = "countries" layer.type = mapscript.MS_LAYER_POLYGON layer.status = mapscript.MS_DEFAULT layer.data = "/usr/local/shapefiles/country.shp" class1 = mapscript.classObj(layer) class1.name = "Countries" style = mapscript.styleObj(class1) style.outlinecolor.setRGB(100,100,100) style.color.setRGB(200,200,200) map_image = map.draw() filename = 'test.' + map_image.format.extension map_image.save(filename) From lester at LSCES.CO.UK Wed Nov 8 21:22:47 2006 From: lester at LSCES.CO.UK (Lester Caine) Date: Thu, 9 Nov 2006 05:22:47 +0000 Subject: (intermittent) poor text quality on ANNOTATION layers In-Reply-To: <455259620200008F00003E24@co5.dnr.state.mn.us> Message-ID: Steve Lime wrote: > The other thing to look at is your PHP code. It's like the label cache > is being rendered twice, not being cleared between draws or something > like that. I notice you also have some collisions so I don't think this > is an antialiasing problem. I second that. I'm looking at Sharpshooter Canyon at the moment an it has two positions well apart, and Filebotton Canyon is clean which suggests it's only being drawn once. I think you need to dump the layer data an see if you are getting two hits for the positions. -- Lester Caine - G8HFL ----------------------------- L.S.Caine Electronic Services - http://home.lsces.co.uk Model Engineers Digital Workshop - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php From umberto.nicoletti at GMAIL.COM Thu Nov 9 00:01:58 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 9 Nov 2006 08:01:58 +0000 Subject: python mapscript segfault In-Reply-To: <3ae078dd.78dd3ae0@noaa.gov> Message-ID: On 11/9/06, John Cartwright wrote: > Hello All, > > I'm trying to use python mapscript (4.10.0) on MacOS 10.4 to create a > map dynamically and output the image. Code seems to segfault at the > termination of the program. Can anyone see what I'm doing wrong or > suggest a method of tracing the problem? John, you are not doing anything wrong, simply mapsscript doesn't have properly implemented memory management so creating maps dinamically is not supported (even though it could work). I think in your case you should get the image correctly drawn anyway, so you could ignore the (annoying) segfault at program exit. Umberto > > Thanks! > > -- john > > > import mapscript; > > map = mapscript.mapObj() > map.name = "CustomMap" > map.setSize(600,300) > map.setExtent(-180.0,-90.0,180.0,90.0) > map.imagecolor.setRGB(180,180,250) > map.units = mapscript.MS_DD > > layer = mapscript.layerObj(map) > layer.name = "countries" > layer.type = mapscript.MS_LAYER_POLYGON > layer.status = mapscript.MS_DEFAULT > layer.data = "/usr/local/shapefiles/country.shp" > > class1 = mapscript.classObj(layer) > class1.name = "Countries" > > style = mapscript.styleObj(class1) > style.outlinecolor.setRGB(100,100,100) > style.color.setRGB(200,200,200) > > map_image = map.draw() > filename = 'test.' + map_image.format.extension > map_image.save(filename) > From bartvde at OSGIS.NL Thu Nov 9 01:17:46 2006 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 9 Nov 2006 10:17:46 +0100 Subject: CLASS NAME from attribute table? Message-ID: Hi list, it would be very convenient if one could specify a column for the NAMEs of CLASSes, to be read from the attribute table. This is mostly convenient for the construction of legends. Is this already possible (it could be that I have missed something ...), otherwise I'll open up an enhancement bug. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From hobu at IASTATE.EDU Thu Nov 9 05:30:30 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Thu, 9 Nov 2006 07:30:30 -0600 Subject: python mapscript segfault In-Reply-To: Message-ID: On Nov 9, 2006, at 2:01 AM, Umberto Nicoletti wrote: > On 11/9/06, John Cartwright wrote: >> Hello All, >> >> I'm trying to use python mapscript (4.10.0) on MacOS 10.4 to create a >> map dynamically and output the image. Code seems to segfault at the >> termination of the program. Can anyone see what I'm doing wrong or >> suggest a method of tracing the problem? > > John, > you are not doing anything wrong, simply mapsscript doesn't have > properly implemented memory management so creating maps dinamically is > not supported (even though it could work). > I think in your case you should get the image correctly drawn anyway, > so you could ignore the (annoying) segfault at program exit. Umberto, Creating maps dynamically is the entire point of MapScript. It very much supports the concept of creating maps dynamically. IIRC, the code John has posted is right out of an example that Sean and I did for a workshop at OSG '05. It may be that this example is no longer valid in 4.10 because of how the memory management has changed, but I wouldn't go so far as to say MapScript's memory management is outright implemented incorrectly. There may be some issues, and it may be a little rough in areas, but it has been improving. I suspect that the colorObjs of the styleObjs are not properly referencing the styleObj. Running this script through gdb to get a traceback to find out which destructor is being called is what probably needs to be done. Howard From umberto.nicoletti at GMAIL.COM Thu Nov 9 05:44:01 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 9 Nov 2006 13:44:01 +0000 Subject: python mapscript segfault In-Reply-To: Message-ID: Howard, I have been a bit imprecise. Creating and manipulating maps dinamically is mostly safe, with the exception of some objects and/or usage patterns. I dinamically add some simple layers myself in an application and it works. Sorry for the imprecision. Umberto On 11/9/06, Howard Butler wrote: > > On Nov 9, 2006, at 2:01 AM, Umberto Nicoletti wrote: > > > On 11/9/06, John Cartwright wrote: > >> Hello All, > >> > >> I'm trying to use python mapscript (4.10.0) on MacOS 10.4 to create a > >> map dynamically and output the image. Code seems to segfault at the > >> termination of the program. Can anyone see what I'm doing wrong or > >> suggest a method of tracing the problem? > > > > John, > > you are not doing anything wrong, simply mapsscript doesn't have > > properly implemented memory management so creating maps dinamically is > > not supported (even though it could work). > > I think in your case you should get the image correctly drawn anyway, > > so you could ignore the (annoying) segfault at program exit. > > Umberto, > > Creating maps dynamically is the entire point of MapScript. It very > much supports the concept of creating maps dynamically. IIRC, the > code John has posted is right out of an example that Sean and I did > for a workshop at OSG '05. It may be that this example is no longer > valid in 4.10 because of how the memory management has changed, but I > wouldn't go so far as to say MapScript's memory management is > outright implemented incorrectly. There may be some issues, and it > may be a little rough in areas, but it has been improving. > > I suspect that the colorObjs of the styleObjs are not properly > referencing the styleObj. Running this script through gdb to get a > traceback to find out which destructor is being called is what > probably needs to be done. > > Howard > > > > From schwab.scott at GEOEYE.COM Wed Nov 8 14:52:24 2006 From: schwab.scott at GEOEYE.COM (Scott Schwab) Date: Wed, 8 Nov 2006 14:52:24 -0800 Subject: Mapscript/Python setting featureID for WFS Message-ID: I am new to MapServer and MapScript, so sorry if this is an obvious question. I have a CGI-BIN script, in python, which produces a series of layers, each layer with one or more shapeObjs placed within it. If I produce an image from this script, it looks fine. I decided to try WFS, and my GetCapabilities request seems to work okay, but when I do a getFeature on the layer, I get the proper boundaries, but I get the message of FeatureId item "ID" not found in typename "layerOne". (See below) My question is, since I am producing the shape and layer on the fly, based on a set of geographic points, how do I set attribute on the shape or layer that is the value for an feature id attribute "ID". If I use shpObj.initValue(#) and shpObj.setValue(i,value), how do I associate the feature item tag "ID" with the value? Thank you for any ideas and help, Scott ---- response from getFeature ---- - - - -110.000000,35.000000 -90.000000,58.000000 - -- View this message in context: http://www.nabble.com/Mapscript-Python-setting-featureID-for-WFS-tf2598495.html#a7248863 Sent from the Mapserver - User mailing list archive at Nabble.com. From dlowther at COORDINATESOLUTIONS.COM Thu Nov 9 06:30:20 2006 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Thu, 9 Nov 2006 08:30:20 -0600 Subject: write coordinates into SQL Server Message-ID: William, Correct me if I am wrong, but what you are after here is how to translate an image click into map coordinates, right? I suspect that the actual creation of rows in SQL Server with the x, y coordinate values is straightforward. In order to get the map coordinate from the image click you have to do a bit of legwork since there is no direct method call for this in mapscript (that I am aware of). You are using mapscript_csharp, right? Here's a bit of code that may help you given that you have a mapextent, image width and height, and image x, y click location: Public Shared Function ConvertImageToGeo(ByVal imgExtent As GISExtent, ByVal targExtent As GISExtent, ByVal imgPoint As GISPoint) As GISPoint '//images have 0,0 in upper left corner - effectively switching the orientation of the axis Dim targPoint As New GISPoint '//make sure imgpoint is inside imgextent If Not imgPoint.x <= imgExtent.xMax Or Not imgPoint.x >= imgExtent.xMin Or _ Not imgPoint.y <= imgExtent.yMax Or Not imgPoint.y >= imgExtent.yMin Then Return Nothing End If '//precentage along the x and y axis Dim xPercent, yPercent As Double xPercent = (imgPoint.x - imgExtent.xMin) / imgExtent.Width yPercent = (imgPoint.y - imgExtent.yMin) / imgExtent.Height '//since y axisorientation is backwards - take inverse proportion of yfactor yPercent = 1 - yPercent '//calculate offset Dim targXOffset, targYOffset As Double targXOffset = targExtent.Width * xPercent targYOffset = targExtent.Height * yPercent '//calculate point targPoint.x = targExtent.xMin + targXOffset targPoint.y = targExtent.yMin + targYOffset Return targPoint End Function If you are on the client side (javascript) you can use this if you populate ImgW, ImgH, MapULX and MapULY beforehand. function SetMapLoc(imgX, imgY){ var pX = imgX / ImgW; var pY = imgY / ImgH; var mapXAdd = MapW * pX; var mapYAdd = MapH * pY; MapX = MapULX + mapXAdd; MapY = MapULY - mapYAdd; MapX = MapX.toPrecision(8); MapY = MapY.toPrecision(8); } Note that neither of these methods is very precise so if you are looking for precision, you'll need something more sophisticated. Hope that helps, David Lowther Coordinate Solutions, Inc. 501 N.E. 15th Street Oklahoma City, OK 73104 405.246.9396 (Voice) 405.227.0781 (Fax) www.coordinatesolutions.com _____ From: william paul [mailto:williampaul28 at YAHOO.COM] Sent: Wednesday, November 08, 2006 2:26 PM Subject: write coordinates into SQL Server Hi: I would like to create point data by clicking on the map and write the coordinates into SQl Server 2005. It's the opposite of OVF file for creating points from 2 columns from a DBMS (like Sql Server, MySql) When I click on the map I would like to take automatically the coordinates and record them together with other attributes into a table (Sql Server|) with 2 columns for x and y coordinates Is it possible to do it? I am using mapserver 4.10, dBox on IIS server and ASPX with Sql Server 2005 Thank you in advance William _____ Sponsored Link For just $24.99/mo., Vonage offers unlimited local and long- distance calling. Sign up now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at KYNGCHAOS.COM Thu Nov 9 06:45:54 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Thu, 9 Nov 2006 08:45:54 -0600 Subject: python mapscript segfault In-Reply-To: <3ae078dd.78dd3ae0@noaa.gov> Message-ID: Besides others comments on mapscript usage, you can check your console and system logs to see if there are any details on the segfault. There might also be a crashlog for python. On Nov 8, 2006, at 10:53 PM, John Cartwright wrote: > Hello All, > > I'm trying to use python mapscript (4.10.0) on MacOS 10.4 to create a > map dynamically and output the image. Code seems to segfault at the > termination of the program. Can anyone see what I'm doing wrong or > suggest a method of tracing the problem? ----- William Kyngesburye http://www.kyngchaos.com/ "Those people who most want to rule people are, ipso-facto, those least suited to do it." - A rule of the universe, from the HitchHiker's Guide to the Galaxy From johnli at GISAPPS.COM.HK Thu Nov 9 05:51:41 2006 From: johnli at GISAPPS.COM.HK (John Li) Date: Thu, 9 Nov 2006 21:51:41 +0800 Subject: jBox Queryby Rect performance Message-ID: Dear All, I am trying to use jBox to perform query by selecting point records by rectanglar select (drag an area in which point records are displayed). However, it seems that it takes long time to generate the map image (I have added some labeling features on the map request). I have tried to create index on XY and record ID, but the performance has not improved. Is there something I can do to solve this problem? Is the problem related to database index, or jBox, or anything else? I am using MapServer, jBox, Win 2003 Server, IIS, Oracle. Hope you can give me some hints. Regards, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Thu Nov 9 07:05:47 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 9 Nov 2006 09:05:47 -0600 Subject: CLASS NAME from attribute table? Message-ID: This isn't possible now nor is it particularly easy. All attribute pulling now is from feature tables and this is different altogether... Steve >>> "Bart van den Eijnden (OSGIS)" 11/09/06 3:17 AM >>> Hi list, it would be very convenient if one could specify a column for the NAMEs of CLASSes, to be read from the attribute table. This is mostly convenient for the construction of legends. Is this already possible (it could be that I have missed something ...), otherwise I'll open up an enhancement bug. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From richard.greenwood at GMAIL.COM Thu Nov 9 07:32:32 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 9 Nov 2006 08:32:32 -0700 Subject: jBox Queryby Rect performance In-Reply-To: <001701c7040c$801a14a0$440101c0@felix> Message-ID: On 11/9/06, John Li wrote: > > > Dear All, > > I am trying to use jBox to perform query by selecting point records by > rectanglar select (drag an area in which point records are displayed). > However, it seems that it takes long time to generate the map image (I have > added some labeling features on the map request). I have tried to create > index on XY and record ID, but the performance has not improved. > > Is there something I can do to solve this problem? Is the problem related > to database index, or jBox, or anything else? > > I am using MapServer, jBox, Win 2003 Server, IIS, Oracle. > > Hope you can give me some hints. > > Regards, > John I do not think jBox would be the issue. All jBox is doing is sending the X,Y coordinates of your box back to mapserver. I would guess it was the database, but that's a guess. What browser are you using? jBox with Firefox/Mozilla is very slow to instantiate the first time, but that has nothing to do with the box drawing, it is a Java issue. HTH -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From David.Fawcett at STATE.MN.US Thu Nov 9 08:14:16 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 9 Nov 2006 10:14:16 -0600 Subject: inline features with python mapscript Message-ID: Can anyone point me to an example of how to do a 'copyright notice' using MapScript, preferrably Python MapScript? Essentially, I want to place some title text on a map image using image coords and set the text dynamically. Thanks, David. From fsimon at UNIVALI.BR Thu Nov 9 09:38:02 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 9 Nov 2006 15:38:02 -0200 Subject: jBox Queryby Rect performance In-Reply-To: <001701c7040c$801a14a0$440101c0@felix> Message-ID: Hi John, The time is always slow to generate the map? Or only with query's? Can you post your definition for the data parameter? Are you using native connection or OGR connection? Did you created the index (spatial index) for your table? It's Oracle Spatial or just Oracle? Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ John Li wrote: > Dear All, > I am trying to use jBox to perform query by selecting point records by > rectanglar select (drag an area in which point records are displayed). > However, it seems that it takes long time to generate the map image (I > have added some labeling features on the map request). I have tried to > create index on XY and record ID, but the performance has not improved. > Is there something I can do to solve this problem? Is the problem > related to database index, or jBox, or anything else? > I am using MapServer, jBox, Win 2003 Server, IIS, Oracle. > Hope you can give me some hints. > Regards, > John From ezenaide at GMAIL.COM Thu Nov 9 11:54:47 2006 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Thu, 9 Nov 2006 17:54:47 -0200 Subject: problems with zoom / layers Message-ID: hi all, there's a way to display results from various layers, for example, i have three layers (city, country, province). when i do the query - i'm mounting my interface under gmap with ms4w - it results only the last layer. i would like to display results from all layers. other question: i have locked the screen on the map file as 760x500px. but, when i zoom in and use the query tool, the map extents to the original size. there's other place i should change the resolution? thanks in advance :) -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From bwragg at TPG.COM.AU Thu Nov 9 12:45:20 2006 From: bwragg at TPG.COM.AU (Benjamin Wragg) Date: Fri, 10 Nov 2006 07:45:20 +1100 Subject: limiting layer visibility by extent In-Reply-To: <013c01c702b8$6717f5d0$0602a8c0@windoze> Message-ID: Summing up what I've found, the feature request at http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=786 isn't actually about at what I was after. After re reading it (and a quite chat with Howard Butler) I can see that this feature request is just about querying the extent of a layer not limiting what is shown (don't I feel stupid :) ). So since mapserver doesn?t really support limiting a layer with "show this layer only when my view is completely within it", I've build some code in php which checks the extent of the current view (using mapscript) and then I do a "within" query over the extents of some tiles. If it returns a tile id, I turn that tile on. Cheers, Benjamin -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Benjamin Wragg Sent: Wednesday, 8 November 2006 9:02 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] limiting layer visibility by extent Thanks for the response, not quite what I mean't though. I need the layer to turn only when your view extent is completely within the extent of the layer. Its what a client whats for some raster tiles. E.g if your completely within a tile turn it on but if your half over the extent of one tile and half over the extent of another, turn them both off. I know it sounds a little silly to do this (why not just display both tiles!) but this what the client watns and I'm just trying to figure out if its possible. :) Cheers, Benjamin -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime Sent: Wednesday, 8 November 2006 2:29 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] limiting layer visibility by extent If I understand you correctly MapServer does this automatically if you set STATUS DEFAULT. The layer is always on and is shown if it's extent overlaps the view extent. Steve >>> Benjamin Wragg 11/07/06 6:15 AM >>> Hi All, I was wondering if anyone knows if it's possible to limit a layers visibility by the current extent? E.g if the current extent is within the layers extent, turn the layer on I looked around and all I could find was this feature request http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=786 . It seems like Howard Butler may have got something going but I can't see mention of it in the mapfile reference on the site? Cheers, Benjamin -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.29/520 - Release Date: 6/11/2006 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.29/520 - Release Date: 6/11/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.29/520 - Release Date: 6/11/2006 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.29/520 - Release Date: 6/11/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.0/524 - Release Date: 8/11/2006 From szekerest at GMAIL.COM Thu Nov 9 12:47:04 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 9 Nov 2006 21:47:04 +0100 Subject: python mapscript segfault In-Reply-To: <3ae078dd.78dd3ae0@noaa.gov> Message-ID: 2006/11/9, John Cartwright : > Hello All, > > I'm trying to use python mapscript (4.10.0) on MacOS 10.4 to create a > map dynamically and output the image. Code seems to segfault at the > termination of the program. Can anyone see what I'm doing wrong or > suggest a method of tracing the problem? > > Thanks! > > -- john > > > import mapscript; > > map = mapscript.mapObj() > map.name = "CustomMap" > map.setSize(600,300) > map.setExtent(-180.0,-90.0,180.0,90.0) > map.imagecolor.setRGB(180,180,250) > map.units = mapscript.MS_DD > > layer = mapscript.layerObj(map) > layer.name = "countries" > layer.type = mapscript.MS_LAYER_POLYGON > layer.status = mapscript.MS_DEFAULT > layer.data = "/usr/local/shapefiles/country.shp" > > class1 = mapscript.classObj(layer) > class1.name = "Countries" > > style = mapscript.styleObj(class1) > style.outlinecolor.setRGB(100,100,100) > style.color.setRGB(200,200,200) > > map_image = map.draw() > filename = 'test.' + map_image.format.extension > map_image.save(filename) > I've notified the developers about this issue long ago but I can see I should repeat the problem again. So this is definitely a mapserver issue has been identified originally for C# descibed in the following bug: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1743 As looking into the code the problem applies to C# Java and Python but might apply to the other SWIG variants as well. This problem is related to the improper handling of the ownership of the memory. For example when calling mapscript.layerObj(map) the map object will take the ownership of the constructed object so the internal state of the layer object should be changed accordingly. That is: setting swigCMemOwn = false for Java and C#. The most awkward thing that we cannot workaround this issue declaratively (like using DISOWN typemaps for example) because the ownership should not be transferred when the constructor is called with null. For the C# binding we could use the following fix (in csmodule.i): %typemap(csconstruct, excode=SWIGEXCODE) layerObj(mapObj map) %{: this($imcall, true) { if (map != null) this.swigCMemOwn = false;$excode } %} %typemap(csconstruct, excode=SWIGEXCODE) classObj(layerObj layer) %{: this($imcall, true) { if (layer != null) this.swigCMemOwn = false;$excode } %} %typemap(csconstruct, excode=SWIGEXCODE) styleObj(classObj parent_class) %{: this($imcall, true) { if (parent_class != null) this.swigCMemOwn = false;$excode } %} John, Instead of the code above would you try using insertLayer, insertClass and insertStyle with the newly created layer class and style objects constructed using null parameter? Besides this problem I could mention at least 2 more use cases where the SWIG generated wrappers will definitely fail. Needless to say that all of these issues are dedicated to the improper handling the ownership of the memory holded by the wrapper classes. Recently I've fixed one exclusively for the GDAL-SWIG C# and posted the fix to the SWIG guys ("Preventing from the early garbage collection of the C# object"). However I've got not answer so far..... :-( Best Regards, Tamas Szekeres From hal at MOBILEGEOGRAPHICS.COM Thu Nov 9 14:31:31 2006 From: hal at MOBILEGEOGRAPHICS.COM (Hal Mueller) Date: Thu, 9 Nov 2006 14:31:31 -0800 Subject: (intermittent) poor text quality on ANNOTATION layers In-Reply-To: <455259620200008F00003E24@co5.dnr.state.mn.us> Message-ID: At 10:25 PM -0600 11/8/06, Steve Lime wrote: >The other thing to look at is your PHP code. It's like the label cache >is being rendered twice, not being cleared between draws or something >like that. It's virtually certain that I am calling drawlabelcache() more than once. Sounds like that might explain both the fuzziness and the collisions, right? I will fix that, and then if the problem persists I'll run it down to a simple one-layer mapfile that reproduces. Hal From paul at DUGAS.CC Thu Nov 9 17:33:41 2006 From: paul at DUGAS.CC (Paul Dugas) Date: Thu, 9 Nov 2006 20:33:41 -0500 Subject: offset and angle for point data? Message-ID: I'd like to be able to offset some point data from the given coordinates by a number of pixels based on the current scale and in an angle given in an attribute of the point feature. Any thoughts on a good way to do this? Paul -- Paul Dugas -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpicinbono at WORLDONLINE.FR Thu Nov 9 18:52:07 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Fri, 10 Nov 2006 03:52:07 +0100 Subject: offset and angle for point data? In-Reply-To: <1163122421.6992.3.camel@ltpad.localdomain> Message-ID: Hi Paul I would use an empty layer and add to it the new points computed the way you want each time the image is drawn. Should work, but maybe not the best and fastest way. Regards Blaise Le vendredi 10 novembre 2006 02:33, Paul Dugas a ?crit?: > I'd like to be able to offset some point data from the given coordinates > by a number of pixels based on the current scale and in an angle given > in an attribute of the point feature. Any thoughts on a good way to do > this? > > Paul From woklist at KYNGCHAOS.COM Thu Nov 9 18:54:28 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Thu, 9 Nov 2006 20:54:28 -0600 Subject: MapScript for PHP5/Mac OS X Message-ID: I finally got around to putting together a Mac OS X PHP5 package and PHP-MapScript to go along with it. For now it's PHP5-CGI only, I'm having trouble geting the Apache module PHP5 to work. As always, let me know if you have any problems. ----- William Kyngesburye http://www.kyngchaos.com/ [Trillian] What are you supposed to do WITH a maniacally depressed robot? [Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer... - HitchHiker's Guide to the Galaxy From richard.greenwood at GMAIL.COM Thu Nov 9 18:56:10 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 9 Nov 2006 19:56:10 -0700 Subject: dbox legend question In-Reply-To: Message-ID: On 11/8/06, Sam Young wrote: > Thanks for the help with my previous questions. > > The 2 javascript Console Errors I get when I load my html file are: > > Error: xEvent is not defined > Source File: http://localhost/src/javascript/mapserver/dbox.js > Line: 486 > > Error: this.treeLegend has no properties > Source File: http://localhost/src/javascript/mapserver/dlegend.js > Line: 56 > > The alert(legend_xml) produces an alert that is probably too lenghty to post > in an e-mail, but I'd be more than happy to get it to someone if they are > interested. > > Thanks for all the help and the great dbox application! > > Sam Sam, I'm not sure you got an answer to your question on this. If not, can you provide a few more details? Like is the problem at initialization, or after the first action (zoom, pan query, etc)? And specifically what is, or isn't happening ? -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From bpicinbono at WORLDONLINE.FR Thu Nov 9 19:02:52 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Fri, 10 Nov 2006 04:02:52 +0100 Subject: problems with zoom / layers In-Reply-To: <7af310f80611091154r337f9960r8c128547da64ef16@mail.gmail.com> Message-ID: hi there, 1 : check first that the layers you want queryable have a "template" line in the mapfile. If not, they can't be queryable. 2 : might be. Make a quick string search with the original extent in all the files and you'll see. Regards Blaise Le jeudi 9 novembre 2006 20:54, Eduardo Zenaide a ?crit?: > hi all, > > there's a way to display results from various layers, for example, i have > three layers (city, country, province). when i do the query - i'm mounting > my interface under gmap with ms4w - it results only the last layer. i would > like to display results from all layers. > > other question: i have locked the screen on the map file as 760x500px. but, > when i zoom in and use the query tool, the map extents to the original > size. there's other place i should change the resolution? > > > thanks in advance :) From hal at MOBILEGEOGRAPHICS.COM Fri Nov 10 00:31:28 2006 From: hal at MOBILEGEOGRAPHICS.COM (Hal Mueller) Date: Fri, 10 Nov 2006 00:31:28 -0800 Subject: (intermittent) poor text quality on ANNOTATION layers In-Reply-To: Message-ID: Well I apparently don't understand how the label cache works. That is in fact the cause of my problems. i can cure or cause the error by not calling or calling $map->drawlabelcache(). http://www.sailwx.info/shiptrack/maptest.phtml has a much-simplified test case done with PHP Mapscript. The upper map has fuzzy text. The lower map is correct. The only difference is a call to drawlabelcache() in the fuzzy-text map. The maps are generated with $image=$map->draw(); $map->drawlabelcache($image); $url=$image->saveWebImage(); echo ""; $image2=$map2->draw(); $url2=$image2->saveWebImage(); echo ""; The complication is that for the real maps, I have both static data (defined in shapefiles and .map file) and dynamic data (rendered onto the map after the base map has been drawn). The flow of the programs is (distilled down): $map = ms_newMapObj() $image = $map->draw(); $dynamicLayer = $map->getLayerByName("dynamic"); and then many calls to $point->draw($map, $dynamicLayer, $image...); If I delete the call to drawlabelcache(), my annotations on the dynamic data are lost. If I keep the call to drawlabelcache() the static layers are labeled twice. What am I missing? Is there a better approach? Hal From hal at MOBILEGEOGRAPHICS.COM Fri Nov 10 00:48:10 2006 From: hal at MOBILEGEOGRAPHICS.COM (Hal Mueller) Date: Fri, 10 Nov 2006 00:48:10 -0800 Subject: (intermittent) poor text quality on ANNOTATION layers In-Reply-To: Message-ID: Adding a call to $map->labelcache->free() after I draw the static data but before I draw the dynamic data seems to have been the missing bit. Thanks for the lead guys! Hal From cavallini at FAUNALIA.IT Fri Nov 10 02:25:32 2006 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Fri, 10 Nov 2006 11:25:32 +0100 Subject: postgis views? Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, we are not able to use in mapserver data from postgres/postgis views, even if the_geom column of view was add to the geometry_column table). Anybody had a similar problem? All the best. pc - -- Paolo Cavallini email+jabber: cavallini at faunalia.it www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFVFOc/NedwLUzIr4RAlGlAKCxgZas03i0njogMrMjoMSoGVKf6ACgrNNT TKMptXmeFJrlbiHVsuxCBMk= =8sLR -----END PGP SIGNATURE----- From mschulz at WEBGIS.DE Fri Nov 10 03:20:44 2006 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Fri, 10 Nov 2006 12:20:44 +0100 Subject: postgis views? In-Reply-To: <4554539C.8030807@faunalia.it> Message-ID: Hi, do you get an error or just a blank image? Maybe post a debug output from the layer that uses the postgis connection (e.g. with shp2img)? And/Or the layer section of your mapfile. Using pg-views to display data is generally working. Cheers, Michael On 11/10/06, Paolo Cavallini wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi all, > we are not able to use in mapserver data from postgres/postgis views, > even if the_geom column of view was add to the geometry_column table). > Anybody had a similar problem? > All the best. > pc > - -- > Paolo Cavallini > email+jabber: cavallini at faunalia.it > www.faunalia.it > Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFFVFOc/NedwLUzIr4RAlGlAKCxgZas03i0njogMrMjoMSoGVKf6ACgrNNT > TKMptXmeFJrlbiHVsuxCBMk= > =8sLR > -----END PGP SIGNATURE----- > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From bjoern.platzen at MOMATEC.DE Fri Nov 10 03:35:20 2006 From: bjoern.platzen at MOMATEC.DE (Bjoern Platzen) Date: Fri, 10 Nov 2006 12:35:20 +0100 Subject: postgis views? In-Reply-To: <4554539C.8030807@faunalia.it> Message-ID: Hi Paolo, > we are not able to use in mapserver data from postgres/postgis views, > even if the_geom column of view was add to the geometry_column table). > Anybody had a similar problem? Yes, I had the same problem. Adding the oid-column of the table that contained the geometry-column to the view made it working. hth, Bjoern. From pgiannini at BYTEWISE.IT Fri Nov 10 06:04:06 2006 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Fri, 10 Nov 2006 15:04:06 +0100 Subject: postgis views? In-Reply-To: <4554539C.8030807@faunalia.it> Message-ID: Ciao Paolo, I'm normally working with php/mapscript applications and I use data from Postgres/postgis db, dinamically changing the data source of a layer from a table to a view, and I have similar problems, resolved as follows. In the .map file the "data" of layer is like this: " FROM " and that work fine. Instead, If I change the data source to a view I must to add the statement "USING UNIQUE " where is the primary key of the table, added to the view. In other words: the view must contain the pk of the table, e.g. "SELECT , FROM
", and the "data" string of the mapserver layer must contain the "USING UNIQUE" statement, looking like: " FROM USING UNIQUE " I believe mapserver is automatically looking for a field named "oid" that is normally provided from a postgis table but not from a view (or a sub-query), so you must to specify the name of the pk field in view. let me know! ciao ___________________________ Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Ven, 10 Novembre 2006 11:25, Paolo Cavallini disse: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi all, > we are not able to use in mapserver data from postgres/postgis views, > even if the_geom column of view was add to the geometry_column table). > Anybody had a similar problem? > All the best. > pc > - -- > Paolo Cavallini > email+jabber: cavallini at faunalia.it > www.faunalia.it > Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFFVFOc/NedwLUzIr4RAlGlAKCxgZas03i0njogMrMjoMSoGVKf6ACgrNNT > TKMptXmeFJrlbiHVsuxCBMk= > =8sLR > -----END PGP SIGNATURE----- > ___________________________ Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E From Steve.Lime at DNR.STATE.MN.US Fri Nov 10 06:23:10 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 10 Nov 2006 08:23:10 -0600 Subject: (intermittent) poor text quality on ANNOTATION layers Message-ID: Hal: The label cache is drawn by $map->draw() so the drawlabelcache call is unecessary and probably the source of your problems. The only reason to use drawlabelcache at all is if you are using layer or feature level draws since those populate the cache but don't draw it. Steve >>> Hal Mueller 11/10/06 2:31 AM >>> Well I apparently don't understand how the label cache works. That is in fact the cause of my problems. i can cure or cause the error by not calling or calling $map->drawlabelcache(). http://www.sailwx.info/shiptrack/maptest.phtml has a much-simplified test case done with PHP Mapscript. The upper map has fuzzy text. The lower map is correct. The only difference is a call to drawlabelcache() in the fuzzy-text map. The maps are generated with $image=$map->draw(); $map->drawlabelcache($image); $url=$image->saveWebImage(); echo ""; $image2=$map2->draw(); $url2=$image2->saveWebImage(); echo ""; The complication is that for the real maps, I have both static data (defined in shapefiles and .map file) and dynamic data (rendered onto the map after the base map has been drawn). The flow of the programs is (distilled down): $map = ms_newMapObj() $image = $map->draw(); $dynamicLayer = $map->getLayerByName("dynamic"); and then many calls to $point->draw($map, $dynamicLayer, $image...); If I delete the call to drawlabelcache(), my annotations on the dynamic data are lost. If I keep the call to drawlabelcache() the static layers are labeled twice. What am I missing? Is there a better approach? Hal From sgillies at FRII.COM Fri Nov 10 06:51:38 2006 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 10 Nov 2006 07:51:38 -0700 Subject: python mapscript segfault In-Reply-To: Message-ID: Tamas Szekeres wrote: > 2006/11/9, John Cartwright : >> Hello All, >> >> I'm trying to use python mapscript (4.10.0) on MacOS 10.4 to create a >> map dynamically and output the image. Code seems to segfault at the >> termination of the program. Can anyone see what I'm doing wrong or >> suggest a method of tracing the problem? >> >> Thanks! >> >> -- john >> >> >> import mapscript; >> >> map = mapscript.mapObj() >> map.name = "CustomMap" >> map.setSize(600,300) >> map.setExtent(-180.0,-90.0,180.0,90.0) >> map.imagecolor.setRGB(180,180,250) >> map.units = mapscript.MS_DD >> >> layer = mapscript.layerObj(map) >> layer.name = "countries" >> layer.type = mapscript.MS_LAYER_POLYGON >> layer.status = mapscript.MS_DEFAULT >> layer.data = "/usr/local/shapefiles/country.shp" >> >> class1 = mapscript.classObj(layer) >> class1.name = "Countries" >> >> style = mapscript.styleObj(class1) >> style.outlinecolor.setRGB(100,100,100) >> style.color.setRGB(200,200,200) >> >> map_image = map.draw() >> filename = 'test.' + map_image.format.extension >> map_image.save(filename) >> > > I've notified the developers about this issue long ago but I can see I > should repeat the problem again. > So this is definitely a mapserver issue has been identified originally > for C# descibed in the following bug: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1743 > > As looking into the code the problem applies to C# Java and Python but > might apply to the other > SWIG variants as well. > > This problem is related to the improper handling of the ownership of > the memory. For example when calling > > mapscript.layerObj(map) the map object will take the ownership of the > constructed object so the internal state > of the layer object should be changed accordingly. That is: setting > swigCMemOwn = false for Java and C#. > > The most awkward thing that we cannot workaround this issue > declaratively (like using DISOWN typemaps for example) > because the ownership should not be transferred when the constructor > is called with null. > > For the C# binding we could use the following fix (in csmodule.i): > > > %typemap(csconstruct, excode=SWIGEXCODE) layerObj(mapObj map) %{: > this($imcall, true) { > if (map != null) this.swigCMemOwn = false;$excode > } > %} > %typemap(csconstruct, excode=SWIGEXCODE) classObj(layerObj layer) %{: > this($imcall, true) { > if (layer != null) this.swigCMemOwn = false;$excode > } > %} > %typemap(csconstruct, excode=SWIGEXCODE) styleObj(classObj > parent_class) %{: this($imcall, true) { > if (parent_class != null) this.swigCMemOwn = false;$excode > } > %} > > John, > Instead of the code above would you try using insertLayer, insertClass > and insertStyle > with the newly created layer class and style objects constructed using > null parameter? > Right. This problem with layerObj(map) is one of the reasons why I wrote the insert* methods. Cheers, Sean -- Sean Gillies http://zcologia.com/news From yjacolin at FREE.FR Fri Nov 10 06:45:01 2006 From: yjacolin at FREE.FR (Yves Jacolin) Date: Fri, 10 Nov 2006 15:45:01 +0100 Subject: freetype error for curved label (solve) Message-ID: Hi, A few days ago (or a few weeks ago), I wrote an email to ask some help about a problem with curved label and freetype error message. I found the solution, I just added a "TYPE TRUETYPE" line in the LABEL parameter. Questions : is it normal to have to add this parameter ? If so, I think it can help to add this information in the ANGLE section in the doc. Furthermore, I am using this feature with a polyline layer. Some labels do not "follow the line" : http://softlibre.free.fr/curved_label.png. Actually, only when the label is longer thant the line. Any idea to correct this ? Thanks. Regards, Y. -- Yves Jacolin --- http://yjacolin.gloobe.org From jmckenna at DMSOLUTIONS.CA Fri Nov 10 07:20:59 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 10 Nov 2006 10:20:59 -0500 Subject: postgis views? In-Reply-To: <37030.62.77.56.18.1163167446.squirrel@62.77.56.18> Message-ID: The other day I too faced this issue with MapServer/PostGIS/views. I found a post on the list to make sure postgresql.conf is set to generate oids ("default_with_oids = on"). Setting that (with PostgreSQL 8.1.5) and regenerating my tables solved my problem. jeff Pietro Giannini wrote: > Ciao Paolo, > > I'm normally working with php/mapscript applications and I use data from > Postgres/postgis db, dinamically changing the data source of a layer from > a table to a view, and I have similar problems, resolved as follows. > > In the .map file the "data" of layer is like this: > " FROM
" > and that work fine. > > Instead, If I change the data source to a view I must to add the statement > "USING UNIQUE " where is the primary key of the table, added to > the view. > In other words: the view must contain the pk of the table, e.g. "SELECT > , FROM
", and the "data" string of the > mapserver layer must contain the "USING UNIQUE" statement, looking like: > " FROM USING UNIQUE " > I believe mapserver is automatically looking for a field named "oid" that > is normally provided from a postgis table but not from a view (or a > sub-query), so you must to specify the name of the pk field in view. > > let me know! > > ciao > > ___________________________ > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > > > On Ven, 10 Novembre 2006 11:25, Paolo Cavallini disse: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hi all, >> we are not able to use in mapserver data from postgres/postgis views, >> even if the_geom column of view was add to the geometry_column table). >> Anybody had a similar problem? >> All the best. >> pc >> - -- >> Paolo Cavallini >> email+jabber: cavallini at faunalia.it >> www.faunalia.it >> Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.5 (GNU/Linux) >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org >> >> iD8DBQFFVFOc/NedwLUzIr4RAlGlAKCxgZas03i0njogMrMjoMSoGVKf6ACgrNNT >> TKMptXmeFJrlbiHVsuxCBMk= >> =8sLR >> -----END PGP SIGNATURE----- >> -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From bpicinbono at WORLDONLINE.FR Fri Nov 10 08:07:55 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Fri, 10 Nov 2006 17:07:55 +0100 Subject: problems with zoom / layers In-Reply-To: <7af310f80611100440y70231163he9f458ea87dfada8@mail.gmail.com> Message-ID: Please Eduardo, post to the list so everybody can participate. With gmap out of the box, you can do a mutliple query with the Rosa applet "i" tool. Isn't it what you are looking for ? Regards Blaise Le vendredi 10 novembre 2006 13:40, vous avez ?crit?: > Blaise, > > about the layers, they all have a template line and work fine, but i want > to know if i can see results from more than one layer at the same time. > > thanks > > 2006/11/10, Blaise : > > hi there, > > 1 : check first that the layers you want queryable have a "template" line > > in > > the mapfile. If not, they can't be queryable. > > 2 : might be. Make a quick string search with the original extent in all > > the > > files and you'll see. > > Regards > > Blaise > > > > Le jeudi 9 novembre 2006 20:54, Eduardo Zenaide a ?crit: > > > hi all, > > > > > > there's a way to display results from various layers, for example, i > > > > have > > > > > three layers (city, country, province). when i do the query - i'm > > > > mounting > > > > > my interface under gmap with ms4w - it results only the last layer. i > > > > would > > > > > like to display results from all layers. > > > > > > other question: i have locked the screen on the map file as 760x500px. > > > > but, > > > > > when i zoom in and use the query tool, the map extents to the original > > > size. there's other place i should change the resolution? > > > > > > > > > thanks in advance :) From ezenaide at GMAIL.COM Fri Nov 10 09:03:30 2006 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Fri, 10 Nov 2006 15:03:30 -0200 Subject: problems with zoom / layers In-Reply-To: <200611101707.56128.bpicinbono@worldonline.fr> Message-ID: sorry, gmail replied only to you, i didn't see it what i want is to know if its possible to see, when i use the "i" tool over a layer, results from all visible layers. example: two layers (city, country) visibles, i click over one location, let's say New York, it shows population from city layer AND name from country layer. thanks 2006/11/10, Blaise : > > Please Eduardo, post to the list so everybody can participate. > With gmap out of the box, you can do a mutliple query with the Rosa applet > "i" > tool. Isn't it what you are looking for ? > Regards > Blaise > > Le vendredi 10 novembre 2006 13:40, vous avez ?crit: > > Blaise, > > > > about the layers, they all have a template line and work fine, but i > want > > to know if i can see results from more than one layer at the same time. > > > > thanks > > > > 2006/11/10, Blaise : > > > hi there, > > > 1 : check first that the layers you want queryable have a "template" > line > > > in > > > the mapfile. If not, they can't be queryable. > > > 2 : might be. Make a quick string search with the original extent in > all > > > the > > > files and you'll see. > > > Regards > > > Blaise > > > > > > Le jeudi 9 novembre 2006 20:54, Eduardo Zenaide a ?crit: > > > > hi all, > > > > > > > > there's a way to display results from various layers, for example, i > > > > > > have > > > > > > > three layers (city, country, province). when i do the query - i'm > > > > > > mounting > > > > > > > my interface under gmap with ms4w - it results only the last layer. > i > > > > > > would > > > > > > > like to display results from all layers. > > > > > > > > other question: i have locked the screen on the map file as > 760x500px. > > > > > > but, > > > > > > > when i zoom in and use the query tool, the map extents to the > original > > > > size. there's other place i should change the resolution? > > > > > > > > > > > > thanks in advance :) > -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From cavallini at FAUNALIA.IT Fri Nov 10 09:12:43 2006 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Fri, 10 Nov 2006 18:12:43 +0100 Subject: postgis views? In-Reply-To: <455498DB.4090401@dmsolutions.ca> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks to all who replied. We had the oid on, but it did not work. What works for us is having a primary key. All the best. pc Jeff McKenna ha scritto: > The other day I too faced this issue with MapServer/PostGIS/views. I > found a post on the list to make sure postgresql.conf is set to generate > oids ("default_with_oids = on"). Setting that (with PostgreSQL 8.1.5) > and regenerating my tables solved my problem. > > jeff > > > > > Pietro Giannini wrote: >> Ciao Paolo, >> >> I'm normally working with php/mapscript applications and I use data from >> Postgres/postgis db, dinamically changing the data source of a layer from >> a table to a view, and I have similar problems, resolved as follows. >> >> In the .map file the "data" of layer is like this: >> " FROM
" >> and that work fine. >> >> Instead, If I change the data source to a view I must to add the >> statement >> "USING UNIQUE " where is the primary key of the table, added to >> the view. >> In other words: the view must contain the pk of the table, e.g. "SELECT >> , FROM
", and the "data" string of the >> mapserver layer must contain the "USING UNIQUE" statement, looking like: >> " FROM USING UNIQUE " >> I believe mapserver is automatically looking for a field named "oid" that >> is normally provided from a postgis table but not from a view (or a >> sub-query), so you must to specify the name of the pk field in view. >> >> let me know! >> >> ciao - -- Paolo Cavallini email+jabber: cavallini at faunalia.it www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFVLML/NedwLUzIr4RAucBAKCYQUbW4LqqfBwVMcwbtb3xYWb1ZQCfVubt NOTFFbSWpr4VUpgucfuU7Bk= =Zw5n -----END PGP SIGNATURE----- From Vincent.Troisi at COLORADO.EDU Fri Nov 10 09:19:44 2006 From: Vincent.Troisi at COLORADO.EDU (Vincent J. Troisi) Date: Fri, 10 Nov 2006 10:19:44 -0700 Subject: Server error retrieving coverage via WCS Message-ID: I am trying to retrieve an entire layer of a tiled Geotiff mosaic using the WCS protocol. In some cases if I request a subset of the layer, I am successful. I am unsuccessful when I near a request the entire area. The error is: > The server encountered an internal error and was unable to complete > your request. > > Error message: > Premature end of script headers: mapserv> > We are using mapserver 4.6. The layer is 16-bit raster. Each pixel represents a 125x125m surface resolution. The extend is -3174450,-2816050,2867175,2406325 I attempted to retrieve the layer/image with ResX and ResY set to 250 (enhancing the resolution by 2). The request was successful, but the values in the retrieved file were all 0. Any suggestions... From bpicinbono at WORLDONLINE.FR Fri Nov 10 09:45:33 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Fri, 10 Nov 2006 18:45:33 +0100 Subject: problems with zoom / layers In-Reply-To: <7af310f80611100903w525cf4a1tf7d4df4c3c3bc830@mail.gmail.com> Message-ID: Try switching MS_SINGLE to MS_MULTIPLE in the queryByPoint function around line 510 in the gmap75.inc.php file. This should do the trick; check the doc for more details : http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/mapobj Regards Blaise Le vendredi 10 novembre 2006 18:03, Eduardo Zenaide a ?crit?: > sorry, gmail replied only to you, i didn't see it > > what i want is to know if its possible to see, when i use the "i" tool over > a layer, results from all visible layers. > example: two layers (city, country) visibles, i click over one location, > let's say New York, it shows population from city layer AND name from > country layer. > > thanks > > 2006/11/10, Blaise : > > Please Eduardo, post to the list so everybody can participate. > > With gmap out of the box, you can do a mutliple query with the Rosa > > applet "i" > > tool. Isn't it what you are looking for ? > > Regards > > Blaise > > > > Le vendredi 10 novembre 2006 13:40, vous avez ?crit: > > > Blaise, > > > > > > about the layers, they all have a template line and work fine, but i > > > > want > > > > > to know if i can see results from more than one layer at the same time. > > > > > > thanks > > > > > > 2006/11/10, Blaise : > > > > hi there, > > > > 1 : check first that the layers you want queryable have a "template" > > > > line > > > > > > in > > > > the mapfile. If not, they can't be queryable. > > > > 2 : might be. Make a quick string search with the original extent in > > > > all > > > > > > the > > > > files and you'll see. > > > > Regards > > > > Blaise > > > > > > > > Le jeudi 9 novembre 2006 20:54, Eduardo Zenaide a ?crit: > > > > > hi all, > > > > > > > > > > there's a way to display results from various layers, for example, > > > > > i > > > > > > > > have > > > > > > > > > three layers (city, country, province). when i do the query - i'm > > > > > > > > mounting > > > > > > > > > my interface under gmap with ms4w - it results only the last layer. > > > > i > > > > > > would > > > > > > > > > like to display results from all layers. > > > > > > > > > > other question: i have locked the screen on the map file as > > > > 760x500px. > > > > > > but, > > > > > > > > > when i zoom in and use the query tool, the map extents to the > > > > original > > > > > > > size. there's other place i should change the resolution? > > > > > > > > > > > > > > > thanks in advance :) From warmerdam at POBOX.COM Fri Nov 10 10:08:40 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 10 Nov 2006 13:08:40 -0500 Subject: Server error retrieving coverage via WCS In-Reply-To: <4554B4B0.2@Colorado.EDU> Message-ID: Vincent J. Troisi wrote: > I am trying to retrieve an entire layer of a tiled Geotiff mosaic > using the WCS protocol. In some cases if I request a subset of the > layer, I am successful. I am unsuccessful when I near a request the > entire area. > The error is: > >> The server encountered an internal error and was unable to complete >> your request. >> >> Error message: >> Premature end of script headers: > mapserv> Vincent, My guess is that the request is large and mapserver is running out of ram and crashing. However, MapServer should detect failed mallocs especially for large buffers. I'd encourage you to either try and debug the problem in situ-or submit a bug report we can use to reproduce the problem. If it is a memory problem then reproducing the problem may depending on various machine/os issues. > We are using mapserver 4.6. The layer is 16-bit raster. Each pixel > represents > a 125x125m surface resolution. The extend is > -3174450,-2816050,2867175,2406325 > > I attempted to retrieve the layer/image with ResX and ResY set to 250 > (enhancing the resolution by 2). The request was successful, but the > values in the retrieved file were all 0. Note, I'd call reducing the resolution to 250x250 degrading rather than enhancing the image. However, if you can provide a bug report where we can reproduce this problem then we can fix it (assuming it is a mapserver or gdal problem). I don't believe it is expected behavior. 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 | President OSGeo, http://osgeo.org From ezenaide at GMAIL.COM Fri Nov 10 10:26:46 2006 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Fri, 10 Nov 2006 16:26:46 -0200 Subject: problems with zoom / layers In-Reply-To: <200611101845.33230.bpicinbono@worldonline.fr> Message-ID: thanks a lot, Blaise! :D about my other question, i've changed in the map file the resolution, but when i zoom in and do some query the map extents. it not resize, but zoom out to its max. i've tried comment some functions to see if i can identify where it happens but not sucessfully. any ideas? 2006/11/10, Blaise : > > Try switching MS_SINGLE to MS_MULTIPLE in the queryByPoint function around > line 510 in the gmap75.inc.php file. This should do the trick; check the > doc > for more details : > > http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/mapobj > Regards > Blaise > > Le vendredi 10 novembre 2006 18:03, Eduardo Zenaide a ?crit: > > sorry, gmail replied only to you, i didn't see it > > > > what i want is to know if its possible to see, when i use the "i" tool > over > > a layer, results from all visible layers. > > example: two layers (city, country) visibles, i click over one location, > > let's say New York, it shows population from city layer AND name from > > country layer. > > > > thanks > > > > 2006/11/10, Blaise : > > > Please Eduardo, post to the list so everybody can participate. > > > With gmap out of the box, you can do a mutliple query with the Rosa > > > applet "i" > > > tool. Isn't it what you are looking for ? > > > Regards > > > Blaise > > > > > > Le vendredi 10 novembre 2006 13:40, vous avez ?crit: > > > > Blaise, > > > > > > > > about the layers, they all have a template line and work fine, but i > > > > > > want > > > > > > > to know if i can see results from more than one layer at the same > time. > > > > > > > > thanks > > > > > > > > 2006/11/10, Blaise : > > > > > hi there, > > > > > 1 : check first that the layers you want queryable have a > "template" > > > > > > line > > > > > > > > in > > > > > the mapfile. If not, they can't be queryable. > > > > > 2 : might be. Make a quick string search with the original extent > in > > > > > > all > > > > > > > > the > > > > > files and you'll see. > > > > > Regards > > > > > Blaise > > > > > > > > > > Le jeudi 9 novembre 2006 20:54, Eduardo Zenaide a ?crit: > > > > > > hi all, > > > > > > > > > > > > there's a way to display results from various layers, for > example, > > > > > > i > > > > > > > > > > have > > > > > > > > > > > three layers (city, country, province). when i do the query - > i'm > > > > > > > > > > mounting > > > > > > > > > > > my interface under gmap with ms4w - it results only the last > layer. > > > > > > i > > > > > > > > would > > > > > > > > > > > like to display results from all layers. > > > > > > > > > > > > other question: i have locked the screen on the map file as > > > > > > 760x500px. > > > > > > > > but, > > > > > > > > > > > when i zoom in and use the query tool, the map extents to the > > > > > > original > > > > > > > > > size. there's other place i should change the resolution? > > > > > > > > > > > > > > > > > > thanks in advance :) > -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpicinbono at WORLDONLINE.FR Fri Nov 10 10:49:41 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Fri, 10 Nov 2006 19:49:41 +0100 Subject: problems with zoom / layers In-Reply-To: <7af310f80611101026u433df325w45e11c64989cda6a@mail.gmail.com> Message-ID: It seem's that the minx, miny, maxx, and maxy are not well passed to the result page. Can you chek for these variables and their value in the url of your query result page with "wrong" full extent compared to their value before the query or post it here ? Blaise Le vendredi 10 novembre 2006 19:26, Eduardo Zenaide a ?crit?: > thanks a lot, Blaise! :D > > about my other question, i've changed in the map file the resolution, but > when i zoom in and do some query the map extents. it not resize, but zoom > out to its max. i've tried comment some functions to see if i can identify > where it happens but not sucessfully. > > any ideas? > > 2006/11/10, Blaise : > > Try switching MS_SINGLE to MS_MULTIPLE in the queryByPoint function > > around line 510 in the gmap75.inc.php file. This should do the trick; > > check the doc > > for more details : > > > > http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/ma > >pobj Regards > > Blaise > > > > Le vendredi 10 novembre 2006 18:03, Eduardo Zenaide a ?crit: > > > sorry, gmail replied only to you, i didn't see it > > > > > > what i want is to know if its possible to see, when i use the "i" tool > > > > over > > > > > a layer, results from all visible layers. > > > example: two layers (city, country) visibles, i click over one > > > location, let's say New York, it shows population from city layer AND > > > name from country layer. > > > > > > thanks > > > > > > 2006/11/10, Blaise : > > > > Please Eduardo, post to the list so everybody can participate. > > > > With gmap out of the box, you can do a mutliple query with the Rosa > > > > applet "i" > > > > tool. Isn't it what you are looking for ? > > > > Regards > > > > Blaise > > > > > > > > Le vendredi 10 novembre 2006 13:40, vous avez ?crit: > > > > > Blaise, > > > > > > > > > > about the layers, they all have a template line and work fine, but > > > > > i > > > > > > > > want > > > > > > > > > to know if i can see results from more than one layer at the same > > > > time. > > > > > > > thanks > > > > > > > > > > 2006/11/10, Blaise : > > > > > > hi there, > > > > > > 1 : check first that the layers you want queryable have a > > > > "template" > > > > > > line > > > > > > > > > > in > > > > > > the mapfile. If not, they can't be queryable. > > > > > > 2 : might be. Make a quick string search with the original extent > > > > in > > > > > > all > > > > > > > > > > the > > > > > > files and you'll see. > > > > > > Regards > > > > > > Blaise > > > > > > > > > > > > Le jeudi 9 novembre 2006 20:54, Eduardo Zenaide a ?crit: > > > > > > > hi all, > > > > > > > > > > > > > > there's a way to display results from various layers, for > > > > example, > > > > > > > > > i > > > > > > > > > > > > have > > > > > > > > > > > > > three layers (city, country, province). when i do the query - > > > > i'm > > > > > > > > mounting > > > > > > > > > > > > > my interface under gmap with ms4w - it results only the last > > > > layer. > > > > > > i > > > > > > > > > > would > > > > > > > > > > > > > like to display results from all layers. > > > > > > > > > > > > > > other question: i have locked the screen on the map file as > > > > > > > > 760x500px. > > > > > > > > > > but, > > > > > > > > > > > > > when i zoom in and use the query tool, the map extents to the > > > > > > > > original > > > > > > > > > > > size. there's other place i should change the resolution? > > > > > > > > > > > > > > > > > > > > > thanks in advance :) From pcreso at PCRESO.COM Fri Nov 10 10:53:16 2006 From: pcreso at PCRESO.COM (Brent Wood) Date: Fri, 10 Nov 2006 10:53:16 -0800 Subject: postgis views? In-Reply-To: <4554B30B.7090903@faunalia.it> Message-ID: --- Paolo Cavallini wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Thanks to all who replied. > We had the oid on, but it did not work. > What works for us is having a primary key. > All the best. > pc Note that an oid is not (by default) indexed or a primary key. Either specifying it as a primary key or creating a unique index on it should help. An oid is not selected implicitly in a view (eg: select * from table). To have the oid in the view you must select it explicitly (select oid,* from table), which may require you to specify which oid you are including, if more than one underlying table uses them. Note that in a view a unique key (including oids) from any underlying tables may not remain unique, depending on the SQL defining the view. Several applications which access PostGIS geometries obtain their information from the entry in the geometry_columns table. This record is written when the select addgeometrycolumn command is run (and is deleted by the dropgeometrycolumn command). This record is not created when a view with geometries is defined, which can cause problems (I'm not sure about mapserver). In such cases manually inserting the appropriate record into this table will help. Cheers, Brent Wood From ezenaide at GMAIL.COM Fri Nov 10 11:11:04 2006 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Fri, 10 Nov 2006 17:11:04 -0200 Subject: problems with zoom / layers In-Reply-To: <200611101949.41340.bpicinbono@worldonline.fr> Message-ID: variables returned from url: minx=-37.170347 miny=-9.818007 maxx=-36.313049 maxy=-9.175033 CMD=QUERY_POINT INPUT_TYPE=auto_rect INPUT_COORD=261%2C274%3B261%2C274 original in the map file: -38.234122 -11.52665 -34.594394 -8.133178 it's like the query it's working fine, maybe it's some redraw after the query... i'm searching here, anyway. 2006/11/10, Blaise : > > It seem's that the minx, miny, maxx, and maxy are not well passed to the > result page. > Can you chek for these variables and their value in the url of your query > result page with "wrong" full extent compared to their value before the > query > or post it here ? > Blaise > > Le vendredi 10 novembre 2006 19:26, Eduardo Zenaide a ?crit: > > thanks a lot, Blaise! :D > > > > about my other question, i've changed in the map file the resolution, > but > > when i zoom in and do some query the map extents. it not resize, but > zoom > > out to its max. i've tried comment some functions to see if i can > identify > > where it happens but not sucessfully. > > > > any ideas? > > > > 2006/11/10, Blaise : > > > Try switching MS_SINGLE to MS_MULTIPLE in the queryByPoint function > > > around line 510 in the gmap75.inc.php file. This should do the trick; > > > check the doc > > > for more details : > > > > > > > http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/ma > > >pobj Regards > > > Blaise > > > > > > Le vendredi 10 novembre 2006 18:03, Eduardo Zenaide a ?crit: > > > > sorry, gmail replied only to you, i didn't see it > > > > > > > > what i want is to know if its possible to see, when i use the "i" > tool > > > > > > over > > > > > > > a layer, results from all visible layers. > > > > example: two layers (city, country) visibles, i click over one > > > > location, let's say New York, it shows population from city layer > AND > > > > name from country layer. > > > > > > > > thanks > > > > > > > > 2006/11/10, Blaise : > > > > > Please Eduardo, post to the list so everybody can participate. > > > > > With gmap out of the box, you can do a mutliple query with the > Rosa > > > > > applet "i" > > > > > tool. Isn't it what you are looking for ? > > > > > Regards > > > > > Blaise > > > > > > > > > > Le vendredi 10 novembre 2006 13:40, vous avez ?crit: > > > > > > Blaise, > > > > > > > > > > > > about the layers, they all have a template line and work fine, > but > > > > > > i > > > > > > > > > > want > > > > > > > > > > > to know if i can see results from more than one layer at the > same > > > > > > time. > > > > > > > > > thanks > > > > > > > > > > > > 2006/11/10, Blaise : > > > > > > > hi there, > > > > > > > 1 : check first that the layers you want queryable have a > > > > > > "template" > > > > > > > > line > > > > > > > > > > > > in > > > > > > > the mapfile. If not, they can't be queryable. > > > > > > > 2 : might be. Make a quick string search with the original > extent > > > > > > in > > > > > > > > all > > > > > > > > > > > > the > > > > > > > files and you'll see. > > > > > > > Regards > > > > > > > Blaise > > > > > > > > > > > > > > Le jeudi 9 novembre 2006 20:54, Eduardo Zenaide a ?crit: > > > > > > > > hi all, > > > > > > > > > > > > > > > > there's a way to display results from various layers, for > > > > > > example, > > > > > > > > > > > i > > > > > > > > > > > > > > have > > > > > > > > > > > > > > > three layers (city, country, province). when i do the query > - > > > > > > i'm > > > > > > > > > > mounting > > > > > > > > > > > > > > > my interface under gmap with ms4w - it results only the last > > > > > > layer. > > > > > > > > i > > > > > > > > > > > > would > > > > > > > > > > > > > > > like to display results from all layers. > > > > > > > > > > > > > > > > other question: i have locked the screen on the map file as > > > > > > > > > > 760x500px. > > > > > > > > > > > > but, > > > > > > > > > > > > > > > when i zoom in and use the query tool, the map extents to > the > > > > > > > > > > original > > > > > > > > > > > > > size. there's other place i should change the resolution? > > > > > > > > > > > > > > > > > > > > > > > > thanks in advance :) > -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From arndw at WTAL.DE Fri Nov 10 13:21:41 2006 From: arndw at WTAL.DE (Arnd Wippermann) Date: Fri, 10 Nov 2006 22:21:41 +0100 Subject: AW: [UMN_MAPSERVER-USERS] WMS STYLES-Parameter and Mapserver 4.10 In-Reply-To: Message-ID: Hello Roger, My problem was, that Mapserver 4.10 omitted the STYLES-Parameter in the WMS-GetMap-Request. Some WMS-Servers send an exception, because of this missing parameter. Therefor I looked for a way to add the miising parameter. One way is to add STYLES= to the CONNECTION-String for the Server. I don't like it, but this way I am using. Bart has mentioned adding a tag to the Layers METADATA (wms_styles 'default' ). I have thought, that I have it positiv tested, but a look today shows me that this has no effect. I have also tested other tags in the METADATA to apply SLD-Styles, but they have also no effect. Because I add normally my SLD with javascript to the requeststring, I have not looked deeper in the METADATA tags. With adding &SLD=[url] to the requeststring, I get the wished results. But it's importent, that the SLD is correct, the layer correct named and the Url reachable via http from the requesting server. In the beginning I have often failed and thought it is a Mapserver fault, but it was my fault. You can look at my page. There I have some SLD you can use with the WORLD 4326 layer. I know c, but I'm using only compiled binairies, so there I have no ideas. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ibbOLClient/OpenLayersClient.html -----Urspr?ngliche Nachricht----- Von: Jans Roger [mailto:roger.jans at combitech.se] Gesendet: Freitag, 10. November 2006 09:43 An: arndw at wtal.de Betreff: [UMN_MAPSERVER-USERS] WMS STYLES-Parameter and Mapserver 4.10 Hello Arnd, My name is Roger Jans. I'm also using MapServer 4.10.0 and get the same problem. May I ask you how exactly you solved the issue? What were the final settings needed? Does the reply from Bart mean that the changes to mapwmslayer.c for version 1.79 *cause* the problem? It seems so, since version 1.79 of the file is included in MapServer 4.10.0. I don't know if you're interested but I describe my setup anyway and hopefully you can give me some indication what more I could do to make it work: 1. For my 3 (test) layers in a .map file I have defined simple CLASS...END blocks like this: CLASS NAME "k92_20k_pgx" COLOR 235 250 255 OUTLINECOLOR 100 100 100 END 2. Using MapScript in a PHP page I have extracted an SLD for these classes. That seems to work OK. I get the corresponding settings in the SLD. 3. I have removed (commented out) the CLASS...END blocks in the .map file and instead specify the &SLD=[url] querystring parameter. Like you I have so far not specified any STYLES parameter in the GetMap request. I thought that specifying the 3 layer names and an SLD which specifies style for these 3 layers would be enough. Like you I get a white image. 4. Specifying STYLES= or STYLES=default,default,default changes nothing. 5. Specifying "wms_style" "default" for each of the layers in the .map files changes nothing. 6. Specifying 1 in the elements of the SLD together with &STYLES= in the URL changes NOTHING. (In the SLD implementation spec. it is stated that if the &STYLES= parameter is specified (meaning use default styles) then the SLD style for a layer is only to be used if it is *marked* as the default style. Otherwise MapServer's internal style shall be used.) At this point I feel I'm running out of options. Did you get a positive result with the suggested workaround, my step 5? Sincere regards, Roger Jans System Developer Combitech AB Phone: +46 470 42427 Email: roger.jans at combitech.se From warmerdam at POBOX.COM Fri Nov 10 14:15:07 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 10 Nov 2006 17:15:07 -0500 Subject: Mapserver WMS ECW Datasource(s) In-Reply-To: <454FBD64.1090509@lisasoft.com> Message-ID: Andrew Hughes wrote: > Firstly.... is there a way to turn debugging on??? > > My only debug message is "msDrawMap(): Failed to draw layer named > 'ecw'." Which is kind of obvious ;) ... Andrew, You would add "DEBUG ON" to your layer definition. However, I see your version string lacks DEBUG=MSDEBUG, so I don't think the debug information will work anyways. > --------------------------------------------------------------------------------------------------------------------- > > Secondly... perhaps there is something wrong with my layer definition > (my other layers in this file work perfect)??? > > LAYER > NAME "ecw" > DATA "/var/ecw/my.ecw" > TYPE RASTER > STATUS ON > MINSCALE 00000.0 > MAXSCALE 1000000.0 > END This looks fine assuming the scales make sense, and that in actual use you are enabling the raster layer (STATUS DEFAULT will force it on). > --------------------------------------------------------------------------------------------------------------------- > > Thirdly, perhaps my "FGS" installation does not allow me to read ecw???????? > > azzabox:/opt/fgs# ./www/cgi-bin/mapserv -v > MapServer version 4.6.0-beta2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE You can't tell from the "mapserv -v" report whether GDAL or OGR are built with particular formats. If you have installed the GDAL utilities in your FGS tree as well, you can use "gdalinfo --formats" to list them all or "gdalinfo --format ecw" to check if ECW is enabled. I suspect FGS does not include ECW. Also 4.6.0 beta2 is a bit oldish now. Perhaps you should consider updating to the latest fgs builds. > --------------------------------------------------------------------------------------------------------------------- > > Finally, while I have you attention I know there are several free and > public datasources.... I have found some Landsat available here: > http://www.geotorrent.org/ and would welcome any further data sources! Yes, I've got a mapserver based WMS running with one of the big south american landsat ecw files off geotorrent.org, as a sort of proof of concept. http://maps.gdal.org/ It *can* be done even if it is not trivial. PS. The mapserver distributed in FWTools for linux does include ECW support - http://fwtools.maptools.org/ That's what I'm using on maps.gdal.org I believe. 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 | President OSGeo, http://osgeo.org From ale.pas at TISCALI.IT Sat Nov 11 04:56:47 2006 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Sat, 11 Nov 2006 13:56:47 +0100 Subject: UTF8 PostGIS tables and labelitem Message-ID: Hello, I have a mapfile UTF8 encoded wich reads data from an UTF8 PostGIS table (note the NON ASCII labelitem "variet?": #---------- start layer vig_camp_2004---------- LAYER NAME "vig_camp_2004" CONNECTION "host=localhost user=*** password=*** port=5433 dbname=database" CONNECTIONTYPE postgis TYPE POINT DATA "the_geom from vig_camp_2004" LABELITEM "variet?" TEMPLATE "ttt" STATUS default CLASS NAME "punti di campionamento" COLOR 255 255 64 OUTLINECOLOR 0 0 0 SIZE 15 SYMBOL "star" LABEL ANTIALIAS true COLOR 255 255 64 FONT "arial" OUTLINECOLOR 192 0 0 POSITION ul SIZE 7 TYPE truetype END END PROJECTION "init=epsg:3003" END METADATA DESCRIPTION "Campionamenti 2004" RESULT_FIELDS "proprietar,variet?" LAYER_ENCODING "UTF-8" QUERY_BY_POINT "ttt" ATTRIBUTE_SEARCH "1" WMS_SRS "epsg:3003" WMS_TITLE "vig_camp_2004" WMS_FEATURE_INFO_MIME_TYPE "text/html" END END ----- This is the error: msDrawMap(): Image handling error. Failed to draw layer named 'vig_camp_2004'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT variet?::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from vig_camp_2004 WHERE the_geom && setSRID('BOX3D(1490836.03506098 4967565.5,1541436.33993902 4995227)'::BOX3D, find_srid('','vig_camp_2004','the_geom') )' Postgresql reports the error as 'ERROR: column "variet?" does not exist ' ------ Note that the same DB and the same mapfile works fine on my local ubuntu dapper (which is more UTF8 ready) but fails on my producion server which is Debian based (and more LATIN9 oriented) I tried to set default client encoding to UTF8 on the server but it did'nt help. It's clearly something to do with mapserver passing the query with the wrong encoding or postgres not recognising it correctly. Any hint would be highly appreciated. --- further info ---- # /usr/lib/cgi-bin/mapserv -v MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG # cat /etc/debian_version testing/unstable # file /mapfiles/mapfile.map /mapfiles/mapfile.map: UTF-8 Unicode text # psql -l List of databases Name | Owner | Encoding -----------+----------+---------- database | postgres | UTF8 -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 From richard.greenwood at GMAIL.COM Sat Nov 11 09:09:35 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sat, 11 Nov 2006 10:09:35 -0700 Subject: dBox map multiple results with itemnquery Message-ID: I am using a simple template to map the results of an itemnquery: [img],[shpminx],[shpminy],[shpmaxx],[shpmaxy],[queryfile] from which I parse the 'img' to draw the map and the shpminx, shpminy, shpmaxx, shpmaxy, to set the new extents. Works fine for a single result. Multiple results are harder. If I put the template in the HEADER I get an image with all results (which is what I want) but I don't get shpminx, shpminy, shpmaxx, shpmaxy. Whit my template as TEMPLATE, it gets processed for each result. I get the shpminx, shpminy, shpmaxx, shpmaxy, but what I really want is shpminx, shpminy, shpmaxx, shpmaxy for the whole result set. I could process each record in JavaScript and save the min & max x & y, and assume that will be the extents on the full result set, but I don't think that would be reliable. How can I get the extents of a multi-result image? Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From richard.greenwood at GMAIL.COM Sat Nov 11 09:39:37 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sat, 11 Nov 2006 10:39:37 -0700 Subject: dBox map multiple results with itemnquery In-Reply-To: Message-ID: On 11/11/06, Richard Greenwood wrote: > I am using a simple template to map the results of an itemnquery: > [img],[shpminx],[shpminy],[shpmaxx],[shpmaxy],[queryfile] > from which I parse the 'img' to draw the map and the shpminx, shpminy, > shpmaxx, shpmaxy, to set the new extents. Works fine for a single > result. > > Multiple results are harder. If I put the template in the HEADER I get > an image with all results (which is what I want) but I don't get > shpminx, shpminy, shpmaxx, shpmaxy. Whit my template as TEMPLATE, it > gets processed for each result. I get the shpminx, shpminy, shpmaxx, > shpmaxy, but what I really want is shpminx, shpminy, shpmaxx, shpmaxy > for the whole result set. > > I could process each record in JavaScript and save the min & max x & > y, and assume that will be the extents on the full result set, but I > don't think that would be reliable. > > How can I get the extents of a multi-result image? In reply to my own question, use: [minx],[miny],[maxx],[maxy] instead of: [shpminx],[shpminy],[shpmaxx],[shpmaxy] Amazing how often I find the answer immediately after posting to the list. It's like magic! Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From epk.lists at GMAIL.COM Sat Nov 11 09:43:08 2006 From: epk.lists at GMAIL.COM (Eduardo Patto Kanegae) Date: Sat, 11 Nov 2006 15:43:08 -0200 Subject: Error loading PHPMapScript 4.10.0 - undefined symbol: __gcov_merge_add In-Reply-To: <2d1782780610300311q2c93df6cwc65e7505a2addd6f@mail.gmail.com> Message-ID: Hi folks, After a lot of different ways of configuring MapServer, I finally got MapServer and PHP/MapScript running without the errors I said below. How? 1. The configure command: ./configure --disable-ignore-missing-data --enable-point-z-m --enable-debug --disable-coverage --with-freetype --with-zlib --with-png --with-jpeg --with-xpm --with-gd --without-pdf --with-eppl --with-proj --with-threads --with-geos=/usr/local/bin/geos-config --with-ogr --with-gdal --without-tiff --with-postgis --with-mygis --without-oraclespatial --without-ming --with-wms --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-sos --with-curl-config=/usr/bin/curl-config --with-xml2-config=/usr/bin/xml2-config --without-fastcgi --with-httpd=/usr/sbin/httpd --with-php=/usr/include/php 2>&1 | tee configure.log 2. And also two little hand-made modifications: 2.a) Makefile - at line 218 I removed "-fprofile-arcs -ftest-coverage " options 2.b) mapscript/php3/Makefile - at line 38 I removed "-fprofile-arcs -ftest-coverage " options I just didn't understand why these options was turned on if I set --disable-coverage with ./configure script. regards, Eduardo On 10/30/06, Eduardo Patto Kanegae wrote: > > Hi, > > I built MapServer/MapScript 4.10.0 and php_mapscript.so was sucessfull > generated after make command. > > CGI MapServer is working fine, but when I try dl("php_mapscript.so") I > got the message: > > > Warning: dl() [function.dl]: Unable to load dynamic library > '/usr/lib/php/modules/php_mapscript.so' - > /usr/lib/php/modules/php_mapscript.so: undefined symbol: > __gcov_merge_add in /var/www/html/mapserver-samples/test1.php on line > 2 > > > And another strange thing: when I run any binary command such as > shptree, tile4ms, msencrypt, etc...after the normal output messages, a > lot of lines of warnings appear, like this: > ... > profiling:/usr/src/webmapit/mapserver-4.10.0/mapserv.gcda:Cannot open > ... > > any suggestion? > > best > -- > Eduardo Patto Kanegae > http://www.webmapit.com.br > -- Eduardo Patto Kanegae http://www.webmapit.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: From epk.lists at GMAIL.COM Sat Nov 11 17:29:49 2006 From: epk.lists at GMAIL.COM (Eduardo Patto Kanegae) Date: Sat, 11 Nov 2006 23:29:49 -0200 Subject: foss-GIS rpm's for Fedora 5 Message-ID: Hi folks, At my downloads sectionsI have published some RPM's for ShapeLib, PROJ, GEOS, PostGIS, GDAL, GRASS and MapServer. Currently I only tested these pack under two different machines but both running FC5. Let me know if is there any license restrictions within any package. -- Eduardo Patto Kanegae http://www.webmapit.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: From kbehncke at IGF.UNI-OSNABRUECK.DE Sun Nov 12 13:29:42 2006 From: kbehncke at IGF.UNI-OSNABRUECK.DE (Kai Behncke) Date: Sun, 12 Nov 2006 22:29:42 +0100 Subject: Image Map - no picture Message-ID: Hello List, I?m trying to get an imagemap with MapServer. I checked out the hwoto on: http://mapserver.gis.umn.edu/docs/howto/imagemaps but somehow I cannot get it running. In my mapfile I wrote ..... LAYER NAME testdaten TYPE POINT TOLERANCE 5 STATUS DEFAULT TEMPLATE "bodytemplate.html" HEADER "imapheader.html" FOOTER "imapfooter.html" CONNECTIONTYPE postgis CONNECTION "user=postgres password=******* dbname=geodaten host=localhost (port=5432" DATA "the_geom from beispieltabelle" ..... imapheader.html looks like: --------------------- imapfooter.html looks like: [name] --------------------- bodytemplate.html looks like: I run the application with: http://localhost/cgi-bin/mapserv?map=C:/Programme/Apachegroup/Apache/htdocs/ mapdatei.map&qlayer=testdaten&mode=nquery&searchmap=true but I don`t get a map (in other applications witout imagemap the map-pictures are generated without any problems). If I watch the code in the browser, I see quite a lot area-sections ( But in the "tmp-Directory" there is no "testkarte11633668963748.png"? I wonder why? Where is my mistake? Thank you very much, Kai -- Dipl.-Geogr. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From Steve.Lime at DNR.STATE.MN.US Mon Nov 13 08:34:29 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 13 Nov 2006 10:34:29 -0600 Subject: Image Map - no picture In-Reply-To: <20061112211519.M11436@igf.uni-osnabrueck.de> Message-ID: Do you have a querymap object defined? Is it's status set to on? Steve >>> Kai Behncke 11/12/2006 3:29:42 PM >>> Hello List, I?m trying to get an imagemap with MapServer. I checked out the hwoto on: http://mapserver.gis.umn.edu/docs/howto/imagemaps but somehow I cannot get it running. In my mapfile I wrote ..... LAYER NAME testdaten TYPE POINT TOLERANCE 5 STATUS DEFAULT TEMPLATE "bodytemplate.html" HEADER "imapheader.html" FOOTER "imapfooter.html" CONNECTIONTYPE postgis CONNECTION "user=postgres password=******* dbname=geodaten host=localhost (port=5432" DATA "the_geom from beispieltabelle" ..... imapheader.html looks like: --------------------- imapfooter.html looks like: [name] --------------------- bodytemplate.html looks like: I run the application with: http://localhost/cgi-bin/mapserv?map=C:/Programme/Apachegroup/Apache/htdocs/ mapdatei.map&qlayer=testdaten&mode=nquery&searchmap=true but I don`t get a map (in other applications witout imagemap the map-pictures are generated without any problems). If I watch the code in the browser, I see quite a lot area-sections ( But in the "tmp-Directory" there is no "testkarte11633668963748.png"? I wonder why? Where is my mistake? Thank you very much, Kai -- Dipl.-Geogr. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From funkbucket at GMAIL.COM Mon Nov 13 11:25:22 2006 From: funkbucket at GMAIL.COM (Ben Tuttle) Date: Mon, 13 Nov 2006 12:25:22 -0700 Subject: WCS data misregistered Message-ID: Hi all- I am working with a global (actually -180 to 180 and -65 to 65) 30 arcsec dataset. I have been making tiles in geotiff format from this original image and it sets the pixel size as "Pixel Size = (0.00833333,-0.00833333)". This seems to be causing some trouble when I make a wcs request as the image returned has "Pixel Size = (0.00830565,-0.00830565)" or "Pixel Size = (0.00830204,-0.00830171)", the returned pixel size vaires at different points on the globe. So the images I am getting back have the wrong pixel size and as a result are also misregistered. The result is the same whether I use the tiles or a single global image. I have attached my mapfile below. Any thoughts, soutions, or questions that might lead to solutions would be greatly appreciated. NAME DMSP-Test STATUS ON SIZE 864 312 EXTENT -180 -65 180 65 UNITS dd SHAPEPATH "/mnt/anchor1/eogmaps/data/" IMAGECOLOR 255 255 255 WEB IMAGEPATH "/mnt/anchor1/eogmaps/www/html/tmp/" IMAGEURL "/tmp/" METADATA "wms_title" "DMSP Demo Server" ##required "wms_onlineresource" "http://eogmaps.ngdc.noaa.gov/cgi-bin/mapserv.exe?" ##required "wms_srs" "EPSG:4326" ##recommended END END PROJECTION "init=epsg:4326" ##required END OUTPUTFORMAT NAME GEOTIFF DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "BYTE" EXTENSION "tif" END SYMBOL NAME "BigLine" TYPE ellipse POINTS 1 1 END END LAYER NAME "Countries" METADATA "wms_title" "Countries" ##required END STATUS on TYPE polygon DATA "world_adm0.shp" CLASS NAME "Countries" STYLE SYMBOL BigLine SIZE 2 OUTLINECOLOR 255 75 0 END END # class PROJECTION "init=epsg:4326" END END # layer LAYER NAME "F152003_stretched" METADATA "wms_title" "F152003_stretched" ##required END STATUS on #PROCESSING "SCALE=AUTO" PROCESSING "SCALE_1=0,63" TILEINDEX "tiles/F152003_v2_stable_lights_index.shp" TILEITEM "Location" # DATA "F152003_stretched.tif" TYPE raster PROJECTION "init=epsg:4326" END END LAYER NAME "F152003_v2_stable_lights" METADATA wcs_description "F152003 v2 stable lights" wcs_name "DMSP Annual Composite" wcs_label "F152003" ows_srs "EPSG:4326" ows_extent "-180 -65 180 65" wcs_resolution "0.00833333 -0.00833333" wcs_bandcount "1" wcs_formats "GEOTIFF" wcs_nativeformat "8-bit GeoTIF" wcs_rangeset_name "F152003_v2_stable_lights" wcs_rangeset_label "F152003" wcs_rangeset_axes "bands" wcs_bands_rangeitem "_bands" wcs_bands_name "bands" wcs_bands_semantic "http://www.ngdc.noaa.gov/dmsp/" wcs_bands_refSys "European Petroleum Survey Group (EPSG)" wcs_bands_label "F152003" wcs_bands_values "VIS" END STATUS off DUMP true TILEINDEX "tiles/F152003_v2_stable_lights_index.shp" TILEITEM "Location" TYPE raster PROJECTION "init=epsg:4326" END END LAYER NAME "F152003_stretched_wcs" METADATA wcs_description "F152003 no tiles" wcs_name "DMSP Annual Composite" wcs_label "F152003" ows_srs "EPSG:4326" ows_extent "-180 -65 180 65" wcs_resolution "0.00833333 -0.00833333" wcs_bandcount "1" wcs_formats "GEOTIFF" wcs_nativeformat "8-bit GeoTIF" wcs_rangeset_name "F152003" wcs_rangeset_label "F152003" wcs_rangeset_axes "bands" wcs_bands_rangeitem "_bands" wcs_bands_name "bands" wcs_bands_semantic "http://www.ngdc.noaa.gov/dmsp/" wcs_bands_refSys "European Petroleum Survey Group (EPSG)" wcs_bands_label "F152003" wcs_bands_values "VIS" END STATUS off DUMP true DATA F152003_stretched.lzw.tif TYPE raster PROJECTION "init=epsg:4326" END END END #Mapfile From David.Fawcett at STATE.MN.US Mon Nov 13 13:50:12 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 13 Nov 2006 15:50:12 -0600 Subject: inline features with python mapscript In-Reply-To: A<6246727221874A4FB8D3F9BBC37D9BD5FB0B3C@s-sp22.pca.state.mn.us> Message-ID: OK, after some more self study, I have figured out how to do the labeling of the point. What I am still looking for is how to draw a pointObj in image coordinates (transform=false in CGI world) using Python MapScript. Thanks, David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fawcett, David Sent: Thursday, November 09, 2006 10:14 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] inline features with python mapscript Can anyone point me to an example of how to do a 'copyright notice' using MapScript, preferrably Python MapScript? Essentially, I want to place some title text on a map image using image coords and set the text dynamically. Thanks, David. From mhwang4 at UIUC.EDU Mon Nov 13 19:47:29 2006 From: mhwang4 at UIUC.EDU (myunghwa Hwang) Date: Mon, 13 Nov 2006 21:47:29 -0600 Subject: Failed in dynamic adding classes Message-ID: By using a new feature of MapServer 4.9 +, i.e. OWSDispath, I tried to dynamically add new classes into the original map file. My code is the following: #!/usr/local/bin/python import cgi import cgitb; cgitb.enable() import mapscript as ms cgi_queryitems = ['classitem', 'classification', 'numclass'] cgi_layers = ['bnd_1940', 'bnd_1950'] form = cgi.FieldStorage() req = ms.OWSRequest() # req.loadParams() for key in form.keys(): if key not in cgi_queryitems: req.setParameter(key, form[key].value) map = ms.mapObj('/Users/myunghwa/Sites/Riverweb2/Riverweb.map') for layer in cgi_layers: aLayer = map.getLayerByName(layer) firstClass = ms.classObj(aLayer) firstClass.name = "Total Population < 3000" firstClass.setExpression("([%s] < %s)" % ('poptotal', '3000') ) firstStyle = ms.styleObj(firstClass) firstStyle.color.setRGB(0, 255, 0) firstStyle.outlinecolor.setRGB(0, 0, 255) aLayer.moveClassUp(1) secondClass = ms.classObj(aLayer) secondClass.name = "Total Population >= 3000" secondClass.setExpression("([%s] >= %s)" % ('poptotal', '3000') ) secondStyle = ms.styleObj(secondClass) secondStyle.color.setRGB(0, 180, 0) secondStyle.outlinecolor.setRGB(0, 0, 255) aLayer.moveClassUp(2) aLayer.status = 1 map.OWSDispatch(req) If I remove the second for loop, it worked well. But if I include the second for, it just shows a white image. If anybody knows why it happens, please let me know. Or if you explain how OWSDispatch works, it'll be greatly helpful. from Myunghwa Hwang From humberto at PASTORALDACRIANCA.ORG.BR Tue Nov 14 02:13:11 2006 From: humberto at PASTORALDACRIANCA.ORG.BR (Humberto Cereser Ibanez) Date: Tue, 14 Nov 2006 08:13:11 -0200 Subject: split two labels Message-ID: Hi, I want to show two labels, one to the left (LL) and another one to the right (LR), separate for a hyphen. Is there a way to visually split two labels? example 123 - 4 Thanks Humberto Cereser Ibanez Pastoral da Crian?a Curitiba - PR From mschulz at WEBGIS.DE Tue Nov 14 02:51:16 2006 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Tue, 14 Nov 2006 11:51:16 +0100 Subject: split two labels In-Reply-To: <20061114101311.31985.qmail@hm445.locaweb.com.br> Message-ID: Hi, not sure, if I understood the question correctly, but you can label one point with several attribute values, using the TEXT keyword in the class section of your mapfile: TEXT ([ATTRIBUTE1] - [ATTRIBUTE2]) I don't think you can actually define 2 labelpositions within one layer. But you could use one layer to show the geometry with one label and e.g. an annotation layer for the other attribute label. HTH, Michael On 11/14/06, Humberto Cereser Ibanez wrote: > Hi, > > I want to show two labels, one to the left (LL) and another one to the right (LR), separate for a hyphen. > > Is there a way to visually split two labels? > > example 123 - 4 > > Thanks > > Humberto Cereser Ibanez > Pastoral da Crian?a > Curitiba - PR > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From khayer117 at YAHOO.COM Tue Nov 14 03:06:05 2006 From: khayer117 at YAHOO.COM (abul khayer) Date: Tue, 14 Nov 2006 03:06:05 -0800 Subject: geos Bufferring mapserver 4.10 Message-ID: i am a begainner in the mapserver World... i have completed only one simple project just for viewing map, have no analysis. now i contiue a project using php mapsript but now fall in great problem. i have shape file(.shp) containnig roads network. i have to create a buffer area of this raods network arround 10 km. using this buffer area i have to clip/select agricultural land from another shape shape file. i can create buffer using $shp=roadlayer->getshape(-1,0); $shp->buffer(10); but it create buffer for only one road not the whole network... plz give me the idea which process i have to follow to complete my project.. my configuration: mapserver 4.10(windows) php mapscript windows 2k Mohammad Abul Khayer Consultant, Center for Environmental and Geographic Information Services (CEGIS) ____________________________________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com From stefan.schwarzer at GRID.UNEP.CH Tue Nov 14 04:34:15 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Tue, 14 Nov 2006 13:34:15 +0100 Subject: AJAX for panning Message-ID: Hi, is there any "easy" solution to a nice panning, so that the user can click on the map and drag it, and only the map (not the whole page) is redrawn? I know if kamap, which does it, but that seems to be pretty complex and adds other functionality which I don't need. Thanks for any hints, Stefan From bartvde at OSGIS.NL Tue Nov 14 04:42:19 2006 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 14 Nov 2006 13:42:19 +0100 Subject: AJAX for panning Message-ID: 1) DBOX: http://maps.dnr.state.mn.us/tools/dbox/ 2) OpenLayers (has a Mapserver native interface option as well as WMS among others): http://www.openlayers.org Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Stefan Schwarzer Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] AJAX for panning Datum: 14/11/06 10:37 > Hi, > > is there any "easy" solution to a nice panning, so that the user can > click on the map and drag it, and only the map (not the whole page) > is redrawn? > > I know if kamap, which does it, but that seems to be pretty complex > and adds other functionality which I don't need. > > Thanks for any hints, > > Stefan > > From humberto at PASTORALDACRIANCA.ORG.BR Tue Nov 14 05:13:55 2006 From: humberto at PASTORALDACRIANCA.ORG.BR (Humberto Cereser Ibanez) Date: Tue, 14 Nov 2006 11:13:55 -0200 Subject: split two labels In-Reply-To: Message-ID: Problem solved. Tanks to Michael and sorry for my poor English. LAYER NAME nexames GROUP "N? Exames - Muta??es" TYPE ANNOTATION CONNECTIONTYPE postgis CONNECTION "user=humberto dbname=mutacaoP53 host=localhost" DATA "the_geom from parana" PROJECTION "init=epsg:4291" END STATUS On LABELITEM "exames" CLASSITEM "exames" CLASS TEXT ([exames] - [mutacoes]) EXPRESSION /./ COLOR -1 -1 -1 LABEL COLOR 0 0 0 OUTLINECOLOR 202 202 202 SHADOWCOLOR 202 202 202 TYPE TRUETYPE FONT "sans" ANTIALIAS TRUE SIZE 6 POSITION lc PARTIALS false END END TOLERANCE 0 TOLERANCEUNITS meters END # Layer nexames Humberto Cereser Ibanez De: "Michael Schulz" Data: Tue, 14 Nov 2006 11:51:16 +0100 Para: "Humberto Cereser Ibanez" Assunto: Re: [UMN_MAPSERVER-USERS] split two labels Hi, not sure, if I understood the question correctly, but you can label one point with several attribute values, using the TEXT keyword in the class section of your mapfile: TEXT ([ATTRIBUTE1] - [ATTRIBUTE2]) I don't think you can actually define 2 labelpositions within one layer. But you could use one layer to show the geometry with one label and e.g. an annotation layer for the other attribute label. HTH, Michael On 11/14/06, Humberto Cereser Ibanez wrote: > Hi, > > I want to show two labels, one to the left (LL) and another one to the right (LR), separate for a hyphen. > > Is there a way to visually split two labels? > > example 123 - 4 > > Thanks > > Humberto Cereser Ibanez > Pastoral da Crian?a > Curitiba - PR > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From Sven.Schulz-2 at RUB.DE Tue Nov 14 06:04:37 2006 From: Sven.Schulz-2 at RUB.DE (Sven Schulz) Date: Tue, 14 Nov 2006 15:04:37 +0100 Subject: AJAX for panning In-Reply-To: <574D388F-4C64-4D0B-AA1C-F53FB14E7803@grid.unep.ch> Message-ID: hi stefan, you may have a look at p.mapper (http://www.pmapper.net/). this is a nice framework dealing with ajax, javascript, json and more components. give it a try! best regards, sven Stefan Schwarzer schrieb: > Hi, > > is there any "easy" solution to a nice panning, so that the user can > click on the map and drag it, and only the map (not the whole page) is > redrawn? > > I know if kamap, which does it, but that seems to be pretty complex > and adds other functionality which I don't need. > > Thanks for any hints, > > Stefan > From Tom.Kralidis at EC.GC.CA Tue Nov 14 06:25:16 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 14 Nov 2006 09:25:16 -0500 Subject: geos Bufferring mapserver 4.10 Message-ID: > > i am a begainner in the mapserver World... i have completed > only one simple project just for viewing map, have no analysis. > > now i contiue a project using php mapsript but now fall in > great problem. > i have shape file(.shp) containnig roads network. i have to > create a buffer area of this raods network arround 10 km. > using this buffer area i have to clip/select agricultural > land from another shape shape file. > > i can create buffer using > $shp=roadlayer->getshape(-1,0); > $shp->buffer(10); > but it create buffer for only one road not the whole network... > buffer works at the shapeObj level, so you have to apply the buffer to each shape, i.e.: for(my $i=0; $i<$shapefile->{numshapes}; $i++) { # apply buffer # ... } > plz give me the idea which process i have to follow to > complete my project.. > > > my configuration: > mapserver 4.10(windows) > php mapscript > windows 2k From woodbri at SWOODBRIDGE.COM Tue Nov 14 06:29:57 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 14 Nov 2006 09:29:57 -0500 Subject: AJAX for panning In-Reply-To: <574D388F-4C64-4D0B-AA1C-F53FB14E7803@grid.unep.ch> Message-ID: Stefan Schwarzer wrote: > Hi, > > is there any "easy" solution to a nice panning, so that the user can > click on the map and drag it, and only the map (not the whole page) is > redrawn? > > I know if kamap, which does it, but that seems to be pretty complex and > adds other functionality which I don't need. > > Thanks for any hints, > > Stefan Try http://datacrossing.crs4.it/en_Documentation_mscross.html I like this because it is very small and and a good easy to use lightweight mapping application. -Steve W From percyd at PDX.EDU Tue Nov 14 06:40:09 2006 From: percyd at PDX.EDU (percy) Date: Tue, 14 Nov 2006 06:40:09 -0800 Subject: geos Bufferring mapserver 4.10 In-Reply-To: <2576812186CDD411BF1500508B6DCE950D17F8EB@ecnwri1.ontario.int.ec.gc.ca> Message-ID: This is the sort of thing that is most appropriate for PostGIS, it really starts to get into the realm of GIS "analysis", which Mapserver does NOT purport to do :-) I would look into PostGIS' "Simple Features Specification for SQL ". It will do the buffering and intersecting you describe. However, it sounds like this doesn't need to happen interactively through the web interface, if so you might explore a desktop GIS such as Quantum GIS, uDig, etc. Percy Kralidis,Tom [Burlington] wrote: >> i am a begainner in the mapserver World... i have completed >> only one simple project just for viewing map, have no analysis. >> >> now i contiue a project using php mapsript but now fall in >> great problem. >> i have shape file(.shp) containnig roads network. i have to >> create a buffer area of this raods network arround 10 km. >> using this buffer area i have to clip/select agricultural >> land from another shape shape file. >> >> i can create buffer using >> $shp=roadlayer->getshape(-1,0); >> $shp->buffer(10); >> but it create buffer for only one road not the whole network... >> >> > > buffer works at the shapeObj level, so you have to apply the buffer to > each shape, i.e.: > > for(my $i=0; $i<$shapefile->{numshapes}; $i++) { > # apply buffer > # ... > } > > >> plz give me the idea which process i have to follow to >> complete my project.. >> >> >> my configuration: >> mapserver 4.10(windows) >> php mapscript >> windows 2k >> > > From percyd at PDX.EDU Tue Nov 14 06:50:17 2006 From: percyd at PDX.EDU (percy) Date: Tue, 14 Nov 2006 06:50:17 -0800 Subject: split two labels In-Reply-To: Message-ID: Can you use that same keyword to label something with "boilerplate" text, like TEXT ("Route number: "[route_num]) One of my students was trying to get something like this working yesterday, and I thought it should be possible... Thx, Percy Michael Schulz wrote: > Hi, > > not sure, if I understood the question correctly, but you can label > one point with several attribute values, using the TEXT keyword in the > class section of your mapfile: > TEXT ([ATTRIBUTE1] - [ATTRIBUTE2]) > > I don't think you can actually define 2 labelpositions within one > layer. But you could use one layer to show the geometry with one label > and e.g. an annotation layer for the other attribute label. > > HTH, Michael > > > On 11/14/06, Humberto Cereser Ibanez > wrote: >> Hi, >> >> I want to show two labels, one to the left (LL) and another one to >> the right (LR), separate for a hyphen. >> >> Is there a way to visually split two labels? >> >> example 123 - 4 >> >> Thanks >> >> Humberto Cereser Ibanez >> Pastoral da Crian?a >> Curitiba - PR >> > > From kbehncke at IGF.UNI-OSNABRUECK.DE Tue Nov 14 07:05:55 2006 From: kbehncke at IGF.UNI-OSNABRUECK.DE (Kai Behncke) Date: Tue, 14 Nov 2006 16:05:55 +0100 Subject: AJAX for panning In-Reply-To: <574D388F-4C64-4D0B-AA1C-F53FB14E7803@grid.unep.ch> Message-ID: On Tue, 14 Nov 2006 13:34:15 +0100, Stefan Schwarzer wrote > Hi, > > is there any "easy" solution to a nice panning, so that the user can > click on the map and drag it, and only the map (not the whole page) > is redrawn? > > I know if kamap, which does it, but that seems to be pretty complex > and adds other functionality which I don't need. > > Thanks for any hints, > > Stefan Hello Stefan, you can try mapbender (http://www.mapbender.org). It`s quite easy to modify. You can choose which functions you want to have and the panning works well. Greetings, Kai -- Dipl.-Geogr. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From ezenaide at GMAIL.COM Tue Nov 14 09:26:59 2006 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Tue, 14 Nov 2006 15:26:59 -0200 Subject: problems with zoom / layers In-Reply-To: <7af310f80611101111k4da15edfvcc1da22f5b39a242@mail.gmail.com> Message-ID: i haven't found anything so far... anybody else could help? thanks! 2006/11/10, Eduardo Zenaide : > > variables returned from url: > > minx=-37.170347 > miny=-9.818007 > maxx=-36.313049 > maxy=-9.175033 > CMD=QUERY_POINT > INPUT_TYPE=auto_rect > INPUT_COORD=261%2C274%3B261%2C274 > > original in the map file: > > -38.234122 > -11.52665 > -34.594394 > -8.133178 > > it's like the query it's working fine, maybe it's some redraw after the > query... > i'm searching here, anyway. > > 2006/11/10, Blaise < bpicinbono at worldonline.fr>: > > > It seem's that the minx, miny, maxx, and maxy are not well passed to the > > > > result page. > > Can you chek for these variables and their value in the url of your > > query > > result page with "wrong" full extent compared to their value before the > > query > > or post it here ? > > Blaise > > > > Le vendredi 10 novembre 2006 19:26, Eduardo Zenaide a ?crit: > > > thanks a lot, Blaise! :D > > > > > > about my other question, i've changed in the map file the resolution, > > but > > > when i zoom in and do some query the map extents. it not resize, but > > zoom > > > out to its max. i've tried comment some functions to see if i can > > identify > > > where it happens but not sucessfully. > > > > > > any ideas? > > > > > > 2006/11/10, Blaise < bpicinbono at worldonline.fr>: > > > > Try switching MS_SINGLE to MS_MULTIPLE in the queryByPoint function > > > > around line 510 in the gmap75.inc.php file. This should do the > > trick; > > > > check the doc > > > > for more details : > > > > > > > > > > http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/ma > > > >pobj Regards > > > > Blaise > > > > > > > > Le vendredi 10 novembre 2006 18:03, Eduardo Zenaide a ?crit: > > > > > sorry, gmail replied only to you, i didn't see it > > > > > > > > > > what i want is to know if its possible to see, when i use the "i" > > tool > > > > > > > > over > > > > > > > > > a layer, results from all visible layers. > > > > > example: two layers (city, country) visibles, i click over one > > > > > location, let's say New York, it shows population from city layer > > AND > > > > > name from country layer. > > > > > > > > > > thanks > > > > > > > > > > 2006/11/10, Blaise : > > > > > > Please Eduardo, post to the list so everybody can participate. > > > > > > With gmap out of the box, you can do a mutliple query with the > > Rosa > > > > > > applet "i" > > > > > > tool. Isn't it what you are looking for ? > > > > > > Regards > > > > > > Blaise > > > > > > > > > > > > Le vendredi 10 novembre 2006 13:40, vous avez ?crit: > > > > > > > Blaise, > > > > > > > > > > > > > > about the layers, they all have a template line and work fine, > > but > > > > > > > i > > > > > > > > > > > > want > > > > > > > > > > > > > to know if i can see results from more than one layer at the > > same > > > > > > > > time. > > > > > > > > > > > thanks > > > > > > > > > > > > > > 2006/11/10, Blaise : > > > > > > > > hi there, > > > > > > > > 1 : check first that the layers you want queryable have a > > > > > > > > "template" > > > > > > > > > > line > > > > > > > > > > > > > > in > > > > > > > > the mapfile. If not, they can't be queryable. > > > > > > > > 2 : might be. Make a quick string search with the original > > extent > > > > > > > > in > > > > > > > > > > all > > > > > > > > > > > > > > the > > > > > > > > files and you'll see. > > > > > > > > Regards > > > > > > > > Blaise > > > > > > > > > > > > > > > > Le jeudi 9 novembre 2006 20:54, Eduardo Zenaide a ?crit: > > > > > > > > > hi all, > > > > > > > > > > > > > > > > > > there's a way to display results from various layers, for > > > > > > > > example, > > > > > > > > > > > > > i > > > > > > > > > > > > > > > > have > > > > > > > > > > > > > > > > > three layers (city, country, province). when i do the > > query - > > > > > > > > i'm > > > > > > > > > > > > mounting > > > > > > > > > > > > > > > > > my interface under gmap with ms4w - it results only the > > last > > > > > > > > layer. > > > > > > > > > > i > > > > > > > > > > > > > > would > > > > > > > > > > > > > > > > > like to display results from all layers. > > > > > > > > > > > > > > > > > > other question: i have locked the screen on the map file > > as > > > > > > > > > > > > 760x500px. > > > > > > > > > > > > > > but, > > > > > > > > > > > > > > > > > when i zoom in and use the query tool, the map extents to > > the > > > > > > > > > > > > original > > > > > > > > > > > > > > > size. there's other place i should change the resolution? > > > > > > > > > > > > > > > > > > > > > > > > > > > thanks in advance :) > > > > > > -- > Eduardo Zenaide -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From kbehncke at IGF.UNI-OSNABRUECK.DE Tue Nov 14 09:59:37 2006 From: kbehncke at IGF.UNI-OSNABRUECK.DE (Kai Behncke) Date: Tue, 14 Nov 2006 18:59:37 +0100 Subject: Image Map - no picture In-Reply-To: <45584A350200008F00003F77@co5.dnr.state.mn.us> Message-ID: On Mon, 13 Nov 2006 10:34:29 -0600, Steve Lime wrote > Do you have a querymap object defined? Is it's status set to on? > > Steve > Hello Steve, thank you very much. I had not, but now it works fine:-) For everbybody: In the mapfile you need something like that: QUERYMAP SIZE 500 500 STATUS ON STYLE NORMAL END If the header-html-file looks like : it is important to have a reference to that in the footer.html (I didn`t have in my last posting), like: > > the query > > > or post it here ? > > > Blaise > > > > > > Le vendredi 10 novembre 2006 19:26, Eduardo Zenaide a ?crit: > > > > thanks a lot, Blaise! :D > > > > > > > > about my other question, i've changed in the map file the > > > resolution, but > > > > when i zoom in and do some query the map extents. it not resize, but > > > zoom > > > > out to its max. i've tried comment some functions to see if i can > > > identify > > > > where it happens but not sucessfully. > > > > > > > > any ideas? > > > > > > > > 2006/11/10, Blaise < bpicinbono at worldonline.fr>: > > > > > Try switching MS_SINGLE to MS_MULTIPLE in the queryByPoint > > > function > > > > > around line 510 in the gmap75.inc.php file. This should do the > > > trick; > > > > > check the doc > > > > > for more details : > > > > > > > > > > http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/ma > > > > > > > >pobj Regards > > > > > Blaise > > > > > > > > > > Le vendredi 10 novembre 2006 18:03, Eduardo Zenaide a ?crit: > > > > > > sorry, gmail replied only to you, i didn't see it > > > > > > > > > > > > what i want is to know if its possible to see, when i use the > > > "i" tool > > > > > > > > > > over > > > > > > > > > > > a layer, results from all visible layers. > > > > > > example: two layers (city, country) visibles, i click over one > > > > > > location, let's say New York, it shows population from city > > > layer AND > > > > > > name from country layer. > > > > > > > > > > > > thanks > > > > > > > > > > > > 2006/11/10, Blaise < bpicinbono at worldonline.fr>: > > > > > > > Please Eduardo, post to the list so everybody can participate. > > > > > > > With gmap out of the box, you can do a mutliple query with the > > > Rosa > > > > > > > applet "i" > > > > > > > tool. Isn't it what you are looking for ? > > > > > > > Regards > > > > > > > Blaise > > > > > > > > > > > > > > Le vendredi 10 novembre 2006 13:40, vous avez ?crit: > > > > > > > > Blaise, > > > > > > > > > > > > > > > > about the layers, they all have a template line and work > > > fine, but > > > > > > > > i > > > > > > > > > > > > > > want > > > > > > > > > > > > > > > to know if i can see results from more than one layer at the > > > same > > > > > > > > > > time. > > > > > > > > > > > > > thanks > > > > > > > > > > > > > > > > 2006/11/10, Blaise : > > > > > > > > > hi there, > > > > > > > > > 1 : check first that the layers you want queryable have a > > > > > > > > > > "template" > > > > > > > > > > > > line > > > > > > > > > > > > > > > > in > > > > > > > > > the mapfile. If not, they can't be queryable. > > > > > > > > > 2 : might be. Make a quick string search with the original > > > extent > > > > > > > > > > in > > > > > > > > > > > > all > > > > > > > > > > > > > > > > the > > > > > > > > > files and you'll see. > > > > > > > > > Regards > > > > > > > > > Blaise > > > > > > > > > > > > > > > > > > Le jeudi 9 novembre 2006 20:54, Eduardo Zenaide a ?crit: > > > > > > > > > > hi all, > > > > > > > > > > > > > > > > > > > > there's a way to display results from various layers, > > > for > > > > > > > > > > example, > > > > > > > > > > > > > > > i > > > > > > > > > > > > > > > > > > have > > > > > > > > > > > > > > > > > > > three layers (city, country, province). when i do the > > > query - > > > > > > > > > > i'm > > > > > > > > > > > > > > mounting > > > > > > > > > > > > > > > > > > > my interface under gmap with ms4w - it results only the > > > last > > > > > > > > > > layer. > > > > > > > > > > > > i > > > > > > > > > > > > > > > > would > > > > > > > > > > > > > > > > > > > like to display results from all layers. > > > > > > > > > > > > > > > > > > > > other question: i have locked the screen on the map file > > > as > > > > > > > > > > > > > > 760x500px. > > > > > > > > > > > > > > > > but, > > > > > > > > > > > > > > > > > > > when i zoom in and use the query tool, the map extents > > > to the > > > > > > > > > > > > > > original > > > > > > > > > > > > > > > > > size. there's other place i should change the > > > resolution? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > thanks in advance :) > > > > > > > > > > > -- > > Eduardo Zenaide > > > > > -- > Eduardo Zenaide -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From andre at COVALUATE.COM Tue Nov 14 10:59:27 2006 From: andre at COVALUATE.COM (Andre Lockhart) Date: Tue, 14 Nov 2006 10:59:27 -0800 Subject: Static JPEG/PNG image creation from MapServer Message-ID: We have a requirement to periodically (every 5 minutes) automatically create a 'snapshot' image of the MapServer map as either a png or jpeg file on the server where MapServer is running. Does MapServer have a facility for emitting this, or is there an open-source utility that can be employed? Thanks! ? Andr? Lockhart ?????????????? andre at CoValuate.com ? From gregor at HOSTGIS.COM Tue Nov 14 10:58:45 2006 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 14 Nov 2006 10:58:45 -0800 Subject: Static JPEG/PNG image creation from MapServer In-Reply-To: <20061114185928.0E2C727E9@warspite.concentric.com> Message-ID: > We have a requirement to periodically (every 5 minutes) automatically > create a 'snapshot' image of the MapServer map as either a png or jpeg > file on the server where MapServer is running. Check out the "shp2img" utility that's part of Mapserver. That sounds like what you want. Example usage: shp2img -m mapfile.map -o snapshot.png From hal at MOBILEGEOGRAPHICS.COM Tue Nov 14 11:16:12 2006 From: hal at MOBILEGEOGRAPHICS.COM (Hal Mueller) Date: Tue, 14 Nov 2006 11:16:12 -0800 Subject: Static JPEG/PNG image creation from MapServer In-Reply-To: <20061114185928.0E2C727E9@warspite.concentric.com> Message-ID: shp2img, or do it in Mapscript (e.g. PHP) if you need more control. From Tobias.Knoetzele at ATOSORIGIN.COM Tue Nov 14 10:27:52 2006 From: Tobias.Knoetzele at ATOSORIGIN.COM (Tobias Knoetzele) Date: Tue, 14 Nov 2006 19:27:52 +0100 Subject: Binaries for 64-Bit Windows 2003 Message-ID: Hi everyone, Can somebody tell me where to get mapserver & Co. Binaries (DLLs) for Windows2003 Server 64-Bit AMD? It must be 64-Bit DLLs, since they will run in a Java/Tomcat environment, which needs to be in 64-Bit-Mode to use more than 2GB of memory. As far as I know there is no way to use 32-Bit-DLL?s in a 64-Bit process: http://blogs.msdn.com/david.wang/archive/2005/10/06/HOWTO_Diagnose_one_cause_of_503_Service_Unavailable_on_IIS6_on_64bit_Windows.aspx Anyway if I try to use them I get an exception: java.lang.UnsatisfiedLinkError: mapscript.dll: %1 is not a valid Win32 application According to Sun (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6374419) this message is misleading and means "Can't load 64-bit DLL on a 32-bit machine" (or vice versa). If I was a C professional it would be possible to compile everything for 64-Bit - unfortunately I am not so it would be really a lot of work for me. On my local Machine (32-Bit Windows XP) I got Mapserver 4.6.0 (and 4.10.0) running within my Java/Tomcat application. Any hint appreciated, Tobias tobias dot knoetzele at atosorigin dot com PS: These DLLs are needed for Mapserver 4.6.0: zlib1.dll bgd.dll gdal12.dll iconv.dll libcurl.dll libeay32.dll libeay32.dll.old libmap.dll libpq.dll mapscript.dll netcdf.dll pdflib.dll proj.dll ssleay32.dll xerces-c_2_4_0.dll For Mapserver 4.10.0 the following DLLs are required: ssleay32.dll xerces-c_2_7.dll zlib1.dll bgd.dll gdal13.dll geos_c.dll geotiff.dll iconv.dll libcurl.dll libeay32.dll libecwj2.dll libmap.dll libmysql.dll libpq.dll libtiff.dll libxml2.dll lti_dsdk_dll.dll mapscript.dll pdflib.dll proj.dll -------------- next part -------------- An HTML attachment was scrubbed... URL: From dbkeon.ml at GMAIL.COM Tue Nov 14 12:44:17 2006 From: dbkeon.ml at GMAIL.COM (Dylan Keon) Date: Tue, 14 Nov 2006 12:44:17 -0800 Subject: Conference attendance? Message-ID: Hi folks, Does anyone have figures they could send me on how many people attended: MUM '03 MUM2/OSGIS '04 OSG '05 FOSS4G2006 Thanks, Dylan From funkbucket at GMAIL.COM Tue Nov 14 12:45:54 2006 From: funkbucket at GMAIL.COM (Ben Tuttle) Date: Tue, 14 Nov 2006 13:45:54 -0700 Subject: problem with units in mapserver Message-ID: Hi- I have a a near global 30 arcsecond dataset I would like to serve through WMS and WCS. However, it seems that no matter what I try it is being dealt with in degrees (0.00833333) and not seconds. Is there a way to specify seconds in the mapfile are use gdal to do this? I notice in the mapfile reference that seconds is not an option for Units. The problem I am having with using degrees is serious rounding errors in the pixel sizes of the returned images. It seems that mapserver is doing a string to float conversion on 0.0833333 and then doing math with that float and this is causing the output image to have incorrect pixel sizes. It seems that if I could use seconds (which would mean I'd have a round number for my units instead of a repeating decimal) that this problem would be solved. I haven't found a way to do this though. From percyd at PDX.EDU Tue Nov 14 12:51:21 2006 From: percyd at PDX.EDU (percy) Date: Tue, 14 Nov 2006 12:51:21 -0800 Subject: Conference attendance? In-Reply-To: <455A2AA1.6080508@gmail.com> Message-ID: There are reports from the last 3 years in the RFP for the 2007 OSG/FOSS available here: http://community.osgeo.org/files/osgeo-conference-2007-request-for-proposal.pdf Percy Dylan Keon wrote: > Hi folks, > > Does anyone have figures they could send me on how many people attended: > > MUM '03 > MUM2/OSGIS '04 > OSG '05 > FOSS4G2006 > > Thanks, > Dylan > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From warmerdam at POBOX.COM Tue Nov 14 13:45:23 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 14 Nov 2006 16:45:23 -0500 Subject: problem with units in mapserver In-Reply-To: <259e26270611141245l229bb544v56c0fdc52ee9450a@mail.gmail.com> Message-ID: Ben Tuttle wrote: > Hi- > I have a a near global 30 arcsecond dataset I would like to serve > through WMS and WCS. However, it seems that no matter what I try it is > being dealt with in degrees (0.00833333) and not seconds. Is there a > way to specify seconds in the mapfile are use gdal to do this? I > notice in the mapfile reference that seconds is not an option for > Units. The problem I am having with using degrees is serious rounding > errors in the pixel sizes of the returned images. It seems that > mapserver is doing a string to float conversion on 0.0833333 and then > doing math with that float and this is causing the output image to > have incorrect pixel sizes. It seems that if I could use seconds > (which would mean I'd have a round number for my units instead of a > repeating decimal) that this problem would be solved. I haven't found > a way to do this though. Ben, There is no way to operate in arcseconds with mapserver - sorry. I'd be interested in knowing more about what is getting rounded improperly, and how you are specifying the values. Are you using a world file? Is it the DescribeCoverage that is coming back rounded improperly? 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 | President OSGeo, http://osgeo.org From kris_rock82 at YAHOO.COM Tue Nov 14 13:26:09 2006 From: kris_rock82 at YAHOO.COM (kris rock) Date: Tue, 14 Nov 2006 13:26:09 -0800 Subject: mapserver with fastcgi support Message-ID: Hello all, i configured mapserver with fastcgi support on a windows machine with apache webserver. Downloaded the mod_fastcgi-2.4.2-AP20.dll from fastcgi website and copied into the modules folder in apache. Added the following line to the apache conf file LoadModule fastcgi_module "modules/mod_fastcgi-2.4.2-AP20.dll" but this doesnt make fastcgi work with apache and mapserver. I tested this by sending a request to the sde server and see if only one connection is opened for the database, but everytime i send a request a new connection opens and closes as soon as the request is finished. Is there something else that i have to do for fastcgi working with apache and mapserver. Thanks for your time kris --------------------------------- Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Tue Nov 14 14:02:00 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 14 Nov 2006 16:02:00 -0600 Subject: savequery with PostGIS? In-Reply-To: Message-ID: All savequery does is write feature indexes (shape index and an optional tile index) to disk (plus a couple of other things like a feature count and result set extent). Then it uses those values to call msLayerGetShape() when that query cache is processed. I can't think of a reason why that wouldn't work with PostGIS assuming the shape index is stable. What problems are you experiencing? Steve >>> Richard Greenwood 11/14/2006 12:50:30 PM >>> I doesn't seem like savequery works with a PostGIS layer. Is that correct, or am I missing something? Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From John.C.Cartwright at NOAA.GOV Tue Nov 14 14:56:45 2006 From: John.C.Cartwright at NOAA.GOV (John Cartwright) Date: Tue, 14 Nov 2006 15:56:45 -0700 Subject: generating images in a CGI using mapscript Message-ID: Hello All, I'm trying to use Sean's example (http://mapserver.gis.umn.edu/docs/howto/mapscript_imagery) to directly output a map image from a CGI using python mapscript. The pertinent lines are: map_image = map.draw() print "Content-type: " + map_image.format.mimetype + "\n\n" map_image.write() The cgi runs fine at the command line and even seems to generate a valid GIF image once the Content-type line is removed. However, running this in a browser seems to return an image that does not display but instead shows the alternate text of "The image ... cannot be displayed, because it contains errors." No error is logged w/ apache for this request. Can someone point out what I'm doing wrong here? Thanks! -- john From warmerdam at POBOX.COM Tue Nov 14 16:04:36 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 14 Nov 2006 19:04:36 -0500 Subject: mapserver with fastcgi support In-Reply-To: <20061114212609.70318.qmail@web35904.mail.mud.yahoo.com> Message-ID: kris rock wrote: > Hello all, > i configured mapserver with fastcgi support on a windows machine > with apache webserver. Downloaded the mod_fastcgi-2.4.2-AP20.dll from > fastcgi website and copied into the modules folder in apache. Added the > following line to the apache conf file > LoadModule fastcgi_module "modules/mod_fastcgi-2.4.2-AP20.dll" > > but this doesnt make fastcgi work with apache and mapserver. I tested > this by sending a request to the sde server and see if only one > connection is opened for the database, but everytime i send a request a > new connection opens and closes as soon as the request is finished. > > Is there something else that i have to do for fastcgi working with > apache and mapserver. Kris, You also need to add the following line to all SDE layers. PROCESSING "CLOSE_CONNECTION=DEFER" 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 | President OSGeo, http://osgeo.org From sacha.black at GMAIL.COM Tue Nov 14 16:58:51 2006 From: sacha.black at GMAIL.COM (Sacha Black) Date: Tue, 14 Nov 2006 16:58:51 -0800 Subject: Label Wrapping Message-ID: hi all, searched the archives on these two related questions and found references to each, but no solution. : 1 - is it possible to center-justify the resulting LABEL when WRAP is used? for example right now if I have a polygon called "Bear Mountain State Park" and I use WRAP " ", then I get: Bear Mountain State Park Preffered behavior would be if the whole label were centered on the "n" in the word "Mountain" (center of the longest segment) (Previous thread: http://www.nabble.com/-UMN_MAPSERVER-USERS--WRAP-justification-tf287110.html#a811711 ) 2 - is it furthur possible to specify a WRAP as a wrap character *plus* a length ? So in the example above I would still specify WRAP " ", but also something like WRAPLENGTHMIN 10 (ie. only use the wrap character when it has been encountered after at least 10 characters). the Desired effect of the length minimum above is a label like: Bear Mountain State Park (Previous thread: http://www.nabble.com/Label-wrapping-tf2119776.html#a5846141) just curious if these are already possible, obiously the best of all worlds would be if these two options could be used together. thanks, sacha -------------- next part -------------- An HTML attachment was scrubbed... URL: From codeburg at HOTMAIL.COM Tue Nov 14 17:08:42 2006 From: codeburg at HOTMAIL.COM (Gail Long) Date: Tue, 14 Nov 2006 17:08:42 -0800 Subject: filter rectangle Message-ID: A quick ? I want to set a filter to work in a rectangle within the extents of a map and generate the image using shp2img. How do I limit the filter to the rect in the mapfile? I'm using POSTGIS layers. ========================= ----------------- | Filter area | ----------------- map area ========================= LAYER NAME fadapar ## Search layer for Parcels STATUS on DATA "the_geom from (SELECT parcels.oid AS oid, parcels.the_geom as the_geom, parcels.primowner as primowner, parcels.parcel as parcel,parcels.acres as acres, parcels.gid as gid from parcels) as oid USING UNIQUE oid USING SRID=-1" CONNECTIONTYPE postgis CONNECTION "user=user password=pass dbname=db host=localhost" TYPE POLYGON LABELITEM 'parcel' CLASSITEM 'ACRES' TEMPLATE void FILTER ' ACRES > 10 and ACRES <= 80 ' CLASS NAME 'Filter Matches' STYLE OUTLINECOLOR 0 0 0 COLOR 255 255 0 END TEXT ([PARCEL]|[PRIMOWNER]|[ACRES]) LABEL POSITION cc TYPE truetype FONT verdana-bold SIZE 3 WRAP '|' END END END -- Things are only difficult while you don't understand them. _________________________________________________________________ All-in-one security and maintenance for your PC. Get a free 90-day trial! http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=http://www.windowsonecare.com/?sc_cid=msn_hotmail From stefan.schwarzer at GRID.UNEP.CH Tue Nov 14 23:06:13 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Wed, 15 Nov 2006 08:06:13 +0100 Subject: AJAX for panning In-Reply-To: <4559D2E5.7030200@swoodbridge.com> Message-ID: Thanks Stephen, looks nice. But I have the impression that it only works with the mapserver CGI and not with MapScript/PHP (as one has to indicate the path to the cgi in the CDATA section). Correct? Stef > Stefan Schwarzer wrote: >> Hi, >> is there any "easy" solution to a nice panning, so that the user >> can click on the map and drag it, and only the map (not the whole >> page) is redrawn? >> I know if kamap, which does it, but that seems to be pretty >> complex and adds other functionality which I don't need. >> Thanks for any hints, >> Stefan > > Try http://datacrossing.crs4.it/en_Documentation_mscross.html > > I like this because it is very small and and a good easy to use > lightweight mapping application. > > -Steve W From JXA at COWI.DK Wed Nov 15 01:18:20 2006 From: JXA at COWI.DK (Jeppe Lund Andersen) Date: Wed, 15 Nov 2006 10:18:20 +0100 Subject: ODBC and WKT Message-ID: Hello Iam running on a windows 2003 server and mapserver 4.8.1 and php 4.4.2 Iam using a ODBC connection ( "ODBC:test/test at test_dns,v_aktiveflader" ) In The view It has a coln named "WKT" in there I have this string POLYGON((501982.449393967 6268525.27980791, 501972.653330944 6268522.51037162, 501956.796572362 6268519.5209801, 501940.618225853 6268518.84111849, 501932.908361437 6268518.52118361, 501932.900115592 6268518.52118361, 501929.131764749 6268520.48078474, 501910.570369239 6268517.73134438, 501901.491694669 6268517.99129147, 501885.973015703 6268521.24063007, 501869.547293866 6268527.49935613, 501860.781961379 6268530.53873747, 501845.807508137 6268537.24737195, 501831.822556211 6268543.60607765, 501819.099218463 6268550.38469788, 501808.932092445 6268556.32348906, 501797.899152777 6268563.95193631, 501790.469647067 6268569.21086587, 501778.010176335 6268579.64874127, 501770.349786984 6268586.4273615, 501766.878286536 6268590.09661464, 501761.254620726 6268598.89482379, 501757.939791319 6268605.50347861, 501757.651186768 6268607.74302276, 501757.214157021 6268607.94298206, 501757.057485979 6268612.22211106, 501756.942044159 6268612.63202762, 501756.958535847 6268612.63202762, 501754.905320618 6268620.93033852, 501789.471899907 6268673.55962598, 501805.139004069 6268697.4247683, 501805.163741602 6268697.46476016, 501813.541519407 6268710.24215936, 501813.558011096 6268710.27215325, 501854.226515164 6268772.26953387, 501870.775924666 6268778.71822125, 501870.792416354 6268778.72821922, 501912.359717451 6268804.42298912, 501912.458667582 6268804.48297691, 501925.338676373 6268746.9346907, 501946.439791926 6268678.86854537, 501964.819778862 6268619.43064378, 501975.357967873 6268600.87442085, 501975.21778852 6268600.56448393, 502008.877324936 6268540.03680417, 502013.536226963 6268534.08801503, 502013.577456185 6268534.05802113, 501982.449393967 6268525.27980791)) When I use "$Layer->queryByAttributes($ID_navn, $ID_value, $ResultType);" to get the specifik shape it returns 0 if I change the WKT streng to POLYGON((501982.449393967 6268525.27980791, 501972.653330944 6268522.51037162, 501956.796572362 6268519.5209801)) It works fine. So is there a limit to how long the WKT string can be ? or a work around so I can load long WKT strings Med venlig hilsen Jeppe Lund Andersen COWI A/S -------------- next part -------------- An HTML attachment was scrubbed... URL: From umn-ms at HYDROTEC.DE Wed Nov 15 02:53:23 2006 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Wed, 15 Nov 2006 11:53:23 +0100 Subject: Oracle-Spatial: Crash Message-ID: Hello list-members, hello Fernando Simon We are using Mapserver with Java/Oracle and found crashes (of the hole VM) in some calls of layerObj.getFeature(int shapeindex, int tileindex); As fare as I can see, the crashes occure when the queried SDO_Geometry has value null. Digging in maporaclespatial.c /msOracleSpatialLayerGetShape: Line 2155 (in Version 4.10.0) success = TRY( hand, OCIDefineByPos( dthand->stmthp, &items[i], ..... (where i is index over selected columns) The array "items" is allocated and initialized with only one element. Therefore &items[i] is a pointer to arbitrary memory for i > 0. This seems to cause the crash. Changed the code in the obvious way: - items declared as OCIDefine **items; - allocation: items = calloc(sizeof(OCIDefine*),layer->numitems); The Crashes we detected disappeared. No harmfull side-effects found. Cleaning of the allocated memory is still needed. (As fare as I can see memory cleaning is also missing for the variable nullind.) Same problem in msOracleSpatialLayerGetExtent. Greetings Benedikt -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Wed Nov 15 06:47:04 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 15 Nov 2006 09:47:04 -0500 Subject: ODBC and WKT In-Reply-To: Message-ID: Jeppe Lund Andersen wrote: > > > Hello > > Iam running on a windows 2003 server and mapserver 4.8.1 and php 4.4.2 > Iam using a ODBC connection ( "ODBC:test/test at test_dns,v_aktiveflader" ) .... big wkt string ... > When I use "$Layer->queryByAttributes($ID_navn, $ID_value, > $ResultType);" to get the specifik shape > it returns 0 > if I change the WKT streng to > > POLYGON((501982.449393967 6268525.27980791, 501972.653330944 > 6268522.51037162, 501956.796572362 6268519.5209801)) > > It works fine. > > So is there a limit to how long the WKT string can be ? > or a work around so I can load long WKT strings Jeppe, I believe older versions of GDAL/OGR had problem with long text attributes via ODBC. What version of GDAL/OGR are you using? Can you test the same ODBC connection using the ogrinfo from FWTools 1.0.9? http://fwtools.maptools.org/ If the problem persists I would suggest submitting a bug report. It would be very helpful if you could reproduce the problem with a more portable database format, such as MS Access so you could submit a database with the bug report. I don't run SQL Server and can't easily test stuff related to it. 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 | President OSGeo, http://osgeo.org From Karin_Kampitsch at GMX.AT Wed Nov 15 05:53:43 2006 From: Karin_Kampitsch at GMX.AT (Karin Kampitsch) Date: Wed, 15 Nov 2006 14:53:43 +0100 Subject: Combination Apache + Php Problems Message-ID: Dear Mailing List, I downloaded the mapserver package 4.8.4. In this package also the Apache Version 2.0.58 and the Php version 5.1.4 is included. I tried to open a php file, but it did not work! And so I studied all the installation and configuration instructions and this made me really confusing! So do you know, is there anything I must do with the different files in the Apache directory??? Or is there a problem with the versions of Apache and PHP! It would be very nice, if you could help me! Yours desperate karin -- "Ein Herz f?r Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de Unser Dankesch?n: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht! From woodbri at SWOODBRIDGE.COM Wed Nov 15 06:24:52 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 15 Nov 2006 09:24:52 -0500 Subject: AJAX for panning In-Reply-To: <6984E62F-F607-45E1-8720-105B8B124561@GRID.UNEP.CH> Message-ID: I don't think is require the mapserver cgi, that is just the default implementation. there is a get_url() function that generates the image url based on the image extents and there is no reason that you could not call mapscript for this. I think it just expects that the url will return an image. -Steve Stefan Schwarzer wrote: > Thanks Stephen, > > looks nice. But I have the impression that it only works with the > mapserver CGI and not with MapScript/PHP (as one has to indicate the > path to the cgi in the CDATA section). Correct? > > Stef > >> Stefan Schwarzer wrote: >>> Hi, >>> is there any "easy" solution to a nice panning, so that the user can >>> click on the map and drag it, and only the map (not the whole page) >>> is redrawn? >>> I know if kamap, which does it, but that seems to be pretty complex >>> and adds other functionality which I don't need. >>> Thanks for any hints, >>> Stefan >> >> Try http://datacrossing.crs4.it/en_Documentation_mscross.html >> >> I like this because it is very small and and a good easy to use >> lightweight mapping application. >> >> -Steve W From samnyoung at HOTMAIL.COM Wed Nov 15 07:43:07 2006 From: samnyoung at HOTMAIL.COM (Sam Young) Date: Wed, 15 Nov 2006 06:43:07 -0900 Subject: dbox legend question Message-ID: The checkboxes for my legend in my dbox applications are not turned on for active layers, nor do they change anything if I check/uncheck them and redraw the map. The image that dislpays the color and shape of the layers is also not being displayed. I get the following two errors in the Javascript console: Error: xEvent is not defined Source File: http://localhost/src/javascript/mapserver/dbox.js Line: 486 Error: xml declaration not at start of external entity Source File: http://localhost/cgi-bin/make_dlegend_xml_cgi.py?map=/ms4w/Apache/htdocs/sunvalley.map&server=localhost Line: 2, Column: 1 Source Code: ^ I have an "alert" in my code here: // legend setup var legend_xml = get_content(config.dlegend_xml_executable + "?map=" + config.mapfile + "&server=" + config.dlegend_server); alert(legend_xml); legend.initialize("legend_container", legend_xml); legend.setHandler(DLEGEND_CLICK, ms.setLayer); ms.draw(); This alert doesn't produce any error messages. Thanks in advance for any suggestions. Sam _________________________________________________________________ All-in-one security and maintenance for your PC. Get a free 90-day trial! http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=http://www.windowsonecare.com/?sc_cid=msn_hotmail From trondmm-mapserver at CRUSADERS.NO Wed Nov 15 07:24:59 2006 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Wed, 15 Nov 2006 16:24:59 +0100 Subject: Problems with mapserver and oblique projections Message-ID: Hi. I'm having some problems getting mapserver 4.4.1 to draw maps in an oblique projection. Here's an example: http://wms.met.no/cgi-bin/mapserv?map=../vhosts/mercator/conf/google.map&LAYERS=kart,cdc,base.LATLON&TRANSPARENT=false&BGCOLOR=0x99B3CC&EXCEPTIONS=application/vnd.ogc.se_inimage&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&BBOX=-180,-90,180,90&WIDTH=800&HEIGHT=400&SRS=EPSG:44065 ( http://tinyurl.com/ykem3c ) (red coastlines are drawn by mapserver, the grey land, the bluish coastlines and the gridlines are drawn by an internal WMS-server.) As you can see, mapserver omits most of the shapes close to the North Pole, and there are some wrapping issues at the south pole. the proj-definition looks like this: +proj=ob_tran +o_proj=eqc +lon_0=0 +o_lat_p=25 +a=57.29577953604224884 +b=57.29577953604224884 +no_defs <> (the bizarre minor and major axis sizes are used to get pseudo-decimaldegrees as units. I should probably use some scaling parameter instead, but I was unable to find something that corresponds to the -m command line parameter) and my map is configured like this in the mapfile: LAYER name "cdc" data "cntry00" status on type polygon PROJECTION "+proj=latlong" "+a=6371000" "+b=6371000" END CLASS STYLE outlinecolor 255 0 0 END END END If the tilting is more severe, even more countries are left out of the plot: http://wms.met.no/cgi-bin/mapserv?map=../vhosts/mercator/conf/google.map&LAYERS=kart,cdc,base.LATLON&TRANSPARENT=false&BGCOLOR=0x99B3CC&EXCEPTIONS=application/vnd.ogc.se_inimage&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&BBOX=-180,-90,180,90&WIDTH=800&HEIGHT=400&SRS=EPSG:44090 With no tilt at all, you basically get regular latlong coordinates, and now all countries are being displayed: http://wms.met.no/cgi-bin/mapserv?map=../vhosts/mercator/conf/google.map&LAYERS=kart,cdc,base.LATLON&TRANSPARENT=false&BGCOLOR=0x99B3CC&EXCEPTIONS=application/vnd.ogc.se_inimage&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&BBOX=-180,-90,180,90&WIDTH=800&HEIGHT=400&SRS=EPSG:44000 Does anyone know what I'm doing wrong? Is there something I can do to get mapserver to plot all countries in this projection? (Preferrably without the wrapping issues). -- Trond Michelsen From volunteer at SPATIALLINK.ORG Wed Nov 15 07:59:50 2006 From: volunteer at SPATIALLINK.ORG (siva) Date: Wed, 15 Nov 2006 08:59:50 -0700 Subject: sld?? Message-ID: hello 1 i want example of sld for wms. can i use xslt instead?? 2 how i chnage mapserver "input=odbc"?? many thank yous sincerely sshekar From eric.keefauver at MTU.EDU Wed Nov 15 08:48:54 2006 From: eric.keefauver at MTU.EDU (D. Eric Keefauver) Date: Wed, 15 Nov 2006 11:48:54 -0500 Subject: Shapefile classification by attribute Message-ID: Hello, I have been an ArcIMS user for quite sometime and have been "playing" with Mapserver (the ITASCA demo)in rendering simple shapefiles. My question is this: I have a county shapefile (83 counties) that has a few attributes in the file e.g., -- Shape -Name - Acres_2002- Acres_2003- Cost_2002 - Cost_2003- etc. I would like to be able to display an attribute on user selection. For instance, if the user selects Acres_2002 the map would display the attribute field Acres_2002 based on some sort of classification with the end result being a chloropleth rendering of the attribute field Acres_2002. Can this be done with straight Mapserver functionality? I am using MS4W v1.4.0. I thank you in advance, Eric Eric Keefauver Research Scientist Michigan Tech Research Institute (MTRI) 3520 Green Court, Suite 300 Ann Arbor, MI 48105-1579 Phone: 734-302-4724 Fax: 734-302-4991 eric.keefauver at mtu.edu http://www.mtri.org From warmerdam at POBOX.COM Wed Nov 15 10:09:49 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 15 Nov 2006 13:09:49 -0500 Subject: Problems with mapserver and oblique projections In-Reply-To: <20061115152459.GD13921@crusaders.no> Message-ID: Trond Michelsen wrote: > Hi. > > I'm having some problems getting mapserver 4.4.1 to draw maps in an > oblique projection. ... > Does anyone know what I'm doing wrong? Is there something I can do to > get mapserver to plot all countries in this projection? (Preferrably > without the wrapping issues). Trond, First, there has been a variety of work on the "world mapping" problem since 4.4.x. I would encourage you to try again with 4.10.0 and see which problems remain. The core problem relates to computation of a spatial filter to use against the lat/long data to select all the features needed for rendering. Originally I believe the corners of the bounding box in the output coordinate system were reprojected back to the source coordinate system and used to form a new bounding box. This works very poorly in world mapping situations such as yours where the pole (an extreme in lat/long) is in the middle of the projected space. Recent versions of MapServer will "sample" through the destination rectangle to collect an MBR in the source coordinate system if it detects that some edge points are not reprojectable. I'm not sure if this will fix your problem or not. There have been some other changes for world mapping that might also prove useful in your case. If you still have problems in 4.10.x then please register a bug with a reproducable situation and we can contemplate what to do about it. 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 | President OSGeo, http://osgeo.org From perrygeo at GMAIL.COM Wed Nov 15 10:07:11 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Wed, 15 Nov 2006 10:07:11 -0800 Subject: Shapefile classification by attribute In-Reply-To: <22041.207.72.6.57.1163609334.squirrel@huskymail.mtu.edu> Message-ID: Eric, Mapserver can indeed create choroplethic maps. You'll want to research the CLASS and EXPRESSION mapfile parameters. There is a good tutorial online at: http://biometry.gis.umn.edu/tutorial/example1-3.html In your case, you'll most likely want to create multiple layers for each attribute of interest. Each layer would be comprised of multiple classes. Each class would be defined by an expression (eg ACRES_2002 < 10 ) and a style. Hope this helps.. and welcome to Mapserver! - matt On 11/15/06, D. Eric Keefauver wrote: > Hello, > > I have been an ArcIMS user for quite sometime and have been "playing" with > Mapserver (the ITASCA demo)in rendering simple shapefiles. My question is > this: I have a county shapefile (83 counties) that has a few attributes > in the file e.g., -- Shape -Name - Acres_2002- Acres_2003- Cost_2002 - > Cost_2003- etc. > > I would like to be able to display an attribute on user selection. For > instance, if the user selects Acres_2002 the map would display the > attribute field Acres_2002 based on some sort of classification with the > end result being a chloropleth rendering of the attribute field > Acres_2002. Can this be done with straight Mapserver functionality? I am > using MS4W v1.4.0. > > I thank you in advance, > > Eric > > Eric Keefauver > Research Scientist > Michigan Tech Research Institute (MTRI) > 3520 Green Court, Suite 300 > Ann Arbor, MI 48105-1579 > Phone: 734-302-4724 > Fax: 734-302-4991 > eric.keefauver at mtu.edu > http://www.mtri.org > -- Matthew T. Perry GIS Analyst / Software Engineer National Center for Ecological Analysis and Synthesis (NCEAS) work: perry at nceas.ucsb.edu web: http://www.perrygeo.net From uchowdhury at YAHOO.COM Wed Nov 15 11:00:51 2006 From: uchowdhury at YAHOO.COM (Ujjwal Chowdhury) Date: Wed, 15 Nov 2006 11:00:51 -0800 Subject: Partial TEXT labelling Message-ID: I want to label my map using part of the text in the attribute, e.g if the text is CA-1, I want to just label '1'. Is there any way I can do that using mapserver Thanks uc --------------------------------- Sponsored Link Mortgage rates near historic lows - Refi $200k loan for only $660/ month - Click now for info -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Wed Nov 15 12:12:14 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 15 Nov 2006 15:12:14 -0500 Subject: Question about DEBUG ON Message-ID: Hi all, I have used DEBUG ON in my mapfiles in the past, but I'm getting something very strange happening that I do not remember happening in the past. It looks like the map is getting fully rendered twice and a single map request. This is happening on both 4.6 and 4.9 and from multiple different mapfiles. Does anyone have an explanation for this? Thanks, -Steve http://localhost/cgi-bin/mapserv?mode=map&layers=all&scale=1000000&map=/home/direct/mapserver/default_mapfile.map&mapxy=-71.38918+42.61935&map_size=300+200 Output to /var/log/apache/error.log from a SINGLE draw request: > [Wed Nov 15 14:03:33 2006].668138 msDrawMap(): Layer 0 (color_symbol), 0.000s > [Wed Nov 15 14:03:33 2006].668505 msDrawMap(): Layer 1 (AK_Can_Border_Fill), 0.000s > [Wed Nov 15 14:03:33 2006].668690 msDrawMap(): Layer 2 (Mexican_States), 0.000s > [Wed Nov 15 14:03:33 2006].671238 msDrawMap(): Layer 3 (States/Provinces), 0.003s > [Wed Nov 15 14:03:33 2006].677381 msDrawMap(): Layer 5 (Counties), 0.006s > [Wed Nov 15 14:03:33 2006].682194 msDrawMap(): Layer 6 (Places), 0.005s > [Wed Nov 15 14:03:33 2006].699806 msDrawMap(): Layer 9 (Water), 0.018s > [Wed Nov 15 14:03:33 2006].700657 msDrawMap(): Layer 10 (States_Outline), 0.001s > [Wed Nov 15 14:03:33 2006].703170 msDrawMap(): Layer 19 (Major_Roads_Z2), 0.002s > [Wed Nov 15 14:03:33 2006].703601 msDrawMap(): Layer 30 (Administrative_Area_Boundaries_3_County), 0.000s > [Wed Nov 15 14:03:33 2006].704170 msDrawMap(): Layer 31 (Islands), 0.001s > [Wed Nov 15 14:03:33 2006].704737 msDrawMap(): Layer 32 (Administrative_Area_Boundaries_5_Other), 0.001s > [Wed Nov 15 14:03:33 2006].705809 msDrawMap(): Layer 33 (Land_Use_Features_A_Z1), 0.001s > [Wed Nov 15 14:03:33 2006].706328 msDrawMap(): Layer 35 (Land_Use_Features_B_Z1), 0.000s > [Wed Nov 15 14:03:33 2006].706696 msDrawMap(): Layer 38 (Administrative_Area_Boundaries_3_County), 0.000s > [Wed Nov 15 14:03:33 2006].707041 msDrawMap(): Layer 40 (Oceans), 0.000s > [Wed Nov 15 14:03:33 2006].708529 msDrawMap(): Layer 42 (Waterway_Polygons), 0.001s > [Wed Nov 15 14:03:33 2006].708658 msDrawMap(): Layer 43 (Provinces_Outline), 0.000s > [Wed Nov 15 14:03:33 2006].709133 msDrawMap(): Layer 47 (Major_Roads_Z2), 0.000s > [Wed Nov 15 14:03:33 2006].709612 msDrawMap(): Layer 59 (Canada_Cities_z3), 0.000s > [Wed Nov 15 14:03:33 2006].710052 msDrawMap(): Layer 63 (Highway_Shields_Z2a), 0.000s > [Wed Nov 15 14:03:33 2006].711423 msDrawMap(): Layer 68 (US_Highway_Shields_Z1), 0.001s > [Wed Nov 15 14:03:33 2006].712573 msDrawMap(): Layer 70 (Interstate_Highway_Shields_Z1), 0.001s > [Wed Nov 15 14:03:33 2006].728407 msDrawMap(): Layer 74 (US_Places), 0.016s > [Wed Nov 15 14:03:33 2006].728635 msDrawMap(): Layer 75 (US_State_Capitals), 0.000s > [Wed Nov 15 14:03:33 2006].728666 msDrawMap(): Layer 77 (copyright), 0.000s > [Wed Nov 15 14:03:33 2006].805605 msDrawMap(): Drawing Label Cache, 0.077s > [Wed Nov 15 14:03:33 2006].805641 msDrawMap() total time: 0.138s > [Wed Nov 15 14:03:34 2006].320742 msDrawMap(): Layer 0 (color_symbol), 0.000s > [Wed Nov 15 14:03:34 2006].321095 msDrawMap(): Layer 1 (AK_Can_Border_Fill), 0.000s > [Wed Nov 15 14:03:34 2006].321229 msDrawMap(): Layer 2 (Mexican_States), 0.000s > [Wed Nov 15 14:03:34 2006].323781 msDrawMap(): Layer 3 (States/Provinces), 0.003s > [Wed Nov 15 14:03:34 2006].329886 msDrawMap(): Layer 5 (Counties), 0.006s > [Wed Nov 15 14:03:34 2006].334698 msDrawMap(): Layer 6 (Places), 0.005s > [Wed Nov 15 14:03:34 2006].352820 msDrawMap(): Layer 9 (Water), 0.018s > [Wed Nov 15 14:03:34 2006].353720 msDrawMap(): Layer 10 (States_Outline), 0.001s > [Wed Nov 15 14:03:34 2006].356263 msDrawMap(): Layer 19 (Major_Roads_Z2), 0.003s > [Wed Nov 15 14:03:34 2006].356693 msDrawMap(): Layer 30 (Administrative_Area_Boundaries_3_County), 0.000s > [Wed Nov 15 14:03:34 2006].357263 msDrawMap(): Layer 31 (Islands), 0.001s > [Wed Nov 15 14:03:34 2006].357828 msDrawMap(): Layer 32 (Administrative_Area_Boundaries_5_Other), 0.001s > [Wed Nov 15 14:03:34 2006].358888 msDrawMap(): Layer 33 (Land_Use_Features_A_Z1), 0.001s > [Wed Nov 15 14:03:34 2006].359413 msDrawMap(): Layer 35 (Land_Use_Features_B_Z1), 0.001s > [Wed Nov 15 14:03:34 2006].359784 msDrawMap(): Layer 38 (Administrative_Area_Boundaries_3_County), 0.000s > [Wed Nov 15 14:03:34 2006].360128 msDrawMap(): Layer 40 (Oceans), 0.000s > [Wed Nov 15 14:03:34 2006].361598 msDrawMap(): Layer 42 (Waterway_Polygons), 0.001s > [Wed Nov 15 14:03:34 2006].361718 msDrawMap(): Layer 43 (Provinces_Outline), 0.000s > [Wed Nov 15 14:03:34 2006].362200 msDrawMap(): Layer 47 (Major_Roads_Z2), 0.000s > [Wed Nov 15 14:03:34 2006].362686 msDrawMap(): Layer 59 (Canada_Cities_z3), 0.000s > [Wed Nov 15 14:03:34 2006].363117 msDrawMap(): Layer 63 (Highway_Shields_Z2a), 0.000s > [Wed Nov 15 14:03:34 2006].364521 msDrawMap(): Layer 68 (US_Highway_Shields_Z1), 0.001s > [Wed Nov 15 14:03:34 2006].365698 msDrawMap(): Layer 70 (Interstate_Highway_Shields_Z1), 0.001s > [Wed Nov 15 14:03:34 2006].381811 msDrawMap(): Layer 74 (US_Places), 0.016s > [Wed Nov 15 14:03:34 2006].382029 msDrawMap(): Layer 75 (US_State_Capitals), 0.000s > [Wed Nov 15 14:03:34 2006].382059 msDrawMap(): Layer 77 (copyright), 0.000s > [Wed Nov 15 14:03:34 2006].458967 msDrawMap(): Drawing Label Cache, 0.077s > [Wed Nov 15 14:03:34 2006].459002 msDrawMap() total time: 0.139s From dmorissette at MAPGEARS.COM Wed Nov 15 12:19:53 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 15 Nov 2006 15:19:53 -0500 Subject: Question about DEBUG ON In-Reply-To: <455B749E.9080502@swoodbridge.com> Message-ID: Stephen Woodbridge wrote: > Hi all, > > I have used DEBUG ON in my mapfiles in the past, but I'm getting > something very strange happening that I do not remember happening in the > past. It looks like the map is getting fully rendered twice and a single > map request. This is happening on both 4.6 and 4.9 and from multiple > different mapfiles. > > Does anyone have an explanation for this? > Check your access_log. I noticed a similar issue recently and I saw that I had duplicate entries in the access_log as well. I presumed it was my browser (Firefox) that generated duplicate requests and didn't look any further. If that's not the case then I'd be interested to hear what you find. Daniel -- Daniel Morissette http://www.mapgears.com/ From woodbri at SWOODBRIDGE.COM Wed Nov 15 13:19:12 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 15 Nov 2006 16:19:12 -0500 Subject: Question about DEBUG ON In-Reply-To: <455B7669.4090302@mapgears.com> Message-ID: Daniel Morissette wrote: > Stephen Woodbridge wrote: >> Hi all, >> >> I have used DEBUG ON in my mapfiles in the past, but I'm getting >> something very strange happening that I do not remember happening in >> the past. It looks like the map is getting fully rendered twice and a >> single map request. This is happening on both 4.6 and 4.9 and from >> multiple different mapfiles. >> >> Does anyone have an explanation for this? >> > > Check your access_log. I noticed a similar issue recently and I saw that > I had duplicate entries in the access_log as well. I presumed it was my > browser (Firefox) that generated duplicate requests and didn't look any > further. If that's not the case then I'd be interested to hear what you > find. Yup, multiple entries in the access log. Boy that is very strange. It seems like a nasty bug in foxfire that really loads up the server and slows down the browser I would think. BUT, I just tried the SAME thing in IE6 and I get two requests also. I'm wondering if this is a problem that mapserver is not sending some header or sending a broken header or what? I have no clue, but it seems broken to me. -Steve W from ff: Date: Wed, 15 Nov 2006 21:14:25 GMT Server: Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-16 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: image/png 200 OK From pearsondave at HOTMAIL.COM Wed Nov 15 13:31:30 2006 From: pearsondave at HOTMAIL.COM (Dave Pearson) Date: Wed, 15 Nov 2006 21:31:30 +0000 Subject: Latlong in, tmerc OSGB36 out? Message-ID: Hello list, I have a problem I just can't see the answer to, hope someone can help! I have made a php mapscript service which accepts lat/long WGS84 GPS co-ordinates, but I wish to display the extents given in lat/long in the british ordnance survey transverse mercator projection, OSGB36. I have a mixture of shapefiles in both latlong (WGS84) and OSGB36. I can get the service working accepting latlong and rendering latlong, but at the latitude of the UK everything looks really "squished" vertically. How can I pursuade mapserver to project in OSGB36 yet still accept all input co-ords in latlong? I think the clue may be in the "+to" of proj4 - or am I wrong in thinking mapserver can handle such a thing? Here is my mapfile as it stands - unfortunately it's latlong, and doesnt honor the to - I think? Can anybody help please? OUTPUTFORMAT NAME png DRIVER "GD/PNG" IMAGEMODE pc256 END WEB IMAGEPATH "/var/gis/webgis/maps/" IMAGEURL "http://localdomain/webgis/maps/" END MAP STATUS ON SIZE 500 380 EXTENT -11.0 44.0 9.0 59.0 UNITS dd SHAPEPATH "/var/gis/live" IMAGECOLOR 247 245 222 FONTSET "/var/gis/live/fonts/fonts.txt" PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" "nodefs" # this bit doesnt seem to get recognised "to" "proj=tmerc" "lat_0=49.000000000" "lon_0=-2.000000000" "k=0.9996012717" "x_0=400000.000" "y_0=-100000.000" "ellps=airy" "datum=OSGB36" "no_defs" END LAYER CONNECTIONTYPE postgis NAME custpoi_pointl PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END DATA "the_geom from custpoi_point" CONNECTION "user=postgres password=***** dbname=**** host=127.0.0.1" STATUS DEFAULT TYPE ANNOTATION CLASS TEXT " " STYLE SYMBOL "poi1" COLOR 238 0 0 SIZE 10 ANTIALIAS TRUE END LABEL TYPE truetype FONT arialb SIZE 0 COLOR 238 0 0 FORCE FALSE POSITION AUTO END END END LAYER NAME andesl7 PROJECTION "proj=tmerc" "lat_0=49.000000000" "lon_0=-2.000000000" "k=0.9996012717" "x_0=400000.000" "y_0=-100000.000" "ellps=airy" "datum=OSGB36" "no_defs" END STATUS OFF MINSCALE 3000000 TILEINDEX "al7.shp" TILEITEM "location" TYPE RASTER END END Regards Dave Pearson _________________________________________________________________ Windows Live? Messenger has arrived. Click here to download it for free! http://imagine-msn.com/messenger/launch80/?locale=en-gb From funkbucket at GMAIL.COM Wed Nov 15 13:42:30 2006 From: funkbucket at GMAIL.COM (Ben Tuttle) Date: Wed, 15 Nov 2006 14:42:30 -0700 Subject: problem with units in mapserver In-Reply-To: <455A38F3.8090608@pobox.com> Message-ID: Hi Frank- First off thanks for your interest. I've still been spending a lot of time looking at this and I think I understand what is happening now. Perhaps you could go through my reasoning (and look at my server if you like) and see if you agree or if you have an alternate explanation. So to recap we have a near gloabl 30 arcsecond dataset (-180 to 180 and -65 to 65). We want to output Geotiffs using WCS. So if I run gdalinfo on the original image (I have it in both geotiff and ENVI format) I get Pixel Size = (0.00833333,-0.00833333), for both the geotiff and the ENVI file. When I make a WCS request using resx=0.00833333 and resy=0.00833333 the output image returned by mapserver does not register correctly and gdalinfo returns Pixel Size = (0.00836820,-0.00836820). You can see an example of this at: http://67.172.150.199/cgi-bin/mapserv?map=/data/dmsp4.map&SERVICE=WCS&REQUEST=GetCoverage&Coverage=F152003_tiff&STYLES=&CRS=EPSG:4326&BBOX=-119,33,-117,35&resx=0.00833333&resy=0.00833333&Format=geotiff Additionally, the returned image is 240x240 pixels. So the issue I was trying to explain was why does the pixel size change (By the way, the geotiff does not have a world file, it has an internal header). If I crop the original image to -119,33,-117,35 in IDL using seconds instead of degrees I get back an image that is 241x241 pixels and matches the original data exactly. If I use GDAL to crop the image to -119,33,-117,35 I get back an image that is 240x240 and matches the orginal data exactly. The explanation for the difference in pixel size is that IDL routine we use is inclusive when dealing with the last line in the bounding box and GDAL is not. So the coordinates are correct in both, but IDL has one additional line on the east and south of the image while GDAL does not. Mapserver seems to use a third logic. It tries to use 240x240 and be inclusive of all the pixels in the bounding box, which leads to the 241 pixels being squished into 240 pixels. Once we noticed this we tried using width=241 and height=241 instead of resx resy and got back an image that matched our original data exactly. You can see a sample of this at: http://67.172.150.199/cgi-bin/mapserv?map=/data/dmsp4.map&SERVICE=WCS&REQUEST=GetCoverage&Coverage=F152003_tiff&STYLES=&CRS=EPSG:4326&BBOX=-119,33,-117,35&width=241&height=241&Format=geotiff I have put crops of the original data to 240x240 and 241x241 that match the above requests at: ftp://ftp.ngdc.noaa.gov/DMSP/test in case you would like to compare for yourself. I'd also be happy to make the whole image or other subsets available. So if this is correct my question would be is this a bug or a feature. If you don't think it is correct do you have any other thoughts? Thanks again for your help and interest. On 11/14/06, Frank Warmerdam wrote: > Ben Tuttle wrote: > > Hi- > > I have a a near global 30 arcsecond dataset I would like to serve > > through WMS and WCS. However, it seems that no matter what I try it is > > being dealt with in degrees (0.00833333) and not seconds. Is there a > > way to specify seconds in the mapfile are use gdal to do this? I > > notice in the mapfile reference that seconds is not an option for > > Units. The problem I am having with using degrees is serious rounding > > errors in the pixel sizes of the returned images. It seems that > > mapserver is doing a string to float conversion on 0.0833333 and then > > doing math with that float and this is causing the output image to > > have incorrect pixel sizes. It seems that if I could use seconds > > (which would mean I'd have a round number for my units instead of a > > repeating decimal) that this problem would be solved. I haven't found > > a way to do this though. > > Ben, > > There is no way to operate in arcseconds with mapserver - sorry. > > I'd be interested in knowing more about what is getting rounded > improperly, and how you are specifying the values. Are you using > a world file? Is it the DescribeCoverage that is coming back > rounded improperly? > > 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 | President OSGeo, http://osgeo.org > From trondmm-mapserver at CRUSADERS.NO Wed Nov 15 14:52:58 2006 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Wed, 15 Nov 2006 23:52:58 +0100 Subject: Problems with mapserver and oblique projections In-Reply-To: <455B57ED.2000300@pobox.com> Message-ID: On Wed, Nov 15, 2006 at 01:09:49PM -0500, Frank Warmerdam wrote: > Trond Michelsen wrote: >> I'm having some problems getting mapserver 4.4.1 to draw maps in an >> oblique projection. > First, there has been a variety of work on the "world mapping" problem > since 4.4.x. I would encourage you to try again with 4.10.0 and see > which problems remain. Ah, OK. Thank you. We have installed mapserver from a .deb package for Debain Sarge, and I don't think there's a newer version available. If possible, I'd like to avoid building from source, but it seems that this is the only alternative in this case, so I'll give it a shot. > The core problem relates to computation of a spatial filter to use against > the lat/long data to select all the features needed for rendering. Originally > I believe the corners of the bounding box in the output coordinate system > were reprojected back to the source coordinate system and used to form a new > bounding box. This works very poorly in world mapping situations such as > yours where the pole (an extreme in lat/long) is in the middle of the > projected space. > > Recent versions of MapServer will "sample" through the destination rectangle > to collect an MBR in the source coordinate system if it detects that some > edge points are not reprojectable. I'm not sure if this will fix your > problem or not. There have been some other changes for world mapping that > might also prove useful in your case. Thanks. I'll give it a try, and let you know how it turns out. > If you still have problems in 4.10.x then please register a bug with a > reproducable situation and we can contemplate what to do about it. Sure. -- Trond Michelsen From Jacob.Delfos at MAUNSELL.COM Wed Nov 15 15:59:17 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Thu, 16 Nov 2006 07:59:17 +0800 Subject: Combination Apache + Php Problems Message-ID: Hi Karin, Can you please elaborate on the "did not work" bit? What errors are you getting? The core bit in the apache configuration (httpd.conf) is this: ScriptAlias /php/ "/php/" AddType application/x-httpd-php .php AddType application/x-httpd-php .phtml Action application/x-httpd-php "/php/php-cgi.exe" This makes Apache execute PHP files. You may have to adjust it to suit your setup. And make sure to restart Apache after changes to httpd.conf. Regards, Jacob ? -----Original Message----- ? From: UMN MapServer Users List ? [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Karin Kampitsch ? Sent: 15 November 2006 21:54 ? To: MAPSERVER-USERS at LISTS.UMN.EDU ? Subject: [UMN_MAPSERVER-USERS] Combination Apache + Php Problems ? ? Dear Mailing List, ? ? I downloaded the mapserver package 4.8.4. In this package ? also the Apache Version 2.0.58 and the Php version 5.1.4 is included. ? ? I tried to open a php file, but it did not work! And so I ? studied all the installation and configuration instructions ? and this made me really confusing! ? ? So do you know, is there anything I must do with the ? different files in the Apache directory??? Or is there a ? problem with the versions of Apache and PHP! ? ? It would be very nice, if you could help me! ? ? Yours desperate ? ? karin ? -- ? "Ein Herz f?r Kinder" - Ihre Spende hilft! Aktion: ? www.deutschlandsegelt.de ? Unser Dankesch?n: Ihr Name auf dem Segel der 1. deutschen ? America's Cup-Yacht! ? From erics at AMERI-TITLE.COM Wed Nov 15 16:41:01 2006 From: erics at AMERI-TITLE.COM (Eric Shuman) Date: Wed, 15 Nov 2006 16:41:01 -0800 Subject: Spatial Joins In-Reply-To: Message-ID: Hi list, What options are there for spatially joining the centroid of one polygon layer to another polygon layer? I have been trying to preprocess some data by running a join using postGIS, but after 2+ hours I give up on it. A similar join using the same data in ArcView only takes 3 minutes. My PostGIS layers have spatial indexes and running an EXPLAIN on the query shows that the indexes are being used. Any help figuring out how to optimize spatial joins (Or some links to get me on the right track) would be greatly appreciated! ~Eric From pcreso at PCRESO.COM Wed Nov 15 17:06:27 2006 From: pcreso at PCRESO.COM (Brent Wood) Date: Wed, 15 Nov 2006 17:06:27 -0800 Subject: Spatial Joins In-Reply-To: Message-ID: --- Eric Shuman wrote: > Hi list, > > What options are there for spatially joining the centroid of one polygon > layer to another polygon layer? > > I have been trying to preprocess some data by running a join using postGIS, > but after 2+ hours I give up on it. A similar join using the same data in > ArcView only takes 3 minutes. The postgis list might be a better place for this, but here's my 02c :-) If I understand your question correctly, what you want to do is along the lines of: select * from table1 t1, table2 t2 where t1.the_geom && t2.the_geom and centroid(t1.the_geom) && t2.the_geom and contains(centroid(t1.the_geom), t2.the_geom); where t1.the_geom & t2.the_geom are spatially indexed polygon geometries. So, the three where clauses filter out any polygons whose bounding boxes don't overlap using the spatial index on both tables, then filter any centroids whoich don't lie within the polygon bounding box (indexed on one side only, the other fixed) then check the remainder that the centroid point lies within the actual polygon. One way I can see which might speed this up would be to create a column of point geometries in t1, update that to equal the centroid of the t1 polygons & create a spatial index on it. Then select on the two spatially indexed attributes, instead of calculating the centroid each time. Cheers, Brent Wood ____________________________________________________________________________________ The all-new Yahoo! Mail beta Fire up a more powerful email and get things done faster. http://new.mail.yahoo.com From richard.greenwood at GMAIL.COM Wed Nov 15 19:52:43 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 15 Nov 2006 20:52:43 -0700 Subject: dbox legend question In-Reply-To: Message-ID: On 11/15/06, Sam Young wrote: > The checkboxes for my legend in my dbox applications are not turned on for > active layers, That's okay, you have to set the checkboxes with: legend.changeNodeStatus("roads", "on"); nor do they change anything if I check/uncheck them and > redraw the map. That's not okay. The image that dislpays the color and shape of the layers > is also not being displayed. I get the following two errors in the > Javascript console: > > Error: xEvent is not defined > Source File: http://localhost/src/javascript/mapserver/dbox.js > Line: 486 > > Error: xml declaration not at start of external entity > Source File: > http://localhost/cgi-bin/make_dlegend_xml_cgi.py?map=/ms4w/Apache/htdocs/sunvalley.map&server=localhost > Line: 2, Column: 1 > Source Code: > ^ > > I have an "alert" in my code here: > > // legend setup > var legend_xml = get_content(config.dlegend_xml_executable + "?map=" + > config.mapfile + "&server=" + config.dlegend_server); > alert(legend_xml); > legend.initialize("legend_container", legend_xml); > legend.setHandler(DLEGEND_CLICK, ms.setLayer); > > ms.draw(); I assume that's in your window.onload function. And I am guessing that when you say the alert doesn't give any errors, the alert isn't opening at all. So I don't think your window.onload is getting called, or it is generating an error before legend_xml gets initialized. Try moving your alert up earlier in the code to see where it's crapping out. Like to the first line in window.onload() so you can see if window.onload is even getting called. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Jukka.Rahkonen at MMMTIKE.FI Thu Nov 16 05:51:31 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 16 Nov 2006 15:51:31 +0200 Subject: Benchmarks about LUT colour correction and JPEG2000 drivers Message-ID: Hi, I did some benchmarking while making an acceptance test for a new feature in MapServer, LUT colour correction on-the-fly by using predefined LUT-tables. More information about this fine feature here: http://mapserver.gis.umn.edu/docs/howto/raster_data/#special-processing-directives Downloadable ready made MapServer -version for Windows can be found here: http://www.gdal.org/dl/fwtools/FWTools109.exe Frank W. supposed my findings might interest the people reading mapserver-users or even gdal-dev lists, so I cross post this short kind of a test report to both. I had already checked that the new feature worked as supposed and next I was willing to see how big an effect applying LUT tables on-the-fly has on the efficiency of MapServer. I set up a Jmeter project to send series of individual WMS requests to MapServer and recorder the server throughput with or without PROSESSING "LUT=..." argument. Because I have the same images in GeoTIFF, JPEG2000 and ECW formats I desided to make also a quick test to see how MapServer performs with those. There were actually four members in the format test because FWTools MapServer ships with two JPEG2000 drivers, JP2KAK and JP2ECW. Here are the results in brief: LUT-correction has a negligible effect on MapServer efficiency - server throughput without LUT-correction: 271 requests per minute - server throughput without LUT-correction: 268 requests per minute There is a really significant difference between the two JPEG2000 drivers, JP2KAK and JP2ECW - server throughput with JP2ECW driver: 80 requests per minute - server throughput with JP2KAK driver: 24 requests per minute MapServer likes ECW more than JPEG2000 - server throughput with ECW images: 120 requests per minute My tests should be otherwise quite reliable, but I am not sure if my test set is suitable for straight comparison between JPEG2000 and ECW because my JPEG2000 images were lossless and ECW images were compressed about to the ratio of 1 to 5. However I am not aware of lossless JPEG2000 files being much harder to decompress than lossy ones even the file size is bigger if JPEG2000 codestreams are organised in a reasonable way, and that should be the case with my JPEG2000 files. I believe that the results about ECW and JPEG2000 can not be generalised but they just tell what I was testing: how MapServer (or perhaps it is GDAL?) utilises them with certain drivers. I have not found that big difference between ECW and JPEG2000 with other software, and to my experience Kakadu is about (or at least) as fast as ECW JPEG2000. But for sure it seems to be so that MapServer performance with the current JP2KAK driver is quite bad compared to JP2ECW driver. It should be no surprise that tiled TIFFs with overviews really suit MapServer best. -Jukka Rahkonen- From richard.greenwood at GMAIL.COM Thu Nov 16 07:55:45 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 16 Nov 2006 08:55:45 -0700 Subject: savequery with PostGIS? In-Reply-To: <4559E8780200008F00004034@co5.dnr.state.mn.us> Message-ID: On 11/14/06, Steve Lime wrote: > All savequery does is write feature indexes (shape index and an optional > tile index) to disk (plus > a couple of other things like a feature count and result set extent). > Then it uses those values to > call msLayerGetShape() when that query cache is processed. I can't > think of a reason why that > wouldn't work with PostGIS assuming the shape index is stable. What > problems are you experiencing? > > Steve savequery works just fine with postgis. It turned out to be a silly mistake on my part. Thanks Steve! Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From r.keltermann at WEB.DE Thu Nov 16 07:44:29 2006 From: r.keltermann at WEB.DE (Reinhard Keltermann) Date: Thu, 16 Nov 2006 16:44:29 +0100 Subject: Question to SLD-Tutorial Message-ID: Hello all of you, I`m beginning with SLD. Locally on my Computer this works fine, but I wonder how I can change the map of the example of DM Solutions? I have copied the xml-file out of the tutorial (http://mapserver.gis.umn.edu/docs/howto/sldhowto) and saved it locally in the htdocs-directory of apache. But if I run: http://www2.dmsolutions.ca/cgi-bin/mswms_world?SERVICE=WMS&VERSION=1.1.1&Request=GetMap &LAYERS=WorldGen_Outline&SLD=http://localhost/sld_line_simple.xml nothing happens at all (the map is still green and does not change its color). Who knows why? Reinhard ______________________________________________________________________________ "Ein Herz f?r Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de Unser Dankesch?n: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht! From umn-ms at HYDROTEC.DE Thu Nov 16 08:36:50 2006 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Thu, 16 Nov 2006 17:36:50 +0100 Subject: Oracle-Spatial: Crash In-Reply-To: <455B2E52.9090607@pobox.com> Message-ID: Hi I've created http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1961 Regards Benedikt Frank Warmerdam schrieb am 15.11.2006 16:12:18: > Benedikt Rothe wrote: > > > > Hello list-members, hello Fernando Simon > > > > We are using Mapserver with Java/Oracle and found crashes (of the hole > > VM) in some > > calls of layerObj.getFeature(int shapeindex, int tileindex); > > > > As fare as I can see, the crashes occure when the queried SDO_Geometry > > has value null. > > > > Digging in maporaclespatial.c /msOracleSpatialLayerGetShape: > > Line 2155 (in Version 4.10.0) > > success = TRY( hand, OCIDefineByPos( dthand->stmthp, > > &items[i], ..... > > (where i is index over selected columns) > > > > The array "items" is allocated and initialized with only one element. > > Therefore &items[i] is a pointer to > > arbitrary memory for i > 0. This seems to cause the crash. > > > > Changed the code in the obvious way: > > - items declared as > > OCIDefine **items; > > - allocation: > > items = calloc(sizeof(OCIDefine*),layer->numitems); > > > > The Crashes we detected disappeared. No harmfull side-effects found. > > > > Cleaning of the allocated memory is still needed. (As fare as I can see > > memory cleaning is also > > missing for the variable nullind.) > > > > Same problem in msOracleSpatialLayerGetExtent. > > > > Greetings > > Benedikt > > Benedikt, > > Good catch! If you don't hear from Fernando quite soon, you should > submit this via bugzilla so it doesn't get lost. In fact, if this fix > is to be back-ported into 4.10.1 it will need a bugzilla entry (a > requirement for stable release changes). > > 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 | President OSGeo, http://osgeo.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric.keefauver at MTU.EDU Thu Nov 16 09:03:05 2006 From: eric.keefauver at MTU.EDU (D. Eric Keefauver) Date: Thu, 16 Nov 2006 12:03:05 -0500 Subject: Logical Expressions Message-ID: New to MS. My question is this: I am wanting to use a logical expression within a layer in my mapfile. The below expression will render the county with the exact acreage of '438282.297'. How would I set it to display all acreages in the field that are < 500,000 ? Syntax? I am running MS4W v 1.4.0. Also, could this value (500,000) be set by a user through, say, via a form? Thanks much Eric LAYER NAME Michigan_county_eqip TYPE POLYGON STATUS OFF DATA Michigan_county_eqip CLASSITEM 'ACRES' CLASS NAME "ACREAGE" #This is read into the legend EXPRESSION '438282.297' OUTLINECOLOR 0 0 0 COLOR 173 216 230 TEMPLATE "county_eqip.html" END CLASS # every other county in the state NAME "COUNTIES" OUTLINECOLOR 211 211 211 COLOR 119 136 153 TEMPLATE "county_eqip.html" END HEADER "county_eqip_header.html" FOOTER "county_eqip_footer.html" TOLERANCE 3 DUMP TRUE # allow GML export END Eric Keefauver Research Scientist Michigan Tech Research Institute (MTRI) 3520 Green Court, Suite 300 Ann Arbor, MI 48105-1579 Phone: 734-302-4724 Fax: 734-302-4991 eric.keefauver at mtu.edu http://www.mtri.org From husnul_z at YAHOO.COM Thu Nov 16 08:54:59 2006 From: husnul_z at YAHOO.COM (husnul) Date: Thu, 16 Nov 2006 08:54:59 -0800 Subject: You are now subscribed to the MAPSERVER-USERS list In-Reply-To: Message-ID: Dear Sirs, My name is Husnul, and i am developing gis system. I have download and installed mapserver's rpms for FC5 from http://earth.jscc.ru/rpm/FC5/i386/ but when i tried to rpm -ivh mapserver-4.xxx, it failed. it said that it needs libpdf.so.5 before, i have install these package for pdflib-lite : pdflib-lite-7.0.0p3-1.fc5.remi .i386.rpm php-pecl-pdflib-2.1.2-1.fc5.remi.i386.rpm and it turns out generate libpdf.so.6 instead of libpdf.so.5 is anyone have install mapserver in FC5? because i was wandering, if i also install PDFLib-Lite-6.xxx. , will the mapserver working properly? and will mapserver-php also working properly(php/mapscript)? and is mapserver-php-4.8.3-ns1.i386.rpm is compatible with php 5? (since in FC it used php5) Since i cant find php-pecl-PDFLib-Lite rpm. So i still use these two installation (pdflib-lite-7.0.0p3-1.fc5.remi.i386.rpm, php-pecl-pdflib-2.1.2-1.fc5.remi.i386.rpm)for php pdf function needs. Thank you for your attention Husnul --------------------------------- Sponsored Link Don't quit your job - take classes online and earn your degree in 1 year. Start Today -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Thu Nov 16 09:02:34 2006 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 16 Nov 2006 09:02:34 -0800 Subject: Logical Expressions In-Reply-To: <3083.207.72.6.57.1163696585.squirrel@huskymail.mtu.edu> Message-ID: > with the exact acreage of '438282.297'. How would I set it to display all > acreages in the field that are < 500,000 ? Syntax? Give this a try: #CLASSITEM 'ACRES' # skip this CLASS NAME "Exact" EXPRESSION ([acreage] == 438282.297) END CLASS NAME "Smaller" EXPRESSION ([acreage] < 438282.297) END From jayzee.smith at GMAIL.COM Thu Nov 16 09:10:24 2006 From: jayzee.smith at GMAIL.COM (John Smith) Date: Thu, 16 Nov 2006 12:10:24 -0500 Subject: raster projector Message-ID: guys, trying to put a geotiff in- works but not right. here's what's happening: i download the geotiff from national atlas. when i give no proj info under LAYER it shows up but not where it should (nwis). so i copy MAP proj to LAYER proj hoping for some on-the-fly magic- again it shows up but nwis. well i go over to proj_listand look up the epsg (EPSG?) code (9820) from metadata but it throws the "msProcessProjection(): Projection library error. no options found in 'init' file" error. then i try all epsg codes given by gdalinfo ;) but same error. although when i try the MAP epsg code (4326) it shows up but nwis. so what's wrong here? think proj.exe geod.exe cs2cs.exe libgeotiff listgeo'd help? now i don't think wld is needed because it's included with the geotiff but i've tried with wld and no luck. i just hope i don't have to rectify in arcmap. btw IMAGETYPE=png24 in case that matters. jzs http://mapserver.gis.umn.edu/docs/howto/raster_data http://mapserver.gis.umn.edu/docs/reference/mapfile/projection http://www.nabble.com/Trying-to-figure-out-epsg-for-a-GeoTIFF-tf1165783.html http://www.remotesensing.org/geotiff/proj_list/ http://www.remotesensing.org/gdal/gdalinfo.html http://www.remotesensing.org/proj/ >gdalinfo geotiff.tif Driver: GTiff/GeoTIFF Size is 10366, 7273 Coordinate System is: PROJCS["TIFF 6.0, GeoTIFF Revision 1.0", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235630016, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], PROJECTION["Lambert_Azimuthal_Equal_Area"], PARAMETER["latitude_of_center",45], PARAMETER["longitude_of_center",-100], PARAMETER["false_easting",0], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]]] Origin = (-6086629.000000,4488761.000000) Pixel Size = (1000.00000000,-1000.00000000) Metadata: AREA_OR_POINT=Point TIFFTAG_IMAGEDESCRIPTION=North America TIFFTAG_SOFTWARE=Arc/Info TIFFTAG_XRESOLUTION=0.0010000002 TIFFTAG_YRESOLUTION=0.0010000002 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left (-6086629.000, 4488761.000) (156d 3'31.10 "E, 37d45'55.65"N) Lower Left (-6086629.000,-2784239.000) (154d27'44.36"W, 3d 2'12.16"N) Upper Right ( 4279371.000, 4488761.000) ( 4d 0'23.08"W, 53d59'22.66"N) Lower Right ( 4279371.000 ,-2784239.000) ( 61d 9'32.19"W, 11d18'12.56"N) Center ( -903629.000, 852261.000) (113d12'19.80"W, 51d59'8.84"N) Band 1 Block=10366x1 Type=Byte, ColorInterp=Red Band 2 Block=10366x1 Type=Byte, ColorInterp=Green Band 3 Block=10366x1 Type=Byte, ColorInterp=Blue -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Nov 16 12:04:58 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 16 Nov 2006 15:04:58 -0500 Subject: raster projector In-Reply-To: Message-ID: John Smith wrote: > guys, > trying to put a geotiff in- works but not right. here's what's happening: > > i download the geotiff from national atlas. when i give no proj info > under LAYER it shows up but not where it should (nwis). so i copy MAP > proj to LAYER proj hoping for some on-the-fly magic- again it shows up > but nwis. > > well i go over to proj_list > and look up the epsg > (EPSG?) code (9820) from metadata but it throws the > "msProcessProjection(): Projection library error. no options found in > 'init' file" error. then i try all epsg codes given by gdalinfo ;) but > same error. although when i try the MAP epsg code (4326) it shows up but > nwis. > > so what's wrong here? think proj.exe geod.exe cs2cs.exe libgeotiff > listgeo'd help? now i don't think wld is needed because it's included > with the geotiff but i've tried with wld and no luck. i just hope i > don't have to rectify in arcmap. btw IMAGETYPE=png24 in case that matters. John, I don't believe there is an EPSG code corresponding to this coordinate system: PROJCS["TIFF 6.0, GeoTIFF Revision 1.0", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235630016, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], PROJECTION["Lambert_Azimuthal_Equal_Area"], PARAMETER["latitude_of_center",45], PARAMETER["longitude_of_center",-100], PARAMETER["false_easting",0], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]]] But the corresponding PROJECTION block to put in the LAYER definition is: PROJECTION "+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0 +datum=WGS84 +units=m" END At one time you could also put: PROJECTION "AUTO" END and MapServer would read it from the geotiff file, but I'm not sure if this still works. 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 | President OSGeo, http://osgeo.org From arndw at WTAL.DE Thu Nov 16 09:41:33 2006 From: arndw at WTAL.DE (Arnd Wippermann) Date: Thu, 16 Nov 2006 18:41:33 +0100 Subject: AW: [UMN_MAPSERVER-USERS] Question to SLD-Tutorial In-Reply-To: <280215530@web.de> Message-ID: Hello Reinhard, The SLD-File must be reachable for the requested server. The server www2.dmsolutions.ca couldn't read your local file. You can test it with your server localhost or you must put the file to some server, where the file is downloadable for the Internet. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ibbOLClient/OpenlayersClient.html -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Reinhard Keltermann Gesendet: Donnerstag, 16. November 2006 16:44 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] Question to SLD-Tutorial Hello all of you, I`m beginning with SLD. Locally on my Computer this works fine, but I wonder how I can change the map of the example of DM Solutions? I have copied the xml-file out of the tutorial (http://mapserver.gis.umn.edu/docs/howto/sldhowto) and saved it locally in the htdocs-directory of apache. But if I run: http://www2.dmsolutions.ca/cgi-bin/mswms_world?SERVICE=WMS&VERSION=1.1.1&Req uest=GetMap &LAYERS=WorldGen_Outline&SLD=http://localhost/sld_line_simple.xml nothing happens at all (the map is still green and does not change its color). Who knows why? Reinhard ____________________________________________________________________________ __ "Ein Herz f?r Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de Unser Dankesch?n: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht! From armin.burger at GMX.NET Thu Nov 16 12:58:55 2006 From: armin.burger at GMX.NET (Armin Burger) Date: Thu, 16 Nov 2006 21:58:55 +0100 Subject: getFilter() & setFilter() with PHP Mapscript Message-ID: Hi everybody in PHP Mapscript the 'getFilter()' request applied on PostGIS layers having a filter defined in the map file returns a string already put into double quotes. This seems to be so since Mapserver 4.6. Since Mapserver 4.10 also the reverse 'setFilter()' seems to work only correctly for PostGIS layers if the filter is defined as string with literal double quotes around. So that's not working: $mylayer->setFilter("field_1 = 2 AND field_2 = 2004"); That's working: $mylayer->setFilter('"field_1 = 2 AND field_2 = 2004"'); I wonder if this is an intended 'feature'. Armin From andreas.albarello at TERRITORIUMONLINE.COM Thu Nov 16 13:09:39 2006 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Thu, 16 Nov 2006 22:09:39 +0100 Subject: getFilter() & setFilter() with PHP Mapscript In-Reply-To: <455CD10F.1040100@gmx.net> Message-ID: Armin Burger wrote: > So that's not working: > > $mylayer->setFilter("field_1 = 2 AND field_2 = 2004"); > > That's working: > > $mylayer->setFilter('"field_1 = 2 AND field_2 = 2004"'); > > I wonder if this is an intended 'feature'. Armin, this has been fixed in the meantime: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1948 Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From arndw at WTAL.DE Thu Nov 16 13:27:37 2006 From: arndw at WTAL.DE (Arnd Wippermann) Date: Thu, 16 Nov 2006 22:27:37 +0100 Subject: Problems with mapserver and oblique projections Message-ID: Hello, I have also played with some unusual projections and have entcountered the same problem. I use mapserver 4.10 and as interface OpenLayers (on to different machines). Some tiles look good, others not drawn at all or only parts. Also differs the output on both servers. Zooming and the visible layers effect also the output. Here the example with epsg:44065 http://gis.ibbeck.de/ginfo/ibbOLClient/OpenlayersClient.html?MAPNR=11801&LAY ERS=11500&ZOOM=0&CENTER=0,0 And some others http://gis.ibbeck.de/ginfo/ibbOLClient/OpenLayersClient.html?KARTE=10504 http://gis.ibbeck.de/ginfo/ibbOLClient/OpenlayersClient.html?MAPNR=12800&LAY ERS=11500&ZOOM=0&CENTER=1660129.823,-415032.456 http://gis.ibbeck.de/ginfo/ibbOLClient/OpenlayersClient.html?MAPNR=12400&LAY ERS=11500&ZOOM=4&CENTER=-1426674.0662,-622548.6834 I have looked at many different projections and mostly there were no problems with the output. http://gis.ibbeck.de/ginfo/ibbOLClient/OpenlayersClient.html?MAPNR=12300&LAY ERS=11500&ZOOM=0&CENTER=0,0 The blue screen layer is a shape with 30 degree lines (therefor it looks a bit wrong sometimes), the grids all 1 degree lines. Arnd Wippermann http://gis.ibbeck.de/ginfo/ibbOLClient/OpenlayersClient.html -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Trond Michelsen Gesendet: Mittwoch, 15. November 2006 16:25 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] Problems with mapserver and oblique projections Hi. I'm having some problems getting mapserver 4.4.1 to draw maps in an oblique projection. Here's an example: http://wms.met.no/cgi-bin/mapserv?map=../vhosts/mercator/conf/google.map&LAY ERS=kart,cdc,base.LATLON&TRANSPARENT=false&BGCOLOR=0x99B3CC&EXCEPTIONS=appli cation/vnd.ogc.se_inimage&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST =GetMap&STYLES=&BBOX=-180,-90,180,90&WIDTH=800&HEIGHT=400&SRS=EPSG:44065 ( http://tinyurl.com/ykem3c ) (red coastlines are drawn by mapserver, the grey land, the bluish coastlines and the gridlines are drawn by an internal WMS-server.) As you can see, mapserver omits most of the shapes close to the North Pole, and there are some wrapping issues at the south pole. the proj-definition looks like this: +proj=ob_tran +o_proj=eqc +lon_0=0 +o_lat_p=25 +a=57.29577953604224884 ++b=57.29577953604224884 +no_defs <> (the bizarre minor and major axis sizes are used to get pseudo-decimaldegrees as units. I should probably use some scaling parameter instead, but I was unable to find something that corresponds to the -m command line parameter) and my map is configured like this in the mapfile: LAYER name "cdc" data "cntry00" status on type polygon PROJECTION "+proj=latlong" "+a=6371000" "+b=6371000" END CLASS STYLE outlinecolor 255 0 0 END END END If the tilting is more severe, even more countries are left out of the plot: http://wms.met.no/cgi-bin/mapserv?map=../vhosts/mercator/conf/google.map&LAY ERS=kart,cdc,base.LATLON&TRANSPARENT=false&BGCOLOR=0x99B3CC&EXCEPTIONS=appli cation/vnd.ogc.se_inimage&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST =GetMap&STYLES=&BBOX=-180,-90,180,90&WIDTH=800&HEIGHT=400&SRS=EPSG:44090 With no tilt at all, you basically get regular latlong coordinates, and now all countries are being displayed: http://wms.met.no/cgi-bin/mapserv?map=../vhosts/mercator/conf/google.map&LAY ERS=kart,cdc,base.LATLON&TRANSPARENT=false&BGCOLOR=0x99B3CC&EXCEPTIONS=appli cation/vnd.ogc.se_inimage&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST =GetMap&STYLES=&BBOX=-180,-90,180,90&WIDTH=800&HEIGHT=400&SRS=EPSG:44000 Does anyone know what I'm doing wrong? Is there something I can do to get mapserver to plot all countries in this projection? (Preferrably without the wrapping issues). -- Trond Michelsen From armin.burger at GMX.NET Thu Nov 16 13:39:01 2006 From: armin.burger at GMX.NET (Armin Burger) Date: Thu, 16 Nov 2006 22:39:01 +0100 Subject: PHP Mapscript OwsRequestObj & loadparams() Message-ID: Hi the OWSRequest object for PHP Mapscript has a slight problem at least under Linux. As already mentioned by another user some weeks ago, the definition as described in the how-to $request = ms_newOwsRequestObj(); $request->loadparams(); is also not working for me (Linux Debian and Ubuntu). There is no error in PHP neither Apache, just the page returned is completely empty as soon as the 'loadparams()' is applied. For the ones interested in a fast workaround to use the really nice and flexible Mapscript OWS interface via PHP I used the following $request = ms_newOwsRequestObj(); foreach ($_GET as $k=>$v) { $request->setParameter($k, $v); } This worked fine for me and the WMS service could be accessed by all clients I tested (all seem to use the GET request). Armin From arndw at WTAL.DE Thu Nov 16 14:02:36 2006 From: arndw at WTAL.DE (Arnd Wippermann) Date: Thu, 16 Nov 2006 23:02:36 +0100 Subject: AW: [UMN_MAPSERVER-USERS] Logical Expressions Message-ID: Hello Eric, You can change values in the mapfile, when you use substitutions: Z.Bsp.: EXPRESSION ('[PRJNR]' = '%PRJNR%') in the mapfile And this in the Mapserver-Request (not WMS-Request) ?mode=map&....&PRJNR=1001&... Than Mapserver sustitute %PRJNR% with the value 1001. Arnd Wippermann http://gis.ibbeck.de/ginfo/ibbOLClient/OpenlayersClient.html -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von D. Eric Keefauver Gesendet: Donnerstag, 16. November 2006 18:03 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] Logical Expressions New to MS. My question is this: I am wanting to use a logical expression within a layer in my mapfile. The below expression will render the county with the exact acreage of '438282.297'. How would I set it to display all acreages in the field that are < 500,000 ? Syntax? I am running MS4W v 1.4.0. Also, could this value (500,000) be set by a user through, say, via a form? Thanks much Eric LAYER NAME Michigan_county_eqip TYPE POLYGON STATUS OFF DATA Michigan_county_eqip CLASSITEM 'ACRES' CLASS NAME "ACREAGE" #This is read into the legend EXPRESSION '438282.297' OUTLINECOLOR 0 0 0 COLOR 173 216 230 TEMPLATE "county_eqip.html" END CLASS # every other county in the state NAME "COUNTIES" OUTLINECOLOR 211 211 211 COLOR 119 136 153 TEMPLATE "county_eqip.html" END HEADER "county_eqip_header.html" FOOTER "county_eqip_footer.html" TOLERANCE 3 DUMP TRUE # allow GML export END Eric Keefauver Research Scientist Michigan Tech Research Institute (MTRI) 3520 Green Court, Suite 300 Ann Arbor, MI 48105-1579 Phone: 734-302-4724 Fax: 734-302-4991 eric.keefauver at mtu.edu http://www.mtri.org From pearsondave at HOTMAIL.COM Thu Nov 16 14:10:18 2006 From: pearsondave at HOTMAIL.COM (Dave Pearson) Date: Thu, 16 Nov 2006 22:10:18 +0000 Subject: Rectangular abels with border and rounded corners? Message-ID: Is it possible (using php-mapscript if necessary) to persuade mapserver to produce rectangular labels with rounded corners, and a border which goes all the way around the label? I have tried various permutations using the default labelling commands, and can get for example red text on a white background, but I can't figure out how to make a continuous red border. Is it possible that the technique used to make a highway shield under a number could be extended such that a background would "stretch" to fit behind variable length text, like in an IMG in HTTP? Many thanks, Dave Pearson _________________________________________________________________ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters From cunctator at GMAIL.COM Thu Nov 16 14:35:06 2006 From: cunctator at GMAIL.COM (The Cunctator) Date: Thu, 16 Nov 2006 17:35:06 -0500 Subject: Ruby mapscript oddness Message-ID: I'm happy to give settings/sample files etc but maybe someone has some idea what my problem is -- I'm guessing it has to do with the installation. The following script: #!/usr/bin/env ruby require "mapscript" include Mapscript map=MapObj.new("test.map") image = map.draw image.save('test.png') fails: in `draw': msEvalExpresssion: Expression parser error. Failed to parse expression;msyyparse(): Expression parser error. syntax error;msEvalExpression: Expression parser error. Failed to parse expression;msyyparse(): ... etc. whereas the php script draw(); $image->saveImage('test.png'); ?> works fine. map.drawLegend and map.drawScalebar work fine. Anyone have thoughts or what information would people need to diagnose? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jacob.Delfos at MAUNSELL.COM Thu Nov 16 15:10:34 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Fri, 17 Nov 2006 07:10:34 +0800 Subject: Combination Apache + Php Problems Message-ID: Hi Karin, Don't double up on the definitions in httpd.conf. If it's already in there, it ought to work. Are you sure the root directory of your webserver is where you think it is? Can you open up any other file in that same directory? A normal HTML file? If so, there's something wrong with PHP. If not, your ServerRoot in httpd.conf isn't set right. I have also heard of people getting a "cannot be found" error if php isn't running properly because of a missing DLL. But I suppose this is not the case now. Are you using MS4W out of the box? Did you change anything? Regards, Jacob ? -----Original Message----- ? From: Karin Kampitsch [mailto:Karin_Kampitsch at gmx.at] ? Sent: 16 November 2006 19:44 ? To: Delfos, Jacob ? Subject: Re: [UMN_MAPSERVER-USERS] Combination Apache + Php Problems ? ? Hi Jacob, ? ? Thank you for your information! ? There already exists such expressions in the httpd.conf file: ? ? ScriptAlias /cgi-bin/ "/ms4w/Apache/cgi-bin/" ? AddType application/x-compress .Z ? AddType application/x-gzip .gz .tgz ? AddType application/x-httpd-php .php5 .php4 .php3 .phtml .php ? Action application/x-httpd-php /cgi-bin/php-cgi.exe ? ? ? I tried it anyway and added these expressions: ? ? ScriptAlias /php/ "/ms4w/Apache/php/" ? AddType application/x-httpd-php .php ? AddType application/x-httpd-php .phtml ? Action application/x-httpd-php "/cgi-bin/php-cgi.exe" (my ? php-cgi.exe is in the cgi-bin directory) ? ? But it still does not work. ? My error message was, when I tried to open the "karin.php" ? file in the Url with http://localhost/karin.php, that "he ? cannot find the web page". ? The file "karin.php" is situated in the root directory of Apache. ? ? So i do not know whats wrong! ? Maybe you have an idea? ? ? Best regards, ? karin ? ? -------- Original-Nachricht -------- ? Datum: Thu, 16 Nov 2006 07:59:17 +0800 ? Von: "Delfos, Jacob" ? An: MAPSERVER-USERS at LISTS.UMN.EDU ? Betreff: Re: [UMN_MAPSERVER-USERS] Combination Apache + Php Problems ? ? > Hi Karin, ? > ? > Can you please elaborate on the "did not work" bit? ? > What errors are you getting? ? > ? > The core bit in the apache configuration (httpd.conf) is this: ? > ? > ScriptAlias /php/ "/php/" ? > AddType application/x-httpd-php .php ? > AddType application/x-httpd-php .phtml ? > Action application/x-httpd-php "/php/php-cgi.exe" ? > ? > This makes Apache execute PHP files. You may have to adjust ? it to suit ? > your setup. And make sure to restart Apache after changes ? to httpd.conf. ? > ? > Regards, ? > ? > Jacob ? > ? > ? > ? > ? > ? > ? -----Original Message----- ? > ? From: UMN MapServer Users List ? > ? [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Karin ? Kampitsch ? > ? Sent: 15 November 2006 21:54 ? > ? To: MAPSERVER-USERS at LISTS.UMN.EDU ? > ? Subject: [UMN_MAPSERVER-USERS] Combination Apache + Php Problems ? > ? ? > ? Dear Mailing List, ? > ? ? > ? I downloaded the mapserver package 4.8.4. In this package ? > ? also the Apache Version 2.0.58 and the Php version 5.1.4 ? is included. ? > ? ? > ? I tried to open a php file, but it did not work! And so I ? > ? studied all the installation and configuration instructions ? > ? and this made me really confusing! ? > ? ? > ? So do you know, is there anything I must do with the ? > ? different files in the Apache directory??? Or is there a ? > ? problem with the versions of Apache and PHP! ? > ? ? > ? It would be very nice, if you could help me! ? > ? ? > ? Yours desperate ? > ? ? > ? karin ? > ? -- ? > ? "Ein Herz f?r Kinder" - Ihre Spende hilft! Aktion: ? > ? www.deutschlandsegelt.de ? > ? Unser Dankesch?n: Ihr Name auf dem Segel der 1. deutschen ? > ? America's Cup-Yacht! ? > ? ? ? -- ? "Ein Herz f?r Kinder" - Ihre Spende hilft! Aktion: ? www.deutschlandsegelt.de ? Unser Dankesch?n: Ihr Name auf dem Segel der 1. deutschen ? America's Cup-Yacht! ? From kbehncke at IGF.UNI-OSNABRUECK.DE Thu Nov 16 15:57:53 2006 From: kbehncke at IGF.UNI-OSNABRUECK.DE (Kai Behncke) Date: Fri, 17 Nov 2006 00:57:53 +0100 Subject: Logical Expressions In-Reply-To: <3083.207.72.6.57.1163696585.squirrel@huskymail.mtu.edu> Message-ID: On Thu, 16 Nov 2006 12:03:05 -0500, D. Eric Keefauver wrote > New to MS. My question is this: I am wanting to use a logical expression > within a layer in my mapfile. The below expression will render the county > with the exact acreage of '438282.297'. How would I set it to > display all acreages in the field that are < 500,000 ? Syntax? I am > running MS4W v > 1.4.0. Also, could this value (500,000) be set by a user through, > say, via a form? > > Thanks much > > Eric > Hello Eric, you can set a value for a dynamic expression in a form. In the application http://131.173.78.240/diplomarbeit_freezvaut/ exactly this is done via php/mapscript (here "Fl?chengr??e" is the name for area). The source-code for this is downloadbar ar the homepage http://www.umn-mapserver-community.de (download -> point 11). Greetings, Kai -- Dipl.-Geogr. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From stephan.holl at INTEVATION.DE Thu Nov 16 23:25:50 2006 From: stephan.holl at INTEVATION.DE (Stephan Holl) Date: Fri, 17 Nov 2006 08:25:50 +0100 Subject: php-mapscript w/ ogr ovt tables Message-ID: Dear Mapserver gurus, I am encountering a problem when using a ogrs vrt tables against a mysql DB. The problem comes up when I try to access a table column which was create through an alias. e.g: select n2n_wert, n2n_idflm, n2n_wertdat, n2n_idflaeche, frmt_wert, replace(replace(replace(format(n2n_wert,3),'.',';'),',','.'),';',',') as format_wert from n2n_flmflaeche; format_wert cannot be used as TEXT in my mapfile using settext() in php-mapscript. The error is as following: Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'statistic'. in /var/www/web1/html/gis/config/test.php on line 6 Warning: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection ` /var/www/web1/html/gis/config/statistic.ovf select n2n_wert, n2n_idflm, n2n_wertdat, frmt_wert, format_wert from bld join '/var/www/web1/html/gis/tmp/4ad12f9b5095f134e17c06691f429037.ovf'.values on AGS = n2n_idflaeche where AGS like '%' wkbPolygon GEOMETRY '. SQL statement failed, or returned no layer result: select n2n_wert, n2n_idflm, n2n_wertdat, frmt_wert, format_wert from bld join '/var/www/web1/html/gis/tmp/4ad12f9b5095f134e17c06691f429037.ovf'.values on AGS = n2n_idflaeche where AGS like '%' in /var/www/web1/html/gis/config/test.php on line 6 The Layer-snippet from my mapfile: LAYER CONNECTION " /var/www/web1/html/gis/config/statistic.ovf select n2n_wert, n2n_idflm, n2n_wertdat, frmt_wert, format_wert from bld join '/var/www/web1/html/gis/tmp/4ad12f9b5095f134e17c06691f429037.ovf'.values on AGS = n2n_idflaeche where AGS like '%' wkbPolygon GEOMETRY " CONNECTIONTYPE OGR DATA "join" If I hardcode it in my mapfile and use the mapserv-CGI, everything works as expected. Does anybody has any similar experiences? TIA and best regards Stephan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From Jukka.Rahkonen at MMMTIKE.FI Fri Nov 17 00:57:44 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 17 Nov 2006 10:57:44 +0200 Subject: AW: [UMN_MAPSERVER-USERS] Logical Expressions Message-ID: ________________________________ >L?hett?j?: UMN MapServer Users List puolesta: Arnd Wippermann >Hello Eric, >You can change values in the mapfile, when you use substitutions: >Z.Bsp.: EXPRESSION ('[PRJNR]' = '%PRJNR%') in the mapfile >And this in the Mapserver-Request (not WMS-Request) >?mode=map&....&PRJNR=1001&... >Than Mapserver sustitute %PRJNR% with the value 1001. Hi, Just a comment, actually you CAN use substitutions also in WMS-requests if you just get your WMS-client to send them through to Mapserver. I made once a trial by using a variable as a part of the layer's database connection string and as a result I got a dynamic WMS layer with data changing according to this parameter. This works fine if requests are sent directly from the client, for example a web browser. Some WMS-clients are simply using the same WMS connection string that is used for GetCapabilities as a part of the GetMap request, and with those it is possible to use own variables if they are just added as extra parameters to the URL used for connecting the server. However, this is not how WMS-clients should work. Instead they should use an URL returned by the GetCapabilities as "wms_connectionstring" for GetMap requests . I tried also to pass my variable inside the layers "wms_connectionstring" attribute in the METADATA section of the mapfile as well in order to make the WMS layer flexibly queryable with any standard WMS client. This did not work if I wrote something like &DATA=%variable% there because %variable% will not be substituted with the value but remains as textstring. Perhaps variable substitution is not allowed everywhere in the mapfile, or? A question for developers: I suppose that playing with extra parameters is not exactly forbidden by the WMS standards, but perhaps it may be a bit too Mapserver specific. Would it be a nice feature or not to be able to use runtime expressions also with WMS? Perhaps it would need no other changes than allowing runtime substitutions also for METADATA elements, or at least "wms_connectionstring". Or is it already possible somehow? Regards, -Jukka Rahkonen- From swhite at URGTECH.CO.UK Fri Nov 17 06:48:54 2006 From: swhite at URGTECH.CO.UK (Steve White) Date: Fri, 17 Nov 2006 14:48:54 -0000 Subject: ODBC for SQL Server 2000 not working Message-ID: I'm running SQL Server 2000 on a windows 2003 box. I've created an ovf file and tested that it returns data, all good. When I try to use this in my mapfile it doesn't return anything. LAYER NAME Test TYPE POINT LABELCACHE ON CONNECTIONTYPE OGR CONNECTION " ODBC:user/pwd at DSNName EXEC GM_GetSingleRecord 2076 wkbPoint WGS84 " METADATA "wms_title" "test" "gml_include_items" "all" "wms_include_items" "all" END PROJECTION "init=epsg:4326" END STATUS ON DATA "test" TEMPLATE "E:\Inetpub\wwwroot\Map\Data\test_query_template.html" CLASS SYMBOL 'circle' SIZE 7 COLOR 0 0 0 METADATA "wms_feature_info_mime_type" "text/html" END # end of class metadata TEMPLATE "E:\Inetpub\wwwroot\Map\Data\test_query_template.html" END # end of class END #end of layer It's almost as if mapserver can't use my system DSN. If I fire a GetFeatureInfo request on that layer I get this error: msOGRFileNextShape(): OGR error. SetAttributeFilter() not supported on ExecuteSQL() results. I'm running out of ideas on this. Can anyone help me out? Thanks, Steve -- No virus found in this outgoing message. Checked by AVG. Version: 7.5.431 / Virus Database: 268.14.6/536 - Release Date: 16/11/2006 15:51 From swhite at URGTECH.CO.UK Fri Nov 17 07:21:40 2006 From: swhite at URGTECH.CO.UK (Steve White) Date: Fri, 17 Nov 2006 15:21:40 -0000 Subject: ODBC for SQL Server 2000 not working In-Reply-To: <002501c70a57$81601a20$4301a8c0@dev> Message-ID: Further investigations using SQL Profiler shows that it is hitting the DB and running the command. However, I still get this error msg on the map: msOGRFileNextShape(): OGR error. SetAttributeFilter() not supported on ExecuteSQL() results. This happens for GetMap and GetFeatureInfo requests. Any clues on what's going wrong? Thanks, Steve -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve White Sent: 17 November 2006 14:49 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] ODBC for SQL Server 2000 not working I'm running SQL Server 2000 on a windows 2003 box. I've created an ovf file and tested that it returns data, all good. When I try to use this in my mapfile it doesn't return anything. LAYER NAME Test TYPE POINT LABELCACHE ON CONNECTIONTYPE OGR CONNECTION " ODBC:user/pwd at DSNName EXEC GM_GetSingleRecord 2076 wkbPoint WGS84 " METADATA "wms_title" "test" "gml_include_items" "all" "wms_include_items" "all" END PROJECTION "init=epsg:4326" END STATUS ON DATA "test" TEMPLATE "E:\Inetpub\wwwroot\Map\Data\test_query_template.html" CLASS SYMBOL 'circle' SIZE 7 COLOR 0 0 0 METADATA "wms_feature_info_mime_type" "text/html" END # end of class metadata TEMPLATE "E:\Inetpub\wwwroot\Map\Data\test_query_template.html" END # end of class END #end of layer It's almost as if mapserver can't use my system DSN. If I fire a GetFeatureInfo request on that layer I get this error: msOGRFileNextShape(): OGR error. SetAttributeFilter() not supported on ExecuteSQL() results. I'm running out of ideas on this. Can anyone help me out? Thanks, Steve -- No virus found in this outgoing message. Checked by AVG. Version: 7.5.431 / Virus Database: 268.14.6/536 - Release Date: 16/11/2006 15:51 -- No virus found in this incoming message. Checked by AVG. Version: 7.5.431 / Virus Database: 268.14.6/536 - Release Date: 16/11/2006 15:51 -- No virus found in this outgoing message. Checked by AVG. Version: 7.5.431 / Virus Database: 268.14.6/536 - Release Date: 16/11/2006 15:51 From ahermange at GI-LEMANS.COM Fri Nov 17 05:43:01 2006 From: ahermange at GI-LEMANS.COM (Albin HERMANGE) Date: Fri, 17 Nov 2006 14:43:01 +0100 Subject: dgn annotation Message-ID: Hi, i want to display the annotation layer of a dgn with mapserver via ogr with a specific font (not the default font) in my dgn all my text object are associated with the font number 112 i try to put : "112 myfont.ttf" in my "fonts.txt" but mapserver always use the default font it try "default myfont.ttf" , it's work but i don't want to use "myfont.ttf" as the default one (pb with oteh mapfile that use dgn too) is the "styleitem auto" option read the number of the police used in the dgn or displaying annotion layer of a dgn will always use the default font ? thx Albin -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Fri Nov 17 11:00:10 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 17 Nov 2006 14:00:10 -0500 Subject: ODBC for SQL Server 2000 not working In-Reply-To: <002501c70a57$81601a20$4301a8c0@dev> Message-ID: Steve White wrote: > I'm running SQL Server 2000 on a windows 2003 box. I've created an ovf file > and tested that it returns data, all good. > When I try to use this in my mapfile it doesn't return anything. ... > It's almost as if mapserver can't use my system DSN. > > If I fire a GetFeatureInfo request on that layer I get this error: > msOGRFileNextShape(): OGR error. SetAttributeFilter() not supported on > ExecuteSQL() results. Steve, You need an updated GDAL/OGR. I think this bug was fixed post 1.3.2 so you might need a nightly snapshot. Sorry, this has been a cause of much agony and knashing of teeth. 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 | President OSGeo, http://osgeo.org From piero.cavalieri at HEIDI.IT Fri Nov 17 07:38:35 2006 From: piero.cavalieri at HEIDI.IT (piero cavalieri) Date: Fri, 17 Nov 2006 16:38:35 +0100 Subject: Spatial Extensions for SQL Server 2005 Message-ID: Only to notice this project: http://www.codeplex.com/Wiki/View.aspx?ProjectName=MsSqlSpatial Could be great to have Mapserver support it, in the future. Cheers Piero From swhite at URGTECH.CO.UK Fri Nov 17 07:43:23 2006 From: swhite at URGTECH.CO.UK (Steve White) Date: Fri, 17 Nov 2006 15:43:23 -0000 Subject: ODBC for SQL Server 2000 not working In-Reply-To: <455E06BA.1000909@pobox.com> Message-ID: Thanks Frank. Can you point me to a place where I get the latest build that contains a fix for this please. Steve -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: 17 November 2006 19:00 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ODBC for SQL Server 2000 not working Steve White wrote: > I'm running SQL Server 2000 on a windows 2003 box. I've created an ovf > file and tested that it returns data, all good. > When I try to use this in my mapfile it doesn't return anything. ... > It's almost as if mapserver can't use my system DSN. > > If I fire a GetFeatureInfo request on that layer I get this error: > msOGRFileNextShape(): OGR error. SetAttributeFilter() not supported on > ExecuteSQL() results. Steve, You need an updated GDAL/OGR. I think this bug was fixed post 1.3.2 so you might need a nightly snapshot. Sorry, this has been a cause of much agony and knashing of teeth. 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 | President OSGeo, http://osgeo.org -- No virus found in this incoming message. Checked by AVG. Version: 7.5.431 / Virus Database: 268.14.6/536 - Release Date: 16/11/2006 15:51 -- No virus found in this outgoing message. Checked by AVG. Version: 7.5.431 / Virus Database: 268.14.6/536 - Release Date: 16/11/2006 15:51 From epk.lists at GMAIL.COM Fri Nov 17 07:57:38 2006 From: epk.lists at GMAIL.COM (Eduardo Patto Kanegae) Date: Fri, 17 Nov 2006 13:57:38 -0200 Subject: ODBC for SQL Server 2000 not working In-Reply-To: <455E06BA.1000909@pobox.com> Message-ID: Frank, Latest FWtools for windows should also fix this? best Eduardo Patto Kanegae http://www.webmapit.com.br On 11/17/06, Frank Warmerdam wrote: > > Steve White wrote: > > I'm running SQL Server 2000 on a windows 2003 box. I've created an ovf > file > > and tested that it returns data, all good. > > When I try to use this in my mapfile it doesn't return anything. > ... > > It's almost as if mapserver can't use my system DSN. > > > > If I fire a GetFeatureInfo request on that layer I get this error: > > msOGRFileNextShape(): OGR error. SetAttributeFilter() not supported on > > ExecuteSQL() results. > > Steve, > > You need an updated GDAL/OGR. I think this bug was fixed post 1.3.2 so > you > might need a nightly snapshot. > > Sorry, this has been a cause of much agony and knashing of teeth. > > 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 | President OSGeo, http://osgeo.org > -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Fri Nov 17 11:52:06 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 17 Nov 2006 14:52:06 -0500 Subject: ODBC for SQL Server 2000 not working In-Reply-To: <2d1782780611170757q221bea22h7b0ed67665de0749@mail.gmail.com> Message-ID: Eduardo Patto Kanegae wrote: > Frank, > > Latest FWtools for windows should also fix this? Eduardo, Yes, but FWTools is quite a different package than MS4W. FWTools lacks PHP and all the packages built on that. But, if raw mapserver + python mapscript fills a need then it might be a good alternate. 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 | President OSGeo, http://osgeo.org From jayzee.smith at GMAIL.COM Fri Nov 17 10:08:00 2006 From: jayzee.smith at GMAIL.COM (John Smith) Date: Fri, 17 Nov 2006 13:08:00 -0500 Subject: raster projector In-Reply-To: <455CC46A.4090000@pobox.com> Message-ID: mapserver rocks on-the-fly! now what's the best way to avoid on-the-fly proj because that decreases performance. do i have to manually rectify geotiff to vector in arcmap (think human error)? thanks a bunch man jzs http://mapserver.gis.umn.edu/docs/howto/raster_data/#raster-display-performance-tips On 11/16/06, Frank Warmerdam wrote: > > John Smith wrote: > > guys, > > trying to put a geotiff in- works but not right. here's what's > happening: > > > > i download the geotiff from national atlas. when i give no proj info > > under LAYER it shows up but not where it should (nwis). so i copy MAP > > proj to LAYER proj hoping for some on-the-fly magic- again it shows up > > but nwis. > > > > well i go over to proj_list > > and look up the epsg > > (EPSG?) code (9820) from metadata but it throws the > > "msProcessProjection(): Projection library error. no options found in > > 'init' file" error. then i try all epsg codes given by gdalinfo ;) but > > same error. although when i try the MAP epsg code (4326) it shows up but > > nwis. > > > > so what's wrong here? think proj.exe geod.exe cs2cs.exe libgeotiff > > listgeo'd help? now i don't think wld is needed because it's included > > with the geotiff but i've tried with wld and no luck. i just hope i > > don't have to rectify in arcmap. btw IMAGETYPE=png24 in case that > matters. > > John, > > I don't believe there is an EPSG code corresponding to this coordinate > system: > > PROJCS["TIFF 6.0, GeoTIFF Revision 1.0", > GEOGCS["WGS 84", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.2572235630016, > AUTHORITY["EPSG","7030"]], > AUTHORITY["EPSG","6326"]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433], > AUTHORITY["EPSG","4326"]], > PROJECTION["Lambert_Azimuthal_Equal_Area"], > PARAMETER["latitude_of_center",45], > PARAMETER["longitude_of_center",-100], > PARAMETER["false_easting",0], > PARAMETER["false_northing",0], > UNIT["metre",1, > AUTHORITY["EPSG","9001"]]] > > But the corresponding PROJECTION block to put in the LAYER definition > is: > > PROJECTION > "+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0 +datum=WGS84 +units=m" > END > > At one time you could also put: > PROJECTION > "AUTO" > END > > and MapServer would read it from the geotiff file, but I'm not sure if > this > still works. > > 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 | President OSGeo, http://osgeo.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From yjacolin at FREE.FR Fri Nov 17 10:26:38 2006 From: yjacolin at FREE.FR (Yves Jacolin) Date: Fri, 17 Nov 2006 19:26:38 +0100 Subject: raster projector In-Reply-To: Message-ID: Hi, Try to use gdal_translate or gdalwrap to change projection. You can do it for all of your raster files. Y. Le Vendredi 17 Novembre 2006 19:08, John Smith a ?crit?: > mapserver rocks on-the-fly! > > now what's the best way to avoid on-the-fly proj because that decreases > performance. do i have to manually rectify geotiff to vector in arcmap > (think human error)? > > thanks a bunch man > > jzs > > http://mapserver.gis.umn.edu/docs/howto/raster_data/#raster-display-perform >ance-tips > > On 11/16/06, Frank Warmerdam wrote: > > John Smith wrote: > > > guys, > > > trying to put a geotiff in- works but not right. here's what's > > > > happening: > > > i download the geotiff from national atlas. when i give no proj info > > > under LAYER it shows up but not where it should (nwis). so i copy MAP > > > proj to LAYER proj hoping for some on-the-fly magic- again it shows up > > > but nwis. > > > > > > well i go over to proj_list > > > and look up the epsg > > > (EPSG?) code (9820) from metadata but it throws the > > > "msProcessProjection(): Projection library error. no options found in > > > 'init' file" error. then i try all epsg codes given by gdalinfo ;) but > > > same error. although when i try the MAP epsg code (4326) it shows up > > > but nwis. > > > > > > so what's wrong here? think proj.exe geod.exe cs2cs.exe libgeotiff > > > listgeo'd help? now i don't think wld is needed because it's included > > > with the geotiff but i've tried with wld and no luck. i just hope i > > > don't have to rectify in arcmap. btw IMAGETYPE=png24 in case that > > > > matters. > > > > John, > > > > I don't believe there is an EPSG code corresponding to this coordinate > > system: > > > > PROJCS["TIFF 6.0, GeoTIFF Revision 1.0", > > GEOGCS["WGS 84", > > DATUM["WGS_1984", > > SPHEROID["WGS 84",6378137,298.2572235630016, > > AUTHORITY["EPSG","7030"]], > > AUTHORITY["EPSG","6326"]], > > PRIMEM["Greenwich",0], > > UNIT["degree",0.0174532925199433], > > AUTHORITY["EPSG","4326"]], > > PROJECTION["Lambert_Azimuthal_Equal_Area"], > > PARAMETER["latitude_of_center",45], > > PARAMETER["longitude_of_center",-100], > > PARAMETER["false_easting",0], > > PARAMETER["false_northing",0], > > UNIT["metre",1, > > AUTHORITY["EPSG","9001"]]] > > > > But the corresponding PROJECTION block to put in the LAYER definition > > is: > > > > PROJECTION > > "+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0 +datum=WGS84 +units=m" > > END > > > > At one time you could also put: > > PROJECTION > > "AUTO" > > END > > > > and MapServer would read it from the geotiff file, but I'm not sure if > > this > > still works. > > > > 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 | President OSGeo, > > http://osgeo.org -- Yves Jacolin --- http://yjacolin.gloobe.org From cunctator at GMAIL.COM Fri Nov 17 11:09:48 2006 From: cunctator at GMAIL.COM (The Cunctator) Date: Fri, 17 Nov 2006 14:09:48 -0500 Subject: Ruby mapscript oddness In-Reply-To: Message-ID: I'm happy to give settings/sample files etc but maybe someone has some idea what my problem is -- I'm guessing it has to do with the installation. The following script: #!/usr/bin/env ruby require "mapscript" include Mapscript map=MapObj.new("test.map") image = map.draw image.save('test.png') fails: in `draw': msEvalExpresssion: Expression parser error. Failed to parse expression;msyyparse(): Expression parser error. syntax error;msEvalExpression: Expression parser error. Failed to parse expression;msyyparse(): ... etc. whereas the php script draw(); $image->saveImage('test.png'); ?> works fine. map.drawLegend and map.drawScalebar work fine. Anyone have thoughts or what information would people need to diagnose? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Fri Nov 17 11:24:12 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 17 Nov 2006 13:24:12 -0600 Subject: Ruby mapscript oddness In-Reply-To: Message-ID: The mapfile would help... >>> The Cunctator 11/17/2006 1:09:48 PM >>> I'm happy to give settings/sample files etc but maybe someone has some idea what my problem is -- I'm guessing it has to do with the installation. The following script: #!/usr/bin/env ruby require "mapscript" include Mapscript map=MapObj.new("test.map") image = map.draw image.save('test.png') fails: in `draw': msEvalExpresssion: Expression parser error. Failed to parse expression;msyyparse(): Expression parser error. syntax error;msEvalExpression: Expression parser error. Failed to parse expression;msyyparse(): ... etc. whereas the php script draw(); $image->saveImage('test.png'); ?> works fine. map.drawLegend and map.drawScalebar work fine. Anyone have thoughts or what information would people need to diagnose? From cunctator at GMAIL.COM Fri Nov 17 13:28:44 2006 From: cunctator at GMAIL.COM (The Cunctator) Date: Fri, 17 Nov 2006 16:28:44 -0500 Subject: Ruby mapscript oddness In-Reply-To: <455DB7FC0200008F00004296@co5.dnr.state.mn.us> Message-ID: Here.... ruby chokes on the EXPRESSION. (For example, EXPRESSION (25>0) works.) MAP NAME "Election Results" STATUS ON EXTENT -2450520 -1730156 2332934 1953725 SIZE 600 450 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS METERS # # Start of OutputFormat object # OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END # # Start of layer definitions # LAYER NAME "House of Representatives" GROUP "House of Representatives" STATUS ON DATA "the_geom FROM (SELECT state, seatnumber, gid, the_geom, round(cast(dempct*100 as numeric),2) as dempct from cds ) a using unique gid using srid=-1" TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "user=user dbname=cd host=host" UNITS METERS LABELITEM "seatnumber" LABELMAXSCALE 4000000 TEMPLATE "newtemplate.html" CLASSITEM "dempct" CLASS NAME "Democrat" EXPRESSION ([dempct] > 25) STYLE SYMBOL 11 COLOR 0 0 255 OUTLINECOLOR 0 0 0 SIZE 1 END END CLASS STYLE SYMBOL 7 COLOR 0 0 0 OUTLINECOLOR 0 0 0 SIZE 1 END END END END On 11/17/06, Steve Lime wrote: > > The mapfile would help... > > >>> The Cunctator 11/17/2006 1:09:48 PM >>> > I'm happy to give settings/sample files etc but maybe someone has some > idea > what my problem is -- I'm guessing it has to do with the installation. > > The following script: > > #!/usr/bin/env ruby > > require "mapscript" > include Mapscript > > map=MapObj.new("test.map") > image = map.draw > image.save('test.png') > > fails: > > in `draw': msEvalExpresssion: Expression parser error. Failed to parse > expression;msyyparse(): Expression parser error. syntax > error;msEvalExpression: Expression parser error. Failed to parse > expression;msyyparse(): > ... > > etc. > > whereas the php script > > if(!extension_loaded("MapScript")) { > dl('php_mapscript.'.PHP_SHLIB_SUFFIX); > } > > $map = ms_newMapObj("test.map"); > > $image = $map->draw(); > $image->saveImage('test.png'); > > ?> > > works fine. > > map.drawLegend > and > map.drawScalebar > work fine. > > Anyone have thoughts or what information would people need to > diagnose? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Fri Nov 17 13:55:38 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 17 Nov 2006 15:55:38 -0600 Subject: Ruby mapscript oddness In-Reply-To: Message-ID: Weird since the parsing is done in C. I'll try installing over the weekend and report back. Steve >>> "The Cunctator" 11/17/2006 3:28:44 PM >>> Here.... ruby chokes on the EXPRESSION. (For example, EXPRESSION (25>0) works.) MAP NAME "Election Results" STATUS ON EXTENT -2450520 -1730156 2332934 1953725 SIZE 600 450 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS METERS # # Start of OutputFormat object # OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END # # Start of layer definitions # LAYER NAME "House of Representatives" GROUP "House of Representatives" STATUS ON DATA "the_geom FROM (SELECT state, seatnumber, gid, the_geom, round(cast(dempct*100 as numeric),2) as dempct from cds ) a using unique gid using srid=-1" TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "user=user dbname=cd host=host" UNITS METERS LABELITEM "seatnumber" LABELMAXSCALE 4000000 TEMPLATE "newtemplate.html" CLASSITEM "dempct" CLASS NAME "Democrat" EXPRESSION ([dempct] > 25) STYLE SYMBOL 11 COLOR 0 0 255 OUTLINECOLOR 0 0 0 SIZE 1 END END CLASS STYLE SYMBOL 7 COLOR 0 0 0 OUTLINECOLOR 0 0 0 SIZE 1 END END END END On 11/17/06, Steve Lime wrote: > > The mapfile would help... > > >>> The Cunctator 11/17/2006 1:09:48 PM >>> > I'm happy to give settings/sample files etc but maybe someone has some > idea > what my problem is -- I'm guessing it has to do with the installation. > > The following script: > > #!/usr/bin/env ruby > > require "mapscript" > include Mapscript > > map=MapObj.new("test.map") > image = map.draw > image.save('test.png') > > fails: > > in `draw': msEvalExpresssion: Expression parser error. Failed to parse > expression;msyyparse(): Expression parser error. syntax > error;msEvalExpression: Expression parser error. Failed to parse > expression;msyyparse(): > ... > > etc. > > whereas the php script > > if(!extension_loaded("MapScript")) { > dl('php_mapscript.'.PHP_SHLIB_SUFFIX); > } > > $map = ms_newMapObj("test.map"); > > $image = $map->draw(); > $image->saveImage('test.png'); > > ?> > > works fine. > > map.drawLegend > and > map.drawScalebar > work fine. > > Anyone have thoughts or what information would people need to > diagnose? > From luca76 at GMAIL.COM Sat Nov 18 00:00:41 2006 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Sat, 18 Nov 2006 09:00:41 +0100 Subject: Identifying a size-scaled symbol point Message-ID: Hi, I've defined a symbol (a square) that I use with my point shapefile. The problem is this: the symbol size varies with the map scale. So, how can I identify the point if the symbol is greater, AND, within the scale-based size of symbol ? -- "Work only as many hours as you can be productive and only as many hours as you can sustain." - Kent Beck, in "Extreme Programming Explained" http://www.trapanator.com/blog From armin.burger at GMX.NET Sat Nov 18 04:37:56 2006 From: armin.burger at GMX.NET (Armin Burger) Date: Sat, 18 Nov 2006 13:37:56 +0100 Subject: AW: [UMN_MAPSERVER-USERS] Logical Expressions In-Reply-To: Message-ID: Jukka for having real flexibility with WMS I would recommend using a small PHP (or Python, Ruby, etc) script with the OWS request functions available since version 4.10. You can virtually change everything, some parts are straightforward to do, some parts would need a bit more efforts. Adding additional parameters to the resource URL is always possible and compliant with the specifications of WMS. Depending on that parameter (e.g. user key, service name) one can select the required map file, modify parameters in it, and so forth. This allows also to modify the "wms_connectionstring" based on the input parameter, and hence the corresponding tag in the capabilities XML. This way the additional URL key from the request will always be in the capabilities returned without having to write it statically in the map file. A bit more work, and only needed in special cases, would be to apply an XSLT filter on the getCapabilities XML before sending it back to the client containing the information one would like to have. This could overcome some annoying behaviours of Mapserver with regard to layers/groups. It would allow to specify them in the way one would like. Or also to just present the layers that one would like, without having to create an additional map file for that (unfortunately one cannot delete layers of a map object with Mapscript). Best regards Armin Rahkonen Jukka wrote: > ________________________________ > >> L?hett?j?: UMN MapServer Users List puolesta: Arnd Wippermann >> Hello Eric, >> You can change values in the mapfile, when you use substitutions: >> Z.Bsp.: EXPRESSION ('[PRJNR]' = '%PRJNR%') in the mapfile >> And this in the Mapserver-Request (not WMS-Request) >> ?mode=map&....&PRJNR=1001&... >> Than Mapserver sustitute %PRJNR% with the value 1001. > > Hi, > > Just a comment, actually you CAN use substitutions also in WMS-requests if you just get your WMS-client to send them through to Mapserver. I made once a trial by using a variable as a part of the layer's database connection string and as a result I got a dynamic WMS layer with data changing according to this parameter. This works fine if requests are sent directly from the client, for example a web browser. Some WMS-clients are simply using the same WMS connection string that is used for GetCapabilities as a part of the GetMap request, and with those it is possible to use own variables if they are just added as extra parameters to the URL used for connecting the server. However, this is not how WMS-clients should work. Instead they should use an URL returned by the GetCapabilities as "wms_connectionstring" for GetMap requests . I tried also to pass my variable inside the layers "wms_connectionstring" attribute in the METADATA section of the mapfile as well in order to make the WMS layer flexibly queryable with any standard WMS client. This did not work if I wrote something like &DATA=%variable% there because %variable% will not be substituted with the value but remains as textstring. Perhaps variable substitution is not allowed everywhere in the mapfile, or? > > A question for developers: I suppose that playing with extra parameters is not exactly forbidden by the WMS standards, but perhaps it may be a bit too Mapserver specific. Would it be a nice feature or not to be able to use runtime expressions also with WMS? Perhaps it would need no other changes than allowing runtime substitutions also for METADATA elements, or at least "wms_connectionstring". Or is it already possible somehow? > > Regards, > > -Jukka Rahkonen- > > From xpxiong at PURDUE.EDU Sun Nov 19 10:53:23 2006 From: xpxiong at PURDUE.EDU (Xiaopeng Xiong) Date: Sun, 19 Nov 2006 13:53:23 -0500 Subject: Display coordinate upon a mouse click or duing mouse dragging Message-ID: Hello List, I wonder how to display the world coordinate when a user clicks on the map or drags a rectangle using mouse. I am quite ignorant to this type of programming. I am using Mapserver and Rosa applet. But I can change to other configurations if necessary. Your any suggestions or sample codes are appreciated! Best regards, Xiaopeng From Jacob.Delfos at MAUNSELL.COM Sun Nov 19 15:32:22 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Mon, 20 Nov 2006 07:32:22 +0800 Subject: Combination Apache + Php Problems Message-ID: Hi Karin, If you have used MS4W out of the box, then all the DLL's should be there. However, I expect there is something wrong with your alias in httpd.conf, because it also can't find a normal HTML file, so there's no reason to think there's something wrong with PHP. Can you tell me what the syntax of your alias is? Regards, Jacob ? -----Original Message----- ? From: Karin Kampitsch [mailto:Karin_Kampitsch at gmx.at] ? Sent: 17 November 2006 16:13 ? To: Delfos, Jacob ? Subject: Re: [UMN_MAPSERVER-USERS] Combination Apache + Php Problems ? ? Hi Jacob, ? ? I tried to open a HTML file, but there is the same problem. ? The browser says that he cannot find this page, and below ? stands that he cannot find the HTTP 404 File. So it's the ? same error message, when i try to open a PHP file. ? ? I did not changed anything so far. ? ? Yes, I use MS4W out of the box. The Mapserver UMN is working ? and also WFS and WMS is fine. Now i want to create a User ? Interface for my map, and therefore I need PHP. ? ? So, do you maybe know, which DLL could be missing, or do you ? think that I should move the php Directory somewhere else ? (for example: C:)? At the moment everything (Apache and PHP ? directories) is included in the MS4W Directory. ? ? C:\ms4w\Apache\php Here is included: the directories ? dev, ext, extras, pear, and and some other files (for ? example: go-pear.bat) ? ? ? C:\ms4w\Apache\cgi-bin Here is included: fdftk.dll, ? php-cgi.exe, php-win.exe, php5apache.dll, php5apache2.dll, ? php5ts.dll, php.ini and so on. ? ? I compared my php files with the file structure in ? http://de.php.net/manual/de/install.windows.manual.php ? ? I found out that I do not have the php5activescript.dll? I is ? this maybe the error? ? ? Or could that be the error? ? In the Installing instruction they say that the php directory ? should be on the C: drive, but my php directory is in the ? MS4W directory. Then I would have to make some changes in the ? httpd.conf - file. ? ? Or is there a Problem with Apache Version 2.0.58 and the Php ? version 5.1.4? ? ? Thank you for your efforts and for helping me! ? ? regards, ? ? karin ? ? -------- Original-Nachricht -------- ? Datum: Fri, 17 Nov 2006 07:10:34 +0800 ? Von: "Delfos, Jacob" ? An: MAPSERVER-USERS at LISTS.UMN.EDU ? Betreff: Re: [UMN_MAPSERVER-USERS] Combination Apache + Php Problems ? ? > Hi Karin, ? > ? > Don't double up on the definitions in httpd.conf. If it's already in ? > there, it ought to work. ? > Are you sure the root directory of your webserver is where ? you think it ? > is? Can you open up any other file in that same directory? ? A normal HTML ? > file? If so, there's something wrong with PHP. If not, your ? ServerRoot in ? > httpd.conf isn't set right. ? > I have also heard of people getting a "cannot be found" ? error if php isn't ? > running properly because of a missing DLL. But I suppose ? this is not the ? > case now. Are you using MS4W out of the box? Did you change ? anything? ? > ? > Regards, ? > ? > Jacob ? > ? > ? > ? > ? > ? -----Original Message----- ? > ? From: Karin Kampitsch [mailto:Karin_Kampitsch at gmx.at] ? > ? Sent: 16 November 2006 19:44 ? > ? To: Delfos, Jacob ? > ? Subject: Re: [UMN_MAPSERVER-USERS] Combination Apache + ? Php Problems ? > ? ? > ? Hi Jacob, ? > ? ? > ? Thank you for your information! ? > ? There already exists such expressions in the httpd.conf file: ? > ? ? > ? ScriptAlias /cgi-bin/ "/ms4w/Apache/cgi-bin/" ? > ? AddType application/x-compress .Z ? > ? AddType application/x-gzip .gz .tgz ? > ? AddType application/x-httpd-php .php5 .php4 .php3 .phtml .php ? > ? Action application/x-httpd-php /cgi-bin/php-cgi.exe ? > ? ? > ? ? > ? I tried it anyway and added these expressions: ? > ? ? > ? ScriptAlias /php/ "/ms4w/Apache/php/" ? > ? AddType application/x-httpd-php .php ? > ? AddType application/x-httpd-php .phtml ? > ? Action application/x-httpd-php "/cgi-bin/php-cgi.exe" (my ? > ? php-cgi.exe is in the cgi-bin directory) ? > ? ? > ? But it still does not work. ? > ? My error message was, when I tried to open the "karin.php" ? > ? file in the Url with http://localhost/karin.php, that "he ? > ? cannot find the web page". ? > ? The file "karin.php" is situated in the root directory of Apache. ? > ? ? > ? So i do not know whats wrong! ? > ? Maybe you have an idea? ? > ? ? > ? Best regards, ? > ? karin ? > ? ? > ? -------- Original-Nachricht -------- ? > ? Datum: Thu, 16 Nov 2006 07:59:17 +0800 ? > ? Von: "Delfos, Jacob" ? > ? An: MAPSERVER-USERS at LISTS.UMN.EDU ? > ? Betreff: Re: [UMN_MAPSERVER-USERS] Combination Apache + ? Php Problems ? > ? ? > ? > Hi Karin, ? > ? > ? > ? > Can you please elaborate on the "did not work" bit? ? > ? > What errors are you getting? ? > ? > ? > ? > The core bit in the apache configuration (httpd.conf) is this: ? > ? > ? > ? > ScriptAlias /php/ "/php/" ? > ? > AddType application/x-httpd-php .php ? > ? > AddType application/x-httpd-php .phtml ? > ? > Action application/x-httpd-php "/php/php-cgi.exe" ? > ? > ? > ? > This makes Apache execute PHP files. You may have to adjust ? > ? it to suit ? > ? > your setup. And make sure to restart Apache after changes ? > ? to httpd.conf. ? > ? > ? > ? > Regards, ? > ? > ? > ? > Jacob ? > ? > ? > ? > ? > ? > ? > ? > ? > ? > ? > ? > ? -----Original Message----- ? > ? > ? From: UMN MapServer Users List ? > ? > ? [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Karin ? > ? Kampitsch ? > ? > ? Sent: 15 November 2006 21:54 ? > ? > ? To: MAPSERVER-USERS at LISTS.UMN.EDU ? > ? > ? Subject: [UMN_MAPSERVER-USERS] Combination Apache + ? Php Problems ? > ? > ? ? > ? > ? Dear Mailing List, ? > ? > ? ? > ? > ? I downloaded the mapserver package 4.8.4. In this package ? > ? > ? also the Apache Version 2.0.58 and the Php version 5.1.4 ? > ? is included. ? > ? > ? ? > ? > ? I tried to open a php file, but it did not work! And so I ? > ? > ? studied all the installation and configuration instructions ? > ? > ? and this made me really confusing! ? > ? > ? ? > ? > ? So do you know, is there anything I must do with the ? > ? > ? different files in the Apache directory??? Or is there a ? > ? > ? problem with the versions of Apache and PHP! ? > ? > ? ? > ? > ? It would be very nice, if you could help me! ? > ? > ? ? > ? > ? Yours desperate ? > ? > ? ? > ? > ? karin ? > ? > ? -- ? > ? > ? "Ein Herz f?r Kinder" - Ihre Spende hilft! Aktion: ? > ? > ? www.deutschlandsegelt.de ? > ? > ? Unser Dankesch?n: Ihr Name auf dem Segel der 1. deutschen ? > ? > ? America's Cup-Yacht! ? > ? > ? ? > ? ? > ? -- ? > ? "Ein Herz f?r Kinder" - Ihre Spende hilft! Aktion: ? > ? www.deutschlandsegelt.de ? > ? Unser Dankesch?n: Ihr Name auf dem Segel der 1. deutschen ? > ? America's Cup-Yacht! ? > ? ? ? -- ? Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! ? Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer ? From julien.martel at FREE.FR Mon Nov 20 05:33:23 2006 From: julien.martel at FREE.FR (Julien) Date: Mon, 20 Nov 2006 14:33:23 +0100 Subject: Pb with "ANGLE FOLLOW" function Message-ID: Hello all, I am trying to use the new "ANGLE FOLLOW" function included in MapServer/MapScript 4.10.0. But I only get a blank image. When I do not use this funtion, my map displays correctly so I guess I really have a problem with ANGLE FOLLOW. I read on MapServer's website I needed GD 2.0.29 and True Type font support. The version of GD installed on my server is 2.0.33 and I have Freetype 2.2.1 (I guess TrueType fonts are handled by Freetype). So what's wrong with my installation ? P.S : Sorry for double posts, not sure I sent the first one the right way... Julien MARTEL Service Informatique 2 Avenue Madeleine Bonnaud Parc d'Activit?s - Point Rencontre 13770 Venelles - FRANCE Tel : +33 4 42 54 00 68 Fax : +33 4 42 54 06 78 email : j.martel at g2c.fr web : www.g2c.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Logo-S_2006-11-20-14-32-23-731.jpg Type: image/jpeg Size: 34631 bytes Desc: not available URL: From fsozzi at INTERCAD.CH Mon Nov 20 09:25:18 2006 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Mon, 20 Nov 2006 18:25:18 +0100 Subject: ogr and Oracle Spatial Message-ID: Hi all, I'm trying to compile ogr with Oracle Spatial support. I've uncommented ORACLE_HOME into nmake.opt (from a downloaded gdal) and then I compiled. But if I try to check an OGR2OGR command on an Oracle Spatial table, ogr shows me a list of drivers where Oracle is not included. So it seems that it is still does not support Oracle. Any suggestionson on compiling ogr?... Best regards Francesco Sozzi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdaly at PANIX.COM Mon Nov 20 09:48:08 2006 From: jdaly at PANIX.COM (John Daly) Date: Mon, 20 Nov 2006 12:48:08 -0500 Subject: problem with MapServer global projection Message-ID: All, I'm a new MapServer user and list member, and I'd like to say hello to everyone. I'm also running into a problem trying to create a global map projection, and I would appreciate any and all feedback. I'm trying to use the projection example in Web Mapping illustrated, but although I have Proj4 support compiled in to MS, it does not seem to be actually using the new units and projection defined in my global.map file: MAP CONFIG "PROJ_LIB" "/usr/local/share/proj" PROJECTION "init=epsg:42304" END # PROJECTION # "proj=lcc" # "ellps=GRS80" # "lat_0=49" # "lon_0=-95" # "lat_1=49" # "lat_2=77" # "datum=NAD83" # "units=m" # "no_defs" # END I've tried both approaches, and neither works. The verbose switch to MapServer prints out: . ./cgi-bin/mapserv -v MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE ...and i'm using version 4.5 of Proj4. both were compiled from source on RedHat 9 I do not getting any actual error message, just a failure to correctly use the new projection. Has anyone run across this? Is there an easy way to test if my proj4 support is not configured correctly? Thanks, John From percyd at PDX.EDU Mon Nov 20 10:16:59 2006 From: percyd at PDX.EDU (percy) Date: Mon, 20 Nov 2006 10:16:59 -0800 Subject: problem with MapServer global projection In-Reply-To: <011a01c70ccc$0a202910$6401a8c0@GUITAR> Message-ID: Hi John, Do you have a Projection object defined in your Layer object, too? You probably need something like: projection "init=epsg:4326" end If you are using DD... MS needs to know what coordinate system your data is in before it can reproject it. Percy John Daly wrote: > All, > > I'm a new MapServer user and list member, and I'd like to say hello to > everyone. I'm also running into a problem trying to create a global map > projection, and I would appreciate any and all feedback. I'm trying to > use the projection example in Web Mapping illustrated, but although I > have Proj4 support compiled in to MS, it does not seem to be actually > using the new units and projection defined in my global.map file: > > MAP > CONFIG "PROJ_LIB" "/usr/local/share/proj" > PROJECTION > "init=epsg:42304" > END > # PROJECTION > # "proj=lcc" > # "ellps=GRS80" > # "lat_0=49" > # "lon_0=-95" > # "lat_1=49" > # "lat_2=77" > # "datum=NAD83" > # "units=m" > # "no_defs" > # END > > I've tried both approaches, and neither works. The verbose switch to > MapServer prints out: > . > ./cgi-bin/mapserv -v > MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=GEOS INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE > > ...and i'm using version 4.5 of Proj4. both were compiled from source > on RedHat 9 > > I do not getting any actual error message, just a failure to correctly > use the new projection. Has anyone run across this? Is there an easy > way to test if my proj4 support is not configured correctly? > > Thanks, > > John > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From Steve.Lime at DNR.STATE.MN.US Mon Nov 20 10:48:19 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 20 Nov 2006 12:48:19 -0600 Subject: Pb with "ANGLE FOLLOW" function In-Reply-To: <200611201433234169737@free.fr> Message-ID: Hmmm... That's identical to a problem I've experienced indirectly through ka-map. How are you making the maps? (PHP/MapScript, CGI or ?) Steve >>> Julien 11/20/2006 7:33:23 AM >>> Hello all, I am trying to use the new "ANGLE FOLLOW" function included in MapServer/MapScript 4.10.0. But I only get a blank image. When I do not use this funtion, my map displays correctly so I guess I really have a problem with ANGLE FOLLOW. I read on MapServer's website I needed GD 2.0.29 and True Type font support. The version of GD installed on my server is 2.0.33 and I have Freetype 2.2.1 (I guess TrueType fonts are handled by Freetype). So what's wrong with my installation ? P.S : Sorry for double posts, not sure I sent the first one the right way... Julien MARTEL Service Informatique 2 Avenue Madeleine Bonnaud Parc d'Activit?s - Point Rencontre 13770 Venelles - FRANCE Tel : +33 4 42 54 00 68 Fax : +33 4 42 54 06 78 email : j.martel at g2c.fr web : www.g2c.fr From afreed at PDX.EDU Mon Nov 20 11:19:46 2006 From: afreed at PDX.EDU (Andy Freed) Date: Mon, 20 Nov 2006 11:19:46 -0800 Subject: Display coordinate upon a mouse click or duing mouse dragging In-Reply-To: <02eb01c70c0c$00a39590$6f090a80@ad.cs.purdue.edu> Message-ID: I'm not familiar with the Rosa applet, but in the CGI version, you can simply place "[mapx], [mapy]" into your page, that should give you the coordinates that the user last clicked. In PHP/Mapscript, you can export it in a similar fashion: $thepoint = ms_newpointObj(); $thepoint->setXY($_POST["map_x"],$_POST["map_y"]); Andy Xiaopeng Xiong wrote: > Hello List, > > I wonder how to display the world coordinate when a user clicks on the > map or drags a rectangle using mouse. I am quite ignorant to this type > of programming. > > I am using Mapserver and Rosa applet. But I can change to other > configurations if necessary. > > Your any suggestions or sample codes are appreciated! > > > Best regards, > Xiaopeng From jdaly at PANIX.COM Mon Nov 20 11:31:10 2006 From: jdaly at PANIX.COM (John Daly) Date: Mon, 20 Nov 2006 14:31:10 -0500 Subject: problem with MapServer global projection Message-ID: Percy, Thanks, and yes, I was confused about how the source data gets reprojected to the definition of the output (or global) projection. I got it going now. John ----- Original Message ----- From: "percy" To: Sent: Monday, November 20, 2006 1:16 PM Subject: Re: [UMN_MAPSERVER-USERS] problem with MapServer global projection > Hi John, > Do you have a Projection object defined in your Layer object, too? > > You probably need something like: > projection > "init=epsg:4326" > end > If you are using DD... > > MS needs to know what coordinate system your data is in before it can > reproject it. > Percy > > John Daly wrote: >> All, >> >> I'm a new MapServer user and list member, and I'd like to say hello to >> everyone. I'm also running into a problem trying to create a global map >> projection, and I would appreciate any and all feedback. I'm trying to >> use the projection example in Web Mapping illustrated, but although I >> have Proj4 support compiled in to MS, it does not seem to be actually >> using the new units and projection defined in my global.map file: >> >> MAP >> CONFIG "PROJ_LIB" "/usr/local/share/proj" >> PROJECTION >> "init=epsg:42304" >> END >> # PROJECTION >> # "proj=lcc" >> # "ellps=GRS80" >> # "lat_0=49" >> # "lon_0=-95" >> # "lat_1=49" >> # "lat_2=77" >> # "datum=NAD83" >> # "units=m" >> # "no_defs" >> # END >> >> I've tried both approaches, and neither works. The verbose switch to >> MapServer prints out: >> . >> ./cgi-bin/mapserv -v >> MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >> SUPPORTS=GEOS INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE >> >> ...and i'm using version 4.5 of Proj4. both were compiled from source on >> RedHat 9 >> >> I do not getting any actual error message, just a failure to correctly >> use the new projection. Has anyone run across this? Is there an easy >> way to test if my proj4 support is not configured correctly? >> >> Thanks, >> >> John >> > > -- > David Percy > Geospatial Data Manager > Geology Department > Portland State University > http://gisgeek.pdx.edu > 503-725-3373 From julien.martel at FREE.FR Tue Nov 21 00:09:16 2006 From: julien.martel at FREE.FR (Julien) Date: Tue, 21 Nov 2006 09:09:16 +0100 Subject: Pb with "ANGLE FOLLOW" function Message-ID: >Hmmm... That's identical to a problem I've experienced indirectly through ka-map. How are you making the maps? (PHP/MapScript, CGI or ?) > I am using PHP Mapscript but planning to use CGI in the near future. That's pretty strange because my server is running under Red Hat 7.2 but I made a test on a Debian system, with exactly the same dependencies and versions and everything is working perfectly on the Debian system... ?! >Steve > >>>> Julien 11/20/2006 7:33:23 AM >>> >Hello all, > >I am trying to use the new "ANGLE FOLLOW" function included in MapServer/MapScript 4.10.0. But I only get a blank image. When I do not use this funtion, my map displays correctly so I guess I really have a problem with ANGLE FOLLOW. I read on MapServer's website I needed GD 2.0.29 and True Type font support. The version of GD installed on my server is 2.0.33 and I have Freetype 2.2.1 (I guess TrueType fonts are handled by Freetype). So what's wrong with my installation ? > >P.S : Sorry for double posts, not sure I sent the first one the right way... > > >Julien MARTEL >Service Informatique >2 Avenue Madeleine Bonnaud >Parc d'Activit?s - Point Rencontre >13770 Venelles - FRANCE >Tel : +33 4 42 54 00 68 Fax : +33 4 42 54 06 78 >email : j.martel at g2c.fr web : www.g2c.fr From iansgis at GMAIL.COM Tue Nov 21 13:06:39 2006 From: iansgis at GMAIL.COM (Ian) Date: Tue, 21 Nov 2006 13:06:39 -0800 Subject: Oracle spatial query Message-ID: In a layer for GPS sites I am using this query: DATA "SHAPE FROM (select s.id as id,s.site_id as site_id,upper( s.site_code) as site_code,s.shape,nvl(s.city,'n/a') as city,sa.array_code as array_code,nvl(s.site_name,'n/a') as name from site s, site_affiliation sa where s.site_id = sa.site_id and s.site_type_code = 'CONGPS' and sa.array_code in ('SCIGN','BARD','PANGA','BARGN','PBO','EBRY','WCDA','AKDA')) USING UNIQUE ID SRID 8307 NONE VERSION 9i" The query works fine on its own, but when run via MapServer the query is run for EACH matching record, so the apache error log looks like: [Tue Nov 21 11:20:02 2006] [error] [client 132.239.152.99] [Tue Nov 21 11:20:02 2006].167983 msOracleSpatialLayerGetShape was called. Using the record = 7234. [Tue Nov 21 11:20:02 2006] [error] [client 132.239.152.99] [Tue Nov 21 11:20:02 2006].168002 msOracleSpatialLayerGetShape. Sql: SELECT ID, SITE_ID, SITE_CODE, CITY, ARRAY_CODE, NAME, SHAPE FROM (select s.id as id,s.site_idas site_id,upper( s.site_code) as site_code,s.shape,nvl(s.city,'n/a') as city,sa.array_code as array_code,nvl(s.site_name,'n/a') as name from site s, site_affiliation sa where s.site_id = sa.site_id and s.site_type_code = 'CONGPS' and sa.array_code in ('SCIGN','BARD','PANGA','BARGN','PBO','EBRY','WCDA','AKDA')) WHERE ID = 7234 [Tue Nov 21 11:20:02 2006] [error] [client 132.239.152.99] [Tue Nov 21 11:20:02 2006].172106 msOracleSpatialLayerGetShape was called. Using the record = 7390. [Tue Nov 21 11:20:02 2006] [error] [client 132.239.152.99] [Tue Nov 21 11:20:02 2006].172125 msOracleSpatialLayerGetShape. Sql: SELECT ID, SITE_ID, SITE_CODE, CITY, ARRAY_CODE, NAME, SHAPE FROM (select s.id as id,s.site_idas site_id,upper( s.site_code) as site_code,s.shape,nvl(s.city,'n/a') as city,sa.array_code as array_code,nvl(s.site_name,'n/a') as name from site s, site_affiliation sa where s.site_id = sa.site_id and s.site_type_code = 'CONGPS' and sa.array_code in ('SCIGN','BARD','PANGA','BARGN','PBO','EBRY','WCDA','AKDA')) WHERE ID = 7390 ...etc On queries that return many results this really bogs down the server and performance suffers big time. It seems like using FILTER wouldn't make a difference since it would just replace the WHERE clause that already exists in the query... Ideas? Something I'm doing wrong? This is in MapServer 4.6.2and Oracle 9i. Thank you, Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From kris_rock82 at YAHOO.COM Tue Nov 21 13:45:02 2006 From: kris_rock82 at YAHOO.COM (kris rock) Date: Tue, 21 Nov 2006 13:45:02 -0800 Subject: mapserver with fastcgi support In-Reply-To: <455A5994.4070602@pobox.com> Message-ID: Thanks for you reply frank, i added the line to the SDE layers and still it didnt work ... i followed your instrcutions for win32 in http://mapserver.gis.umn.edu/docs/howto/fastcgi and compiled libfcgi to get the dll and lib files. Copied the dll file to cgi-bin dir and didnt add anything in the apache conf file and still the fastcgi doesnt work. After compiling libfcgi do i have to add anything in the apache conf file. Thanks for your time ... kris Frank Warmerdam wrote: kris rock wrote: > Hello all, > i configured mapserver with fastcgi support on a windows machine > with apache webserver. Downloaded the mod_fastcgi-2.4.2-AP20.dll from > fastcgi website and copied into the modules folder in apache. Added the > following line to the apache conf file > LoadModule fastcgi_module "modules/mod_fastcgi-2.4.2-AP20.dll" > > but this doesnt make fastcgi work with apache and mapserver. I tested > this by sending a request to the sde server and see if only one > connection is opened for the database, but everytime i send a request a > new connection opens and closes as soon as the request is finished. > > Is there something else that i have to do for fastcgi working with > apache and mapserver. Kris, You also need to add the following line to all SDE layers. PROCESSING "CLOSE_CONNECTION=DEFER" 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 | President OSGeo, http://osgeo.org --------------------------------- Sponsored Link Rates near 39yr lows. $420,000 Loan for $1399/mo - Calculate new house payment -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.pettis at THOMSON.COM Tue Nov 21 20:05:36 2006 From: matt.pettis at THOMSON.COM (Matt Pettis) Date: Tue, 21 Nov 2006 22:05:36 -0600 Subject: MS4W and Perl Mapscript Message-ID: I'm learning MapServer on my XP laptop with MS4W. As I am most familiar with Perl, I'd like to learn to use mapscript with Perl. It doesn't appear that mapscript.pm is available for MS4W according to this posting back in April: http://lists.umn.edu/cgi-bin/wa?A2=ind0604&L=mapserver-users&P=R623&I=-3&X=7D0E7E7972A3597C90&Y=matt.pettis%40thomson.com Is this still true? Can someone confirm/deny that Perl Mapscript is not available for MS4W? Thanks, Matt From Kristian.Thy at ATKINSGLOBAL.COM Wed Nov 22 04:24:32 2006 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Wed, 22 Nov 2006 13:24:32 +0100 Subject: Raster tile indexing in PostGIS In-Reply-To: A<15547.66980.qm@web35901.mail.mud.yahoo.com> Message-ID: Quoting the Raster Data Access HOWTO : "The list of files forming a layer can be stored in a shapefile with polygons representing the footprint of each file, and the name of the files. This is called a TILEINDEX ..." The tileindex, we're told, is defined in the map file like this: LAYER NAME "hpool" STATUS ON TILEINDEX "hp2.shp" TILEITEM "Location" TYPE RASTER END My question is then: Is it possible (and if yes, desirable) to read the tileindex from a PostGIS data source instead of a shapefile - i.e. use gdatindex to create the tileindex, then convert the index .shp using shp2pgsql and stuff it into PostGIS. My understanding is that using plain ole shapefiles you miss out on the gist indexing and thus suffer a performance loss. best regards, Kristian Thy This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. From Tom.Kralidis at EC.GC.CA Wed Nov 22 05:42:41 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 22 Nov 2006 08:42:41 -0500 Subject: MS4W and Perl Mapscript Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Matt Pettis > Sent: 21 November, 2006 11:06 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] MS4W and Perl Mapscript > > I'm learning MapServer on my XP laptop with MS4W. As I am > most familiar with Perl, I'd like to learn to use mapscript > with Perl. It doesn't appear that mapscript.pm is available > for MS4W according to this posting back in > April: > > http://lists.umn.edu/cgi-bin/wa?A2=ind0604&L=mapserver-users&P =R623&I=-3&X=7D0E7E7972A3597C90&Y=matt.pettis%40thomson.com > > Is this still true? Can someone confirm/deny that Perl > Mapscript is not available for MS4W? > It's currently not. There's a bug filed in ms4w for this: http://bugzilla.maptools.org/show_bug.cgi?id=1504 > Thanks, > Matt > From jmckenna at DMSOLUTIONS.CA Wed Nov 22 05:43:21 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 22 Nov 2006 08:43:21 -0500 Subject: MS4W and Perl Mapscript In-Reply-To: <89C159F45B13A24682D98BDEF58E451F08C115@TLRUSMNEAGMBX28.ERF.THOMSON.COM> Message-ID: That is correct, Perl mapscript is not available in MS4W. For an uptodate list of what is inside MS4W, always refer to the README_INSTALL.txt in the package, or online at http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html jeff Matt Pettis wrote: > I'm learning MapServer on my XP laptop with MS4W. As I am most familiar with Perl, I'd like to learn to use mapscript with Perl. It doesn't appear that mapscript.pm is available for MS4W according to this posting back in > April: > > http://lists.umn.edu/cgi-bin/wa?A2=ind0604&L=mapserver-users&P=R623&I=-3&X=7D0E7E7972A3597C90&Y=matt.pettis%40thomson.com > > Is this still true? Can someone confirm/deny that Perl Mapscript is not available for MS4W? > > Thanks, > Matt > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From percyd at PDX.EDU Wed Nov 22 06:46:28 2006 From: percyd at PDX.EDU (percy) Date: Wed, 22 Nov 2006 06:46:28 -0800 Subject: Raster tile indexing in PostGIS In-Reply-To: Message-ID: Kristian, My understanding is that shapefiles with a spatial index (qix, generated with the shptree utility in mapserver) are actually faster than postgis access to the same data. I've had excellent performance with shapefiles for the display side of things, and PostGIS for the querying capabilities. Percy Thy, Kristian wrote: > Quoting the Raster Data Access HOWTO > : > > "The list of files forming a layer can be stored in a shapefile with > polygons > representing the footprint of each file, and the name of the files. > This is > called a TILEINDEX ..." > > The tileindex, we're told, is defined in the map file like this: > > LAYER > NAME "hpool" > STATUS ON > TILEINDEX "hp2.shp" > TILEITEM "Location" > TYPE RASTER > END > > My question is then: Is it possible (and if yes, desirable) to read the > tileindex from a PostGIS data source instead of a shapefile - i.e. use > gdatindex to create the tileindex, then convert the index .shp using > shp2pgsql and stuff it into PostGIS. My understanding is that using > plain ole shapefiles you miss out on the gist indexing and thus suffer > a performance loss. > > best regards, > Kristian Thy > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From David.Fawcett at STATE.MN.US Wed Nov 22 06:36:31 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 22 Nov 2006 08:36:31 -0600 Subject: Raster tile indexing in PostGIS In-Reply-To: A Message-ID: Kristian, You can use a PostGIS query as a tileindex. Take a look at: http://mapserver.gis.umn.edu/docs/howto/wms_time_support/#example-of-wms -t-with-postgis-tile-index-for-raster-imagery If you are looking for performance, I am guessing that you can do better with spatially-indexed shapefiles. Have you created quadtree indexes for your tileindex shapefile? Take a look at shptree: http://mapserver.gis.umn.edu/docs/reference/utilityreference/shptree David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Thy, Kristian Sent: Wednesday, November 22, 2006 6:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Raster tile indexing in PostGIS Quoting the Raster Data Access HOWTO : "The list of files forming a layer can be stored in a shapefile with polygons representing the footprint of each file, and the name of the files. This is called a TILEINDEX ..." The tileindex, we're told, is defined in the map file like this: LAYER NAME "hpool" STATUS ON TILEINDEX "hp2.shp" TILEITEM "Location" TYPE RASTER END My question is then: Is it possible (and if yes, desirable) to read the tileindex from a PostGIS data source instead of a shapefile - i.e. use gdatindex to create the tileindex, then convert the index .shp using shp2pgsql and stuff it into PostGIS. My understanding is that using plain ole shapefiles you miss out on the gist indexing and thus suffer a performance loss. best regards, Kristian Thy This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. From percyd at PDX.EDU Wed Nov 22 06:53:48 2006 From: percyd at PDX.EDU (percy) Date: Wed, 22 Nov 2006 06:53:48 -0800 Subject: static and dynamic text mixed in labels In-Reply-To: <4559D7A9.9090804@pdx.edu> Message-ID: Can you use the TEXT keyword to label something with "boilerplate" text, like TEXT ("Route number: "[route_num]) One of my students was trying to get something like this working recently, and I thought it should be possible... Thx, Percy -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From Kristian.Thy at ATKINSGLOBAL.COM Wed Nov 22 06:55:54 2006 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Wed, 22 Nov 2006 15:55:54 +0100 Subject: Raster tile indexing in PostGIS In-Reply-To: <45646233.5040207@pdx.edu> Message-ID: From: percy [percyd at pdx.edu] > My understanding is that shapefiles with a spatial index > (qix, generated with the shptree utility in mapserver) are > actually faster than postgis access to the same data. From: Fawcett, David [David.Fawcett at state.mn.us] > If you are looking for performance, I am guessing that you can > do better with spatially-indexed shapefiles. Have you created > quadtree indexes for your tileindex shapefile? Take a look at > shptree: http://mapserver.gis.umn.edu/docs/reference/utilityreference/shptree Oh my. Is this the general consensus? I.e. if I'm just using MapServer for displaying data and not using any of the spatial query stuff from PostGIS, I'm better off (performance-wise) with plain old shapefiles? And if so, is the fact that ArcSDE is seemingly faster than plain old shapefiles just another ESRI license selling point to get people to shell out money for SDE? ;-) If yes, it's going to be hard to convince my bosses that we don't need the database, but I'll try :-) best regards, Kristian This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. From warmerdam at POBOX.COM Wed Nov 22 06:59:18 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 22 Nov 2006 09:59:18 -0500 Subject: Raster tile indexing in PostGIS In-Reply-To: Message-ID: Thy, Kristian wrote: > Quoting the Raster Data Access HOWTO > : > > "The list of files forming a layer can be stored in a shapefile with > polygons > representing the footprint of each file, and the name of the files. > This is > called a TILEINDEX ..." > > The tileindex, we're told, is defined in the map file like this: > > LAYER > NAME "hpool" > STATUS ON > TILEINDEX "hp2.shp" > TILEITEM "Location" > TYPE RASTER > END > > My question is then: Is it possible (and if yes, desirable) to read the > tileindex from a PostGIS data source instead of a shapefile - i.e. use > gdatindex to create the tileindex, then convert the index .shp using > shp2pgsql and stuff it into PostGIS. My understanding is that using > plain ole shapefiles you miss out on the gist indexing and thus suffer > a performance loss. Kristian, Yes, you can also use another layer as the tileindex by putting a layer name in the TILEINDEX keyword instead of the name of a shapefile. In case of conflict a layer with a matching name would be used ahead of a shapefile. Normally the layer should be of type POLYGON and can be a connection to any feature data store, including postgis. The TILEITEM is still used to give the name of the column with the path in it. For the most part things work similarly to a shapefile. In fact, internally I believe the code creates a temporary layer for the direct shapefile tileindex access anyways. 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 | President OSGeo, http://osgeo.org From dbkeon.ml at GMAIL.COM Wed Nov 22 07:31:26 2006 From: dbkeon.ml at GMAIL.COM (Dylan Keon) Date: Wed, 22 Nov 2006 07:31:26 -0800 Subject: static and dynamic text mixed in labels In-Reply-To: <4564647C.3030401@pdx.edu> Message-ID: On 11/22/2006 06:53 AM percy wrote the following: > Can you use the TEXT keyword to label something with "boilerplate" text, > like TEXT ("Route number: "[route_num]) > > One of my students was trying to get something like this working > recently, and I thought it should be possible... > Thx, > Percy Hi Percy, TEXT (Route number: [route_num]) works for me. --Dylan From matt.pettis at THOMSON.COM Wed Nov 22 07:51:59 2006 From: matt.pettis at THOMSON.COM (Matt Pettis) Date: Wed, 22 Nov 2006 09:51:59 -0600 Subject: MS4W and Perl Mapscript In-Reply-To: <20061122153814.77C374C8FB@webmail.medinaco.org> Message-ID: Thanks Lowell, I'd love it. Need? Well, I could also just learn Python/PHP I guess, as I am in the early stages of a personal project. I'll probably end up doing that since I need functionality sooner than later... So I'd count me as representative of someone coming to MapServer, but not necessarily using it by the time MapScript for Perl on Windows was released... Thanks again to everybody, Matt -----Original Message----- From: Lowell.Filak [mailto:lfilak at medinaco.org] Sent: Wednesday, November 22, 2006 9:38 AM To: Pettis, Matthew (TLR Corp) Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MS4W and Perl Mapscript Matt Pettis writes: > I'm learning MapServer on my XP laptop with MS4W. As I am most > familiar with Perl, I'd like to learn to use mapscript with Perl. It > doesn't appear that mapscript.pm is available for MS4W according to > this posting back in > April: > > http://lists.umn.edu/cgi-bin/wa?A2=ind0604&L=mapserver-users&P=R623&I= > -3&X=7D0E7E7972A3597C90&Y=matt.pettis%40thomson.com > > Is this still true? Can someone confirm/deny that Perl Mapscript is not available for MS4W? Matt, A windows port of perl mapscript has been discussed at different times and if there is enough requests for it we could see about contracting & funding the development. It all depends on need.??? Lowell From warmerdam at POBOX.COM Wed Nov 22 07:56:05 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 22 Nov 2006 10:56:05 -0500 Subject: Raster tile indexing in PostGIS In-Reply-To: Message-ID: Thy, Kristian wrote: > From: percy [percyd at pdx.edu] >> My understanding is that shapefiles with a spatial index >> (qix, generated with the shptree utility in mapserver) are >> actually faster than postgis access to the same data. > > From: Fawcett, David [David.Fawcett at state.mn.us] >> If you are looking for performance, I am guessing that you can >> do better with spatially-indexed shapefiles. Have you created >> quadtree indexes for your tileindex shapefile? Take a look at >> shptree: > http://mapserver.gis.umn.edu/docs/reference/utilityreference/shptree > > Oh my. > > Is this the general consensus? I.e. if I'm just using MapServer > for displaying data and not using any of the spatial query > stuff from PostGIS, I'm better off (performance-wise) with plain > old shapefiles? Kristian, For simple cases the consensus is that shapefiles with a spatial index are faster in mapserver than postgis is. There are exceptions of course, such as when you want to do attributes based queries which cannot be indexed in shapefiles with mapserver. > And if so, is the fact that ArcSDE is seemingly faster than > plain old shapefiles just another ESRI license selling > point to get people to shell out money for SDE? ;-) It is hard to imagine that SDE is really faster for simple operations than a shapefile unless they have made no effort to make shapefiles fast. I would presume the main selling points of SDE are about shared access in a workgroup, "managability", and the ability to do complicated RDBMS'ish things (like joins) efficiently. > If yes, it's going to be hard to convince my bosses that we don't > need the database, but I'll try :-) You don't have to try too hard. Postgres+postgis is still quite fast. But if you are very performance sensitive and the other attributes aren't important to you then shapefiles will generally be better for mapserver feature data (and tileindexes). Don't forget the spatial index though! 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 | President OSGeo, http://osgeo.org From lfilak at MEDINACO.ORG Wed Nov 22 07:38:14 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Wed, 22 Nov 2006 10:38:14 -0500 Subject: MS4W and Perl Mapscript In-Reply-To: <89C159F45B13A24682D98BDEF58E451F08C115@TLRUSMNEAGMBX28.ERF.THOMSON.COM> Message-ID: Matt Pettis writes: > I'm learning MapServer on my XP laptop with MS4W. As I am most familiar with Perl, I'd like to learn to use mapscript with Perl. It doesn't appear that mapscript.pm is available for MS4W according to this posting back in > April: > > http://lists.umn.edu/cgi-bin/wa?A2=ind0604&L=mapserver-users&P=R623&I=-3&X=7D0E7E7972A3597C90&Y=matt.pettis%40thomson.com > > Is this still true? Can someone confirm/deny that Perl Mapscript is not available for MS4W? Matt, A windows port of perl mapscript has been discussed at different times and if there is enough requests for it we could see about contracting & funding the development. It all depends on need.??? Lowell From percyd at PDX.EDU Wed Nov 22 08:58:20 2006 From: percyd at PDX.EDU (percy) Date: Wed, 22 Nov 2006 08:58:20 -0800 Subject: static and dynamic text mixed in labels In-Reply-To: <45646D4E.3060707@gmail.com> Message-ID: no way! I didn't even BOTHER trying it without quotes, Thanks Corvallis ;-) Dylan Keon wrote: > On 11/22/2006 06:53 AM percy wrote the following: >> Can you use the TEXT keyword to label something with "boilerplate" >> text, like TEXT ("Route number: "[route_num]) >> >> One of my students was trying to get something like this working >> recently, and I thought it should be possible... >> Thx, >> Percy > > Hi Percy, > > TEXT (Route number: [route_num]) works for me. > > --Dylan > > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From BLC at JUB.COM Wed Nov 22 09:50:10 2006 From: BLC at JUB.COM (Bruce Cheney) Date: Wed, 22 Nov 2006 10:50:10 -0700 Subject: Label collision trouble Message-ID: Hello group. I am having label collision trouble. No matter what I do the labels seem to collide with each other. I also have labels from more than one layer colliding with each other. Obviously this makes the map very difficult to read. I have implemented caching and tried every other combination of attributes I can think of. Here is a label section from a mapfile and a sample label collision. Any suggestions? Thank you for any help you give. LAYER # parcels polygon layer begins here NAME PARCELS DATA PARCELS STATUS ON TYPE POLYGON LABELCACHE ON LABELMAXSCALE 650 LABELMINSCALE 1 SYMBOLSCALE 150 TEXT ([OWNER]) LABEL COLOR 31 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 1 1 TYPE TRUETYPE FONT arial SIZE 6 ANTIALIAS TRUE POSITION uC PARTIALS FALSE MINDISTANCE 2 MINSIZE 1 MAXSIZE 16 BUFFER 2 FORCE ON ANGLE 0 END # end of label END # PARCELS polygon layer ends here Bruce Cheney -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook.jpg Type: image/jpeg Size: 14019 bytes Desc: Outlook.jpg URL: From dbkeon.ml at GMAIL.COM Wed Nov 22 10:41:22 2006 From: dbkeon.ml at GMAIL.COM (Dylan Keon) Date: Wed, 22 Nov 2006 10:41:22 -0800 Subject: Label collision trouble In-Reply-To: Message-ID: On 11/22/2006 09:50 AM, Bruce Cheney wrote: > Hello group. I am having label collision trouble. No matter what I do > the labels seem to collide with each other. I also have labels from > more than one layer colliding with each other. Obviously this makes the > map very difficult to read. I have implemented caching and tried every > other combination of attributes I can think of. Here is a label section > from a mapfile and a sample label collision. Any suggestions? Thank you > for any help you give. Bruce, What happens if you remove FORCE ON (should be FORCE TRUE), or change it to FORCE FALSE? You might also try POSITION AUTO. With so many labels you'll really have to finesse POSITION, FORCE, LABELMINSCALE, LABELMAXSCALE, PARTIALS, and possibly other parameters just right for each layer. --Dylan From paul.hussein at JRC.IT Wed Nov 22 10:54:43 2006 From: paul.hussein at JRC.IT (Paul Hussein) Date: Wed, 22 Nov 2006 19:54:43 +0100 Subject: newbie: trouble building mapserver Message-ID: Hi, I am trying for the first time to build mapserver from source on CentOS 4.4 (RHEL 4 clone), and have hit a compilation error. The error is as below : ./libmap.a(mapgeos.o)(.text+0x180b): In function `msGEOSArea': /root/build/mapserver-4.10.0/mapgeos.c:1114: undefined reference to `GEOSArea' ./libmap.a(mapgeos.o)(.text+0x1873): In function `msGEOSLength': /root/build/mapserver-4.10.0/mapgeos.c:1140: undefined reference to `GEOSLength' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 Can someone tell me if I need a specific version of the GEOS package, or any other package. I have tried as much aspossible to follow the linux build example given. I include below a script I am using that gives all the versions and how I build. Thanks Paul. ================================================== #!/bin/csh -fex setenv MAPSERVER_DIR /home/mapserver touch build \rm -rf build mkdir build cd build wget http://cvs.gis.umn.edu/dist/mapserver-4.10.0.tar.gz wget ftp://ftp.remotesensing.org/proj/proj-4.5.0.tar.gz wget http://geos.refractions.net/geos-2.2.3.tar.bz2 wget wget http://postgis.refractions.net/download/postgis-1.1.5.tar.gz wget http://curl.haxx.se/download/curl-7.16.0.tar.gz wget http://www.gdal.org/dl/gdal-1.3.2.tar.gz tar xzf gdal-1.3.2.tar.gz cd gdal-1.3.2 ./configure --prefix=$MAPSERVER_DIR make make install cd .. tar xzf curl-7.16.0.tar.gz cd curl-7.16.0 ./configure --prefix=$MAPSERVER_DIR make make install cd .. tar xzf proj-4.5.0.tar.gz cd proj-4.5.0 ./configure --prefix=$MAPSERVER_DIR make make install cd .. tar xjf geos-2.2.3.tar.bz2 cd geos-2.2.3 ./configure --prefix=$MAPSERVER_DIR make make install cd .. tar xzf postgis-1.1.5.tar.gz cd postgis-1.1.5 rehash ./configure --prefix=$MAPSERVER_DIR make make install cd .. tar xzf mapserver-4.10.0.tar.gz cd mapserver-4.10.0 ./configure \ --with-wfsclient \ --with-wmsclient \ --with-tiff \ --with-threads \ --with-wcs \ --enable-debug \ --with-sos \ --prefix=$MAPSERVER_DIR \ --with-proj=$MAPSERVER_DIR \ --with-geos=$MAPSERVER_DIR/bin/geos-config \ --with-php=/usr/include/php \ --with-postgis=/usr/bin/pg_config \ --with-gdal=$MAPSERVER_DIR/bin/gdal-config make make install cd .. #\rm -rf build From Kristian.Thy at ATKINSGLOBAL.COM Wed Nov 22 11:10:46 2006 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Wed, 22 Nov 2006 20:10:46 +0100 Subject: Raster tile indexing in PostGIS Message-ID: Frank et al, First, your comments and thoughts are much appreciated. I am trying to form a picture for the infrastructure we are going to build to serve a high-performance WMS with fairly static data, so I guess shapefiles sound more efficient than the database access. But one thing came to mind while buying my groceries - how do shapefiles perform under increasing load on the server? I.e. is it possible for several instances of MapServer to read concurrently from the same shapefile and spatial index, or will the database help on performance in this scenario? I know it's dependent on the nature of my data and the number of concurrent users, but if it's possible to give some sweeping comments on this issue I'm very interested in hearing your opinions. best, Kristian ________________________________ Fra: UMN MapServer Users List p? vegne af Frank Warmerdam Sendt: on 22-11-2006 16:56 Til: MAPSERVER-USERS at LISTS.UMN.EDU Emne: Re: [UMN_MAPSERVER-USERS] Raster tile indexing in PostGIS Thy, Kristian wrote: > From: percy [percyd at pdx.edu] >> My understanding is that shapefiles with a spatial index >> (qix, generated with the shptree utility in mapserver) are >> actually faster than postgis access to the same data. > > From: Fawcett, David [David.Fawcett at state.mn.us] >> If you are looking for performance, I am guessing that you can >> do better with spatially-indexed shapefiles. Have you created >> quadtree indexes for your tileindex shapefile? Take a look at >> shptree: > http://mapserver.gis.umn.edu/docs/reference/utilityreference/shptree > > Oh my. > > Is this the general consensus? I.e. if I'm just using MapServer > for displaying data and not using any of the spatial query > stuff from PostGIS, I'm better off (performance-wise) with plain > old shapefiles? Kristian, For simple cases the consensus is that shapefiles with a spatial index are faster in mapserver than postgis is. There are exceptions of course, such as when you want to do attributes based queries which cannot be indexed in shapefiles with mapserver. > And if so, is the fact that ArcSDE is seemingly faster than > plain old shapefiles just another ESRI license selling > point to get people to shell out money for SDE? ;-) It is hard to imagine that SDE is really faster for simple operations than a shapefile unless they have made no effort to make shapefiles fast. I would presume the main selling points of SDE are about shared access in a workgroup, "managability", and the ability to do complicated RDBMS'ish things (like joins) efficiently. > If yes, it's going to be hard to convince my bosses that we don't > need the database, but I'll try :-) You don't have to try too hard. Postgres+postgis is still quite fast. But if you are very performance sensitive and the other attributes aren't important to you then shapefiles will generally be better for mapserver feature data (and tileindexes). Don't forget the spatial index though! 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 | President OSGeo, http://osgeo.org This message has been scanned for viruses by MailControl - (see http://bluepages.wsatkins.co.uk/?4318150) This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. -------------- next part -------------- An HTML attachment was scrubbed... URL: From martinelli at PI.INGV.IT Wed Nov 22 11:06:09 2006 From: martinelli at PI.INGV.IT (Francesco Martinelli) Date: Wed, 22 Nov 2006 20:06:09 +0100 Subject: Issue with Mapscript in Java Message-ID: Hi, I have a problem about the use of MapServer from a Java program. I am using the following environment: -) NetBeans IDE 5.0 -) Windows -) I also added the "mapscript.jar" file to the project Libraries, extracted from "ms4w_1.5.1.zip" and in the "MANIFEST.MF" is reported: Manifest-Version: 1.0 Created-By: 1.5.0_06 (Sun Microsystems Inc.) With this set up on NetBeans I compiled succesfully. When I tried running the program I got a first issue at the following line: mapObj myMap = new mapObj("mapFile.map"); The error was: java.lang.UnsatisfiedLinkError: no mapscript in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:992) at edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:22) at edu.umn.gis.mapscript.mapObj.(mapObj.java:312) To try solving this issue I copied the file "mapscript.dll" (found in the same directory as "mapscript.jar") in the project directory "project\build\web\WEB-INF\classes", but still I have an error on the same line, thought different: java.lang.NoClassDefFoundError at edu.umn.gis.mapscript.mapObj.(mapObj.java:312) I am sure this is a configuration issue, but I didn't find any help on-line on how-to configure the library to work with Java. Is there anyone could help me? Thank you, Francesco Martinelli. From BLC at JUB.COM Wed Nov 22 11:46:06 2006 From: BLC at JUB.COM (Bruce Cheney) Date: Wed, 22 Nov 2006 12:46:06 -0700 Subject: Label collision trouble In-Reply-To: A<456499D2.70304@gmail.com> Message-ID: Thanks for your help Dylan. That is certainly helping. I removed FORCE, dropped my SYMBOLSCALE, and removed PARTIALS. The collisions are not happening now (probably because of FORCE being removed). I would like PARTIALS to stay on but they are messy - crossing boundaries, etc. Is there some way to force labels in a polygon to stay in the same position relative to the center - I don't want them moving around every time a user pans or zooms in? Thanks again. Bruce -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dylan Keon Sent: Wednesday, November 22, 2006 11:41 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Label collision trouble On 11/22/2006 09:50 AM, Bruce Cheney wrote: > Hello group. I am having label collision trouble. No matter what I > do the labels seem to collide with each other. I also have labels > from more than one layer colliding with each other. Obviously this > makes the map very difficult to read. I have implemented caching and > tried every other combination of attributes I can think of. Here is a > label section from a mapfile and a sample label collision. Any > suggestions? Thank you for any help you give. Bruce, What happens if you remove FORCE ON (should be FORCE TRUE), or change it to FORCE FALSE? You might also try POSITION AUTO. With so many labels you'll really have to finesse POSITION, FORCE, LABELMINSCALE, LABELMAXSCALE, PARTIALS, and possibly other parameters just right for each layer. --Dylan From David.Fawcett at STATE.MN.US Wed Nov 22 11:52:17 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 22 Nov 2006 13:52:17 -0600 Subject: Label collision trouble In-Reply-To: A Message-ID: If your data is pretty static, it might be doing it this way. You could create a point shapefile to use as label points. You would then create a layer of type ANNOTATION to place your labels. This is a lot more work up front, but it guarantees that the labels will be exactly where you want them. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bruce Cheney Sent: Wednesday, November 22, 2006 1:46 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Label collision trouble Thanks for your help Dylan. That is certainly helping. I removed FORCE, dropped my SYMBOLSCALE, and removed PARTIALS. The collisions are not happening now (probably because of FORCE being removed). I would like PARTIALS to stay on but they are messy - crossing boundaries, etc. Is there some way to force labels in a polygon to stay in the same position relative to the center - I don't want them moving around every time a user pans or zooms in? Thanks again. Bruce -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dylan Keon Sent: Wednesday, November 22, 2006 11:41 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Label collision trouble On 11/22/2006 09:50 AM, Bruce Cheney wrote: > Hello group. I am having label collision trouble. No matter what I > do the labels seem to collide with each other. I also have labels > from more than one layer colliding with each other. Obviously this > makes the map very difficult to read. I have implemented caching and > tried every other combination of attributes I can think of. Here is a > label section from a mapfile and a sample label collision. Any > suggestions? Thank you for any help you give. Bruce, What happens if you remove FORCE ON (should be FORCE TRUE), or change it to FORCE FALSE? You might also try POSITION AUTO. With so many labels you'll really have to finesse POSITION, FORCE, LABELMINSCALE, LABELMAXSCALE, PARTIALS, and possibly other parameters just right for each layer. --Dylan From bjh at GLOBEXPLORER.COM Wed Nov 22 12:00:26 2006 From: bjh at GLOBEXPLORER.COM (Jean-Henry Berevoescu) Date: Wed, 22 Nov 2006 12:00:26 -0800 Subject: Issue with Mapscript in Java In-Reply-To: <1634.10.246.1.19.1164222369.squirrel@www.pi.ingv.it> Message-ID: Most probably you forgot to add mapscript.jar to the CLASSPATH Also, for the DLL problem you had before, I would recommend relaying on platform independent mechanisms, i.e. copying the DLL to a directory one assumes might be in the library loading path is not a sure bet and it definitely would not apply for any platform - one should use "-Djava.library.path=..." for this kind of situation. Jean Francesco Martinelli wrote: > Hi, > I have a problem about the use of MapServer from a Java program. > I am using the following environment: > -) NetBeans IDE 5.0 > -) Windows > -) I also added the "mapscript.jar" file to the project Libraries, > extracted from "ms4w_1.5.1.zip" and in the "MANIFEST.MF" is reported: > Manifest-Version: 1.0 > Created-By: 1.5.0_06 (Sun Microsystems Inc.) > > With this set up on NetBeans I compiled succesfully. > When I tried running the program I got a first issue at the following line: > mapObj myMap = new mapObj("mapFile.map"); > > The error was: > java.lang.UnsatisfiedLinkError: no mapscript in java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) > at java.lang.Runtime.loadLibrary0(Runtime.java:822) > at java.lang.System.loadLibrary(System.java:992) > at edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:22) > at edu.umn.gis.mapscript.mapObj.(mapObj.java:312) > > To try solving this issue I copied the file "mapscript.dll" (found in the > same directory as "mapscript.jar") in the project directory > "project\build\web\WEB-INF\classes", > but still I have an error on the same line, thought different: > java.lang.NoClassDefFoundError > at edu.umn.gis.mapscript.mapObj.(mapObj.java:312) > > I am sure this is a configuration issue, but I didn't find any help > on-line on how-to configure the library to work with Java. > Is there anyone could help me? > > Thank you, > Francesco Martinelli. > > > ------------------------------------------------------- > Click link below if it is SPAM bjh at globexplorer.com > "https://mailscanner.globexplorer.com/dspam/dspam.cgi?signatureID=4564a8b2227114356172766&user=bjh at globexplorer.com&retrain=spam&template=history&history_page=1" > !DSPAM:4564a8b2227114356172766! > ------------------------------------------------------- > > > > -- Please avoid sending me Word, Excel or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html From warmerdam at POBOX.COM Wed Nov 22 12:42:31 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 22 Nov 2006 15:42:31 -0500 Subject: Raster tile indexing in PostGIS In-Reply-To: Message-ID: Thy, Kristian wrote: > Frank et al, > > First, your comments and thoughts are much appreciated. I am trying to > form a picture for the infrastructure we are going to build to serve a > high-performance WMS with fairly static data, so I guess shapefiles > sound more efficient than the database access. But one thing came to > mind while buying my groceries - how do shapefiles perform under > increasing load on the server? I.e. is it possible for several instances > of MapServer to read concurrently from the same shapefile and spatial > index, or will the database help on performance in this scenario? I know > it's dependent on the nature of my data and the number of concurrent > users, but if it's possible to give some sweeping comments on this issue > I'm very interested in hearing your opinions. Kristian, Generally speaking the shapefiles, and the spatial indexes will get cached in RAM. As long as your server has lots of ram, multiple concurrent access should be no problem. In this regard I think shapefiles will do at least as well as an RDBMS given the same piece of hardware and RAM. If you are planning for very heavy use, don't skimp on RAM. 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 | President OSGeo, http://osgeo.org From armin.burger at GMX.NET Wed Nov 22 13:39:03 2006 From: armin.burger at GMX.NET (Armin Burger) Date: Wed, 22 Nov 2006 22:39:03 +0100 Subject: newbie: trouble building mapserver In-Reply-To: <396e4a880611221054v417e40a2ta2beb96c1b0a8de6@mail.gmail.com> Message-ID: Hi Paul I made the experience that Mapserver 4.10 just compiles with GEOS version 3, currently as release candidate 2. Mapserver 4.8 compiled fine with Geos 2.2. armin Paul Hussein wrote: > Hi, > > I am trying for the first time to build mapserver from source on > CentOS 4.4 (RHEL 4 clone), and have hit a compilation error. > > The error is as below : > > > ./libmap.a(mapgeos.o)(.text+0x180b): In function `msGEOSArea': > /root/build/mapserver-4.10.0/mapgeos.c:1114: undefined reference to > `GEOSArea' > ./libmap.a(mapgeos.o)(.text+0x1873): In function `msGEOSLength': > /root/build/mapserver-4.10.0/mapgeos.c:1140: undefined reference to > `GEOSLength' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > > Can someone tell me if I need a specific version of the GEOS package, > or any other package. I have tried as much aspossible to follow the > linux build example given. > > I include below a script I am using that gives all the versions and how > I build. > > Thanks > > > Paul. > > ================================================== > #!/bin/csh -fex > setenv MAPSERVER_DIR /home/mapserver > > touch build > \rm -rf build > mkdir build > cd build > wget http://cvs.gis.umn.edu/dist/mapserver-4.10.0.tar.gz > wget ftp://ftp.remotesensing.org/proj/proj-4.5.0.tar.gz > wget http://geos.refractions.net/geos-2.2.3.tar.bz2 > wget wget http://postgis.refractions.net/download/postgis-1.1.5.tar.gz > wget http://curl.haxx.se/download/curl-7.16.0.tar.gz > wget http://www.gdal.org/dl/gdal-1.3.2.tar.gz > > tar xzf gdal-1.3.2.tar.gz > cd gdal-1.3.2 > ./configure --prefix=$MAPSERVER_DIR > make > make install > cd .. > > tar xzf curl-7.16.0.tar.gz > cd curl-7.16.0 > ./configure --prefix=$MAPSERVER_DIR > make > make install > cd .. > > tar xzf proj-4.5.0.tar.gz > cd proj-4.5.0 > ./configure --prefix=$MAPSERVER_DIR > make > make install > cd .. > > tar xjf geos-2.2.3.tar.bz2 > cd geos-2.2.3 > ./configure --prefix=$MAPSERVER_DIR > make > make install > cd .. > > tar xzf postgis-1.1.5.tar.gz > cd postgis-1.1.5 > rehash > ./configure --prefix=$MAPSERVER_DIR > make > make install > cd .. > > tar xzf mapserver-4.10.0.tar.gz > cd mapserver-4.10.0 > ./configure \ > --with-wfsclient \ > --with-wmsclient \ > --with-tiff \ > --with-threads \ > --with-wcs \ > --enable-debug \ > --with-sos \ > --prefix=$MAPSERVER_DIR \ > --with-proj=$MAPSERVER_DIR \ > --with-geos=$MAPSERVER_DIR/bin/geos-config \ > --with-php=/usr/include/php \ > --with-postgis=/usr/bin/pg_config \ > --with-gdal=$MAPSERVER_DIR/bin/gdal-config > make > make install > cd .. > > > #\rm -rf build > From chrislist at NARX.NET Wed Nov 22 22:30:37 2006 From: chrislist at NARX.NET (Chris Tweedie) Date: Thu, 23 Nov 2006 14:30:37 +0800 Subject: Work around for WMS client url encoding? Message-ID: Hey guys, I'm in urgent need of help highlighting where in mapwms i can turn off the url encoding problems mentioned in bugs #1296 and 1303. The bugs look old but appears to still be a problem with 4.10 We have unfortunately found a WMS server which has stricter requirements on encoded elements than mapserver does! eg. Mapserver client is still requesting LAYERS=One%2CTwo& instead of LAYERS=One,Two which causes significant problems in various places such as the format and bbox string. Cheers -- Chris Tweedie From joseramonlopez at GMAIL.COM Thu Nov 23 00:08:12 2006 From: joseramonlopez at GMAIL.COM (=?ISO-8859-1?Q?Jos=E9_Ram=F3n_L=F3pez?=) Date: Thu, 23 Nov 2006 09:08:12 +0100 Subject: Blank Image OracleSpatial Message-ID: Hi People! I have installed MS4W for Windows, with maplab, chamaleon, php 4.4.2 ... I am with problems when I make a request on layer lodged in a oracle data base, because always shows a blank image. Im using Oracle 9i and Spatial. The dlls are in dlls their corresponding directories. If I make a request on a layer lodged in a data file, this is is correctly. Im using oraclespatial method , not by OCI. In error.log file it appears: [error] [client 172.21.128.99] msOracleSpatialLayerOpen called with: SHAPE FROM RED_FERROCARRIL USING VERSION 9i\r [error] [client 172.21.128.99] msOracleSpatialLayerOpen. Shared connection not available. Creating one.\r [error] [client 172.21.128.99] msConnPoolRegister(ferrocarriles,sde/sde at SDE ,01912370)\r [error] [client 172.21.128.99] msOracleSpatialLayerFreeItemInfo was called.\r [error] [client 172.21.128.99] msOracleSpatialLayerWhichShapes was called.\r [[error] [client 172.21.128.99] msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT rownum, SHAPE FROM RED_FERROCARRIL WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-206.756757 ,-170,206.756757,170) ),'querytype=window') = 'TRUE'\r [error] [client 172.21.128.99] msOracleSpatialLayerFreeItemInfo was called.\r [error] [client 172.21.128.99] msOracleSpatialLayerClose was called. Layer connection: sde/sde at SDE\r [error] [client 172.21.128.99] msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r [error] [client 172.21.128.99] msOracleSpatialLayerClose. Cleaning Oracle handlers.\r [error] [client 172.21.128.99] msConnPoolRelease(ferrocarriles,sde/sde at SDE ,01912370)\r [error] [client 172.21.128.99] msConnPoolClose(sde/sde at SDE,01912370)\r [error] [client 172.21.128.99] msDrawMap(): Layer 2 (ferrocarriles), 0.218s\r [error] [client 172.21.128.99] msOracleSpatialLayerClose was called. Layer connection: sde/sde at SDE\r Thxs -- Jos? Ram?n L?pez -------------- next part -------------- An HTML attachment was scrubbed... URL: From yjacolin at FREE.FR Thu Nov 23 00:19:46 2006 From: yjacolin at FREE.FR (Yves Jacolin) Date: Thu, 23 Nov 2006 09:19:46 +0100 Subject: newbie: trouble building mapserver In-Reply-To: <4564C377.3020107@gmx.net> Message-ID: Hello, I succeed to build GEOS 2.2.3 with mapserver 4.10, am I wrong ? This seems worked. Regards, Y. Le Mercredi 22 Novembre 2006 22:39, Armin Burger a ?crit?: > Hi Paul > > I made the experience that Mapserver 4.10 just compiles with GEOS > version 3, currently as release candidate 2. Mapserver 4.8 compiled fine > with Geos 2.2. > > armin > > Paul Hussein wrote: > > Hi, > > > > I am trying for the first time to build mapserver from source on > > CentOS 4.4 (RHEL 4 clone), and have hit a compilation error. > > > > The error is as below : > > > > > > ./libmap.a(mapgeos.o)(.text+0x180b): In function `msGEOSArea': > > /root/build/mapserver-4.10.0/mapgeos.c:1114: undefined reference to > > `GEOSArea' > > ./libmap.a(mapgeos.o)(.text+0x1873): In function `msGEOSLength': > > /root/build/mapserver-4.10.0/mapgeos.c:1140: undefined reference to > > `GEOSLength' > > collect2: ld returned 1 exit status > > make: *** [shp2img] Error 1 > > > > > > Can someone tell me if I need a specific version of the GEOS package, > > or any other package. I have tried as much aspossible to follow the > > linux build example given. > > > > I include below a script I am using that gives all the versions and how > > I build. > > > > Thanks > > > > > > Paul. > > > > ================================================== > > #!/bin/csh -fex > > setenv MAPSERVER_DIR /home/mapserver > > > > touch build > > \rm -rf build > > mkdir build > > cd build > > wget http://cvs.gis.umn.edu/dist/mapserver-4.10.0.tar.gz > > wget ftp://ftp.remotesensing.org/proj/proj-4.5.0.tar.gz > > wget http://geos.refractions.net/geos-2.2.3.tar.bz2 > > wget wget http://postgis.refractions.net/download/postgis-1.1.5.tar.gz > > wget http://curl.haxx.se/download/curl-7.16.0.tar.gz > > wget http://www.gdal.org/dl/gdal-1.3.2.tar.gz > > > > tar xzf gdal-1.3.2.tar.gz > > cd gdal-1.3.2 > > ./configure --prefix=$MAPSERVER_DIR > > make > > make install > > cd .. > > > > tar xzf curl-7.16.0.tar.gz > > cd curl-7.16.0 > > ./configure --prefix=$MAPSERVER_DIR > > make > > make install > > cd .. > > > > tar xzf proj-4.5.0.tar.gz > > cd proj-4.5.0 > > ./configure --prefix=$MAPSERVER_DIR > > make > > make install > > cd .. > > > > tar xjf geos-2.2.3.tar.bz2 > > cd geos-2.2.3 > > ./configure --prefix=$MAPSERVER_DIR > > make > > make install > > cd .. > > > > tar xzf postgis-1.1.5.tar.gz > > cd postgis-1.1.5 > > rehash > > ./configure --prefix=$MAPSERVER_DIR > > make > > make install > > cd .. > > > > tar xzf mapserver-4.10.0.tar.gz > > cd mapserver-4.10.0 > > ./configure \ > > --with-wfsclient \ > > --with-wmsclient \ > > --with-tiff \ > > --with-threads \ > > --with-wcs \ > > --enable-debug \ > > --with-sos \ > > --prefix=$MAPSERVER_DIR \ > > --with-proj=$MAPSERVER_DIR \ > > --with-geos=$MAPSERVER_DIR/bin/geos-config \ > > --with-php=/usr/include/php \ > > --with-postgis=/usr/bin/pg_config \ > > --with-gdal=$MAPSERVER_DIR/bin/gdal-config > > make > > make install > > cd .. > > > > > > #\rm -rf build -- Yves Jacolin --- http://yjacolin.gloobe.org From Kristian.Thy at ATKINSGLOBAL.COM Thu Nov 23 00:23:03 2006 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Thu, 23 Nov 2006 09:23:03 +0100 Subject: Raster tile indexing in PostGIS In-Reply-To: A<4564B637.8050406@pobox.com> Message-ID: From: Frank Warmerdam > Generally speaking the shapefiles, and the spatial indexes > will get cached in RAM. Also for separate invocations of cgi MapServer? Pardon if this is a stupid question, but the arcane workings of computer hardware is not my area of expertise :-) Kristian This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. From benjaminsims at YAHOO.COM Thu Nov 23 01:50:03 2006 From: benjaminsims at YAHOO.COM (Ben Sims) Date: Thu, 23 Nov 2006 01:50:03 -0800 Subject: Sudden death of mapserver appliation Message-ID: Hi, I recently developed and deployed my first mapserver application. After finally sorting out the installation process, it went well and seemed stable. However, yesterday the map generation was failing with the following error: Warning: dl(): Unable to load dynamic library '/usr/lib/php4/php_mapscript.so' - /usr/lib/php4/php_mapscript.so: undefined symbol: php_sprintf Fatal error: Call to undefined function: ms_newmapobj() Searching for the above comes up with not much (see for example http://comments.gmane.org/gmane.comp.gis.mapserver.user/18015 - libraries look normal, and nothing has been changed there) The only recent things changed on this server: - the admin making apache config changes. He says that he has removed them and the server is as before - I installed some python libraries. Could this have messed up the libraries linked by mapserver? Could anybody give me any pointers as to the sorts of things that might cause this? Thanks, Benjamin Send instant messages to your online friends http://uk.messenger.yahoo.com From fsimon at UNIVALI.BR Thu Nov 23 03:08:13 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 23 Nov 2006 09:08:13 -0200 Subject: Oracle spatial query In-Reply-To: <5b61c6c50611211306ye5acaa2y4e033cdcfaa42e34@mail.gmail.com> Message-ID: Hi Ian, This issue it's relate with the way how Mapserver executes the query's. Mapserver core call's the Oracle Spatial driver to request the data, but juts forward one by one record. This error occur for all the database drivers (Oracle Spatial, PostGIS). One suggestion to improve the query's in Oracle server it's have a index in your ID column. Did you measure (time to finish) the query from Mapserver using SQLPlus directly? The FILTER parameter just will help to draw the map, don't help in query mode. I suggest to you to always use the FILTER parameter (or RELATE if you need more precision in the bbox) to improve the performance. Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Ian wrote: > In a layer for GPS sites I am using this query: > > DATA "SHAPE FROM (select s.id as id,s.site_id as > site_id,upper(s.site_code) as site_code,s.shape,nvl(s.city,'n/a') as > city,sa.array_code as array_code,nvl(s.site_name,'n/a') as name from > site s, site_affiliation sa where s.site_id = sa.site_id and > s.site_type_code = 'CONGPS' and sa.array_code in > ('SCIGN','BARD','PANGA','BARGN','PBO','EBRY','WCDA','AKDA')) USING > UNIQUE ID SRID 8307 NONE VERSION 9i" > > The query works fine on its own, but when run via MapServer the query > is run for EACH matching record, so the apache error log looks like: > > [Tue Nov 21 11:20:02 2006] [error] [client 132.239.152.99 > ] [Tue Nov 21 11:20:02 2006].167983 > msOracleSpatialLayerGetShape was called. Using the record = 7234. > [Tue Nov 21 11:20:02 2006] [error] [client 132.239.152.99 > ] [Tue Nov 21 11:20:02 2006].168002 > msOracleSpatialLayerGetShape. Sql: SELECT ID, SITE_ID, SITE_CODE, > CITY, ARRAY_CODE, NAME, SHAPE FROM (select s.id as > id,s.site_id as site_id,upper(s.site_code) as > site_code,s.shape,nvl(s.city,'n/a') as city,sa.array_code as > array_code,nvl(s.site_name,'n/a') as name from site s, > site_affiliation sa where s.site_id = sa.site_id and s.site_type_code > = 'CONGPS' and sa.array_code in > ('SCIGN','BARD','PANGA','BARGN','PBO','EBRY','WCDA','AKDA')) WHERE ID > = 7234 > [Tue Nov 21 11:20:02 2006] [error] [client 132.239.152.99 > ] [Tue Nov 21 11:20:02 2006].172106 > msOracleSpatialLayerGetShape was called. Using the record = 7390. > [Tue Nov 21 11:20:02 2006] [error] [client 132.239.152.99 > ] [Tue Nov 21 11:20:02 2006].172125 > msOracleSpatialLayerGetShape. Sql: SELECT ID, SITE_ID, SITE_CODE, > CITY, ARRAY_CODE, NAME, SHAPE FROM (select s.id as > id,s.site_id as site_id,upper(s.site_code) as > site_code,s.shape,nvl(s.city,'n/a') as city,sa.array_code as > array_code,nvl(s.site_name,'n/a') as name from site s, > site_affiliation sa where s.site_id = sa.site_id and s.site_type_code > = 'CONGPS' and sa.array_code in > ('SCIGN','BARD','PANGA','BARGN','PBO','EBRY','WCDA','AKDA')) WHERE ID > = 7390 > ...etc > > On queries that return many results this really bogs down the server > and performance suffers big time. It seems like using FILTER wouldn't > make a difference since it would just replace the WHERE clause that > already exists in the query... Ideas? Something I'm doing wrong? This > is in MapServer 4.6.2 and Oracle 9i. > > Thank you, > > Ian From dobes at LNX.CZ Thu Nov 23 03:32:25 2006 From: dobes at LNX.CZ (Pavel Dobe_) Date: Thu, 23 Nov 2006 12:32:25 +0100 Subject: mapserver ebuild for gentoo Message-ID: Hi everyone, I found install how-to with direct link to ebuild on http://maps.tikiwiki.org/page12 . I used it for some time. Now I add pdf to my USE flags and mapserver is ending recompilation with error: In file included from /usr/include/geos.h:27, from mapgeos.cpp:83: /usr/include/geos/geom.h:145:2: warning: #warning *** FIXME: to be removed, temporarly set to allow a quick successful build In file included from /usr/include/geos.h:29, from mapgeos.cpp:83: /usr/include/geos/io.h:61:2: warning: #warning *** FIXME: to be removed, temporarly set to allow a quick successful build mapgeos.cpp: In function `geos::geom::Geometry* msGEOSShape2Geometry_point(pointObj*)': mapgeos.cpp:110: error: `GEOSException' has not been declared etc. Because I already compile it well, it cause (imho) some new libs version. It is easier to try new version, so... Is somewhere ebuild for mapserver 4.10.0 ? I was searching for some time and I found nothing. Is there anyone could help me? Thanks Pavel Dobes From joseramonlopez at GMAIL.COM Thu Nov 23 03:50:34 2006 From: joseramonlopez at GMAIL.COM (=?ISO-8859-1?Q?Jos=E9_Ram=F3n_L=F3pez?=) Date: Thu, 23 Nov 2006 12:50:34 +0100 Subject: Blank Image OracleSpatial In-Reply-To: Message-ID: if I execute that, it does not give back anything , and the following message; SQL> SELECT rownum, SHAPE FROM RED_FERROCARRIL WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, L,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(- 206.756757,-170,206.756757 ) ),'querytype=window') = 'TRUE; ninguna fila seleccionada no selected row in english or something similar I supposed that it was for that reason, but either like correcting it; what can i do? 2006/11/23, umn-ms at hydrotec.de : > > > Hi > > * Does the logged SQL-Statement produce any output if you > execute it in SQL+? > * Did you specify an SRID in Spatial-Metadata? Than you have to specify it > in the mapfile to. > > Benedikt > > UMN MapServer Users List schrieb am > 23.11.2006 09:08:12: > > > Hi People! > > > > I have installed MS4W for Windows, with maplab, chamaleon, php 4.4.2 ... > > I am with problems when I make a request on layer lodged in a oracle > data base, because always shows a blank image. > > Im using Oracle 9i and Spatial. The dlls are in dlls their corresponding > directories. If I make a request on a layer lodged in a data file, this is > is correctly. > > > > Im using oraclespatial method , not by OCI. > > > > In error.log file it appears: > > > > [error] [client 172.21.128.99] msOracleSpatialLayerOpen called with: > SHAPE FROM RED_FERROCARRIL USING VERSION 9i\r > > [error] [client 172.21.128.99] msOracleSpatialLayerOpen. Shared > connection not available. Creating one.\r > > [error] [client 172.21.128.99] msConnPoolRegister(ferrocarriles, > sde/sde at SDE,01912370)\r > > [error] [client 172.21.128.99] msOracleSpatialLayerFreeItemInfo was > called.\r > > [error] [client 172.21.128.99] msOracleSpatialLayerWhichShapes was > called.\r > > [[error] [client 172.21.128.99] msOracleSpatialLayerWhichShapes. Using > this Sql to retrieve the data: SELECT rownum, SHAPE FROM RED_FERROCARRIL > WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY (2003, NULL, NULL, > MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-206.756757 > ,-170,206.756757,170) ),'querytype=window') = 'TRUE'\r > > [error] [client 172.21.128.99] msOracleSpatialLayerFreeItemInfo was > called.\r > > [error] [client 172.21.128.99] msOracleSpatialLayerClose was called. > Layer connection: sde/sde at SDE\r > > [error] [client 172.21.128.99] msOracleSpatialLayerClose. Cleaning > layerinfo handlers.\r > > [error] [client 172.21.128.99] msOracleSpatialLayerClose. Cleaning > Oracle handlers.\r > > [error] [client 172.21.128.99] msConnPoolRelease(ferrocarriles, > sde/sde at SDE,01912370)\r > > [error] [client 172.21.128.99] msConnPoolClose(sde/sde at SDE,01912370)\r > > [error] [client 172.21.128.99] msDrawMap(): Layer 2 (ferrocarriles), > 0.218s\r > > [error] [client 172.21.128.99] msOracleSpatialLayerClose was called. > Layer connection: sde/sde at SDE\r > > > > Thxs > > -- > > Jos? Ram?n L?pez > -- Jos? Ram?n L?pez Tfno: 627 88 88 24 -------------- next part -------------- An HTML attachment was scrubbed... URL: From umn-ms at HYDROTEC.DE Thu Nov 23 04:24:37 2006 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Thu, 23 Nov 2006 13:24:37 +0100 Subject: Antwort: Re: [UMN_MAPSERVER-USERS] Blank Image OracleSpatial In-Reply-To: <7efce0ed0611230350q50ba8a29r2dea795739c105cb@mail.gmail.com> Message-ID: What about the SRID? Is it set in Oracle-Metada? You may query it in SQL+ with select table_name,srid from user_sdo_geom_metadata where table_name='RED_FERROCARRIL' (or select "OWNER", table_name, srid from user_sdo_geom_metadata where table_name='RED_FERROCARRIL') UMN MapServer Users List schrieb am 23.11.2006 12:50:34: > if I execute that, it does not give back anything , and the following message; > > SQL> SELECT rownum, SHAPE FROM RED_FERROCARRIL WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, > L,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), MDSYS.SDO_ORDINATE_ARRAY(-206.756757,-170,206.756757 > ) ),'querytype=window') = 'TRUE; > > ninguna fila seleccionada > no selected row in english or something similar > > I supposed that it was for that reason, but either like correcting it; > > what can i do? > 2006/11/23, umn-ms at hydrotec.de : > > Hi > > * Does the logged SQL-Statement produce any output if you > execute it in SQL+? > * Did you specify an SRID in Spatial-Metadata? Than you have to specify it > in the mapfile to. > > Benedikt > > UMN MapServer Users List schrieb am 23.11.2006 09:08:12: > > > > Hi People! > > > > I have installed MS4W for Windows, with maplab, chamaleon, php 4.4.2 ... > > I am with problems when I make a request on layer lodged in a oracle data base, because always shows a blank image. > > Im using Oracle 9i and Spatial. The dlls are in dlls their corresponding directories. If I make a request on a layer lodged in a data file, this is is correctly. > > > > Im using oraclespatial method , not by OCI. > > > > In error.log file it appears: > > > > [error] [client 172.21.128.99] msOracleSpatialLayerOpen called with: SHAPE FROM RED_FERROCARRIL USING VERSION 9i\r > > [error] [client 172.21.128.99] msOracleSpatialLayerOpen. Shared connection not available. Creating one.\r > > [error] [client 172.21.128.99] msConnPoolRegister(ferrocarriles,sde/sde at SDE,01912370)\r > > [error] [client 172.21.128.99] msOracleSpatialLayerFreeItemInfo was called.\r > > [error] [client 172.21.128.99] msOracleSpatialLayerWhichShapes was called.\r > > [[error] [client 172.21.128.99] msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT rownum, SHAPE FROM RED_FERROCARRIL WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY (2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-206.756757,-170,206.756757,170) ),'querytype=window') = 'TRUE'\r > > [error] [client 172.21.128.99] msOracleSpatialLayerFreeItemInfo was called.\r > > [error] [client 172.21.128.99] msOracleSpatialLayerClose was called. Layer connection: sde/sde at SDE\r > > [error] [client 172.21.128.99] msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r > > [error] [client 172.21.128.99] msOracleSpatialLayerClose. Cleaning Oracle handlers.\r > > [error] [client 172.21.128.99] msConnPoolRelease(ferrocarriles, sde/sde at SDE,01912370)\r > > [error] [client 172.21.128.99] msConnPoolClose(sde/sde at SDE,01912370)\r > > [error] [client 172.21.128.99] msDrawMap(): Layer 2 (ferrocarriles), 0.218s\r > > [error] [client 172.21.128.99] msOracleSpatialLayerClose was called. Layer connection: sde/sde at SDE\r > > > > Thxs > > -- > > Jos? Ram?n L?pez > > > > -- > Jos? Ram?n L?pez > Tfno: 627 88 88 24 -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Thu Nov 23 02:58:33 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 23 Nov 2006 08:58:33 -0200 Subject: Blank Image OracleSpatial In-Reply-To: <7efce0ed0611230008y623f25e6s21c33bab79a86467@mail.gmail.com> Message-ID: Hi, How did you imported the data to OracleSpatial? From shape to databse? Did you already tryed to execute the query that Mapserver used in SQLPlus? Are you use some projection in your mapfile? Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Jos? Ram?n L?pez wrote: > Hi People! > > I have installed MS4W for Windows, with maplab, chamaleon, php 4.4.2 ... > I am with problems when I make a request on layer lodged in a oracle > data base, because always shows a blank image. > Im using Oracle 9i and Spatial. The dlls are in dlls their > corresponding directories. If I make a request on a layer lodged in a > data file, this is is correctly. > > Im using oraclespatial method , not by OCI. > > In error.log file it appears: > > [error] [client 172.21.128.99 ] > msOracleSpatialLayerOpen called with: SHAPE FROM RED_FERROCARRIL USING > VERSION 9i\r > [error] [client 172.21.128.99 ] > msOracleSpatialLayerOpen. Shared connection not available. Creating one.\r > [error] [client 172.21.128.99 ] > msConnPoolRegister(ferrocarriles,sde/sde at SDE,01912370)\r > [error] [client 172.21.128.99 ] > msOracleSpatialLayerFreeItemInfo was called.\r > [error] [client 172.21.128.99 ] > msOracleSpatialLayerWhichShapes was called.\r > [[error] [client 172.21.128.99 ] > msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: > SELECT rownum, SHAPE FROM RED_FERROCARRIL WHERE SDO_FILTER( SHAPE, > MDSYS.SDO_GEOMETRY (2003, NULL, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-206.756757,-170,206.756757,170) > ),'querytype=window') = 'TRUE'\r > [error] [client 172.21.128.99 ] > msOracleSpatialLayerFreeItemInfo was called.\r > [error] [client 172.21.128.99 ] > msOracleSpatialLayerClose was called. Layer connection: sde/sde at SDE\r > [error] [client 172.21.128.99 ] > msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r > [error] [client 172.21.128.99 ] > msOracleSpatialLayerClose. Cleaning Oracle handlers.\r > [error] [client 172.21.128.99 ] > msConnPoolRelease(ferrocarriles, sde/sde at SDE,01912370)\r > [error] [client 172.21.128.99 ] > msConnPoolClose(sde/sde at SDE,01912370)\r > [error] [client 172.21.128.99 ] msDrawMap(): > Layer 2 (ferrocarriles), 0.218s\r > [error] [client 172.21.128.99 ] > msOracleSpatialLayerClose was called. Layer connection: sde/sde at SDE\r > > Thxs > -- > Jos? Ram?n L?pez > From joseramonlopez at GMAIL.COM Thu Nov 23 04:53:09 2006 From: joseramonlopez at GMAIL.COM (=?ISO-8859-1?Q?Jos=E9_Ram=F3n_L=F3pez?=) Date: Thu, 23 Nov 2006 13:53:09 +0100 Subject: Blank Image OracleSpatial In-Reply-To: Message-ID: I think that I don`t have any value assigned to srid SQL> select table_name,srid from user_sdo_geom_metadata where table_name='RED_FERROCARRIL'; TABLE_NAME SRID -------------------------------- ---------- RED_FERROCARRIL 2006/11/23, umn-ms at hydrotec.de : > > > What about the SRID? Is it set in Oracle-Metada? > You may query it in SQL+ with > > select table_name,srid from user_sdo_geom_metadata where > table_name='RED_FERROCARRIL' > (or > select "OWNER", table_name, srid from user_sdo_geom_metadata where > table_name='RED_FERROCARRIL') > > UMN MapServer Users List schrieb am > 23.11.2006 12:50:34: > > > if I execute that, it does not give back anything , and the following > message; > > > > SQL> SELECT rownum, SHAPE FROM RED_FERROCARRIL WHERE SDO_FILTER( SHAPE, > MDSYS.SDO_GEOMETRY(2003, > > L,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), MDSYS.SDO_ORDINATE_ARRAY(- > 206.756757,-170,206.756757 > > ) ),'querytype=window') = 'TRUE; > > > > ninguna fila seleccionada > > no selected row in english or something similar > > > > I supposed that it was for that reason, but either like correcting it; > > > > what can i do? > > > 2006/11/23, umn-ms at hydrotec.de : > > > > Hi > > > > * Does the logged SQL-Statement produce any output if you > > execute it in SQL+? > > * Did you specify an SRID in Spatial-Metadata? Than you have to specify > it > > in the mapfile to. > > > > Benedikt > > > > UMN MapServer Users List schrieb am > 23.11.2006 09:08:12: > > > > > > > Hi People! > > > > > > I have installed MS4W for Windows, with maplab, chamaleon, php 4.4.2... > > > I am with problems when I make a request on layer lodged in a oracle > data base, because always shows a blank image. > > > Im using Oracle 9i and Spatial. The dlls are in dlls their > corresponding directories. If I make a request on a layer lodged in a data > file, this is is correctly. > > > > > > Im using oraclespatial method , not by OCI. > > > > > > In error.log file it appears: > > > > > > [error] [client 172.21.128.99] msOracleSpatialLayerOpen called with: > SHAPE FROM RED_FERROCARRIL USING VERSION 9i\r > > > [error] [client 172.21.128.99] msOracleSpatialLayerOpen. Shared > connection not available. Creating one.\r > > > [error] [client 172.21.128.99] msConnPoolRegister(ferrocarriles, > sde/sde at SDE,01912370)\r > > > [error] [client 172.21.128.99] msOracleSpatialLayerFreeItemInfo was > called.\r > > > [error] [client 172.21.128.99] msOracleSpatialLayerWhichShapes was > called.\r > > > [[error] [client 172.21.128.99] msOracleSpatialLayerWhichShapes. Using > this Sql to retrieve the data: SELECT rownum, SHAPE FROM RED_FERROCARRIL > WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY (2003, NULL, NULL, > MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-206.756757 > ,-170,206.756757,170) ),'querytype=window') = 'TRUE'\r > > > [error] [client 172.21.128.99] msOracleSpatialLayerFreeItemInfo was > called.\r > > > [error] [client 172.21.128.99] msOracleSpatialLayerClose was called. > Layer connection: sde/sde at SDE\r > > > [error] [client 172.21.128.99] msOracleSpatialLayerClose. Cleaning > layerinfo handlers.\r > > > [error] [client 172.21.128.99] msOracleSpatialLayerClose. Cleaning > Oracle handlers.\r > > > [error] [client 172.21.128.99] msConnPoolRelease(ferrocarriles, > sde/sde at SDE,01912370)\r > > > [error] [client 172.21.128.99] msConnPoolClose(sde/sde at SDE,01912370)\r > > > [error] [client 172.21.128.99] msDrawMap(): Layer 2 (ferrocarriles), > 0.218s\r > > > [error] [client 172.21.128.99] msOracleSpatialLayerClose was called. > Layer connection: sde/sde at SDE\r > > > > > > Thxs > > > -- > > > Jos? Ram?n L?pez > > > > > > > > -- > > Jos? Ram?n L?pez > > Tfno: 627 88 88 24 > -- Jos? Ram?n L?pez Tfno: 627 88 88 24 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gisaalter at GMAIL.COM Thu Nov 23 05:21:54 2006 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Thu, 23 Nov 2006 14:21:54 +0100 Subject: Online WMS-viewer for use with MapServer Message-ID: Hi, I'd like to ask if it's possible to query my MapServer WMS with an online viewer ? I can't seem to find one, welll, one that supports SRS 31300 (Belgium).... Thought http://www.wmsviewer.org would work but it seems to be offline. Any help is very welcome ! Thanks ! Regards, Steven -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Thu Nov 23 04:01:19 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 23 Nov 2006 10:01:19 -0200 Subject: Blank Image OracleSpatial In-Reply-To: <7efce0ed0611230008y623f25e6s21c33bab79a86467@mail.gmail.com> Message-ID: Hi, How did you imported the data to OracleSpatial? From shape to databse? Did you already tryed to execute the query that Mapserver used in SQLPlus? Are you use some projection in your mapfile? Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Jos? Ram?n L?pez wrote: > Hi People! > > I have installed MS4W for Windows, with maplab, chamaleon, php 4.4.2 ... > I am with problems when I make a request on layer lodged in a oracle > data base, because always shows a blank image. > Im using Oracle 9i and Spatial. The dlls are in dlls their > corresponding directories. If I make a request on a layer lodged in a > data file, this is is correctly. > > Im using oraclespatial method , not by OCI. > > In error.log file it appears: > > [error] [client 172.21.128.99 ] > msOracleSpatialLayerOpen called with: SHAPE FROM RED_FERROCARRIL USING > VERSION 9i\r > [error] [client 172.21.128.99 ] > msOracleSpatialLayerOpen. Shared connection not available. Creating one.\r > [error] [client 172.21.128.99 ] > msConnPoolRegister(ferrocarriles,sde/sde at SDE,01912370)\r > [error] [client 172.21.128.99 ] > msOracleSpatialLayerFreeItemInfo was called.\r > [error] [client 172.21.128.99 ] > msOracleSpatialLayerWhichShapes was called.\r > [[error] [client 172.21.128.99 ] > msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: > SELECT rownum, SHAPE FROM RED_FERROCARRIL WHERE SDO_FILTER( SHAPE, > MDSYS.SDO_GEOMETRY (2003, NULL, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-206.756757,-170,206.756757,170) > ),'querytype=window') = 'TRUE'\r > [error] [client 172.21.128.99 ] > msOracleSpatialLayerFreeItemInfo was called.\r > [error] [client 172.21.128.99 ] > msOracleSpatialLayerClose was called. Layer connection: sde/sde at SDE\r > [error] [client 172.21.128.99 ] > msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r > [error] [client 172.21.128.99 ] > msOracleSpatialLayerClose. Cleaning Oracle handlers.\r > [error] [client 172.21.128.99 ] > msConnPoolRelease(ferrocarriles, sde/sde at SDE,01912370)\r > [error] [client 172.21.128.99 ] > msConnPoolClose(sde/sde at SDE,01912370)\r > [error] [client 172.21.128.99 ] msDrawMap(): > Layer 2 (ferrocarriles), 0.218s\r > [error] [client 172.21.128.99 ] > msOracleSpatialLayerClose was called. Layer connection: sde/sde at SDE\r > > Thxs > -- > Jos? Ram?n L?pez > From webmaster at GEOMATICIEN.COM Thu Nov 23 03:15:46 2006 From: webmaster at GEOMATICIEN.COM (Daniel FAIVRE) Date: Thu, 23 Nov 2006 12:15:46 +0100 Subject: Online WMS-viewer for use with MapServer In-Reply-To: <8d2ea9d70611230521o29519d72qf8a377a5a87f14ce@mail.gmail.com> Message-ID: Le Jeudi 23 Novembre 2006 14:21, Steven De Vriendt a ?crit?: > Hi, > > I'd like to ask if it's possible to query my MapServer WMS with an online > viewer ? > I can't seem to find one, welll, one that supports SRS 31300 (Belgium).... > Thought http://www.wmsviewer.org would work but it seems to be offline. > Any help is very welcome ! > Thanks ! > > Regards, > Steven Theses are not ready-to-use for your purposes, but you can setup an online viewer easily with: http://giserver.esrin.esa.int/quickwms/nav001.htm or http://www.openlayers.org/dev/examples/wms.html (free software openalyers) In both cases, you just need to copy/paste the code, and to add your own layers to setup a dedicated online viewer for your data quickly. Yours -- Daniel FAIVRE Expert en g?omatique webmaster at geomaticien.com From joseramonlopez at GMAIL.COM Thu Nov 23 06:33:45 2006 From: joseramonlopez at GMAIL.COM (=?ISO-8859-1?Q?Jos=E9_Ram=F3n_L=F3pez?=) Date: Thu, 23 Nov 2006 15:33:45 +0100 Subject: Fwd: Re: [UMN_MAPSERVER-USERS] Blank Image OracleSpatial In-Reply-To: <7efce0ed0611230453l2356ad8ahaf4357ca9f881c05@mail.gmail.com> Message-ID: do you know how i could solve it? Thxs ---------- Forwarded message ---------- From: Jos? Ram?n L?pez Date: 23-nov-2006 13:53 Subject: Re: Re: [UMN_MAPSERVER-USERS] Blank Image OracleSpatial To: "umn-ms at hydrotec.de" Cc: mapserver-users at lists.umn.edu I think that I don`t have any value assigned to srid SQL> select table_name,srid from user_sdo_geom_metadata where table_name='RED_FERROCARRIL'; TABLE_NAME SRID -------------------------------- ---------- RED_FERROCARRIL 2006/11/23, umn-ms at hydrotec.de : > > > What about the SRID? Is it set in Oracle-Metada? > You may query it in SQL+ with > > select table_name,srid from user_sdo_geom_metadata where > table_name='RED_FERROCARRIL' > (or > select "OWNER", table_name, srid from user_sdo_geom_metadata where > table_name='RED_FERROCARRIL') > > UMN MapServer Users List schrieb am > 23.11.2006 12:50:34: > > > if I execute that, it does not give back anything , and the following > message; > > > > SQL> SELECT rownum, SHAPE FROM RED_FERROCARRIL WHERE SDO_FILTER( SHAPE, > MDSYS.SDO_GEOMETRY(2003, > > L,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), MDSYS.SDO_ORDINATE_ARRAY(- > 206.756757,-170,206.756757 > > ) ),'querytype=window') = 'TRUE; > > > > ninguna fila seleccionada > > no selected row in english or something similar > > > > I supposed that it was for that reason, but either like correcting it; > > > > what can i do? > > > 2006/11/23, umn-ms at hydrotec.de < umn-ms at hydrotec.de>: > > > > Hi > > > > * Does the logged SQL-Statement produce any output if you > > execute it in SQL+? > > * Did you specify an SRID in Spatial-Metadata? Than you have to specify > it > > in the mapfile to. > > > > Benedikt > > > > UMN MapServer Users List schrieb am > 23.11.2006 09:08:12: > > > > > > > Hi People! > > > > > > I have installed MS4W for Windows, with maplab, chamaleon, php 4.4.2... > > > I am with problems when I make a request on layer lodged in a oracle > data base, because always shows a blank image. > > > Im using Oracle 9i and Spatial. The dlls are in dlls their > corresponding directories. If I make a request on a layer lodged in a data > file, this is is correctly. > > > > > > Im using oraclespatial method , not by OCI. > > > > > > In error.log file it appears: > > > > > > [error] [client 172.21.128.99] msOracleSpatialLayerOpen called with: > SHAPE FROM RED_FERROCARRIL USING VERSION 9i\r > > > [error] [client 172.21.128.99] msOracleSpatialLayerOpen. Shared > connection not available. Creating one.\r > > > [error] [client 172.21.128.99] msConnPoolRegister(ferrocarriles, > sde/sde at SDE,01912370)\r > > > [error] [client 172.21.128.99] msOracleSpatialLayerFreeItemInfo was > called.\r > > > [error] [client 172.21.128.99] msOracleSpatialLayerWhichShapes was > called.\r > > > [[error] [client 172.21.128.99] msOracleSpatialLayerWhichShapes. Using > this Sql to retrieve the data: SELECT rownum, SHAPE FROM RED_FERROCARRIL > WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY (2003, NULL, NULL, > MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-206.756757 > ,-170,206.756757,170) ),'querytype=window') = 'TRUE'\r > > > [error] [client 172.21.128.99] msOracleSpatialLayerFreeItemInfo was > called.\r > > > [error] [client 172.21.128.99] msOracleSpatialLayerClose was called. > Layer connection: sde/sde at SDE\r > > > [error] [client 172.21.128.99] msOracleSpatialLayerClose. Cleaning > layerinfo handlers.\r > > > [error] [client 172.21.128.99] msOracleSpatialLayerClose. Cleaning > Oracle handlers.\r > > > [error] [client 172.21.128.99] msConnPoolRelease(ferrocarriles, > sde/sde at SDE,01912370)\r > > > [error] [client 172.21.128.99] msConnPoolClose(sde/sde at SDE,01912370)\r > > > [error] [client 172.21.128.99] msDrawMap(): Layer 2 (ferrocarriles), > 0.218s\r > > > [error] [client 172.21.128.99] msOracleSpatialLayerClose was called. > Layer connection: sde/sde at SDE\r > > > > > > Thxs > > > -- > > > Jos? Ram?n L?pez > > > > > > > > -- > > Jos? Ram?n L?pez > > Tfno: 627 88 88 24 > -- Jos? Ram?n L?pez Tfno: 627 88 88 24 -- Jos? Ram?n L?pez Tfno: 627 88 88 24 -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephan.holl at INTEVATION.DE Thu Nov 23 06:46:11 2006 From: stephan.holl at INTEVATION.DE (Stephan Holl) Date: Thu, 23 Nov 2006 15:46:11 +0100 Subject: php_mapscript problem, which is not present in cgi-mode Message-ID: Dear Mapserver-gurus, I am working with php_mapscript 4.8.4 and have some strange investigations. When I use an ovf-table construct and use the shp2img-tool, the correct image gets rendered, but not using php_mapscript. my testcase: dl("php_mapscript_48.so"); $mapFile = "/var/www/web1/html/gis/config/testmap_2classes.map"; $map = ms_newMapObj($mapFile); $image=$map->draw(); $image_url=$image->saveWebImage(); the error: Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'statistic'. in /var/www/web1/html/gis/config/test.php on line 6 Warning: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection `join_together.ovf'. SQL statement failed, or returned no layer result: select n2n_wert, n2n_idflm, n2n_wertdat, frmt_wert, format_wert from bld join 'join.ovf'.values on AGS = n2n_idflaeche where AGS like '%' in /var/www/web1/html/gis/config/test.php on line 6 Fatal error: Call to a member function on a non-object in /var/www/web1/html/gis/config/test.php on line 8 ogrinfo reports no errors when accessing the join_together.ovf itself. Thanks for any pointers on this. Best Stephan -- Stephan Holl : www.intevation.de/~stephan | GISpatcher: www.gispatcher.de Intevation GmbH: www.intevation.de | GAV e.V.: www.grass-verein.de Georgstr.4 : 49074 Osnabr?ck | From miklos.geyer at ELKB.DE Thu Nov 23 07:01:02 2006 From: miklos.geyer at ELKB.DE (Miklos Geyer) Date: Thu, 23 Nov 2006 16:01:02 +0100 Subject: new Layer with PHP/mapscript Message-ID: Hi everybody, has anyone an example for PHP/mapscript to create a completly new Layer with an postgis-Connection? Mikl?s From fsimon at UNIVALI.BR Thu Nov 23 07:53:26 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 23 Nov 2006 13:53:26 -0200 Subject: Fwd: Re: [UMN_MAPSERVER-USERS] Blank Image OracleSpatial In-Reply-To: <7efce0ed0611230633k48f5507fg6781ccf1d302a141@mail.gmail.com> Message-ID: Hi, Did you have define any projection in your mapfile? It is not a SRID problem bacause when occur SRID problem the Oracle error related appear. How did you call the Mapserver to generate this error? How it's your map extent? Try to define the extent of your map with the extent (mbr) of your layer, you can check it using this SQL: select SDO_AGGR_MBR(shape) from RED_FERROCARRIL; Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Jos? Ram?n L?pez wrote: > > do you know how i could solve it? > > Thxs > ---------- Forwarded message ---------- > From: *Jos? Ram?n L?pez* < joseramonlopez at gmail.com > > > Date: 23-nov-2006 13:53 > Subject: Re: Re: [UMN_MAPSERVER-USERS] Blank Image OracleSpatial > To: "umn-ms at hydrotec.de " < > umn-ms at hydrotec.de > > Cc: mapserver-users at lists.umn.edu > > I think that I don`t have any value assigned to srid > > SQL> select table_name,srid from user_sdo_geom_metadata where > table_name='RED_FERROCARRIL'; > > TABLE_NAME SRID > -------------------------------- ---------- > RED_FERROCARRIL > > > > 2006/11/23, umn-ms at hydrotec.de > >: > > > What about the SRID? Is it set in Oracle-Metada? > You may query it in SQL+ with > > select table_name,srid from user_sdo_geom_metadata where > table_name='RED_FERROCARRIL' > (or > select "OWNER", table_name, srid from user_sdo_geom_metadata > where table_name='RED_FERROCARRIL') > > UMN MapServer Users List > schrieb am 23.11.2006 > 12:50:34: > > > > if I execute that, it does not give back anything , and the > following message; > > > > SQL> SELECT rownum, SHAPE FROM RED_FERROCARRIL WHERE SDO_FILTER( > SHAPE, MDSYS.SDO_GEOMETRY(2003, > > L,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), > MDSYS.SDO_ORDINATE_ARRAY(-206.756757,-170,206.756757 > > ) ),'querytype=window') = 'TRUE; > > > > ninguna fila seleccionada > > no selected row in english or something similar > > > > I supposed that it was for that reason, but either like > correcting it; > > > > what can i do? > > > 2006/11/23, umn-ms at hydrotec.de < > umn-ms at hydrotec.de >: > > > > Hi > > > > * Does the logged SQL-Statement produce any output if you > > execute it in SQL+? > > * Did you specify an SRID in Spatial-Metadata? Than you have to > specify it > > in the mapfile to. > > > > Benedikt > > > > UMN MapServer Users List > schrieb am 23.11.2006 > 09:08:12: > > > > > > > Hi People! > > > > > > I have installed MS4W for Windows, with maplab, chamaleon, php > 4.4.2 ... > > > I am with problems when I make a request on layer lodged in a > oracle data base, because always shows a blank image. > > > Im using Oracle 9i and Spatial. The dlls are in dlls their > corresponding directories. If I make a request on a layer lodged > in a data file, this is is correctly. > > > > > > Im using oraclespatial method , not by OCI. > > > > > > In error.log file it appears: > > > > > > [error] [client 172.21.128.99 ] > msOracleSpatialLayerOpen called with: SHAPE FROM RED_FERROCARRIL > USING VERSION 9i\r > > > [error] [client 172.21.128.99 ] > msOracleSpatialLayerOpen. Shared connection not available. > Creating one.\r > > > [error] [client 172.21.128.99 ] > msConnPoolRegister(ferrocarriles,sde/sde at SDE,01912370)\r > > > [error] [client 172.21.128.99 ] > msOracleSpatialLayerFreeItemInfo was called.\r > > > [error] [client 172.21.128.99 ] > msOracleSpatialLayerWhichShapes was called.\r > > > [[error] [client 172.21.128.99 ] > msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the > data: SELECT rownum, SHAPE FROM RED_FERROCARRIL WHERE SDO_FILTER( > SHAPE, MDSYS.SDO_GEOMETRY (2003, NULL, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-206.756757,-170,206.756757,170) > ),'querytype=window') = 'TRUE'\r > > > [error] [client 172.21.128.99 ] > msOracleSpatialLayerFreeItemInfo was called.\r > > > [error] [client 172.21.128.99 ] > msOracleSpatialLayerClose was called. Layer connection: sde/sde at SDE\r > > > [error] [client 172.21.128.99 ] > msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r > > > [error] [client 172.21.128.99 ] > msOracleSpatialLayerClose. Cleaning Oracle handlers.\r > > > [error] [client 172.21.128.99 ] > msConnPoolRelease(ferrocarriles, sde/sde at SDE,01912370)\r > > > [error] [client 172.21.128.99 ] > msConnPoolClose(sde/sde at SDE,01912370)\r > > > [error] [client 172.21.128.99 ] > msDrawMap(): Layer 2 (ferrocarriles), 0.218s\r > > > [error] [client 172.21.128.99 ] > msOracleSpatialLayerClose was called. Layer connection: sde/sde at SDE\r > > > > > > Thxs > > > -- > > > Jos? Ram?n L?pez > > > > > > > > -- > > Jos? Ram?n L?pez > > Tfno: 627 88 88 24 > > > > > -- > Jos? Ram?n L?pez > Tfno: 627 88 88 24 > > > -- > Jos? Ram?n L?pez > Tfno: 627 88 88 24 From paul.hussein at HAPNIN.NET Thu Nov 23 08:22:12 2006 From: paul.hussein at HAPNIN.NET (Paul Hussein) Date: Thu, 23 Nov 2006 17:22:12 +0100 Subject: newbie: trouble building mapserver In-Reply-To: <200611230919.47026.yjacolin@free.fr> Message-ID: Yes you are right. My issue was I had geos 2.2.1 rpm installed and as the link path has /usr/lib first ( when I think it should have -l/path/to/geos ) it tried to compile against 2.2.3 and link against 2.2.1. So both an issue with me and the Makefile. Can I suggest this is changed in the link line. Thanks Paul. On 11/23/06, Yves Jacolin wrote: > Hello, > I succeed to build GEOS 2.2.3 with mapserver 4.10, am I wrong ? This seems > worked. > > Regards, > > Y. > Le Mercredi 22 Novembre 2006 22:39, Armin Burger a ?crit: > > Hi Paul > > > > I made the experience that Mapserver 4.10 just compiles with GEOS > > version 3, currently as release candidate 2. Mapserver 4.8 compiled fine > > with Geos 2.2. > > > > armin > > > > Paul Hussein wrote: > > > Hi, > > > > > > I am trying for the first time to build mapserver from source on > > > CentOS 4.4 (RHEL 4 clone), and have hit a compilation error. > > > > > > The error is as below : > > > > > > > > > ./libmap.a(mapgeos.o)(.text+0x180b): In function `msGEOSArea': > > > /root/build/mapserver-4.10.0/mapgeos.c:1114: undefined reference to > > > `GEOSArea' > > > ./libmap.a(mapgeos.o)(.text+0x1873): In function `msGEOSLength': > > > /root/build/mapserver-4.10.0/mapgeos.c:1140: undefined reference to > > > `GEOSLength' > > > collect2: ld returned 1 exit status > > > make: *** [shp2img] Error 1 > > > > > > > > > Can someone tell me if I need a specific version of the GEOS package, > > > or any other package. I have tried as much aspossible to follow the > > > linux build example given. > > > > > > I include below a script I am using that gives all the versions and how > > > I build. > > > > > > Thanks > > > > > > > > > Paul. > > > > > > ================================================== > > > #!/bin/csh -fex > > > setenv MAPSERVER_DIR /home/mapserver > > > > > > touch build > > > \rm -rf build > > > mkdir build > > > cd build > > > wget http://cvs.gis.umn.edu/dist/mapserver-4.10.0.tar.gz > > > wget ftp://ftp.remotesensing.org/proj/proj-4.5.0.tar.gz > > > wget http://geos.refractions.net/geos-2.2.3.tar.bz2 > > > wget wget http://postgis.refractions.net/download/postgis-1.1.5.tar.gz > > > wget http://curl.haxx.se/download/curl-7.16.0.tar.gz > > > wget http://www.gdal.org/dl/gdal-1.3.2.tar.gz > > > > > > tar xzf gdal-1.3.2.tar.gz > > > cd gdal-1.3.2 > > > ./configure --prefix=$MAPSERVER_DIR > > > make > > > make install > > > cd .. > > > > > > tar xzf curl-7.16.0.tar.gz > > > cd curl-7.16.0 > > > ./configure --prefix=$MAPSERVER_DIR > > > make > > > make install > > > cd .. > > > > > > tar xzf proj-4.5.0.tar.gz > > > cd proj-4.5.0 > > > ./configure --prefix=$MAPSERVER_DIR > > > make > > > make install > > > cd .. > > > > > > tar xjf geos-2.2.3.tar.bz2 > > > cd geos-2.2.3 > > > ./configure --prefix=$MAPSERVER_DIR > > > make > > > make install > > > cd .. > > > > > > tar xzf postgis-1.1.5.tar.gz > > > cd postgis-1.1.5 > > > rehash > > > ./configure --prefix=$MAPSERVER_DIR > > > make > > > make install > > > cd .. > > > > > > tar xzf mapserver-4.10.0.tar.gz > > > cd mapserver-4.10.0 > > > ./configure \ > > > --with-wfsclient \ > > > --with-wmsclient \ > > > --with-tiff \ > > > --with-threads \ > > > --with-wcs \ > > > --enable-debug \ > > > --with-sos \ > > > --prefix=$MAPSERVER_DIR \ > > > --with-proj=$MAPSERVER_DIR \ > > > --with-geos=$MAPSERVER_DIR/bin/geos-config \ > > > --with-php=/usr/include/php \ > > > --with-postgis=/usr/bin/pg_config \ > > > --with-gdal=$MAPSERVER_DIR/bin/gdal-config > > > make > > > make install > > > cd .. > > > > > > > > > #\rm -rf build > > -- > Yves Jacolin > --- > http://yjacolin.gloobe.org > From arndw at WTAL.DE Thu Nov 23 10:39:22 2006 From: arndw at WTAL.DE (Arnd Wippermann) Date: Thu, 23 Nov 2006 19:39:22 +0100 Subject: Online WMS-viewer for use with MapServer Message-ID: Hello Steven, Get a try with this: http://gis.ibbeck.de/ginfo/ibbOLClient/OpenLayersClient.html?MAPNR=11401&LAY ERS=11500&ZOOM=0&CENTER=184170.6522,151746.2416 If your service is reachable over the internet, you can add your service with the GetCapabilities request (Button GetWMS). If your service is only locally reachable, you must edit the fields in the options to add your service. Mit freundlichen Gr?ssen Arnd Wippermann From mitchelljj98 at GMAIL.COM Thu Nov 23 11:19:26 2006 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Thu, 23 Nov 2006 14:19:26 -0500 Subject: I need the ability to be able to display ECW and JPEG2000 format files within MapServer via a Community Mapbuilder client which sends WMS requests for the images to MapServer Message-ID: Hi, I need the ability to be able to display ECW and JPEG2000 format files within MapServer via a Community Mapbuilder client which sends WMS requests for the images to MapServer. My current architecture is PostGreSQL database connected to PostGIS which connects to GeoServer on Apache Tomcat and Community Mapbuilder client which sends WMS requests for the images to GeoServer. I would like to be able to send similar requests to MapServer for compressed Raster data but instead of going to PostGIS I would like to connect to the ECW (which are compressed Raster) files and JPEG2000 files. Since I have never installed or used MapServer before I would appreciate it if someone could give my a high level overview of what I would need to do as far as: 1.) What should I download for a windows server if all I want to do is display ECW and JPEG2000 files via WMS? 2.) What configuration is necessary on the server in order to display via WMS for ECW and JPEG2000 files and what location should I place these files? 3.) What is the format for both a GetMap and GetCapabilities request on the client side which in my case is Community Mapbuilder. Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Nov 23 13:45:46 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 23 Nov 2006 16:45:46 -0500 Subject: I need the ability to be able to display ECW and JPEG2000 format files within MapServer via a Community Mapbuilder client which sends WMS requests for the images to MapServer In-Reply-To: Message-ID: John Mitchell wrote: > Hi, > > I need the ability to be able to display ECW and JPEG2000 format files > within MapServer via a Community Mapbuilder client which sends WMS > requests for the images to MapServer. My current architecture is > PostGreSQL database connected to PostGIS which connects to GeoServer on > Apache Tomcat and Community Mapbuilder client which sends WMS requests > for the images to GeoServer. I would like to be able to send similar > requests to MapServer for compressed Raster data but instead of going to > PostGIS I would like to connect to the ECW (which are compressed Raster) > files and JPEG2000 files. > Since I have never installed or used MapServer before I would appreciate > it if someone could give my a high level overview of what I would need > to do as far as: > > 1.) What should I download for a windows server if all I want to do is > display ECW and JPEG2000 files via WMS? > 2.) What configuration is necessary on the server in order to display > via WMS for ECW and JPEG2000 files and what location should I place > these files? > 3.) What is the format for both a GetMap and GetCapabilities request on > the client side which in my case is Community Mapbuilder. John, You don't specify what platform you want to deploy on. The trick with JPEG2000 and ECW support is getting a binary build for your platform that has these formats included. I have a service at http://maps.gdal.org serving a big south american landsat scene from ecw. I'll provide details on my configuration. You may find it helpful to take a similar approach. I am using the "standalone" FWTools binaries for linux (http://fwtools.maptools.org). In my Apache cgi-bin directory I have the script mapserv_landsat which looks like this: ----------------------- #!/bin/sh export MS_MAPFILE=/home/warmerda/maps/landsat.map . /opt/FWTools-1.0.0a2/fwtools_env.sh exec /opt/FWTools-1.0.0a2/bin/mapserv "$*" ----------------------- This basically invokes the FWTools mapserver executable with a preconfigured mapfile. The FWTools binaries include essentially all required libraries. The mapfile looks like the following and includes sufficient metadat to serve via WMS and WCS. I think there may be a bit of extra cruft in there too. MAP NAME 'LANDSAT' EXTENT -180 -90 180 90 UNITS DD SIZE 600 300 IMAGECOLOR 0 255 0 IMAGETYPE JPEG DEBUG ON PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME jpeg2000 DRIVER "GDAL/JP2ECW" MIMETYPE "image/jpeg2000" FORMATOPTION "TARGET=95" IMAGEMODE RGB END # # Start of web interface definition # WEB HEADER web/landsatcgi/demo_header.html TEMPLATE web/landsatcgi/demo.html FOOTER web/landsatcgi/demo_footer.html METADATA "ows_title" "Landsat Server" "wcs_label" "Landsat WCS Server" "wcs_keywordlist" "WCS,Landsat" "wcs_onlineresource" "http://maps.gdal.org/cgi-bin/mapserv_landsat" END IMAGEURL "/tmp/" IMAGEPATH "/u/maps/tmp/" END LAYER NAME "South America" STATUS ON DEBUG ON TYPE RASTER DATA '/home/warmerda/torrents/data/South America Landsat742.ecw' METADATA wcs_label "Landsat" ows_title "Landsat" ows_srs "EPSG:4269 EPSG:4326" ows_extent "-82.3512420 -56.8510672 -33.9029540 13.0499433" wcs_resolution "0.00025602 0.00025602" wcs_formats "JPEG PNG24" wcs_nativeformat "ECW" END DUMP TRUE PROJECTION "init=epsg:4326" END END END Note that to use an ecw file (or jpeg2000 file) you just specify the name in the DATA line for the layer. The getcapabilities url for my service is: http://maps.gdal.org/cgi-bin/mapserv_landsat?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities I hope this helps. Good luck, -- ---------------------------------------+-------------------------------------- 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 | President OSGeo, http://osgeo.org From pramsey at REFRACTIONS.NET Thu Nov 23 11:48:56 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Thu, 23 Nov 2006 11:48:56 -0800 Subject: Raster tile indexing in PostGIS In-Reply-To: Message-ID: I generally agree with Frank, but I have had one anecdotal report from a user that they found PostGIS faster than Shape files on plain old read operations once the concurrency cranked up. Now, I can think of no technical reason why that might be so, and I have never independently verified the report, but it is something that keeps me from blanket saying "Shape files are faster for simple read workloads" anymore. (Maybe someone here can do a test?) P Thy, Kristian wrote: > From: Frank Warmerdam >> Generally speaking the shapefiles, and the spatial indexes will get >> cached in RAM. > > Also for separate invocations of cgi MapServer? Pardon if this is a > stupid question, but the arcane workings of computer hardware is not > my area of expertise :-) > > Kristian > > > This email and any attached files are confidential and copyright > protected. If you are not the addressee, any dissemination of this > communication is strictly prohibited. Unless otherwise expressly > agreed in writing, nothing stated in this communication shall be > legally binding. From joseramonlopez at GMAIL.COM Thu Nov 23 23:34:48 2006 From: joseramonlopez at GMAIL.COM (=?ISO-8859-1?Q?Jos=E9_Ram=F3n_L=F3pez?=) Date: Fri, 24 Nov 2006 08:34:48 +0100 Subject: Blank Image OracleSpatial In-Reply-To: <7efce0ed0611230826x23305441ya43f9acfdb188ea5@mail.gmail.com> Message-ID: ---------- Forwarded message ---------- From: Jos? Ram?n L?pez Date: 23-nov-2006 17:26 Subject: Re: [UMN_MAPSERVER-USERS] Fwd: Re: [UMN_MAPSERVER-USERS] Blank Image OracleSpatial To: Fernando Simon This is the definition of the layer: LAYER NAME ferrocarriles TYPE line CONNECTIONTYPE oraclespatial CONNECTION "sde/sde at SDE " DATA "SHAPE FROM RED_FERROCARRIL USING VERSION 9i" DUMP TRUE DEBUG ON TRANSPARENCY 0 PROJECTION "init=epsg:4326" END CLASS NAME 'Red Ferrocarriles' COLOR 0 0 255 END METADATA "wms_title" "Red Ferrocarriles" "wms_abstract" "Red Ferrocarriles" "wms_keywordlist" "WMS Red Ferrocarriles" "wms_srs" "EPSG:4326" END And this is the call to Mapserver http://localhost:81/cgi-bin/mapserver?SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&Layers=ferrocarriles If i execute this in SQL+ SQL> select SDO_AGGR_MBR(shape) from RED_FERROCARRIL; SDO_AGGR_MBR(SHAPE)(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ -------------------------------------------------------------------------------- SDO_GEOMETRY(2003, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 3), SDO_ORDINATE_ARR AY(195210,089, 4075810,31, 533545,364, 4261747,98)) Thanks for all 2006/11/23, Fernando Simon : > > Hi, > Did you have define any projection in your mapfile? > It is not a SRID problem bacause when occur SRID problem the Oracle > error related appear. > How did you call the Mapserver to generate this error? How it's your > map extent? Try to define the extent of your map with the extent (mbr) > of your layer, you can check it using this SQL: > select SDO_AGGR_MBR(shape) from RED_FERROCARRIL; > Best regards. > > ------------------------------------------------------------------------ > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://www.univali.br/g10 - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > > Jos? Ram?n L?pez wrote: > > > > do you know how i could solve it? > > > > Thxs > > ---------- Forwarded message ---------- > > From: *Jos? Ram?n L?pez* < joseramonlopez at gmail.com > > > > > Date: 23-nov-2006 13:53 > > Subject: Re: Re: [UMN_MAPSERVER-USERS] Blank Image OracleSpatial > > To: "umn-ms at hydrotec.de " < > > umn-ms at hydrotec.de > > > Cc: mapserver-users at lists.umn.edu > > > > > I think that I don`t have any value assigned to srid > > > > SQL> select table_name,srid from user_sdo_geom_metadata where > > table_name='RED_FERROCARRIL'; > > > > TABLE_NAME SRID > > -------------------------------- ---------- > > RED_FERROCARRIL > > > > > > > > 2006/11/23, umn-ms at hydrotec.de > > >: > > > > > > What about the SRID? Is it set in Oracle-Metada? > > You may query it in SQL+ with > > > > select table_name,srid from user_sdo_geom_metadata where > > table_name='RED_FERROCARRIL' > > (or > > select "OWNER", table_name, srid from user_sdo_geom_metadata > > where table_name='RED_FERROCARRIL') > > > > UMN MapServer Users List < MAPSERVER-USERS at LISTS.UMN.EDU > > > schrieb am 23.11.2006 > > 12:50:34: > > > > > > > if I execute that, it does not give back anything , and the > > following message; > > > > > > SQL> SELECT rownum, SHAPE FROM RED_FERROCARRIL WHERE SDO_FILTER( > > SHAPE, MDSYS.SDO_GEOMETRY(2003, > > > L,NULL,MDSYS.SDO_ELEM_INFO_ARRAY (1,1003,3), > > MDSYS.SDO_ORDINATE_ARRAY(-206.756757,-170,206.756757 > > > ) ),'querytype=window') = 'TRUE; > > > > > > ninguna fila seleccionada > > > no selected row in english or something similar > > > > > > I supposed that it was for that reason, but either like > > correcting it; > > > > > > what can i do? > > > > > 2006/11/23, umn-ms at hydrotec.de < > > umn-ms at hydrotec.de >: > > > > > > Hi > > > > > > * Does the logged SQL-Statement produce any output if you > > > execute it in SQL+? > > > * Did you specify an SRID in Spatial-Metadata? Than you have to > > specify it > > > in the mapfile to. > > > > > > Benedikt > > > > > > UMN MapServer Users List > > schrieb am 23.11.2006 > > 09:08:12: > > > > > > > > > > Hi People! > > > > > > > > I have installed MS4W for Windows, with maplab, chamaleon, php > > 4.4.2 ... > > > > I am with problems when I make a request on layer lodged in a > > oracle data base, because always shows a blank image. > > > > Im using Oracle 9i and Spatial. The dlls are in dlls their > > corresponding directories. If I make a request on a layer lodged > > in a data file, this is is correctly. > > > > > > > > Im using oraclespatial method , not by OCI. > > > > > > > > In error.log file it appears: > > > > > > > > [error] [client 172.21.128.99 ] > > msOracleSpatialLayerOpen called with: SHAPE FROM RED_FERROCARRIL > > USING VERSION 9i\r > > > > [error] [client 172.21.128.99 ] > > msOracleSpatialLayerOpen. Shared connection not available. > > Creating one.\r > > > > [error] [client 172.21.128.99 ] > > msConnPoolRegister(ferrocarriles,sde/sde at SDE,01912370)\r > > > > [error] [client 172.21.128.99 ] > > msOracleSpatialLayerFreeItemInfo was called.\r > > > > [error] [client 172.21.128.99 ] > > msOracleSpatialLayerWhichShapes was called.\r > > > > [[error] [client 172.21.128.99 ] > > msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the > > data: SELECT rownum, SHAPE FROM RED_FERROCARRIL WHERE SDO_FILTER( > > SHAPE, MDSYS.SDO_GEOMETRY (2003, NULL, > > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(- > 206.756757,-170,206.756757,170) > > ),'querytype=window') = 'TRUE'\r > > > > [error] [client 172.21.128.99 ] > > msOracleSpatialLayerFreeItemInfo was called.\r > > > > [error] [client 172.21.128.99 ] > > msOracleSpatialLayerClose was called. Layer connection: sde/sde at SDE > \r > > > > [error] [client 172.21.128.99 ] > > msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r > > > > [error] [client 172.21.128.99 ] > > msOracleSpatialLayerClose. Cleaning Oracle handlers.\r > > > > [error] [client 172.21.128.99 ] > > msConnPoolRelease(ferrocarriles, sde/sde at SDE,01912370)\r > > > > [error] [client 172.21.128.99 ] > > msConnPoolClose(sde/sde at SDE,01912370)\r > > > > [error] [client 172.21.128.99 < http://172.21.128.99>] > > msDrawMap(): Layer 2 (ferrocarriles), 0.218s\r > > > > [error] [client 172.21.128.99 ] > > msOracleSpatialLayerClose was called. Layer connection: sde/sde at SDE > \r > > > > > > > > Thxs > > > > -- > > > > Jos? Ram?n L?pez > > > > > > > > > > > > -- > > > Jos? Ram?n L?pez > > > Tfno: 627 88 88 24 > > > > > > > > > > -- > > Jos? Ram?n L?pez > > Tfno: 627 88 88 24 > > > > > > -- > > Jos? Ram?n L?pez > > Tfno: 627 88 88 24 > -- Jos? Ram?n L?pez Tfno: 627 88 88 24 -- Jos? Ram?n L?pez Tfno: 627 88 88 24 -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Fri Nov 24 02:10:30 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Fri, 24 Nov 2006 08:10:30 -0200 Subject: Blank Image OracleSpatial In-Reply-To: <7efce0ed0611232334u700ae34tb8c352dbaa631c10@mail.gmail.com> Message-ID: Hi Jos?, Can you try to don't use projection for your Mapfile and layer? The global projection of the Mapfile is the same of the you layer? Try to define the map extent as 195210,089 4075810,31 533545,364 4261747,98 and apply this request: http://localhost:81/cgi-bin/mapserver?map=&mode=map&layers=ferrocarriles Best regards. Fernando Simon Jos? Ram?n L?pez wrote: > > > ---------- Forwarded message ---------- > From: *Jos? Ram?n L?pez* > > Date: 23-nov-2006 17:26 > Subject: Re: [UMN_MAPSERVER-USERS] Fwd: Re: [UMN_MAPSERVER-USERS] > Blank Image OracleSpatial > To: Fernando Simon > > > > > This is the definition of the layer: > > LAYER > NAME ferrocarriles > TYPE line > CONNECTIONTYPE oraclespatial > CONNECTION "sde/sde at SDE " > DATA "SHAPE FROM RED_FERROCARRIL USING VERSION 9i" > DUMP TRUE > DEBUG ON > TRANSPARENCY 0 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME 'Red Ferrocarriles' > COLOR 0 0 255 > END > METADATA > "wms_title" "Red Ferrocarriles" > "wms_abstract" "Red Ferrocarriles" > "wms_keywordlist" "WMS Red Ferrocarriles" > "wms_srs" "EPSG:4326" > END > > And this is the call to Mapserver > http://localhost:81/cgi-bin/mapserver?SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&Layers=ferrocarriles > > > If i execute this in SQL+ > > SQL> select SDO_AGGR_MBR(shape) from RED_FERROCARRIL; > > SDO_AGGR_MBR(SHAPE)(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), > SDO_ELEM_INFO, SDO_ > -------------------------------------------------------------------------------- > SDO_GEOMETRY(2003, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 3), > SDO_ORDINATE_ARR > AY(195210,089, 4075810,31, 533545,364, 4261747,98)) > > Thanks for all > > > 2006/11/23, Fernando Simon < fsimon at univali.br > >: > > Hi, > Did you have define any projection in your mapfile? > It is not a SRID problem bacause when occur SRID problem the > Oracle > error related appear. > How did you call the Mapserver to generate this error? How > it's your > map extent? Try to define the extent of your map with the extent (mbr) > of your layer, you can check it using this SQL: > select SDO_AGGR_MBR(shape) from RED_FERROCARRIL; > Best regards. > > ------------------------------------------------------------------------ > > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://www.univali.br/g10 - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > > > Jos? Ram?n L?pez wrote: > > > > do you know how i could solve it? > > > > Thxs > > ---------- Forwarded message ---------- > > From: *Jos? Ram?n L?pez* < joseramonlopez at gmail.com > > > >> > > Date: 23-nov-2006 13:53 > > Subject: Re: Re: [UMN_MAPSERVER-USERS] Blank Image OracleSpatial > > To: "umn-ms at hydrotec.de umn-ms at hydrotec.de >" < > > umn-ms at hydrotec.de > >> > > Cc: mapserver-users at lists.umn.edu > mapserver-users at lists.umn.edu > > > > > I think that I don`t have any value assigned to srid > > > > SQL> select table_name,srid from user_sdo_geom_metadata where > > table_name='RED_FERROCARRIL'; > > > > TABLE_NAME SRID > > -------------------------------- ---------- > > RED_FERROCARRIL > > > > > > > > 2006/11/23, umn-ms at hydrotec.de > > > > < umn-ms at hydrotec.de > >>: > > > > > > What about the SRID? Is it set in Oracle-Metada? > > You may query it in SQL+ with > > > > select table_name,srid from user_sdo_geom_metadata where > > table_name='RED_FERROCARRIL' > > (or > > select "OWNER", table_name, srid from user_sdo_geom_metadata > > where table_name='RED_FERROCARRIL') > > > > UMN MapServer Users List < MAPSERVER-USERS at LISTS.UMN.EDU > > > >> schrieb am 23.11.2006 > > 12:50:34: > > > > > > > if I execute that, it does not give back anything , and the > > following message; > > > > > > SQL> SELECT rownum, SHAPE FROM RED_FERROCARRIL WHERE > SDO_FILTER( > > SHAPE, MDSYS.SDO_GEOMETRY(2003, > > > L,NULL,MDSYS.SDO_ELEM_INFO_ARRAY (1,1003,3), > > MDSYS.SDO_ORDINATE_ARRAY(-206.756757,-170,206.756757 > > > ) ),'querytype=window') = 'TRUE; > > > > > > ninguna fila seleccionada > > > no selected row in english or something similar > > > > > > I supposed that it was for that reason, but either like > > correcting it; > > > > > > what can i do? > > > > > 2006/11/23, umn-ms at hydrotec.de > > < > > umn-ms at hydrotec.de > >>: > > > > > > Hi > > > > > > * Does the logged SQL-Statement produce any output if you > > > execute it in SQL+? > > > * Did you specify an SRID in Spatial-Metadata? Than you > have to > > specify it > > > in the mapfile to. > > > > > > Benedikt > > > > > > UMN MapServer Users List < MAPSERVER-USERS at LISTS.UMN.EDU > > > >> schrieb am 23.11.2006 > > 09:08:12: > > > > > > > > > > Hi People! > > > > > > > > I have installed MS4W for Windows, with maplab, > chamaleon, php > > 4.4.2 ... > > > > I am with problems when I make a request on layer lodged in a > > oracle data base, because always shows a blank image. > > > > Im using Oracle 9i and Spatial. The dlls are in dlls their > > corresponding directories. If I make a request on a layer lodged > > in a data file, this is is correctly. > > > > > > > > Im using oraclespatial method , not by OCI. > > > > > > > > In error.log file it appears: > > > > > > > > [error] [client 172.21.128.99 > ] > > msOracleSpatialLayerOpen called with: SHAPE FROM RED_FERROCARRIL > > USING VERSION 9i\r > > > > [error] [client 172.21.128.99 < > http://172.21.128.99>] > > msOracleSpatialLayerOpen. Shared connection not available. > > Creating one.\r > > > > [error] [client 172.21.128.99 < > http://172.21.128.99>] > > msConnPoolRegister(ferrocarriles,sde/sde at SDE,01912370)\r > > > > [error] [client 172.21.128.99 < > http://172.21.128.99>] > > msOracleSpatialLayerFreeItemInfo was called.\r > > > > [error] [client 172.21.128.99 > ] > > msOracleSpatialLayerWhichShapes was called.\r > > > > [[error] [client 172.21.128.99 > ] > > msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the > > data: SELECT rownum, SHAPE FROM RED_FERROCARRIL WHERE > SDO_FILTER( > > SHAPE, MDSYS.SDO_GEOMETRY (2003, NULL, > > > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-206.756757,-170,206.756757,170) > > ),'querytype=window') = 'TRUE'\r > > > > [error] [client 172.21.128.99 < > http://172.21.128.99>] > > msOracleSpatialLayerFreeItemInfo was called.\r > > > > [error] [client 172.21.128.99 > ] > > msOracleSpatialLayerClose was called. Layer connection: > sde/sde at SDE\r > > > > [error] [client 172.21.128.99 > ] > > msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r > > > > [error] [client 172.21.128.99 > ] > > msOracleSpatialLayerClose. Cleaning Oracle handlers.\r > > > > [error] [client 172.21.128.99 > ] > > msConnPoolRelease(ferrocarriles, sde/sde at SDE,01912370)\r > > > > [error] [client 172.21.128.99 > ] > > msConnPoolClose(sde/sde at SDE,01912370)\r > > > > [error] [client 172.21.128.99 < > http://172.21.128.99>] > > msDrawMap(): Layer 2 (ferrocarriles), 0.218s\r > > > > [error] [client 172.21.128.99 > >] > > msOracleSpatialLayerClose was called. Layer connection: > sde/sde at SDE\r > > > > > > > > Thxs > > > > -- > > > > Jos? Ram?n L?pez > > > > > > > > > > > > -- > > > Jos? Ram?n L?pez > > > Tfno: 627 88 88 24 > > > > > > > > > > -- > > Jos? Ram?n L?pez > > Tfno: 627 88 88 24 > > > > > > -- > > Jos? Ram?n L?pez > > Tfno: 627 88 88 24 > > > > > -- > > Jos? Ram?n L?pez > Tfno: 627 88 88 24 > > > -- > Jos? Ram?n L?pez > Tfno: 627 88 88 24 From g.berry at VIRGIN.NET Fri Nov 24 02:34:39 2006 From: g.berry at VIRGIN.NET (Graham Berry) Date: Fri, 24 Nov 2006 10:34:39 -0000 Subject: PHP/MapScript Multi-Language Labels Message-ID: Hi, I have been using MapServer and MapScript for a few years and now have a requirement to display Bulgarian, Greek and Turkish language labels for points on my maps. Under the standard installations of MapServer (4.8.1) the "ENCODING UTF-8" command in the map file does not seem to have any effect. Does anyone have any further information/experience on this feature? Thanks, Graham Berry -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitchelljj98 at GMAIL.COM Fri Nov 24 03:46:33 2006 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Fri, 24 Nov 2006 06:46:33 -0500 Subject: I need the ability to be able to display ECW and JPEG2000 format files within MapServer via a Community Mapbuilder client which sends WMS requests for the images to MapServer In-Reply-To: <4566168A.7050303@pobox.com> Message-ID: Hi Frank, Thanks for the information. I had a couple of questions: You said below: " I am using the "standalone" FWTools binaries for linux (http://fwtools.maptools.org). In my Apache cgi-bin directory I have the script mapserv_landsat which looks like this: ----------------------- #!/bin/sh export MS_MAPFILE=/home/warmerda/maps/landsat.map . /opt/FWTools-1.0.0a2/fwtools_env.sh exec /opt/FWTools-1.0.0a2/bin/mapserv "$*" " How would the above be revised on a windows system? The exec statement I would replace the /opt with /program files since FWTools is within the "program files" folder on windows. What about the . /opt/FWTools-1.0.0a2/fwtools_env.sh statement? I don't see anything called fwtools_env.sh within the FWTools folder. What is #!/bin/sh is this a linux statement? Thanks, John J. Mitchell On 11/23/06, Frank Warmerdam wrote: > > John Mitchell wrote: > > Hi, > > > > I need the ability to be able to display ECW and JPEG2000 format files > > within MapServer via a Community Mapbuilder client which sends WMS > > requests for the images to MapServer. My current architecture is > > PostGreSQL database connected to PostGIS which connects to GeoServer on > > Apache Tomcat and Community Mapbuilder client which sends WMS requests > > for the images to GeoServer. I would like to be able to send similar > > requests to MapServer for compressed Raster data but instead of going to > > PostGIS I would like to connect to the ECW (which are compressed Raster) > > files and JPEG2000 files. > > Since I have never installed or used MapServer before I would appreciate > > it if someone could give my a high level overview of what I would need > > to do as far as: > > > > 1.) What should I download for a windows server if all I want to do is > > display ECW and JPEG2000 files via WMS? > > 2.) What configuration is necessary on the server in order to display > > via WMS for ECW and JPEG2000 files and what location should I place > > these files? > > 3.) What is the format for both a GetMap and GetCapabilities request on > > the client side which in my case is Community Mapbuilder. > > John, > > You don't specify what platform you want to deploy on. The trick with > JPEG2000 and ECW support is getting a binary build for your platform that > has these formats included. > > I have a service at http://maps.gdal.org serving a big south american > landsat scene from ecw. I'll provide details on my configuration. You > may find it helpful to take a similar approach. > > I am using the "standalone" FWTools binaries for linux > (http://fwtools.maptools.org). In my Apache cgi-bin directory I have > the script mapserv_landsat which looks like this: > > ----------------------- > #!/bin/sh > > export MS_MAPFILE=/home/warmerda/maps/landsat.map > . /opt/FWTools-1.0.0a2/fwtools_env.sh > exec /opt/FWTools-1.0.0a2/bin/mapserv "$*" > ----------------------- > > This basically invokes the FWTools mapserver executable with a > preconfigured mapfile. The FWTools binaries include essentially all > required libraries. The mapfile looks like the following and includes > sufficient metadat to serve via WMS and WCS. I think there may be a > bit of extra cruft in there too. > > MAP > > NAME 'LANDSAT' > > EXTENT -180 -90 180 90 > UNITS DD > SIZE 600 300 > IMAGECOLOR 0 255 0 > > IMAGETYPE JPEG > DEBUG ON > > PROJECTION > "init=epsg:4326" > END > > OUTPUTFORMAT > NAME jpeg2000 > DRIVER "GDAL/JP2ECW" > MIMETYPE "image/jpeg2000" > FORMATOPTION "TARGET=95" > IMAGEMODE RGB > END > # > # Start of web interface definition > # > > > WEB > HEADER web/landsatcgi/demo_header.html > TEMPLATE web/landsatcgi/demo.html > FOOTER web/landsatcgi/demo_footer.html > METADATA > "ows_title" "Landsat Server" > "wcs_label" "Landsat WCS Server" > "wcs_keywordlist" "WCS,Landsat" > "wcs_onlineresource" "http://maps.gdal.org/cgi-bin/mapserv_landsat" > END > IMAGEURL "/tmp/" > IMAGEPATH "/u/maps/tmp/" > END > > LAYER > NAME "South America" > STATUS ON > DEBUG ON > TYPE RASTER > DATA '/home/warmerda/torrents/data/South America Landsat742.ecw' > METADATA > wcs_label "Landsat" > ows_title "Landsat" > ows_srs "EPSG:4269 EPSG:4326" > ows_extent "-82.3512420 -56.8510672 -33.9029540 13.0499433" > wcs_resolution "0.00025602 0.00025602" > wcs_formats "JPEG PNG24" > wcs_nativeformat "ECW" > END > DUMP TRUE > PROJECTION > "init=epsg:4326" > END > END > END > > Note that to use an ecw file (or jpeg2000 file) you just specify the > name in the DATA line for the layer. > > The getcapabilities url for my service is: > > > http://maps.gdal.org/cgi-bin/mapserv_landsat?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > I hope this helps. > > Good luck, > -- > > ---------------------------------------+-------------------------------------- > 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 | President OSGeo, http://osgeo.org > > -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Fri Nov 24 07:54:52 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 24 Nov 2006 10:54:52 -0500 Subject: I need the ability to be able to display ECW and JPEG2000 format files within MapServer via a Community Mapbuilder client which sends WMS requests for the images to MapServer In-Reply-To: Message-ID: John Mitchell wrote: > Hi Frank, > > Thanks for the information. I had a couple of questions: > > You said below: > " > I am using the "standalone" FWTools binaries for linux > ( http://fwtools.maptools.org ). In my > Apache cgi-bin directory I have > the script mapserv_landsat which looks like this: > > ----------------------- > #!/bin/sh > > export MS_MAPFILE=/home/warmerda/maps > /landsat.map > . /opt/FWTools-1.0.0a2/fwtools_env.sh > exec /opt/FWTools-1.0.0a2/bin/mapserv "$*" > " > > How would the above be revised on a windows system? The exec statement > I would replace the /opt with /program files since FWTools is within the > "program files" folder on windows. What about the > . /opt/FWTools-1.0.0a2/fwtools_env.sh statement? I don't see anything > called fwtools_env.sh within the FWTools folder. What is #!/bin/sh is > this a linux statement? John, Actually I ran into this issue the other day as well - how to use the FWTools mapserver cgi on windows. If you just copy everything from FWTools-1.0.9\bin into your cgi-bin directory things will mostly work. But because some environment variables (normally set by bin\setfwenv.bat) won't be set, things like datum shifting, some EPSG lookups and a few other subtle issues won't work. You can presumably introduce SetEnv calls in your apache configuration for all these environment variables. But altogether this is not a very satisfactory situation. What I really would like to be able to do is have the cgi run a .bat file which sets calls setfwenv.bat and then invokes the executable. I can't imagine copying all that "junk" into an externally invokable cgi-bin directory is all that safe. 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 | President OSGeo, http://osgeo.org From mitchelljj98 at GMAIL.COM Fri Nov 24 08:36:04 2006 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Fri, 24 Nov 2006 11:36:04 -0500 Subject: I need the ability to be able to display ECW and JPEG2000 format files within MapServer via a Community Mapbuilder client which sends WMS requests for the images to MapServer In-Reply-To: <456715CC.2070601@pobox.com> Message-ID: Hi Frank, So I need to copy everything from FWTools/bin to Apache2.2/cgi-bin and instead of calling your "mapserv_landsat" script instead call mapserv.exewithin getCapabilitites and getMap WMS requests but how do I reference the mapfile within these requests? Thanks, John J. Mitchell On 11/24/06, Frank Warmerdam wrote: > > John Mitchell wrote: > > Hi Frank, > > > > Thanks for the information. I had a couple of questions: > > > > You said below: > > "to > > I am using the "standalone" FWTools binaries for linux > > ( http://fwtools.maptools.org ). In my > > Apache cgi-bin directory I have > > the script mapserv_landsat which looks like this: > > > > ----------------------- > > #!/bin/sh > > > > export MS_MAPFILE=/home/warmerda/maps > > /landsat.map > > . /opt/FWTools-1.0.0a2/fwtools_env.sh > > exec /opt/FWTools-1.0.0a2/bin/mapserv "$*" > > " > > > > How would the above be revised on a windows system? The exec statement > > I would replace the /opt with /program files since FWTools is within the > > "program files" folder on windows. What about the > > . /opt/FWTools-1.0.0a2/fwtools_env.sh statement? I don't see anything > > called fwtools_env.sh within the FWTools folder. What is #!/bin/sh is > > this a linux statement? > > > John, > > Actually I ran into this issue the other day as well - how to use > the FWTools mapserver cgi on windows. If you just copy everything from > FWTools-1.0.9\bin into your cgi-bin directory things will mostly work. > But because some environment variables (normally set by bin\setfwenv.bat) > won't be set, things like datum shifting, some EPSG lookups and a few > other subtle issues won't work. You can presumably introduce SetEnv > calls in your apache configuration for all these environment variables. > > But altogether this is not a very satisfactory situation. What I really > would like to be able to do is have the cgi run a .bat file which sets > calls setfwenv.bat and then invokes the executable. > > I can't imagine copying all that "junk" into an externally invokable > cgi-bin directory is all that safe. > > 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 | President OSGeo, http://osgeo.org > > -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Fri Nov 24 09:46:59 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 24 Nov 2006 12:46:59 -0500 Subject: I need the ability to be able to display ECW and JPEG2000 format files within MapServer via a Community Mapbuilder client which sends WMS requests for the images to MapServer In-Reply-To: Message-ID: John Mitchell wrote: > > Hi Frank, > > So I need to copy everything from FWTools/bin to Apache2.2/cgi-bin and > instead of calling your "mapserv_landsat" script instead call > mapserv.exe within getCapabilitites and getMap WMS requests but how do I > reference the mapfile within these requests? John, You would include MAP=C:\yourmap.map in the url. So a request might end up looking like: http://maps.gdal.org/cgi-bin/mapserv.exe?MAP=C:\yourmap.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities 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 | President OSGeo, http://osgeo.org From mitchelljj98 at GMAIL.COM Fri Nov 24 11:27:41 2006 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Fri, 24 Nov 2006 14:27:41 -0500 Subject: I need the ability to be able to display ECW and JPEG2000 format files within MapServer via a Community Mapbuilder client which sends WMS requests for the images to MapServer In-Reply-To: <45673013.1070502@pobox.com> Message-ID: Frank, when running the following in IE: http://localhost/cgi-bin/mapserv.exe?MAP=C:\yourmap.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities I get the following: A message saying "Internal Server Error"check the apache error log, you will probably find that it says "Premature end of script headers"John J. Mitchell On 11/24/06, Frank Warmerdam wrote: > > John Mitchell wrote: > > > > Hi Frank, > > > > So I need to copy everything from FWTools/bin to Apache2.2/cgi-bin and > > instead of calling your "mapserv_landsat" script instead call > > mapserv.exe within getCapabilitites and getMap WMS requests but how do I > > reference the mapfile within these requests? > > John, > > You would include MAP=C:\yourmap.map in the url. So a request might end > up > looking like: > > > http://maps.gdal.org/cgi-bin/mapserv.exe?MAP=C:\yourmap.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > 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 | President OSGeo, http://osgeo.org > > -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From yu.gotou at GTEC-NI.COM Fri Nov 24 19:30:57 2006 From: yu.gotou at GTEC-NI.COM (YuGo) Date: Sat, 25 Nov 2006 12:30:57 +0900 Subject: How to use MySQL Server with MyGIS? Message-ID: Hi everybody, I compiled Mapserver-4.10.0 with MyGIS. I excuted this sql on MySQL Sever -------- create table geomtbl (id int auto_increment primary key,geom geometry); insert into geomtbl (geom) values(geomfromtext('POINT(15 15)')); ------- I create this .map file -------- MAP IMAGETYPE png EXTENT 0 0 30 30 SIZE 800 600 SHAPEPATH "." UNITS meters LAYER name geomtest CONNECTIONTYPE mygis CONNECTION "localhost:root:password:test:bin:" DATA "geom from geomtbl geometry" TYPE POINT STATUS default CLASS name geomtest COLOR 255 255 0 END END END ------- and request url via cgi ,but results is --------- msDrawMap(): Image handling error. Failed to draw layer named 'geomtest'. msMYGISLayerGetShapeRandom(): Query error. GetShape called on MYGIS layer with invalid DB query results. SELECT feature.id, feature.vertices, geometry.WKB_GEOMETRY fro: Query error. mysql query failed ------- What's wrong this process? yu_go From rviancos at GMAIL.COM Sat Nov 25 18:22:10 2006 From: rviancos at GMAIL.COM (=?ISO-8859-1?Q?Ren=E9_F._Viancos_S.?=) Date: Sun, 26 Nov 2006 03:22:10 +0100 Subject: Style Symbol Problem Message-ID: Hi users, i have a big problem with symbols in my AVL webmapping system. the system always show the same symbol.... http://200.11.84.234/tmp/1164503361121091.gif I have a symbol file called symbols.sym, like in GMAP, and the following symbols defined (arrow angles) #1 SYMBOL NAME "1" TYPE PIXMAP IMAGE "../htdocs/images/0.gif" TRANSPARENT 3 END #2 SYMBOL NAME "2" TYPE PIXMAP IMAGE "../htdocs/images/15.gif" TRANSPARENT 3 END #3 SYMBOL NAME "3" TYPE PIXMAP IMAGE "../htdocs/images/30.gif" TRANSPARENT 3 END #4 SYMBOL NAME "4" TYPE PIXMAP IMAGE "../htdocs/images/45.gif" TRANSPARENT 3 END #5 SYMBOL NAME "5" TYPE PIXMAP IMAGE "../htdocs/images/60.gif" TRANSPARENT 3 END #6 SYMBOL NAME "6" TYPE PIXMAP IMAGE "../htdocs/images/75.gif" TRANSPARENT 3 END #7 SYMBOL NAME "7" TYPE PIXMAP IMAGE "../htdocs/images/90.gif" TRANSPARENT 3 END #8 SYMBOL NAME "8" TYPE PIXMAP IMAGE "../htdocs/images/105.gif" TRANSPARENT 3 END #9 SYMBOL NAME "9" TYPE PIXMAP IMAGE "../htdocs/images/120.gif" TRANSPARENT 3 END #10 SYMBOL NAME "10" TYPE PIXMAP IMAGE "../htdocs/images/135.gif" TRANSPARENT 3 END #11 SYMBOL NAME "11" TYPE PIXMAP IMAGE "../htdocs/images/150.gif" TRANSPARENT 3 END #12 SYMBOL NAME "12" TYPE PIXMAP IMAGE "../htdocs/images/165.gif" TRANSPARENT 3 END #13 SYMBOL NAME "13" TYPE PIXMAP IMAGE "../htdocs/images/180.gif" TRANSPARENT 3 END #14 SYMBOL NAME "14" TYPE PIXMAP IMAGE "../htdocs/images/195.gif" TRANSPARENT 3 END #15 SYMBOL NAME "15" TYPE PIXMAP IMAGE "../htdocs/images/210.gif" TRANSPARENT 3 END #16 SYMBOL NAME "16" TYPE PIXMAP IMAGE "../htdocs/images/225.gif" TRANSPARENT 3 END #17 SYMBOL NAME "17" TYPE PIXMAP IMAGE "../htdocs/images/240.gif" TRANSPARENT 3 END #18 SYMBOL NAME "18" TYPE PIXMAP IMAGE "../htdocs/images/255.gif" TRANSPARENT 3 END #19 SYMBOL NAME "19" TYPE PIXMAP IMAGE "../htdocs/images/270.gif" TRANSPARENT 3 END #20 SYMBOL NAME "20" TYPE PIXMAP IMAGE "../htdocs/images/285.gif" TRANSPARENT 3 END #21 SYMBOL NAME "21" TYPE PIXMAP IMAGE "../htdocs/images/300.gif" TRANSPARENT 3 END #22 SYMBOL NAME "22" TYPE PIXMAP IMAGE "../htdocs/images/315.gif" TRANSPARENT 3 END #23 SYMBOL NAME "23" TYPE PIXMAP IMAGE "../htdocs/images/330.gif" TRANSPARENT 3 END #24 SYMBOL NAME "24" TYPE PIXMAP IMAGE "../htdocs/images/345.gif" TRANSPARENT 3 END #25 SYMBOL NAME "25" TYPE PIXMAP IMAGE "../htdocs/images/360.gif" TRANSPARENT 3 END and i have dumped de mapObj in a map file, in order to check the different symbol id's for each style symbol , and the layer that has the symbols in this map file ( test.map) is shown as follows: LAYER CLASSITEM "id_pos" CONNECTION "user=postgres password=2wsdfsw234rfwersw2efr4 dbname=localiza_dev host=10.0.0.200" CONNECTIONTYPE POSTGIS DATA "the_geom from (SELECT client_avlsrv.id AS id_pos, adm_vehiculos.id_vehiculo AS id_vehiculo, client_avlsrv.id_avl AS id_avl, adm_empresa_cliente.id_cliente AS id_cliente, pos_utm AS the_geom, client_avlsrv.t AS fecha_hora, vel, ang, nombres, apellidos, marca, patente, tipo_vehiculo, substring(nombres from 0 for position(' ' in (nombres || ' '))) || ' ' || substring(apellidos from 0 for position(' ' in (apellidos || ' '))) as nombre_apellido FROM ((((client_avlsrv JOIN adm_conductores ON (client_avlsrv.id_conductor = adm_conductores.id_conductor)) JOIN adm_avls ON (adm_avls.id_avl = client_avlsrv.id_avl)) JOIN adm_empresa_cliente ON (adm_empresa_cliente.id_cliente = adm_conductores.id_cliente)) JOIN adm_vehiculos ON (adm_vehiculos.id_avl = adm_avls.id_avl)) WHERE client_avlsrv.id IN (12998,12997,12995,12993,12992) ORDER BY client_avlsrv.id DESC ) AS foo using srid=32719 using unique id_pos" LABELITEM "patente" METADATA END NAME "Movil localiza" SIZEUNITS PIXELS STATUS ON TEMPLATE "query.php" TOLERANCEUNITS PIXELS TYPE POINT UNITS METERS CLASS NAME "Movil Patente 0" LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT "sans" MAXSIZE 5 MINSIZE 5 SIZE 2 TYPE TRUETYPE BUFFER 2 COLOR 0 0 0 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 OUTLINECOLOR 255 255 255 PARTIALS TRUE POSITION UC END METADATA END STYLE ANGLE 360 BACKGROUNDCOLOR 255 0 0 COLOR 255 0 0 OUTLINECOLOR 0 0 255 SIZE 25 SYMBOL 19 END TEMPLATE "query.html" END CLASS NAME "Movil Patente 1" LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT "sans" MAXSIZE 5 MINSIZE 5 SIZE 2 TYPE TRUETYPE BUFFER 2 COLOR 0 0 0 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 OUTLINECOLOR 255 255 255 PARTIALS TRUE POSITION UC END METADATA END STYLE ANGLE 360 BACKGROUNDCOLOR 255 0 0 COLOR 255 0 0 OUTLINECOLOR 0 0 255 SIZE 25 SYMBOL 2 END TEMPLATE "query.html" END CLASS NAME "Movil Patente 2" LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT "sans" MAXSIZE 5 MINSIZE 5 SIZE 2 TYPE TRUETYPE BUFFER 2 COLOR 0 0 0 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 OUTLINECOLOR 255 255 255 PARTIALS TRUE POSITION UC END METADATA END STYLE ANGLE 360 BACKGROUNDCOLOR 255 0 0 COLOR 255 0 0 OUTLINECOLOR 0 0 255 SIZE 25 SYMBOL 2 END TEMPLATE "query.html" END CLASS NAME "Movil Patente 3" LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT "sans" MAXSIZE 5 MINSIZE 5 SIZE 2 TYPE TRUETYPE BUFFER 2 COLOR 0 0 0 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 OUTLINECOLOR 255 255 255 PARTIALS TRUE POSITION UC END METADATA END STYLE ANGLE 360 BACKGROUNDCOLOR 255 0 0 COLOR 255 0 0 OUTLINECOLOR 0 0 255 SIZE 25 SYMBOL 17 END TEMPLATE "query.html" END CLASS NAME "Movil Patente 4" LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT "sans" MAXSIZE 5 MINSIZE 5 SIZE 2 TYPE TRUETYPE BUFFER 2 COLOR 0 0 0 FORCE TRUE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 OUTLINECOLOR 255 255 255 PARTIALS TRUE POSITION UC END METADATA END STYLE ANGLE 360 BACKGROUNDCOLOR 255 0 0 COLOR 255 0 0 OUTLINECOLOR 0 0 255 SIZE 25 SYMBOL 23 END TEMPLATE "query.html" END END i don't know what's wrong.. Can anybody help me ?? Regards -- Ren? F. Vi?ncos S. Director Centro de Computaci?n e Inform?tica, CICULS Universidad de la Serena Tel (56-51) 204269 rviancos at userena.cl www.userena.cl -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcoladas at TELEFONICA.NET Sun Nov 26 03:03:38 2006 From: mcoladas at TELEFONICA.NET (Miguel Coladas) Date: Sun, 26 Nov 2006 12:03:38 +0100 Subject: fid in WFS Client (query templates) Message-ID: Hello List, I can not get the fid atribute with template query with MapServer in CGI. I have a layer with data from a WFS Server. Before, in GML file, fid was a id atribute: 10 36 and I get it with a template as: [miprefijo:id] [miprefijo:ine_prov] but now the GML is: 36 and i can not get it. is possible? My MapServer version is 4.8.3, and by the bug 1946 I can not update it. Best regards, Miguel From pf at MAPMEDIA.DE Sun Nov 26 07:48:01 2006 From: pf at MAPMEDIA.DE (Peter Freimuth) Date: Sun, 26 Nov 2006 16:48:01 +0100 Subject: Style Symbol Problem In-Reply-To: <842c1e660611251822r6a0a93e7u49878e3c0dd6ac1f@mail.gmail.com> Message-ID: Ren? F. Viancos S. schrieb: > Hi users, i have a big problem with symbols in my AVL webmapping > system. the system always show the same symbol.... > > http://200.11.84.234/tmp/1164503361121091.gif > > > > I have a symbol file called symbols.sym, like in GMAP, and the > following symbols defined (arrow angles) > > #1 > SYMBOL > NAME "1" > TYPE PIXMAP > IMAGE "../htdocs/images/0.gif" > TRANSPARENT 3 > END > > #2 > SYMBOL > NAME "2" > TYPE PIXMAP > IMAGE "../htdocs/images/15.gif" > TRANSPARENT 3 > END > > #3 > SYMBOL > NAME "3" > TYPE PIXMAP > IMAGE "../htdocs/images/30.gif" > TRANSPARENT 3 > END > > #4 > SYMBOL > NAME "4" > TYPE PIXMAP > IMAGE "../htdocs/images/45.gif" > TRANSPARENT 3 > END > > #5 > SYMBOL > NAME "5" > TYPE PIXMAP > IMAGE "../htdocs/images/60.gif" > TRANSPARENT 3 > END > > #6 > SYMBOL > NAME "6" > TYPE PIXMAP > IMAGE "../htdocs/images/75.gif" > TRANSPARENT 3 > END > > #7 > SYMBOL > NAME "7" > TYPE PIXMAP > IMAGE "../htdocs/images/90.gif" > TRANSPARENT 3 > END > > #8 > SYMBOL > NAME "8" > TYPE PIXMAP > IMAGE "../htdocs/images/105.gif" > TRANSPARENT 3 > END > > #9 > SYMBOL > NAME "9" > TYPE PIXMAP > IMAGE "../htdocs/images/120.gif" > TRANSPARENT 3 > END > > #10 > SYMBOL > NAME "10" > TYPE PIXMAP > IMAGE "../htdocs/images/135.gif" > TRANSPARENT 3 > END > > #11 > SYMBOL > NAME "11" > TYPE PIXMAP > IMAGE "../htdocs/images/150.gif" > TRANSPARENT 3 > END > > #12 > SYMBOL > NAME "12" > TYPE PIXMAP > IMAGE "../htdocs/images/165.gif" > TRANSPARENT 3 > END > > #13 > SYMBOL > NAME "13" > TYPE PIXMAP > IMAGE "../htdocs/images/180.gif" > TRANSPARENT 3 > END > > #14 > SYMBOL > NAME "14" > TYPE PIXMAP > IMAGE "../htdocs/images/195.gif" > TRANSPARENT 3 > END > > #15 > SYMBOL > NAME "15" > TYPE PIXMAP > IMAGE "../htdocs/images/210.gif" > TRANSPARENT 3 > END > > #16 > SYMBOL > NAME "16" > TYPE PIXMAP > IMAGE "../htdocs/images/225.gif" > TRANSPARENT 3 > END > > #17 > SYMBOL > NAME "17" > TYPE PIXMAP > IMAGE "../htdocs/images/240.gif" > TRANSPARENT 3 > END > > #18 > SYMBOL > NAME "18" > TYPE PIXMAP > IMAGE "../htdocs/images/255.gif" > TRANSPARENT 3 > END > > #19 > SYMBOL > NAME "19" > TYPE PIXMAP > IMAGE "../htdocs/images/270.gif" > TRANSPARENT 3 > END > > #20 > SYMBOL > NAME "20" > TYPE PIXMAP > IMAGE "../htdocs/images/285.gif" > TRANSPARENT 3 > END > > #21 > SYMBOL > NAME "21" > TYPE PIXMAP > IMAGE "../htdocs/images/300.gif" > TRANSPARENT 3 > END > > #22 > SYMBOL > NAME "22" > TYPE PIXMAP > IMAGE "../htdocs/images/315.gif" > TRANSPARENT 3 > END > > #23 > SYMBOL > NAME "23" > TYPE PIXMAP > IMAGE "../htdocs/images/330.gif" > TRANSPARENT 3 > END > > #24 > SYMBOL > NAME "24" > TYPE PIXMAP > IMAGE "../htdocs/images/345.gif" > TRANSPARENT 3 > END > > #25 > SYMBOL > NAME "25" > TYPE PIXMAP > IMAGE "../htdocs/images/360.gif" > TRANSPARENT 3 > END > > > and i have dumped de mapObj in a map file, in order to check the > different symbol id's for each style symbol , and the layer that has > the symbols in this map file ( test.map) is shown as follows: > > LAYER > CLASSITEM "id_pos" > CONNECTION "user=postgres password=2wsdfsw234rfwersw2efr4 > dbname=localiza_dev host= 10.0.0.200 " > CONNECTIONTYPE POSTGIS > DATA "the_geom from (SELECT client_avlsrv.id AS id_pos, > adm_vehiculos.id_vehiculo AS id_vehiculo, client_avlsrv.id_avl AS > id_avl, adm_empresa_cliente.id_cliente AS id_cliente, pos_utm AS > the_geom, client_avlsrv.t AS fecha_hora, vel, ang, nombres, apellidos, > marca, patente, tipo_vehiculo, substring(nombres from 0 for position(' > ' in (nombres || ' '))) || ' ' || substring(apellidos from 0 for > position(' ' in (apellidos || ' '))) as nombre_apellido FROM > ((((client_avlsrv JOIN adm_conductores ON (client_avlsrv.id_conductor > = adm_conductores.id_conductor)) JOIN adm_avls ON (adm_avls.id_avl = > client_avlsrv.id_avl)) JOIN adm_empresa_cliente ON > (adm_empresa_cliente.id_cliente = adm_conductores.id_cliente)) JOIN > adm_vehiculos ON (adm_vehiculos.id_avl = adm_avls.id_avl)) WHERE > client_avlsrv.id IN (12998,12997,12995,12993,12992) ORDER BY > client_avlsrv.id DESC ) AS foo using srid=32719 using unique id_pos" > LABELITEM "patente" > METADATA > END > NAME "Movil localiza" > SIZEUNITS PIXELS > STATUS ON > TEMPLATE "query.php" > TOLERANCEUNITS PIXELS > TYPE POINT > UNITS METERS > CLASS > NAME "Movil Patente 0" > LABEL > ANGLE 0.000000 > ANTIALIAS TRUE > FONT "sans" > MAXSIZE 5 > MINSIZE 5 > SIZE 2 > TYPE TRUETYPE > BUFFER 2 > COLOR 0 0 0 > FORCE TRUE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS TRUE > POSITION UC > END > METADATA > END > STYLE > ANGLE 360 > BACKGROUNDCOLOR 255 0 0 > COLOR 255 0 0 > OUTLINECOLOR 0 0 255 > SIZE 25 > SYMBOL 19 > END > TEMPLATE "query.html" > END > CLASS > NAME "Movil Patente 1" > LABEL > ANGLE 0.000000 > ANTIALIAS TRUE > FONT "sans" > MAXSIZE 5 > MINSIZE 5 > SIZE 2 > TYPE TRUETYPE > BUFFER 2 > COLOR 0 0 0 > FORCE TRUE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS TRUE > POSITION UC > END > METADATA > END > STYLE > ANGLE 360 > BACKGROUNDCOLOR 255 0 0 > COLOR 255 0 0 > OUTLINECOLOR 0 0 255 > SIZE 25 > SYMBOL 2 > END > TEMPLATE "query.html" > END > CLASS > NAME "Movil Patente 2" > LABEL > ANGLE 0.000000 > ANTIALIAS TRUE > FONT "sans" > MAXSIZE 5 > MINSIZE 5 > SIZE 2 > TYPE TRUETYPE > BUFFER 2 > COLOR 0 0 0 > FORCE TRUE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS TRUE > POSITION UC > END > METADATA > END > STYLE > ANGLE 360 > BACKGROUNDCOLOR 255 0 0 > COLOR 255 0 0 > OUTLINECOLOR 0 0 255 > SIZE 25 > SYMBOL 2 > END > TEMPLATE "query.html" > END > CLASS > NAME "Movil Patente 3" > LABEL > ANGLE 0.000000 > ANTIALIAS TRUE > FONT "sans" > MAXSIZE 5 > MINSIZE 5 > SIZE 2 > TYPE TRUETYPE > BUFFER 2 > COLOR 0 0 0 > FORCE TRUE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS TRUE > POSITION UC > END > METADATA > END > STYLE > ANGLE 360 > BACKGROUNDCOLOR 255 0 0 > COLOR 255 0 0 > OUTLINECOLOR 0 0 255 > SIZE 25 > SYMBOL 17 > END > TEMPLATE "query.html" > END > CLASS > NAME "Movil Patente 4" > LABEL > ANGLE 0.000000 > ANTIALIAS TRUE > FONT "sans" > MAXSIZE 5 > MINSIZE 5 > SIZE 2 > TYPE TRUETYPE > BUFFER 2 > COLOR 0 0 0 > FORCE TRUE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS TRUE > POSITION UC > END > METADATA > END > STYLE > ANGLE 360 > BACKGROUNDCOLOR 255 0 0 > COLOR 255 0 0 > OUTLINECOLOR 0 0 255 > SIZE 25 > SYMBOL 23 > END > TEMPLATE "query.html" > END > END > > i don't know what's wrong.. > > Can anybody help me ?? > > > Regards > > > > -- > Ren? F. Vi?ncos S. > Director > Centro de Computaci?n > e Inform?tica, CICULS > Universidad de la Serena > Tel (56-51) 204269 > rviancos at userena.cl > www.userena.cl Dear Ren?, if i don't miss something there is no CLASSITEM in the Layer and no EXPRESSION in the different CLASSE's. So Mapserver draws all items with the style of your first class. All others are not taken into account. Just define an expression in each CLASS to do the classification and it should work as expected. Kind regards, Peter -- Mit freundlichem Gru? Peter Freimuth _________________________________________________ MapMedia GmbH Kartographie und raumbezogene Informationssysteme Heilbronner Stra?e 10 D-10711 Berlin Charlottenburg fon: +49.(0)30.89 06 82 70 fax: +49.(0)30.89 06 82 73 mail: pf at mapmedia.de net: www.mapmedia.de pgp: on demand _________________________________________________ From woodbri at SWOODBRIDGE.COM Sun Nov 26 10:31:13 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 26 Nov 2006 13:31:13 -0500 Subject: Mapserver 4.10 configure bug? Message-ID: Hi all, I ran into an interesting configuration bug in mapserver: ./configure \ --with-httpd=/usr/sbin/apache \ --with-proj \ --with-gd \ --with-freetype \ --with-postgis \ --with-tiff \ --without-wms \ --with-wmsclient I wanted to disable wms server support, but include wms layer support. This configures just fine, but blows up on compile with: mapwmslayer.c: In function `msBuildWMSLayerURL': mapwmslayer.c:540: warning: implicit declaration of function `msOWSParseVersionString' mapwmslayer.c:543: error: `OWS_1_0_8' undeclared (first use in this function) Should I write a bug against this? -Steve From woodbri at SWOODBRIDGE.COM Sun Nov 26 15:37:40 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 26 Nov 2006 18:37:40 -0500 Subject: WMS Help please Message-ID: Hi all, Just downloaded and built mapserver 4.10 and I'm have a strange problem with a WMS Layer. The apache error log says: libpng warning: Incomplete compressed datastream in iCCP chunk libpng warning: Profile size field missing from iCCP chunk [Sun Nov 26 18:29:29 2006].383652 HTTP: Starting to prepare HTTP requests. [Sun Nov 26 18:29:29 2006].383796 HTTP request: id=0, http://wms.jpl.nasa.gov/wms.cgi?STYLES=&LAYERS=global%5Fmosaic&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&HEIGHT=200&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=300&BBOX=35%2E2716150733968%2C33%2E7132053155979%2C35%2E7478323266032%2C34%2E0306834844021&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage [Sun Nov 26 18:29:29 2006].383989 HTTP: Before download loop [Sun Nov 26 18:29:29 2006].774669 msHTTPWriteFct(id=0, 595 bytes) [Sun Nov 26 18:29:29 2006].774730 msHTTPWriteFct(id=0, 73 bytes) [Sun Nov 26 18:29:29 2006].774748 msHTTPWriteFct(id=0, 9 bytes) [Sun Nov 26 18:29:29 2006].774765 msHTTPWriteFct(id=0, 115 bytes) [Sun Nov 26 18:29:29 2006].774780 msHTTPWriteFct(id=0, 166 bytes) [Sun Nov 26 18:29:29 2006].774800 msHTTPWriteFct(id=0, 1 bytes) [Sun Nov 26 18:29:29 2006].874799 HTTP: After download loop [Sun Nov 26 18:29:29 2006].874819 msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds) [Sun Nov 26 18:29:29 2006].874886 HTTP: HTTP GET request failed with status 403 () for http://wms.jpl.nasa.gov/wms.cgi?STYLES=&LAYERS=global%5Fmosaic&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&HEIGHT=200&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=300&BBOX=35%2E2716150733968%2C33%2E7132053155979%2C35%2E7478323266032%2C34%2E0306834844021&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage [Sun Nov 26 18:29:29 2006].874920 Layer 0: 0.125 + 0.266 + 0.225 = 0.615s [Sun Nov 26 18:29:29 2006].875030 msDrawMap(): Layer 0 (JPL-WMS), 0.000s If I load the URL directly into the browser is returns fine, but from mapserver I get HTTP: HTTP GET request failed with status 403 () ... from above. The layer definition looks like: LAYER NAME "JPL-WMS" TYPE RASTER DEBUG TRUE STATUS DEFAULT CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?STYLES=" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "global_mosaic" "wms_server_version" "1.1.1" "wms_format" "image/png" END END MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE DEBUG=MSDEBUG Anyone have a clue on what I'm doing wrong, or is this a bug? Thanks, -Steve W From hotarukoi at HOTMAIL.COM Sun Nov 26 16:36:30 2006 From: hotarukoi at HOTMAIL.COM (Cola) Date: Sun, 26 Nov 2006 16:36:30 -0800 Subject: jbox - map image problem In-Reply-To: Message-ID: Hi, I'm new to Mapserver as well. And I've the same problem as Neelima. I also follow the instruction of documentation. I couldnt view my map on the brower when i set my image type = png and using jboxpng.class and jBoxPNG.jar,png.jar. But when I switch it to gif, and using jbox.class and jbox.jar, i can view the map. Although I can view my map in the browser now. I still couldnt use the rubber band function, i.e. zoom in. I can draw the red box on my map, however the map wont zoom in after I draw the red box, error are also shown. Anyone had the same problem and can help me? Thanks a lot in advanced!! Cheers, Song Neelima Emmani wrote: > > Hi, > I am working with jbox and followed all the instructions given in the > documnetation. Now my problem is i am not able to visualize the map image > in the browser/web interface and a red cross is given in the topleft > corner of the image box.But, i can see that the map image is stored in the > temporary folder ms_tmp which is under htdocs folder of apache webserver. > And also if i give the normal html statement for the map it is viewed in > the browser, so i feel that there is some problem with applet code, but > unable to find where it is. so, please can any one help me out.It will be > very very helpful fo rme , if any one can find a solution for this. > thanking u inadvance, > > here is the template code - > > > > > Project > > > > > >

Example

>
>
> > >
> >
> > > > > >
> bgcolor="#ffffff"> > > >
>
>
>

> > Browse map
> onClick="document.jBoxPNG.boxoff();"> Query > feature
> onClick="document.jBoxPNG.boxon();"> Query multiple > features >


>
>

> Reference Map


>
>

>

> Legend


[legend]
>

> > Map Controls
> > > > > > > > > > > > > >
[zoomdir_1_check]> C:\Program Files\Apache Group\Apache2 \htdocs\VEPS\WEB INTERFACE\Button_Zoom_pos.gif
onClick='document.jBoxPNG.dragon();' [zoomdir_0_check]> C:\Program Files\Apache Group\Apache2 \htdocs\VEPS\WEB INTERFACE\Button_Hand.gif
onClick='document.jBoxPNG.boxoff();' [zoomdir_-1_check]> C:\Program Files\Apache Group\Apache2 \htdocs\VEPS\WEB INTERFACE\Button_Zoom_neg.jpg
> > >


>

> > Select Layers to Display:
> >

> >
> > > > > > > > > >
> codebase="C:\Program Files\Apache > Group\Apache2\htdocs\VEPS\Java\jBox" > code="jBoxPNG.class" > archive="jBoxPNG.jar,png.jar" > width="[mapwidth]" > height="[mapheight]" > name="jBox" > MAYSCRIPT> > > > > VALUE="2"> > value="true"> > >
>
> > > > > > > > > > > > > > -- View this message in context: http://www.nabble.com/jbox---map-image-problem-tf1049856.html#a7553174 Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at DNR.STATE.MN.US Sun Nov 26 19:07:28 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Sun, 26 Nov 2006 21:07:28 -0600 Subject: Mapserver 4.10 configure bug? Message-ID: I'd say so, definitely looks like a bug to me. Steve >>> Stephen Woodbridge 11/26/06 12:31 PM >>> Hi all, I ran into an interesting configuration bug in mapserver: ./configure \ --with-httpd=/usr/sbin/apache \ --with-proj \ --with-gd \ --with-freetype \ --with-postgis \ --with-tiff \ --without-wms \ --with-wmsclient I wanted to disable wms server support, but include wms layer support. This configures just fine, but blows up on compile with: mapwmslayer.c: In function `msBuildWMSLayerURL': mapwmslayer.c:540: warning: implicit declaration of function `msOWSParseVersionString' mapwmslayer.c:543: error: `OWS_1_0_8' undeclared (first use in this function) Should I write a bug against this? -Steve From Tom.Kralidis at EC.GC.CA Sun Nov 26 19:13:23 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Sun, 26 Nov 2006 22:13:23 -0500 Subject: website down? Message-ID: If I try to go to http://mapserver.gis.umn.edu/ I get a 502 proxy error: From Tom.Kralidis at EC.GC.CA Sun Nov 26 19:30:28 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Sun, 26 Nov 2006 22:30:28 -0500 Subject: mapscript distanceToShape details Message-ID: Hi, I understand shapeObj->distanceToShape() returns a float of the distance from, say, shape a to shape b. Is there anyway to fetch the actual vertices of the shapes at either end which defined the distance to/from (for example, if applying this against two polygons)? Thanks ..Tom From hobu at IASTATE.EDU Sun Nov 26 20:06:14 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Sun, 26 Nov 2006 22:06:14 -0600 Subject: website down? In-Reply-To: Message-ID: yep. squid went splat and I've no way to restart it. Hopefully it will be alive in the morning. Howard On Nov 26, 2006, at 9:13 PM, Kralidis,Tom [Burlington] wrote: > SWYgSSB0cnkgdG8gZ28gdG8gaHR0cDovL21hcHNlcnZlci5naXMudW1uLmVkdS8gSSBnZX > QgYSA1 > MDIgcHJveHkgZXJyb3I6DQogDQo= > From rviancos at GMAIL.COM Sun Nov 26 21:55:55 2006 From: rviancos at GMAIL.COM (=?ISO-8859-1?Q?Ren=E9_F._Viancos_S.?=) Date: Mon, 27 Nov 2006 06:55:55 +0100 Subject: Style Symbol Problem In-Reply-To: <4569B731.30608@mapmedia.de> Message-ID: Hi Peter, the classitem sentence is at the begining of the layer definition... i can't isolate the error... i dont know whath's wrong... Kind Regards 2006/11/26, Peter Freimuth : > > Ren? F. Viancos S. schrieb: > > Hi users, i have a big problem with symbols in my AVL webmapping > > system. the system always show the same symbol.... > > > > http://200.11.84.234/tmp/1164503361121091.gif > > > > > > > > I have a symbol file called symbols.sym, like in GMAP, and the > > following symbols defined (arrow angles) > > > > #1 > > SYMBOL > > NAME "1" > > TYPE PIXMAP > > IMAGE "../htdocs/images/0.gif" > > TRANSPARENT 3 > > END > > > > #2 > > SYMBOL > > NAME "2" > > TYPE PIXMAP > > IMAGE "../htdocs/images/15.gif" > > TRANSPARENT 3 > > END > > > > #3 > > SYMBOL > > NAME "3" > > TYPE PIXMAP > > IMAGE "../htdocs/images/30.gif" > > TRANSPARENT 3 > > END > > > > #4 > > SYMBOL > > NAME "4" > > TYPE PIXMAP > > IMAGE "../htdocs/images/45.gif" > > TRANSPARENT 3 > > END > > > > #5 > > SYMBOL > > NAME "5" > > TYPE PIXMAP > > IMAGE "../htdocs/images/60.gif" > > TRANSPARENT 3 > > END > > > > #6 > > SYMBOL > > NAME "6" > > TYPE PIXMAP > > IMAGE "../htdocs/images/75.gif" > > TRANSPARENT 3 > > END > > > > #7 > > SYMBOL > > NAME "7" > > TYPE PIXMAP > > IMAGE "../htdocs/images/90.gif" > > TRANSPARENT 3 > > END > > > > #8 > > SYMBOL > > NAME "8" > > TYPE PIXMAP > > IMAGE "../htdocs/images/105.gif" > > TRANSPARENT 3 > > END > > > > #9 > > SYMBOL > > NAME "9" > > TYPE PIXMAP > > IMAGE "../htdocs/images/120.gif" > > TRANSPARENT 3 > > END > > > > #10 > > SYMBOL > > NAME "10" > > TYPE PIXMAP > > IMAGE "../htdocs/images/135.gif" > > TRANSPARENT 3 > > END > > > > #11 > > SYMBOL > > NAME "11" > > TYPE PIXMAP > > IMAGE "../htdocs/images/150.gif" > > TRANSPARENT 3 > > END > > > > #12 > > SYMBOL > > NAME "12" > > TYPE PIXMAP > > IMAGE "../htdocs/images/165.gif" > > TRANSPARENT 3 > > END > > > > #13 > > SYMBOL > > NAME "13" > > TYPE PIXMAP > > IMAGE "../htdocs/images/180.gif" > > TRANSPARENT 3 > > END > > > > #14 > > SYMBOL > > NAME "14" > > TYPE PIXMAP > > IMAGE "../htdocs/images/195.gif" > > TRANSPARENT 3 > > END > > > > #15 > > SYMBOL > > NAME "15" > > TYPE PIXMAP > > IMAGE "../htdocs/images/210.gif" > > TRANSPARENT 3 > > END > > > > #16 > > SYMBOL > > NAME "16" > > TYPE PIXMAP > > IMAGE "../htdocs/images/225.gif" > > TRANSPARENT 3 > > END > > > > #17 > > SYMBOL > > NAME "17" > > TYPE PIXMAP > > IMAGE "../htdocs/images/240.gif" > > TRANSPARENT 3 > > END > > > > #18 > > SYMBOL > > NAME "18" > > TYPE PIXMAP > > IMAGE "../htdocs/images/255.gif" > > TRANSPARENT 3 > > END > > > > #19 > > SYMBOL > > NAME "19" > > TYPE PIXMAP > > IMAGE "../htdocs/images/270.gif" > > TRANSPARENT 3 > > END > > > > #20 > > SYMBOL > > NAME "20" > > TYPE PIXMAP > > IMAGE "../htdocs/images/285.gif" > > TRANSPARENT 3 > > END > > > > #21 > > SYMBOL > > NAME "21" > > TYPE PIXMAP > > IMAGE "../htdocs/images/300.gif" > > TRANSPARENT 3 > > END > > > > #22 > > SYMBOL > > NAME "22" > > TYPE PIXMAP > > IMAGE "../htdocs/images/315.gif" > > TRANSPARENT 3 > > END > > > > #23 > > SYMBOL > > NAME "23" > > TYPE PIXMAP > > IMAGE "../htdocs/images/330.gif" > > TRANSPARENT 3 > > END > > > > #24 > > SYMBOL > > NAME "24" > > TYPE PIXMAP > > IMAGE "../htdocs/images/345.gif" > > TRANSPARENT 3 > > END > > > > #25 > > SYMBOL > > NAME "25" > > TYPE PIXMAP > > IMAGE "../htdocs/images/360.gif" > > TRANSPARENT 3 > > END > > > > > > and i have dumped de mapObj in a map file, in order to check the > > different symbol id's for each style symbol , and the layer that has > > the symbols in this map file ( test.map) is shown as follows: > > > > LAYER > > CLASSITEM "id_pos" > > CONNECTION "user=postgres password=2wsdfsw234rfwersw2efr4 > > dbname=localiza_dev host= 10.0.0.200 " > > CONNECTIONTYPE POSTGIS > > DATA "the_geom from (SELECT client_avlsrv.id AS id_pos, > > adm_vehiculos.id_vehiculo AS id_vehiculo, client_avlsrv.id_avl AS > > id_avl, adm_empresa_cliente.id_cliente AS id_cliente, pos_utm AS > > the_geom, client_avlsrv.t AS fecha_hora, vel, ang, nombres, apellidos, > > marca, patente, tipo_vehiculo, substring(nombres from 0 for position(' > > ' in (nombres || ' '))) || ' ' || substring(apellidos from 0 for > > position(' ' in (apellidos || ' '))) as nombre_apellido FROM > > ((((client_avlsrv JOIN adm_conductores ON (client_avlsrv.id_conductor > > = adm_conductores.id_conductor)) JOIN adm_avls ON (adm_avls.id_avl = > > client_avlsrv.id_avl)) JOIN adm_empresa_cliente ON > > (adm_empresa_cliente.id_cliente = adm_conductores.id_cliente)) JOIN > > adm_vehiculos ON (adm_vehiculos.id_avl = adm_avls.id_avl)) WHERE > > client_avlsrv.id IN (12998,12997,12995,12993,12992) ORDER BY > > client_avlsrv.id DESC ) AS foo using srid=32719 using unique id_pos" > > LABELITEM "patente" > > METADATA > > END > > NAME "Movil localiza" > > SIZEUNITS PIXELS > > STATUS ON > > TEMPLATE "query.php" > > TOLERANCEUNITS PIXELS > > TYPE POINT > > UNITS METERS > > CLASS > > NAME "Movil Patente 0" > > LABEL > > ANGLE 0.000000 > > ANTIALIAS TRUE > > FONT "sans" > > MAXSIZE 5 > > MINSIZE 5 > > SIZE 2 > > TYPE TRUETYPE > > BUFFER 2 > > COLOR 0 0 0 > > FORCE TRUE > > MINDISTANCE -1 > > MINFEATURESIZE -1 > > OFFSET 0 0 > > OUTLINECOLOR 255 255 255 > > PARTIALS TRUE > > POSITION UC > > END > > METADATA > > END > > STYLE > > ANGLE 360 > > BACKGROUNDCOLOR 255 0 0 > > COLOR 255 0 0 > > OUTLINECOLOR 0 0 255 > > SIZE 25 > > SYMBOL 19 > > END > > TEMPLATE "query.html" > > END > > CLASS > > NAME "Movil Patente 1" > > LABEL > > ANGLE 0.000000 > > ANTIALIAS TRUE > > FONT "sans" > > MAXSIZE 5 > > MINSIZE 5 > > SIZE 2 > > TYPE TRUETYPE > > BUFFER 2 > > COLOR 0 0 0 > > FORCE TRUE > > MINDISTANCE -1 > > MINFEATURESIZE -1 > > OFFSET 0 0 > > OUTLINECOLOR 255 255 255 > > PARTIALS TRUE > > POSITION UC > > END > > METADATA > > END > > STYLE > > ANGLE 360 > > BACKGROUNDCOLOR 255 0 0 > > COLOR 255 0 0 > > OUTLINECOLOR 0 0 255 > > SIZE 25 > > SYMBOL 2 > > END > > TEMPLATE "query.html" > > END > > CLASS > > NAME "Movil Patente 2" > > LABEL > > ANGLE 0.000000 > > ANTIALIAS TRUE > > FONT "sans" > > MAXSIZE 5 > > MINSIZE 5 > > SIZE 2 > > TYPE TRUETYPE > > BUFFER 2 > > COLOR 0 0 0 > > FORCE TRUE > > MINDISTANCE -1 > > MINFEATURESIZE -1 > > OFFSET 0 0 > > OUTLINECOLOR 255 255 255 > > PARTIALS TRUE > > POSITION UC > > END > > METADATA > > END > > STYLE > > ANGLE 360 > > BACKGROUNDCOLOR 255 0 0 > > COLOR 255 0 0 > > OUTLINECOLOR 0 0 255 > > SIZE 25 > > SYMBOL 2 > > END > > TEMPLATE "query.html" > > END > > CLASS > > NAME "Movil Patente 3" > > LABEL > > ANGLE 0.000000 > > ANTIALIAS TRUE > > FONT "sans" > > MAXSIZE 5 > > MINSIZE 5 > > SIZE 2 > > TYPE TRUETYPE > > BUFFER 2 > > COLOR 0 0 0 > > FORCE TRUE > > MINDISTANCE -1 > > MINFEATURESIZE -1 > > OFFSET 0 0 > > OUTLINECOLOR 255 255 255 > > PARTIALS TRUE > > POSITION UC > > END > > METADATA > > END > > STYLE > > ANGLE 360 > > BACKGROUNDCOLOR 255 0 0 > > COLOR 255 0 0 > > OUTLINECOLOR 0 0 255 > > SIZE 25 > > SYMBOL 17 > > END > > TEMPLATE "query.html" > > END > > CLASS > > NAME "Movil Patente 4" > > LABEL > > ANGLE 0.000000 > > ANTIALIAS TRUE > > FONT "sans" > > MAXSIZE 5 > > MINSIZE 5 > > SIZE 2 > > TYPE TRUETYPE > > BUFFER 2 > > COLOR 0 0 0 > > FORCE TRUE > > MINDISTANCE -1 > > MINFEATURESIZE -1 > > OFFSET 0 0 > > OUTLINECOLOR 255 255 255 > > PARTIALS TRUE > > POSITION UC > > END > > METADATA > > END > > STYLE > > ANGLE 360 > > BACKGROUNDCOLOR 255 0 0 > > COLOR 255 0 0 > > OUTLINECOLOR 0 0 255 > > SIZE 25 > > SYMBOL 23 > > END > > TEMPLATE "query.html" > > END > > END > > > > i don't know what's wrong.. > > > > Can anybody help me ?? > > > > > > Regards > > > > > > > > -- > > Ren? F. Vi?ncos S. > > Director > > Centro de Computaci?n > > e Inform?tica, CICULS > > Universidad de la Serena > > Tel (56-51) 204269 > > rviancos at userena.cl > > www.userena.cl > Dear Ren?, > if i don't miss something there is no CLASSITEM in the Layer and no > EXPRESSION in the different CLASSE's. So Mapserver draws all items with > the style of your first class. All others are not taken into account. > Just define an expression in each CLASS to do the classification and it > should work as expected. > Kind regards, > Peter > > -- > Mit freundlichem Gru? > > Peter Freimuth > _________________________________________________ > MapMedia GmbH > Kartographie und raumbezogene Informationssysteme > > Heilbronner Stra?e 10 > D-10711 Berlin Charlottenburg > > fon: +49.(0)30.89 06 82 70 > fax: +49.(0)30.89 06 82 73 > mail: pf at mapmedia.de > net: www.mapmedia.de > pgp: on demand > _________________________________________________ > > -- Ren? F. Vi?ncos S. Director Centro de Computaci?n e Inform?tica, CICULS Universidad de la Serena Tel (56-51) 204269 rviancos at userena.cl www.userena.cl _______________________ La informaci?n contenida en esta transmisi?n (y sus documentos adjuntos), es confidencial y no puede ser usada o difundida por personas distintas a su(s) destinatario(s). El uso no autorizado de la informaci?n contenida en esta transmisi?n puede ser sancionado civil y criminalmente de conformidad con la ley chilena. Si ha recibido esta transmisi?n por error, por favor destr?yala y notifique al remitente. Atendido que no existe certidumbre que el presente mensaje no ha sido modificado como resultado de su transmisi?n por correo electr?nico, o retransmitido sin alteraci?n alguna; La Univerdidad de La Serena no ser? responsable del contenido del mismo ni puede entenderse como emanado de sus representantes legales o transmitido con la autorizaci?n previa de ellos. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Sun Nov 26 23:42:01 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 27 Nov 2006 09:42:01 +0200 Subject: Style Symbol Problem Message-ID: Hi, So the classitem seems to be there, but I cannot see either the EXPRESSION that should be on each of your CLASS definitions. I am not totally sure about the syntax but I suppose it should be like EXPRESSION "Movil Patente 0" if that is the exact string for building this class. Regards, -Jukka Rahkonen- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Ren? F. Viancos S. L?hetetty: ma 27.11.2006 7:55 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: [UMN_MAPSERVER-USERS] Style Symbol Problem Hi Peter, the classitem sentence is at the begining of the layer definition... i can't isolate the error... i dont know whath's wrong... Kind Regards 2006/11/26, Peter Freimuth < pf at mapmedia.de>: Ren? F. Viancos S. schrieb: > Hi users, i have a big problem with symbols in my AVL webmapping > system. the system always show the same symbol.... > > http://200.11.84.234/tmp/1164503361121091.gif > > > > I have a symbol file called symbols.sym, like in GMAP, and the > following symbols defined (arrow angles) > > #1 > SYMBOL > NAME "1" > TYPE PIXMAP > IMAGE "../htdocs/images/0.gif" > TRANSPARENT 3 > END > > #2 > SYMBOL > NAME "2" > TYPE PIXMAP > IMAGE "../htdocs/images/15.gif" > TRANSPARENT 3 > END > > #3 > SYMBOL > NAME "3" > TYPE PIXMAP > IMAGE "../htdocs/images/30.gif" > TRANSPARENT 3 > END > > #4 > SYMBOL > NAME "4" > TYPE PIXMAP > IMAGE "../htdocs/images/45.gif" > TRANSPARENT 3 > END > > #5 > SYMBOL > NAME "5" > TYPE PIXMAP > IMAGE "../htdocs/images/60.gif" > TRANSPARENT 3 > END > > #6 > SYMBOL > NAME "6" > TYPE PIXMAP > IMAGE "../htdocs/images/75.gif" > TRANSPARENT 3 > END > > #7 > SYMBOL > NAME "7" > TYPE PIXMAP > IMAGE "../htdocs/images/90.gif" > TRANSPARENT 3 > END > > #8 > SYMBOL > NAME "8" > TYPE PIXMAP > IMAGE "../htdocs/images/105.gif" > TRANSPARENT 3 > END > > #9 > SYMBOL > NAME "9" > TYPE PIXMAP > IMAGE "../htdocs/images/120.gif" > TRANSPARENT 3 > END > > #10 > SYMBOL > NAME "10" > TYPE PIXMAP > IMAGE "../htdocs/images/135.gif" > TRANSPARENT 3 > END > > #11 > SYMBOL > NAME "11" > TYPE PIXMAP > IMAGE "../htdocs/images/150.gif" > TRANSPARENT 3 > END > > #12 > SYMBOL > NAME "12" > TYPE PIXMAP > IMAGE "../htdocs/images/165.gif" > TRANSPARENT 3 > END > > #13 > SYMBOL > NAME "13" > TYPE PIXMAP > IMAGE "../htdocs/images/180.gif" > TRANSPARENT 3 > END > > #14 > SYMBOL > NAME "14" > TYPE PIXMAP > IMAGE "../htdocs/images/195.gif" > TRANSPARENT 3 > END > > #15 > SYMBOL > NAME "15" > TYPE PIXMAP > IMAGE "../htdocs/images/210.gif" > TRANSPARENT 3 > END > > #16 > SYMBOL > NAME "16" > TYPE PIXMAP > IMAGE "../htdocs/images/225.gif" > TRANSPARENT 3 > END > > #17 > SYMBOL > NAME "17" > TYPE PIXMAP > IMAGE "../htdocs/images/240.gif" > TRANSPARENT 3 > END > > #18 > SYMBOL > NAME "18" > TYPE PIXMAP > IMAGE "../htdocs/images/255.gif" > TRANSPARENT 3 > END > > #19 > SYMBOL > NAME "19" > TYPE PIXMAP > IMAGE "../htdocs/images/270.gif" > TRANSPARENT 3 > END > > #20 > SYMBOL > NAME "20" > TYPE PIXMAP > IMAGE "../htdocs/images/285.gif" > TRANSPARENT 3 > END > > #21 > SYMBOL > NAME "21" > TYPE PIXMAP > IMAGE "../htdocs/images/300.gif" > TRANSPARENT 3 > END > > #22 > SYMBOL > NAME "22" > TYPE PIXMAP > IMAGE "../htdocs/images/315.gif" > TRANSPARENT 3 > END > > #23 > SYMBOL > NAME "23" > TYPE PIXMAP > IMAGE "../htdocs/images/330.gif" > TRANSPARENT 3 > END > > #24 > SYMBOL > NAME "24" > TYPE PIXMAP > IMAGE "../htdocs/images/345.gif" > TRANSPARENT 3 > END > > #25 > SYMBOL > NAME "25" > TYPE PIXMAP > IMAGE "../htdocs/images/360.gif" > TRANSPARENT 3 > END > > > and i have dumped de mapObj in a map file, in order to check the > different symbol id's for each style symbol , and the layer that has > the symbols in this map file ( test.map) is shown as follows: > > LAYER > CLASSITEM "id_pos" > CONNECTION "user=postgres password=2wsdfsw234rfwersw2efr4 > dbname=localiza_dev host= 10.0.0.200 " > CONNECTIONTYPE POSTGIS > DATA "the_geom from (SELECT client_avlsrv.id AS id_pos, > adm_vehiculos.id_vehiculo AS id_vehiculo, client_avlsrv.id_avl AS > id_avl, adm_empresa_cliente.id_cliente AS id_cliente, pos_utm AS > the_geom, client_avlsrv.t AS fecha_hora, vel, ang, nombres, apellidos, > marca, patente, tipo_vehiculo, substring(nombres from 0 for position(' > ' in (nombres || ' '))) || ' ' || substring(apellidos from 0 for > position(' ' in (apellidos || ' '))) as nombre_apellido FROM > ((((client_avlsrv JOIN adm_conductores ON (client_avlsrv.id_conductor > = adm_conductores.id_conductor)) JOIN adm_avls ON (adm_avls.id_avl = > client_avlsrv.id_avl)) JOIN adm_empresa_cliente ON > (adm_empresa_cliente.id_cliente = adm_conductores.id_cliente)) JOIN > adm_vehiculos ON (adm_vehiculos.id_avl = adm_avls.id_avl)) WHERE > client_avlsrv.id IN (12998,12997,12995,12993,12992) ORDER BY > client_avlsrv.id DESC ) AS foo using srid=32719 using unique id_pos" > LABELITEM "patente" > METADATA > END > NAME "Movil localiza" > SIZEUNITS PIXELS > STATUS ON > TEMPLATE "query.php" > TOLERANCEUNITS PIXELS > TYPE POINT > UNITS METERS > CLASS > NAME "Movil Patente 0" > LABEL > ANGLE 0.000000 > ANTIALIAS TRUE > FONT "sans" > MAXSIZE 5 > MINSIZE 5 > SIZE 2 > TYPE TRUETYPE > BUFFER 2 > COLOR 0 0 0 > FORCE TRUE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS TRUE > POSITION UC > END > METADATA > END > STYLE > ANGLE 360 > BACKGROUNDCOLOR 255 0 0 > COLOR 255 0 0 > OUTLINECOLOR 0 0 255 > SIZE 25 > SYMBOL 19 > END > TEMPLATE "query.html" > END > CLASS > NAME "Movil Patente 1" > LABEL > ANGLE 0.000000 > ANTIALIAS TRUE > FONT "sans" > MAXSIZE 5 > MINSIZE 5 > SIZE 2 > TYPE TRUETYPE > BUFFER 2 > COLOR 0 0 0 > FORCE TRUE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS TRUE > POSITION UC > END > METADATA > END > STYLE > ANGLE 360 > BACKGROUNDCOLOR 255 0 0 > COLOR 255 0 0 > OUTLINECOLOR 0 0 255 > SIZE 25 > SYMBOL 2 > END > TEMPLATE "query.html" > END > CLASS > NAME "Movil Patente 2" > LABEL > ANGLE 0.000000 > ANTIALIAS TRUE > FONT "sans" > MAXSIZE 5 > MINSIZE 5 > SIZE 2 > TYPE TRUETYPE > BUFFER 2 > COLOR 0 0 0 > FORCE TRUE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS TRUE > POSITION UC > END > METADATA > END > STYLE > ANGLE 360 > BACKGROUNDCOLOR 255 0 0 > COLOR 255 0 0 > OUTLINECOLOR 0 0 255 > SIZE 25 > SYMBOL 2 > END > TEMPLATE "query.html" > END > CLASS > NAME "Movil Patente 3" > LABEL > ANGLE 0.000000 > ANTIALIAS TRUE > FONT "sans" > MAXSIZE 5 > MINSIZE 5 > SIZE 2 > TYPE TRUETYPE > BUFFER 2 > COLOR 0 0 0 > FORCE TRUE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS TRUE > POSITION UC > END > METADATA > END > STYLE > ANGLE 360 > BACKGROUNDCOLOR 255 0 0 > COLOR 255 0 0 > OUTLINECOLOR 0 0 255 > SIZE 25 > SYMBOL 17 > END > TEMPLATE "query.html" > END > CLASS > NAME "Movil Patente 4" > LABEL > ANGLE 0.000000 > ANTIALIAS TRUE > FONT "sans" > MAXSIZE 5 > MINSIZE 5 > SIZE 2 > TYPE TRUETYPE > BUFFER 2 > COLOR 0 0 0 > FORCE TRUE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS TRUE > POSITION UC > END > METADATA > END > STYLE > ANGLE 360 > BACKGROUNDCOLOR 255 0 0 > COLOR 255 0 0 > OUTLINECOLOR 0 0 255 > SIZE 25 > SYMBOL 23 > END > TEMPLATE "query.html" > END > END > > i don't know what's wrong.. > > Can anybody help me ?? > > > Regards > > > > -- > Ren? F. Vi?ncos S. > Director > Centro de Computaci?n > e Inform?tica, CICULS > Universidad de la Serena > Tel (56-51) 204269 > rviancos at userena.cl > www.userena.cl Dear Ren?, if i don't miss something there is no CLASSITEM in the Layer and no EXPRESSION in the different CLASSE's. So Mapserver draws all items with the style of your first class. All others are not taken into account. Just define an expression in each CLASS to do the classification and it should work as expected. Kind regards, Peter -- Mit freundlichem Gru? Peter Freimuth _________________________________________________ MapMedia GmbH Kartographie und raumbezogene Informationssysteme Heilbronner Stra?e 10 D-10711 Berlin Charlottenburg fon: +49.(0)30.89 06 82 70 fax: +49.(0)30.89 06 82 73 mail: pf at mapmedia.de net: www.mapmedia.de pgp: on demand _________________________________________________ -- Ren? F. Vi?ncos S. Director Centro de Computaci?n e Inform?tica, CICULS Universidad de la Serena Tel (56-51) 204269 rviancos at userena.cl www.userena.cl _______________________ La informaci?n contenida en esta transmisi?n (y sus documentos adjuntos), es confidencial y no puede ser usada o difundida por personas distintas a su(s) destinatario(s). El uso no autorizado de la informaci?n contenida en esta transmisi?n puede ser sancionado civil y criminalmente de conformidad con la ley chilena. Si ha recibido esta transmisi?n por error, por favor destr?yala y notifique al remitente. Atendido que no existe certidumbre que el presente mensaje no ha sido modificado como resultado de su transmisi?n por correo electr?nico, o retransmitido sin alteraci?n alguna; La Univerdidad de La Serena no ser? responsable del contenido del mismo ni puede entenderse como emanado de sus representantes legales o transmitido con la autorizaci?n previa de ellos. From pf at MAPMEDIA.DE Mon Nov 27 00:01:22 2006 From: pf at MAPMEDIA.DE (Peter Freimuth) Date: Mon, 27 Nov 2006 09:01:22 +0100 Subject: Style Symbol Problem In-Reply-To: <842c1e660611262155s34d2e4e6rd47084c328b79030@mail.gmail.com> Message-ID: Ren? F. Viancos S. schrieb: > Hi Peter, the classitem sentence is at the begining of the layer > definition... > > i can't isolate the error... i dont know whath's wrong... > > Kind Regards > > 2006/11/26, Peter Freimuth < pf at mapmedia.de >: > > Ren? F. Viancos S. schrieb: > > Hi users, i have a big problem with symbols in my AVL webmapping > > system. the system always show the same symbol.... > > > > http://200.11.84.234/tmp/1164503361121091.gif > > > > > > > > > I have a symbol file called symbols.sym, like in GMAP, and the > > following symbols defined (arrow angles) > > > > #1 > > SYMBOL > > NAME "1" > > TYPE PIXMAP > > IMAGE "../htdocs/images/0.gif" > > TRANSPARENT 3 > > END > > > > #2 > > SYMBOL > > NAME "2" > > TYPE PIXMAP > > IMAGE "../htdocs/images/15.gif" > > TRANSPARENT 3 > > END > > > > #3 > > SYMBOL > > NAME "3" > > TYPE PIXMAP > > IMAGE "../htdocs/images/30.gif" > > TRANSPARENT 3 > > END > > > > #4 > > SYMBOL > > NAME "4" > > TYPE PIXMAP > > IMAGE "../htdocs/images/45.gif" > > TRANSPARENT 3 > > END > > > > #5 > > SYMBOL > > NAME "5" > > TYPE PIXMAP > > IMAGE "../htdocs/images/60.gif" > > TRANSPARENT 3 > > END > > > > #6 > > SYMBOL > > NAME "6" > > TYPE PIXMAP > > IMAGE "../htdocs/images/75.gif" > > TRANSPARENT 3 > > END > > > > #7 > > SYMBOL > > NAME "7" > > TYPE PIXMAP > > IMAGE "../htdocs/images/90.gif" > > TRANSPARENT 3 > > END > > > > #8 > > SYMBOL > > NAME "8" > > TYPE PIXMAP > > IMAGE "../htdocs/images/105.gif" > > TRANSPARENT 3 > > END > > > > #9 > > SYMBOL > > NAME "9" > > TYPE PIXMAP > > IMAGE "../htdocs/images/120.gif" > > TRANSPARENT 3 > > END > > > > #10 > > SYMBOL > > NAME "10" > > TYPE PIXMAP > > IMAGE "../htdocs/images/135.gif" > > TRANSPARENT 3 > > END > > > > #11 > > SYMBOL > > NAME "11" > > TYPE PIXMAP > > IMAGE "../htdocs/images/150.gif" > > TRANSPARENT 3 > > END > > > > #12 > > SYMBOL > > NAME "12" > > TYPE PIXMAP > > IMAGE "../htdocs/images/165.gif" > > TRANSPARENT 3 > > END > > > > #13 > > SYMBOL > > NAME "13" > > TYPE PIXMAP > > IMAGE "../htdocs/images/180.gif" > > TRANSPARENT 3 > > END > > > > #14 > > SYMBOL > > NAME "14" > > TYPE PIXMAP > > IMAGE "../htdocs/images/195.gif" > > TRANSPARENT 3 > > END > > > > #15 > > SYMBOL > > NAME "15" > > TYPE PIXMAP > > IMAGE "../htdocs/images/210.gif" > > TRANSPARENT 3 > > END > > > > #16 > > SYMBOL > > NAME "16" > > TYPE PIXMAP > > IMAGE "../htdocs/images/225.gif" > > TRANSPARENT 3 > > END > > > > #17 > > SYMBOL > > NAME "17" > > TYPE PIXMAP > > IMAGE "../htdocs/images/240.gif" > > TRANSPARENT 3 > > END > > > > #18 > > SYMBOL > > NAME "18" > > TYPE PIXMAP > > IMAGE "../htdocs/images/255.gif" > > TRANSPARENT 3 > > END > > > > #19 > > SYMBOL > > NAME "19" > > TYPE PIXMAP > > IMAGE "../htdocs/images/270.gif" > > TRANSPARENT 3 > > END > > > > #20 > > SYMBOL > > NAME "20" > > TYPE PIXMAP > > IMAGE "../htdocs/images/285.gif" > > TRANSPARENT 3 > > END > > > > #21 > > SYMBOL > > NAME "21" > > TYPE PIXMAP > > IMAGE "../htdocs/images/300.gif" > > TRANSPARENT 3 > > END > > > > #22 > > SYMBOL > > NAME "22" > > TYPE PIXMAP > > IMAGE "../htdocs/images/315.gif" > > TRANSPARENT 3 > > END > > > > #23 > > SYMBOL > > NAME "23" > > TYPE PIXMAP > > IMAGE "../htdocs/images/330.gif" > > TRANSPARENT 3 > > END > > > > #24 > > SYMBOL > > NAME "24" > > TYPE PIXMAP > > IMAGE "../htdocs/images/345.gif" > > TRANSPARENT 3 > > END > > > > #25 > > SYMBOL > > NAME "25" > > TYPE PIXMAP > > IMAGE "../htdocs/images/360.gif" > > TRANSPARENT 3 > > END > > > > > > and i have dumped de mapObj in a map file, in order to check the > > different symbol id's for each style symbol , and the layer that has > > the symbols in this map file ( test.map) is shown as follows: > > > > LAYER > > CLASSITEM "id_pos" > > CONNECTION "user=postgres password=2wsdfsw234rfwersw2efr4 > > dbname=localiza_dev host= 10.0.0.200 > " > > CONNECTIONTYPE POSTGIS > > DATA "the_geom from (SELECT client_avlsrv.id AS id_pos, > > adm_vehiculos.id_vehiculo AS id_vehiculo, client_avlsrv.id_avl AS > > id_avl, adm_empresa_cliente.id_cliente AS id_cliente, pos_utm AS > > the_geom, client_avlsrv.t AS fecha_hora, vel, ang, nombres, > apellidos, > > marca, patente, tipo_vehiculo, substring(nombres from 0 for > position(' > > ' in (nombres || ' '))) || ' ' || substring(apellidos from 0 for > > position(' ' in (apellidos || ' '))) as nombre_apellido FROM > > ((((client_avlsrv JOIN adm_conductores ON > (client_avlsrv.id_conductor > > = adm_conductores.id_conductor)) JOIN adm_avls ON (adm_avls.id_avl = > > client_avlsrv.id_avl)) JOIN adm_empresa_cliente ON > > (adm_empresa_cliente.id_cliente = adm_conductores.id_cliente)) JOIN > > adm_vehiculos ON (adm_vehiculos.id_avl = adm_avls.id_avl)) WHERE > > client_avlsrv.id IN (12998,12997,12995,12993,12992) ORDER BY > > client_avlsrv.id DESC ) AS foo using srid=32719 using unique > id_pos" > > LABELITEM "patente" > > METADATA > > END > > NAME "Movil localiza" > > SIZEUNITS PIXELS > > STATUS ON > > TEMPLATE "query.php" > > TOLERANCEUNITS PIXELS > > TYPE POINT > > UNITS METERS > > CLASS > > NAME "Movil Patente 0" > > LABEL > > ANGLE 0.000000 > > ANTIALIAS TRUE > > FONT "sans" > > MAXSIZE 5 > > MINSIZE 5 > > SIZE 2 > > TYPE TRUETYPE > > BUFFER 2 > > COLOR 0 0 0 > > FORCE TRUE > > MINDISTANCE -1 > > MINFEATURESIZE -1 > > OFFSET 0 0 > > OUTLINECOLOR 255 255 255 > > PARTIALS TRUE > > POSITION UC > > END > > METADATA > > END > > STYLE > > ANGLE 360 > > BACKGROUNDCOLOR 255 0 0 > > COLOR 255 0 0 > > OUTLINECOLOR 0 0 255 > > SIZE 25 > > SYMBOL 19 > > END > > TEMPLATE "query.html" > > END > > CLASS > > NAME "Movil Patente 1" > > LABEL > > ANGLE 0.000000 > > ANTIALIAS TRUE > > FONT "sans" > > MAXSIZE 5 > > MINSIZE 5 > > SIZE 2 > > TYPE TRUETYPE > > BUFFER 2 > > COLOR 0 0 0 > > FORCE TRUE > > MINDISTANCE -1 > > MINFEATURESIZE -1 > > OFFSET 0 0 > > OUTLINECOLOR 255 255 255 > > PARTIALS TRUE > > POSITION UC > > END > > METADATA > > END > > STYLE > > ANGLE 360 > > BACKGROUNDCOLOR 255 0 0 > > COLOR 255 0 0 > > OUTLINECOLOR 0 0 255 > > SIZE 25 > > SYMBOL 2 > > END > > TEMPLATE "query.html" > > END > > CLASS > > NAME "Movil Patente 2" > > LABEL > > ANGLE 0.000000 > > ANTIALIAS TRUE > > FONT "sans" > > MAXSIZE 5 > > MINSIZE 5 > > SIZE 2 > > TYPE TRUETYPE > > BUFFER 2 > > COLOR 0 0 0 > > FORCE TRUE > > MINDISTANCE -1 > > MINFEATURESIZE -1 > > OFFSET 0 0 > > OUTLINECOLOR 255 255 255 > > PARTIALS TRUE > > POSITION UC > > END > > METADATA > > END > > STYLE > > ANGLE 360 > > BACKGROUNDCOLOR 255 0 0 > > COLOR 255 0 0 > > OUTLINECOLOR 0 0 255 > > SIZE 25 > > SYMBOL 2 > > END > > TEMPLATE "query.html" > > END > > CLASS > > NAME "Movil Patente 3" > > LABEL > > ANGLE 0.000000 > > ANTIALIAS TRUE > > FONT "sans" > > MAXSIZE 5 > > MINSIZE 5 > > SIZE 2 > > TYPE TRUETYPE > > BUFFER 2 > > COLOR 0 0 0 > > FORCE TRUE > > MINDISTANCE -1 > > MINFEATURESIZE -1 > > OFFSET 0 0 > > OUTLINECOLOR 255 255 255 > > PARTIALS TRUE > > POSITION UC > > END > > METADATA > > END > > STYLE > > ANGLE 360 > > BACKGROUNDCOLOR 255 0 0 > > COLOR 255 0 0 > > OUTLINECOLOR 0 0 255 > > SIZE 25 > > SYMBOL 17 > > END > > TEMPLATE "query.html" > > END > > CLASS > > NAME "Movil Patente 4" > > LABEL > > ANGLE 0.000000 > > ANTIALIAS TRUE > > FONT "sans" > > MAXSIZE 5 > > MINSIZE 5 > > SIZE 2 > > TYPE TRUETYPE > > BUFFER 2 > > COLOR 0 0 0 > > FORCE TRUE > > MINDISTANCE -1 > > MINFEATURESIZE -1 > > OFFSET 0 0 > > OUTLINECOLOR 255 255 255 > > PARTIALS TRUE > > POSITION UC > > END > > METADATA > > END > > STYLE > > ANGLE 360 > > BACKGROUNDCOLOR 255 0 0 > > COLOR 255 0 0 > > OUTLINECOLOR 0 0 255 > > SIZE 25 > > SYMBOL 23 > > END > > TEMPLATE "query.html" > > END > > END > > > > i don't know what's wrong.. > > > > Can anybody help me ?? > > > > > > Regards > > > > > > > > -- > > Ren? F. Vi?ncos S. > > Director > > Centro de Computaci?n > > e Inform?tica, CICULS > > Universidad de la Serena > > Tel (56-51) 204269 > > rviancos at userena.cl > > > > www.userena.cl > Dear Ren?, > if i don't miss something there is no CLASSITEM in the Layer and no > EXPRESSION in the different CLASSE's. So Mapserver draws all items > with > the style of your first class. All others are not taken into account. > Just define an expression in each CLASS to do the classification > and it > should work as expected. > Kind regards, > Peter > > -- > Mit freundlichem Gru? > > Peter Freimuth > _________________________________________________ > MapMedia GmbH > Kartographie und raumbezogene Informationssysteme > > Heilbronner Stra?e 10 > D-10711 Berlin Charlottenburg > > fon: +49.(0)30.89 06 82 70 > fax: +49.(0)30.89 06 82 73 > mail: pf at mapmedia.de > net: www.mapmedia.de > pgp: on demand > _________________________________________________ > > > > > -- > Ren? F. Vi?ncos S. > Director > Centro de Computaci?n > e Inform?tica, CICULS > Universidad de la Serena > Tel (56-51) 204269 > rviancos at userena.cl > www.userena.cl > > > _______________________ > > La informaci?n contenida en esta transmisi?n (y sus documentos > adjuntos), es confidencial y no puede ser usada o difundida por > personas distintas a su(s) destinatario(s). El uso no autorizado de la > informaci?n contenida en esta > transmisi?n puede ser sancionado civil y criminalmente de conformidad > con la ley chilena. Si ha recibido esta transmisi?n por error, por > favor destr?yala y notifique al remitente. Atendido que no existe > certidumbre que el presente mensaje no ha sido modificado como > resultado de su transmisi?n > por correo electr?nico, o retransmitido sin alteraci?n alguna; La > Univerdidad de La Serena no ser? responsable del contenido del mismo > ni puede entenderse como emanado de sus representantes legales o > transmitido con la autorizaci?n previa de ellos. OK, I missed this. But where are the EXPRESSION's to classify your datapoints into your classes? Have a look at EXPRESSIONS in the CLASS Section of Mapserver Doku! Kind regards, Peter -- Mit freundlichem Gru? Peter Freimuth _________________________________________________ MapMedia GmbH Kartographie und raumbezogene Informationssysteme Heilbronner Stra?e 10 D-10711 Berlin Charlottenburg fon: +49.(0)30.89 06 82 70 fax: +49.(0)30.89 06 82 73 mail: pf at mapmedia.de net: www.mapmedia.de pgp: on demand _________________________________________________ From Kristian.Thy at ATKINSGLOBAL.COM Mon Nov 27 04:41:03 2006 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Mon, 27 Nov 2006 13:41:03 +0100 Subject: Scale units In-Reply-To: A<456A9B52.9010608@mapmedia.de> Message-ID: Hi list, (First off, to clarify: In my terminology 1:10.000 is a LARGER scale than 1:20.000. This seems to be the reverse of Mapserver's definition.) I was under the impression that the numbers in MAXSCALE and MINSCALE were defined like this: MAXSCALE 10000 # Meaning layer is drawn at down to 1:10000, but not at smaller scales But when I define my layers like this and publish a WMS, the GetCapabilities doc states: And when I yank the WMS into ArcMap, it says that my layer has a minimum scale of 1:17.639 where I wanted 1:10.000 ... This leaves me very confused as to what the number in the MAXSCALE actually means and how this is translated into the number in the WMS definition. Can anybody shed light on this? If this is just a case of RTFM a link would be appreciated ;-) best regards, Kristian Thy This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Nov 27 05:04:58 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Mon, 27 Nov 2006 14:04:58 +0100 Subject: Scale units Message-ID: MAXSCALE 10.000 in Mapserver means it will be drawn from 0 to 10000. For ScaleHint values, you need to make sure you define the RESOLUTION (in dpi) in Mapserver like the OGC does, you need to use: RESOLUTION 90.71 in the MAP section. To calculate between scale (where I mean for instance the value of 10000) and scalehint values you could use: scale = ([resolution in dpi]*39.3701*[scalehint])/sqrt(2) 39.3701 is the number of inches per meter. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Thy, Kristian Verzonden: maandag 27 november 2006 13:41 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Scale units Hi list, (First off, to clarify: In my terminology 1:10.000 is a LARGER scale than 1:20.000. This seems to be the reverse of Mapserver's definition.) I was under the impression that the numbers in MAXSCALE and MINSCALE were defined like this: MAXSCALE 10000 # Meaning layer is drawn at down to 1:10000, but not at smaller scales But when I define my layers like this and publish a WMS, the GetCapabilities doc states: And when I yank the WMS into ArcMap, it says that my layer has a minimum scale of 1:17.639 where I wanted 1:10.000 ... This leaves me very confused as to what the number in the MAXSCALE actually means and how this is translated into the number in the WMS definition. Can anybody shed light on this? If this is just a case of RTFM a link would be appreciated ;-) best regards, Kristian Thy This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From luca.casagrande at GMAIL.COM Mon Nov 27 05:25:58 2006 From: luca.casagrande at GMAIL.COM (Luca Casagrande) Date: Mon, 27 Nov 2006 14:25:58 +0100 Subject: Mapserver goes in Gentoo Portage Message-ID: Hi to all! Since 24/11 (after various test and debug), the ebuild for mapserver has been moved from bugs section, to official Portage. http://packages.gentoo.org/ebuilds/?mapserver-4.10.0 Thanks for all the people helping make this! Bye Luca -- Help QGIS development! Make a donation right now at http://xrl.us/supportqgis LINUX User #411601 GENTOO-GIS Development Team jabber: casagrande at jabber.linux.it From Steve.Lime at DNR.STATE.MN.US Mon Nov 27 06:49:58 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 27 Nov 2006 08:49:58 -0600 Subject: Mapserver goes in Gentoo Portage Message-ID: Great news! I second the thanks to all... >>> Luca Casagrande 11/27/06 7:25 AM >>> Hi to all! Since 24/11 (after various test and debug), the ebuild for mapserver has been moved from bugs section, to official Portage. http://packages.gentoo.org/ebuilds/?mapserver-4.10.0 Thanks for all the people helping make this! Bye Luca -- Help QGIS development! Make a donation right now at http://xrl.us/supportqgis LINUX User #411601 GENTOO-GIS Development Team jabber: casagrande at jabber.linux.it From iansgis at GMAIL.COM Mon Nov 27 09:47:01 2006 From: iansgis at GMAIL.COM (Ian) Date: Mon, 27 Nov 2006 09:47:01 -0800 Subject: Oracle spatial query In-Reply-To: <4565811D.9080708@univali.br> Message-ID: Fernando thank you very much for your reply! I will try out your suggestions and hopefully speed this up a bit. It would be nice if future MapServer builds corrected this query error. Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From beaart at XS4ALL.NL Mon Nov 27 10:07:01 2006 From: beaart at XS4ALL.NL (Chris Beaart) Date: Mon, 27 Nov 2006 19:07:01 +0100 Subject: Add point to MySQL database Message-ID: I want to click somewhere in the map and retrieve the coordinates (x and y values). Next I want to store these values in a MySQL database. Can somebody please help me. Thanks Chris Beaart, -------------- next part -------------- An HTML attachment was scrubbed... URL: From JXA at COWI.DK Mon Nov 27 10:40:43 2006 From: JXA at COWI.DK (Jeppe Lund Andersen) Date: Mon, 27 Nov 2006 19:40:43 +0100 Subject: build Message-ID: Hello I still have trouble with WKT strings Iam running on a windows 2003 server with php 4.4.2 and mapserver 4.8.1 and is the one downloaded from maptools http://dl.maptools.org/dl/ http://maptools.org/php_mapscript/index.phtml?page=downloads.html My problem is that 4.8.1 has gdal 1.3.1 and thats the one with the error (that the wkt string cannot be longer than 512 chars) and what I found out is that 4.8.4 has the 1.3.2 with has fixed the WKT string problem Iam not experience enough to make a new build myself to make Binary Packages - win32 and do not have much experience with PHP/windows/mapserver because the project was handed to me a while ago So right now iam trying to get http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#how-to-install-ms4w to work, but not having any luck with me at the moment. So could any help me with a build with GDAL 1.3.2 that I can setup on a windows with IIS It should be with php 4 . Med venlig hilsen Jeppe Lund Andersen -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Mon Nov 27 11:10:57 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 27 Nov 2006 14:10:57 -0500 Subject: Mapserver 4.10 configure bug? In-Reply-To: <456A02100200008F000044D3@co5.dnr.state.mn.us> Message-ID: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1973 Steve Lime wrote: > I'd say so, definitely looks like a bug to me. > > Steve > >>>> Stephen Woodbridge 11/26/06 12:31 PM >>> > Hi all, > > I ran into an interesting configuration bug in mapserver: > > ./configure \ > --with-httpd=/usr/sbin/apache \ > --with-proj \ > --with-gd \ > --with-freetype \ > --with-postgis \ > --with-tiff \ > --without-wms \ > --with-wmsclient > > I wanted to disable wms server support, but include wms layer support. > > This configures just fine, but blows up on compile with: > > mapwmslayer.c: In function `msBuildWMSLayerURL': > mapwmslayer.c:540: warning: implicit declaration of function > `msOWSParseVersionString' > mapwmslayer.c:543: error: `OWS_1_0_8' undeclared (first use in this > function) > > Should I write a bug against this? > > -Steve From dps1 at UALBERTA.CA Mon Nov 27 12:52:34 2006 From: dps1 at UALBERTA.CA (Shorthouse, David) Date: Mon, 27 Nov 2006 13:52:34 -0700 Subject: WFS, FeatureQuery, & ResultSets Message-ID: Folks, I use MapServer to overlay point data on shapefile layers using an ODBC OGR connection. I'm writing to solicit ideas for how to best design a geocoding error checking query. In addition to having the requisite latitudes and longitudes, the ODBC data source also has client documented State/Province names in full. What I hope to do is perform something like a FeatureQuery to find all records within the ODBC data source whose documented State/Province & latitude/longitude do not correspond to that in the shapefile (i.e. find all database records whose latitude/longitude fall outside the client's documented State/Province). What I ultimately need to do is produce a recordset containing these erroneous records.either the client documented State/Province is wrong or (more likely) their documented latitude or longitude are wrong. In either case, I need to spit these out for clients. So, what are the steps I need to do to execute this? Perhaps something like: 1. Produce temporary shapefile of points (ogr2ogr) 2. Execute a FeatureQuery 3. Produce WFS of results 4. Parse WFS for RecordSet There must be an easier way. David P. Shorthouse ------------------------------------------------------ Department of Biological Sciences CW-403, Biological Sciences Centre University of Alberta Edmonton, AB T6G 2E9 http://canadianarachnology.webhop.net http://arachnidforum.webhop.net ------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From BLC at JUB.COM Mon Nov 27 13:15:12 2006 From: BLC at JUB.COM (Bruce Cheney) Date: Mon, 27 Nov 2006 14:15:12 -0700 Subject: Label collision trouble In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB0BA3@s-sp22.pca.state.mn.us> Message-ID: David, That was just the solution I needed. Exact label placement is much more usable. Thanks. Bruce -----Original Message----- From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Wednesday, November 22, 2006 12:52 PM To: Bruce Cheney; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] Label collision trouble If your data is pretty static, it might be doing it this way. You could create a point shapefile to use as label points. You would then create a layer of type ANNOTATION to place your labels. This is a lot more work up front, but it guarantees that the labels will be exactly where you want them. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bruce Cheney Sent: Wednesday, November 22, 2006 1:46 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Label collision trouble Thanks for your help Dylan. That is certainly helping. I removed FORCE, dropped my SYMBOLSCALE, and removed PARTIALS. The collisions are not happening now (probably because of FORCE being removed). I would like PARTIALS to stay on but they are messy - crossing boundaries, etc. Is there some way to force labels in a polygon to stay in the same position relative to the center - I don't want them moving around every time a user pans or zooms in? Thanks again. Bruce -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dylan Keon Sent: Wednesday, November 22, 2006 11:41 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Label collision trouble On 11/22/2006 09:50 AM, Bruce Cheney wrote: > Hello group. I am having label collision trouble. No matter what I > do the labels seem to collide with each other. I also have labels > from more than one layer colliding with each other. Obviously this > makes the map very difficult to read. I have implemented caching and > tried every other combination of attributes I can think of. Here is a > label section from a mapfile and a sample label collision. Any > suggestions? Thank you for any help you give. Bruce, What happens if you remove FORCE ON (should be FORCE TRUE), or change it to FORCE FALSE? You might also try POSITION AUTO. With so many labels you'll really have to finesse POSITION, FORCE, LABELMINSCALE, LABELMAXSCALE, PARTIALS, and possibly other parameters just right for each layer. --Dylan From arndw at WTAL.DE Mon Nov 27 14:11:37 2006 From: arndw at WTAL.DE (Arnd Wippermann) Date: Mon, 27 Nov 2006 23:11:37 +0100 Subject: Mapserver 4.10 - WMS Request GetStyles Message-ID: Hello, When I use the WMS Request "GetStyles", i get no response, when the LAYER has more than 12 CLASS. If the LAYER has less CLASS, all goes right. Is it a bug? Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ibbOLClient/OpenLayersClient.html From sb at PIVI.DE Mon Nov 27 14:25:18 2006 From: sb at PIVI.DE (Siegfried Blank) Date: Mon, 27 Nov 2006 23:25:18 +0100 Subject: compile problems -- mapserv with postgis support Message-ID: i have build mapserv on OpenSuse10.1 with ./configure --with-php=/usr/include/php5 --with-png --with-jpeg --with-pdf --with-proj --with-geos --with-gdal --with-ogr --with-postgis=/usr/local/pgsql/bin/pg_config --with-wfs --with-wms --with-httpd=/usr/sbin/httpd2 --disable-ignore-missing-data make the result is MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE there is no INPUT=POSTGIS and there is no error in the configure output (see below). Thanx for help Siegfried Blank MapServer Version from map.h: '4.8.4' configure: checking where FreeType 2.x is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... no XPM (libXpm) library cannot be found, possibly needed for GD configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no using libiconv from system libs. libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.16 or higher... checking for gdFontCacheSetup in -lgd... yes using libgd 2.0.16 (or higher) from system libs (-L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz ). checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... yes checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageGifPtr in -lgd... yes checking for gdFontGetTiny in -lgd... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS) from system libs. configure: checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... yes checking for PDF_setrgbcolor in -lpdf... yes checking for PDF_moveto in -lpdf... yes checking for PDF_curveto in -lpdf... yes checking for PDF_show_xy in -lpdf... yes using libpdf from system libs. configure: checking whether we should include EPPL7 support... including EPPL7 support. configure: checking whether we should include PROJ.4 support... checking for pj_init in -lproj... yes checking for pj_transform in -lproj... yes using PROJ.4 from system libs. configure: checking whether we should include thread safe support... thread safe support disabled. configure: checking whether we should include ESRI SDE support... ESRI SDE support not requested. configure: checking whether we should compile in MPATROL support... MPATROL support not requested. checking if GEOS support requested... yes checking for geos-config... /usr/local/bin/geos-config configure: checking whether we should include OGR support... checking for gdal-config... /usr/local/bin/gdal-config OGR enabled (-DUSE_OGR). checking if GDAL support requested... yes checking checking ms JPEG output... no we, have GDAL available. configure: checking whether we should include TIFF support... disabled since gdal is in use checking if PostGIS support requested... yes, user supplied pg_config checking if MyGIS support requested... no checking if OracleSpatial support requested... no checking if MING/Flash support requested... no configure: checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure: checking whether we should include WFS Server support... OGC WFS Server support enabled (-DUSE_WFS_SVR). configure: checking whether we should include WCS Server support... OGC WCS Server support not requested. configure: checking whether we should include WMS Client Connections support... configure: checking whether we should include WFS Client Connections support... configure: checking for curl-config... configure: checking whether FastCGI support should be enabled... FastCGI support not enabled. configure: checking HTTPD server (Apache) version... using user-supplied httpd (/usr/sbin/httpd2) /usr/sbin/httpd2 version is Apache/2.0.54 (2000054). checking compiler warnings... basic configure: checking whether we should enable debug features... configure: checking for PHP/MapScript module options... checking for g++ -shared ... yes using 'g++ -shared' for dynamic linking checking for location of config.h or php_config.h... /usr/include/php5/main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... yes found regex_extra.h - building PHP MapScript with PHP's bundled regex PHP/MapScript module configured. checking if --enable-runpath requested... no configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/php3/Makefile config.status: creating mapscript/java/Makefile config.status: creating mapscript/csharp/Makefile gcc -O2 -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WFS_SVR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DUSE_ZLIB -I/usr/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include mapserv.o cgiutil.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lpdf -ljpeg -lfreetype -lpng -lz -lproj -ljpeg -L/usr/local/lib -lgdal -L/usr/local/pgsql/lib -lpq -L/usr/local/lib -lgeos -lc -lz -lm -lstdc++ -o mapserv touch mapscriptvars pwd > mapscriptvars echo -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_WMS_SVR -DUSE_WFS_SVR >> mapscriptvars echo -I. -I/usr/include -I/usr/local/include -I/usr/local/include >> mapscriptvars echo -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lpdf -ljpeg -lfreetype -lpng -lz -lproj -ljpeg -L/usr/local/lib -lgdal -L/usr/local/pgsql/lib -lpq -L/usr/local/lib -lgeos -lc -lz -lm -lstdc++ >> mapscriptvars echo >> mapscriptvars grep '#define MS_VERSION' map.h >> mapscriptvars cd mapscript/php3; make; cd ../.. make[1]: Entering directory `/source/mapserver-4.8.4/mapscript/php3' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/source/mapserver-4.8.4/mapscript/php3' From gregor at HOSTGIS.COM Mon Nov 27 14:49:43 2006 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 27 Nov 2006 14:49:43 -0800 Subject: compile problems -- mapserv with postgis support In-Reply-To: <456B65CE.4060905@pivi.de> Message-ID: I seem to recall that that was a known "feature" of that version, that it wouldn't report SUPPORTS=POSTGIS in the query string. Try it with some data and see how it works. From gregor at HOSTGIS.COM Mon Nov 27 14:51:58 2006 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 27 Nov 2006 14:51:58 -0800 Subject: compile problems -- mapserv with postgis support In-Reply-To: <456B65CE.4060905@pivi.de> Message-ID: Of course, I meant to say that it wouldn't report it in the "version string" not the "query string" Sorry - brain fart. From woodbri at SWOODBRIDGE.COM Mon Nov 27 16:02:08 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 27 Nov 2006 19:02:08 -0500 Subject: WMS Help please In-Reply-To: <456A2544.5020301@swoodbridge.com> Message-ID: Any WMS experts online, I still haven't figured this one out. Is it just me or has the list been pretty quite lately? -Steve Stephen Woodbridge wrote: > Hi all, > > Just downloaded and built mapserver 4.10 and I'm have a strange problem > with a WMS Layer. > > The apache error log says: > > libpng warning: Incomplete compressed datastream in iCCP chunk > libpng warning: Profile size field missing from iCCP chunk > [Sun Nov 26 18:29:29 2006].383652 HTTP: Starting to prepare HTTP requests. > [Sun Nov 26 18:29:29 2006].383796 HTTP request: id=0, > http://wms.jpl.nasa.gov/wms.cgi?STYLES=&LAYERS=global%5Fmosaic&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&HEIGHT=200&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=300&BBOX=35%2E2716150733968%2C33%2E7132053155979%2C35%2E7478323266032%2C34%2E0306834844021&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage > > [Sun Nov 26 18:29:29 2006].383989 HTTP: Before download loop > [Sun Nov 26 18:29:29 2006].774669 msHTTPWriteFct(id=0, 595 bytes) > [Sun Nov 26 18:29:29 2006].774730 msHTTPWriteFct(id=0, 73 bytes) > [Sun Nov 26 18:29:29 2006].774748 msHTTPWriteFct(id=0, 9 bytes) > [Sun Nov 26 18:29:29 2006].774765 msHTTPWriteFct(id=0, 115 bytes) > [Sun Nov 26 18:29:29 2006].774780 msHTTPWriteFct(id=0, 166 bytes) > [Sun Nov 26 18:29:29 2006].774800 msHTTPWriteFct(id=0, 1 bytes) > [Sun Nov 26 18:29:29 2006].874799 HTTP: After download loop > [Sun Nov 26 18:29:29 2006].874819 msHTTPExecuteRequests() timing summary > per layer (connect_time + time_to_first_packet + download_time = > total_time in seconds) > [Sun Nov 26 18:29:29 2006].874886 HTTP: HTTP GET request failed with > status 403 () for > http://wms.jpl.nasa.gov/wms.cgi?STYLES=&LAYERS=global%5Fmosaic&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&HEIGHT=200&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=300&BBOX=35%2E2716150733968%2C33%2E7132053155979%2C35%2E7478323266032%2C34%2E0306834844021&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage > > [Sun Nov 26 18:29:29 2006].874920 Layer 0: 0.125 + 0.266 + 0.225 = 0.615s > [Sun Nov 26 18:29:29 2006].875030 msDrawMap(): Layer 0 (JPL-WMS), 0.000s > > If I load the URL directly into the browser is returns fine, but from > mapserver I get > > HTTP: HTTP GET request failed with status 403 () ... from above. > > The layer definition looks like: > > LAYER > NAME "JPL-WMS" > TYPE RASTER > DEBUG TRUE > STATUS DEFAULT > CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?STYLES=" > CONNECTIONTYPE WMS > METADATA > "wms_srs" "EPSG:4326" > "wms_name" "global_mosaic" > "wms_server_version" "1.1.1" > "wms_format" "image/png" > END > END > > > MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS > INPUT=SHAPEFILE DEBUG=MSDEBUG > > Anyone have a clue on what I'm doing wrong, or is this a bug? > > Thanks, > -Steve W From ravikapoor101 at GMAIL.COM Mon Nov 27 17:44:13 2006 From: ravikapoor101 at GMAIL.COM (Ravi) Date: Mon, 27 Nov 2006 17:44:13 -0800 Subject: installation questions Message-ID: Hi there, I have a fee questions regarding installation: 1. I do not want to compile mapserver. Is http://mapserver.gis.umn.edu/fgs the best place to get mapserver binaries? 2. The problem with fgs is that it comes bundled with apache/php etc. If I purchase a hosting account, it usually comes with a latest version of apache/php. Is there a guide explaining how to install mapserver with existing apache/php installation? 3. Does somebody know what is the disk size requirement for complete US street map at say 1000x zoom level? From there I can calculate other disk size requirements by simply adjusting for zoom level. I need this to find out much disk space I need. Thanks Ravi From funkbucket at GMAIL.COM Mon Nov 27 18:31:09 2006 From: funkbucket at GMAIL.COM (Ben Tuttle) Date: Mon, 27 Nov 2006 19:31:09 -0700 Subject: Problem with PHP MapScript Wrappers for WxS Services Message-ID: Hi all- I am trying to get the MapScript Wrappers for WxS Services working with PHP. I am running mapserver 4.10.0 on a linux server with PHP 4.3.9 (this is not built from source, it is the default redhat build, not sure if this matters). I am tryin gto start by implementing the examples at http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript However, I can't even get the fisrt example (the get capabilites example) to function properly. I have been able to track down when it fails. It seems to load the mapscript libray okay and create the request object ($request = ms_newowsrequestobj();). However, it seems that the requst object comes back empty despite parameters being supplied with the URL. The URL I am using, the php code, and the output are below. Any thoughts on what might be wrong here would be greatly appreciated. In my php script everything starting at and after the line $request->loadparams(); is commented out, becuase it fails when I try to use loadparams(), I am guessing because numparams in $request is 0. By the way at present this server is not avaialable to the public until it gets cleared by our IT guys as being secure. However, I'd be happy to provide more info if it might help solve problem. Hopefully we'll be open to the public soon. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Example URL: http://eogmaps.ngdc.noaa.gov/test4.php?service=WMS&version=1.1.1&Request=GetCapabilities ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: PHP Script: Dump of request: "; var_dump($request); print "
Num Params: "; echo $request->numparams; echo $request->getname(1); echo "

Environment Variables from HTTP_ENV_VARS

"; reset($HTTP_ENV_VARS); while (list ($key, $val) = each ($HTTP_ENV_VARS)) { print $key . " = " . $val . "
"; }; echo "
Environment Variables from HTTP_SERVER_VARS

"; reset($HTTP_SERVER_VARS); while (list ($key, $val) = each ($HTTP_SERVER_VARS)) { print $key . " = " . $val . "
"; }; /* $request->loadparams(); $request->setParameter("VeRsIoN","1.1.0"); ms_ioinstallstdouttobuffer(); $oMap = ms_newMapobj("/mnt/anchor1/eogmaps/data/dmsp1.map"); $oMap->owsdispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); $buffer = ms_iogetstdoutbufferstring(); header('Content-type: application/xml'); echo $buffer; ms_ioresethandlers(); */ ?> ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Output From the script: Dump of request: object(ms_cgirequest_obj)(2) { ["_handle_"]=> resource(2) of type (Unknown) ["numparams"]=> int(0) } Num Params: 0 Environment Variables from HTTP_ENV_VARS LANG = C TERM = xterm-color PATH = /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin PWD = / SHLVL = 1 _ = /sbin/initlog Environment Variables from HTTP_SERVER_VARS Host = HTTP_HOST = eogmaps.ngdc.noaa.gov HTTP_USER_AGENT = Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8 HTTP_ACCEPT = text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 HTTP_ACCEPT_LANGUAGE = en-us,en;q=0.5 HTTP_ACCEPT_ENCODING = gzip,deflate HTTP_ACCEPT_CHARSET = ISO-8859-1,utf-8;q=0.7,*;q=0.7 HTTP_KEEP_ALIVE = 300 HTTP_CONNECTION = keep-alive HTTP_CACHE_CONTROL = max-age=0 PATH = /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin SERVER_SIGNATURE = Apache/2.0.52 (Red Hat) Server at eogmaps.ngdc.noaa.gov Port 80 SERVER_SOFTWARE = Apache/2.0.52 (Red Hat) SERVER_NAME = eogmaps.ngdc.noaa.gov SERVER_ADDR = 141.174.183.20 SERVER_PORT = 80 REMOTE_ADDR = 141.174.183.3 DOCUMENT_ROOT = /mnt/anchor1/eogmaps/www/html/ SERVER_ADMIN = SCRIPT_FILENAME = /mnt/anchor1/eogmaps/www/html/test4.php REMOTE_PORT = 56757 GATEWAY_INTERFACE = CGI/1.1 SERVER_PROTOCOL = HTTP/1.1 REQUEST_METHOD = GET QUERY_STRING = service=WMS&version=1.1.1&Request=GetCapabilities REQUEST_URI = /test4.php?service=WMS&version=1.1.1&Request=GetCapabilities SCRIPT_NAME = /test4.php PHP_SELF = /test4.php PATH_TRANSLATED = /mnt/anchor1/eogmaps/www/html/test4.php argv = Array argc = 1 From woodbri at SWOODBRIDGE.COM Mon Nov 27 18:55:17 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 27 Nov 2006 21:55:17 -0500 Subject: WMS Help please In-Reply-To: <456B8181.1050500@pdx.edu> Message-ID: percy, Thanks, but that does not seem to work for me. On 4.6.2, which has WMS server but does not list WMS client, or 4.10 which has support for both. "wms_styles" does not seem to get picked up and added to the url but if I add the styles= to the CONNECTION url it fails with the 403 error, but if I copy and paster the url from the debug log into the browser I get the expected image. I think this is another bug. Can anyone else test this and let me know if they can reproduce it. I am wondering if jpl is blocking the Mapserver client? Here is a test mapfile: MAP NAME "wms-jpl" STATUS ON EXTENT -180.0 -90.0 180.0 90.0 SIZE 400 250 IMAGECOLOR 200 200 200 IMAGETYPE png UNITS DD #DEBUG ON PROJECTION "init=epsg:4326" END WEB IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER NAME "global_landsat" TYPE RASTER DEBUG TRUE STATUS DEFAULT MINSCALE 20000 CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?STYLES=" # following does not pick up the wms_styles # CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "modis,global_mosaic" "wms_styles" "" #### this seems to be ignored!!! "wms_server_version" "1.1.1" "wms_format" "image/png" END END END -Steve percy wrote: > Steve, here's mine that works in 4.6 > > LAYER > NAME global_landsat > TYPE RASTER > STATUS on > CONNECTIONTYPE WMS > CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?" > MINSCALE 20000 > METADATA > "wms_server_version" "1.1.1" > "wms_srs" "EPSG:4326" > "wms_format" "image/jpeg" > "wms_styles" "" > "wms_name" "modis,global_mosaic" > END > END > > > Stephen Woodbridge wrote: >> Any WMS experts online, I still haven't figured this one out. >> >> Is it just me or has the list been pretty quite lately? >> >> -Steve >> >> Stephen Woodbridge wrote: >>> Hi all, >>> >>> Just downloaded and built mapserver 4.10 and I'm have a strange >>> problem with a WMS Layer. >>> >>> The apache error log says: >>> >>> libpng warning: Incomplete compressed datastream in iCCP chunk >>> libpng warning: Profile size field missing from iCCP chunk >>> [Sun Nov 26 18:29:29 2006].383652 HTTP: Starting to prepare HTTP >>> requests. >>> [Sun Nov 26 18:29:29 2006].383796 HTTP request: id=0, >>> http://wms.jpl.nasa.gov/wms.cgi?STYLES=&LAYERS=global%5Fmosaic&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&HEIGHT=200&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=300&BBOX=35%2E2716150733968%2C33%2E7132053155979%2C35%2E7478323266032%2C34%2E0306834844021&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage >>> >>> [Sun Nov 26 18:29:29 2006].383989 HTTP: Before download loop >>> [Sun Nov 26 18:29:29 2006].774669 msHTTPWriteFct(id=0, 595 bytes) >>> [Sun Nov 26 18:29:29 2006].774730 msHTTPWriteFct(id=0, 73 bytes) >>> [Sun Nov 26 18:29:29 2006].774748 msHTTPWriteFct(id=0, 9 bytes) >>> [Sun Nov 26 18:29:29 2006].774765 msHTTPWriteFct(id=0, 115 bytes) >>> [Sun Nov 26 18:29:29 2006].774780 msHTTPWriteFct(id=0, 166 bytes) >>> [Sun Nov 26 18:29:29 2006].774800 msHTTPWriteFct(id=0, 1 bytes) >>> [Sun Nov 26 18:29:29 2006].874799 HTTP: After download loop >>> [Sun Nov 26 18:29:29 2006].874819 msHTTPExecuteRequests() timing >>> summary per layer (connect_time + time_to_first_packet + >>> download_time = total_time in seconds) >>> [Sun Nov 26 18:29:29 2006].874886 HTTP: HTTP GET request failed with >>> status 403 () for >>> http://wms.jpl.nasa.gov/wms.cgi?STYLES=&LAYERS=global%5Fmosaic&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&HEIGHT=200&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=300&BBOX=35%2E2716150733968%2C33%2E7132053155979%2C35%2E7478323266032%2C34%2E0306834844021&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage >>> >>> [Sun Nov 26 18:29:29 2006].874920 Layer 0: 0.125 + 0.266 + 0.225 = >>> 0.615s >>> [Sun Nov 26 18:29:29 2006].875030 msDrawMap(): Layer 0 (JPL-WMS), 0.000s >>> >>> If I load the URL directly into the browser is returns fine, but from >>> mapserver I get >>> >>> HTTP: HTTP GET request failed with status 403 () ... from above. >>> >>> The layer definition looks like: >>> >>> LAYER >>> NAME "JPL-WMS" >>> TYPE RASTER >>> DEBUG TRUE >>> STATUS DEFAULT >>> CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?STYLES=" >>> CONNECTIONTYPE WMS >>> METADATA >>> "wms_srs" "EPSG:4326" >>> "wms_name" "global_mosaic" >>> "wms_server_version" "1.1.1" >>> "wms_format" "image/png" >>> END >>> END >>> >>> >>> MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >>> OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE >>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 >>> INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE DEBUG=MSDEBUG >>> >>> Anyone have a clue on what I'm doing wrong, or is this a bug? >>> >>> Thanks, >>> -Steve W >> > From warmerdam at POBOX.COM Mon Nov 27 19:42:34 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 27 Nov 2006 22:42:34 -0500 Subject: Problem with PHP MapScript Wrappers for WxS Services In-Reply-To: <259e26270611271831w9d84489j512db844de227c03@mail.gmail.com> Message-ID: Ben Tuttle wrote: > PHP Script: > > dl("php_mapscript.so"); > $request = ms_newowsrequestobj(); > print "
Dump of request: "; > var_dump($request); ... > /* > $request->loadparams(); Ben, Is there a reason that loadparams() is commented out? This is the call that parses the QUERY_STRING into parameters on the request object. Or perhaps I'm missing what you are trying to do? 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 | President OSGeo, http://osgeo.org From woodbri at SWOODBRIDGE.COM Mon Nov 27 19:58:33 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 27 Nov 2006 22:58:33 -0500 Subject: WMS Help please In-Reply-To: <456BA515.1090507@swoodbridge.com> Message-ID: Sorry for replying to my own post, but I am making some progress only to find additional problems. 1) it looks like the WMS UserAgent "MapServer/4.10 lubcurl..." is being blocked by jpl. I modified the source to maphttp.c and mangled the user agent string - the 403 message went away and I got an image! Well I got the image into the web.tmp directory. 2) then mapserver crashed trying to process the png RGBA wms image into map image. 3) So I tried jpeg format and it responded with: msDrawMap(): WMS connection error. Failed to draw WMS layer named 'global_landsat'. This most likely happened because the remote WMS server returned an invalid image, and XML exception or another unexpected result in response to the GetMap request. Also check and make sure that the layer's connection URL is valid. drawJPEG(): Unable to access file. Only grayscale JPEG images are supported. 4) So I tried tiff format and it responded with: msDrawMap(): WMS connection error. Failed to draw WMS layer named 'global_landsat'. This most likely happened because the remote WMS server returned an invalid image, and XML exception or another unexpected result in response to the GetMap request. Also check and make sure that the layer's connection URL is valid. drawTIFF(): Image handling error. Only colormapped and grayscale images are supported. 5) the issue with wms_styles looks like a code bug after reading through the code, if I understand it correctly. I have written a bug: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1974 if anyone in interested in it. So something is borked! Can anyone get this mapfile to work with any wms connection on 4.10? -Steve Stephen Woodbridge wrote: > percy, > > Thanks, but that does not seem to work for me. On 4.6.2, which has WMS > server but does not list WMS client, or 4.10 which has support for both. > "wms_styles" does not seem to get picked up and added to the url but if > I add the styles= to the CONNECTION url it fails with the 403 error, but > if I copy and paster the url from the debug log into the browser I get > the expected image. > > I think this is another bug. > > Can anyone else test this and let me know if they can reproduce it. I am > wondering if jpl is blocking the Mapserver client? > > Here is a test mapfile: > > MAP > NAME "wms-jpl" > STATUS ON > EXTENT -180.0 -90.0 180.0 90.0 > SIZE 400 250 > IMAGECOLOR 200 200 200 > IMAGETYPE png > UNITS DD > #DEBUG ON > PROJECTION > "init=epsg:4326" > END > > WEB > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > END > > LAYER > NAME "global_landsat" > TYPE RASTER > DEBUG TRUE > STATUS DEFAULT > MINSCALE 20000 > CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?STYLES=" > > # following does not pick up the wms_styles > # CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?" > > CONNECTIONTYPE WMS > METADATA > "wms_srs" "EPSG:4326" > "wms_name" "modis,global_mosaic" > "wms_styles" "" #### this seems to be ignored!!! > "wms_server_version" "1.1.1" > "wms_format" "image/png" > END > END > > END > > > -Steve > > percy wrote: >> Steve, here's mine that works in 4.6 >> >> LAYER >> NAME global_landsat >> TYPE RASTER >> STATUS on >> CONNECTIONTYPE WMS >> CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?" >> MINSCALE 20000 >> METADATA >> "wms_server_version" "1.1.1" >> "wms_srs" "EPSG:4326" >> "wms_format" "image/jpeg" >> "wms_styles" "" >> "wms_name" "modis,global_mosaic" >> END >> END >> >> >> Stephen Woodbridge wrote: >>> Any WMS experts online, I still haven't figured this one out. >>> >>> Is it just me or has the list been pretty quite lately? >>> >>> -Steve >>> >>> Stephen Woodbridge wrote: >>>> Hi all, >>>> >>>> Just downloaded and built mapserver 4.10 and I'm have a strange >>>> problem with a WMS Layer. >>>> >>>> The apache error log says: >>>> >>>> libpng warning: Incomplete compressed datastream in iCCP chunk >>>> libpng warning: Profile size field missing from iCCP chunk >>>> [Sun Nov 26 18:29:29 2006].383652 HTTP: Starting to prepare HTTP >>>> requests. >>>> [Sun Nov 26 18:29:29 2006].383796 HTTP request: id=0, >>>> http://wms.jpl.nasa.gov/wms.cgi?STYLES=&LAYERS=global%5Fmosaic&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&HEIGHT=200&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=300&BBOX=35%2E2716150733968%2C33%2E7132053155979%2C35%2E7478323266032%2C34%2E0306834844021&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage >>>> >>>> [Sun Nov 26 18:29:29 2006].383989 HTTP: Before download loop >>>> [Sun Nov 26 18:29:29 2006].774669 msHTTPWriteFct(id=0, 595 bytes) >>>> [Sun Nov 26 18:29:29 2006].774730 msHTTPWriteFct(id=0, 73 bytes) >>>> [Sun Nov 26 18:29:29 2006].774748 msHTTPWriteFct(id=0, 9 bytes) >>>> [Sun Nov 26 18:29:29 2006].774765 msHTTPWriteFct(id=0, 115 bytes) >>>> [Sun Nov 26 18:29:29 2006].774780 msHTTPWriteFct(id=0, 166 bytes) >>>> [Sun Nov 26 18:29:29 2006].774800 msHTTPWriteFct(id=0, 1 bytes) >>>> [Sun Nov 26 18:29:29 2006].874799 HTTP: After download loop >>>> [Sun Nov 26 18:29:29 2006].874819 msHTTPExecuteRequests() timing >>>> summary per layer (connect_time + time_to_first_packet + >>>> download_time = total_time in seconds) >>>> [Sun Nov 26 18:29:29 2006].874886 HTTP: HTTP GET request failed with >>>> status 403 () for >>>> http://wms.jpl.nasa.gov/wms.cgi?STYLES=&LAYERS=global%5Fmosaic&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&HEIGHT=200&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=300&BBOX=35%2E2716150733968%2C33%2E7132053155979%2C35%2E7478323266032%2C34%2E0306834844021&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage >>>> >>>> [Sun Nov 26 18:29:29 2006].874920 Layer 0: 0.125 + 0.266 + 0.225 = >>>> 0.615s >>>> [Sun Nov 26 18:29:29 2006].875030 msDrawMap(): Layer 0 (JPL-WMS), >>>> 0.000s >>>> >>>> If I load the URL directly into the browser is returns fine, but >>>> from mapserver I get >>>> >>>> HTTP: HTTP GET request failed with status 403 () ... from above. >>>> >>>> The layer definition looks like: >>>> >>>> LAYER >>>> NAME "JPL-WMS" >>>> TYPE RASTER >>>> DEBUG TRUE >>>> STATUS DEFAULT >>>> CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?STYLES=" >>>> CONNECTIONTYPE WMS >>>> METADATA >>>> "wms_srs" "EPSG:4326" >>>> "wms_name" "global_mosaic" >>>> "wms_server_version" "1.1.1" >>>> "wms_format" "image/png" >>>> END >>>> END >>>> >>>> >>>> MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >>>> OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE >>>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 >>>> INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE DEBUG=MSDEBUG >>>> >>>> Anyone have a clue on what I'm doing wrong, or is this a bug? >>>> >>>> Thanks, >>>> -Steve W >>> >> From warmerdam at POBOX.COM Mon Nov 27 23:05:14 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 28 Nov 2006 02:05:14 -0500 Subject: WMS Help please In-Reply-To: <456BB3E9.7050204@swoodbridge.com> Message-ID: Stephen Woodbridge wrote: > 2) then mapserver crashed trying to process the png RGBA wms image into > map image. > > 3) So I tried jpeg format and it responded with: > msDrawMap(): WMS connection error. Failed to draw WMS layer named > 'global_landsat'. This most likely happened because the remote WMS > server returned an invalid image, and XML exception or another > unexpected result in response to the GetMap request. Also check and make > sure that the layer's connection URL is valid. > drawJPEG(): Unable to access file. Only grayscale JPEG images are > supported. > > 4) So I tried tiff format and it responded with: > msDrawMap(): WMS connection error. Failed to draw WMS layer named > 'global_landsat'. This most likely happened because the remote WMS > server returned an invalid image, and XML exception or another > unexpected result in response to the GetMap request. Also check and make > sure that the layer's connection URL is valid. > drawTIFF(): Image handling error. Only colormapped and grayscale images > are supported. Steve, The above three issues are likely due to limitations in the legacy GD based PNG, JPEG and TIFF support in mapserver. Is your mapserver built without GDAL? If so, you won't be able to use RGB PNG, JPEG or TIFF files. I see the JPEG and TIFF functions report this reasonably well, but I don't see any RGB vs. colormapped checking logic in the drawPNG function. If you wish, you can file a bug on this. I think we might well strip out the legacy raster support for 5.0. The old functions have some fairly significant limitations, and no one (me included) is all that interested in supporting them. If you do write a bug - please feel free to assign it to me directly. 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 | President OSGeo, http://osgeo.org From woodbri at SWOODBRIDGE.COM Mon Nov 27 21:37:46 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 28 Nov 2006 00:37:46 -0500 Subject: WMS Help please In-Reply-To: <456BDFAA.1060000@pobox.com> Message-ID: Frank Warmerdam wrote: > Stephen Woodbridge wrote: >> 2) then mapserver crashed trying to process the png RGBA wms image >> into map image. >> >> 3) So I tried jpeg format and it responded with: >> msDrawMap(): WMS connection error. Failed to draw WMS layer named >> 'global_landsat'. This most likely happened because the remote WMS >> server returned an invalid image, and XML exception or another >> unexpected result in response to the GetMap request. Also check and >> make sure that the layer's connection URL is valid. >> drawJPEG(): Unable to access file. Only grayscale JPEG images are >> supported. >> >> 4) So I tried tiff format and it responded with: >> msDrawMap(): WMS connection error. Failed to draw WMS layer named >> 'global_landsat'. This most likely happened because the remote WMS >> server returned an invalid image, and XML exception or another >> unexpected result in response to the GetMap request. Also check and >> make sure that the layer's connection URL is valid. >> drawTIFF(): Image handling error. Only colormapped and grayscale >> images are supported. > > Steve, > > The above three issues are likely due to limitations in the legacy GD > based PNG, JPEG and TIFF support in mapserver. Is your mapserver built > without GDAL? If so, you won't be able to use RGB PNG, JPEG or TIFF files. > I see the JPEG and TIFF functions report this reasonably well, but I don't > see any RGB vs. colormapped checking logic in the drawPNG function. > > If you wish, you can file a bug on this. I think we might well strip out > the legacy raster support for 5.0. The old functions have some fairly > significant limitations, and no one (me included) is all that interested > in supporting them. > > If you do write a bug - please feel free to assign it to me directly. > > Best regards, Frank, Thank you for your quick response on this. Yes, I typically like to build a stripped down version of mapserver to keep it small and to minimize the number of package dependencies I need. So it is not build with GDAL, but it sounds like I will need to do that. I will write you a bug on this, if for no other reason because it is broken and segv and it should be fixed even if fixing it means removing the legacy code. BTW, As I mentioned on the Users List, I tried fetching the wms layer as png, jpeg and tiff images and was not able to get any of them to produce a mapserver image. -Steve From mcompte at SIGTE.UDG.ES Tue Nov 28 00:44:53 2006 From: mcompte at SIGTE.UDG.ES (Marc Compte) Date: Tue, 28 Nov 2006 09:44:53 +0100 Subject: Mapserver+PostGIS+Charset encoding problems Message-ID: Hi, Sorry if this has already been dealt with before but I searched the archives and couldn't find an answer for this case. I have a mapserver getting data from a PostGIS database. The database charset encoding is defined as LATIN1 and the text in the tables displays all fine and good in the pgAdmin as well as in my browser when I just get a list of them with php. When I set that particular field as a LABEL in the map-file the resulting map shows the special characters wrong (mostly accents is what I have to deal with). I guess that'd be normal since I wasn't specifying any charset encoding yet. So I specified this attribute in my file ... but now the funny thing comes. When I set my layer to use ENCODING 'LATIN1' (same as my db) the map just shows a different set of strange characters, but still not the right glyphs to show. If I try using UTF-8 in my LABEL then it starts working some of the accents out but not all of them. Special chars that use the accent ? appear perfectly (such as ?, ?, ?, ? and ?), and so does the ? on top of vowels. But the ` accent does not seem to work. I have been struggling against this problem for a few days already. Now I noticed that using the UTF-8 gives me back a set of characters that ressembles very much that of LATIN2. An '?' (E0) in my database produces an 'r' with accent (?r). An '?' (E8) in my database produces a 'c' with the ^ symbol on top (and inverted) ... ? (EC) => 'e' with ^ inverted on top ... ? (F2) => 'n' with ^ inverted on top ... ? (F9) => 'u' with a ? on top This leaves me very puzzled since I don't think I ever used or made any reference to Latin2 charset. I am getting very confused about the whole thing ... I have a db in Latin1, I try to convert it to UTF-8 and what I get is Latin2 ... does this make sense to anyone? I don't know what else to try, I made a replica of my table in a UTF-8 db, I have tried using "options='-c client_encoding=LATIN1'" in my connection string ... and always end up getting the same thing. By the way, using "options='-c client_encoding=LATIN1'" in my connection string produces exactly the same result as specifying ENCODING 'UTF-8' in the LABEL of my map file, which seems also a bit weird. Does anyone have any idea on what could I try next or where to look? I am running out of ideas and I'm very close to go to the database and strip all the accents out ... Thanks, Marc Compte From warmerdam at POBOX.COM Tue Nov 28 08:55:37 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 28 Nov 2006 11:55:37 -0500 Subject: Problem with PHP MapScript Wrappers for WxS Services In-Reply-To: <456BB02A.60101@pobox.com> Message-ID: Frank Warmerdam wrote: > Ben Tuttle wrote: >> PHP Script: >> >> > dl("php_mapscript.so"); >> $request = ms_newowsrequestobj(); >> print "
Dump of request: "; >> var_dump($request); > ... >> /* >> $request->loadparams(); > > > Ben, > > Is there a reason that loadparams() is commented out? This is the call > that parses the QUERY_STRING into parameters on the request object. > > Or perhaps I'm missing what you are trying to do? Folks, In follow up on this I have come to a momentus discovery. Not all web application are cgi based! Yes, it's hard to imagine, but it's true. Not entirely surprisingly when using mod_php (and presumably all the other non cgi environments) the cgi environment variables do not get set. And worse, the loadParams() which expects to be used in a cgi enviroment just calls exit() after any failure, taking down the whole web server instance (or at least the thread for that request) without returning anything useful. It seems that in non-cgi environments folks wanting to use the WxS services will need to parse the request using mechanisms other than loadParams(), and populate the keyword/value pairs in the OWSRequest object manually. I have updated the WxS services howto with a note about this, and also will keep the bug report open as a place to consider ways of passing in the url to loadParams() for 5.0. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1975 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 | President OSGeo, http://osgeo.org From g.berry at VIRGIN.NET Tue Nov 28 09:10:07 2006 From: g.berry at VIRGIN.NET (Graham Berry at Virgin) Date: Tue, 28 Nov 2006 17:10:07 -0000 Subject: Problem with PHP MapScript Wrappers for WxS Services In-Reply-To: <456C6A09.1080508@pobox.com> Message-ID: Frank, I am having problems with the set("encoding", "UTF-8") for foreign character sets. Could this be related to this problem? Cheers, Graham -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: 28 November 2006 16:56 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Problem with PHP MapScript Wrappers for WxS Services Frank Warmerdam wrote: > Ben Tuttle wrote: >> PHP Script: >> >> > dl("php_mapscript.so"); >> $request = ms_newowsrequestobj(); >> print "
Dump of request: "; >> var_dump($request); > ... >> /* >> $request->loadparams(); > > > Ben, > > Is there a reason that loadparams() is commented out? This is the call > that parses the QUERY_STRING into parameters on the request object. > > Or perhaps I'm missing what you are trying to do? Folks, In follow up on this I have come to a momentus discovery. Not all web application are cgi based! Yes, it's hard to imagine, but it's true. Not entirely surprisingly when using mod_php (and presumably all the other non cgi environments) the cgi environment variables do not get set. And worse, the loadParams() which expects to be used in a cgi enviroment just calls exit() after any failure, taking down the whole web server instance (or at least the thread for that request) without returning anything useful. It seems that in non-cgi environments folks wanting to use the WxS services will need to parse the request using mechanisms other than loadParams(), and populate the keyword/value pairs in the OWSRequest object manually. I have updated the WxS services howto with a note about this, and also will keep the bug report open as a place to consider ways of passing in the url to loadParams() for 5.0. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1975 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 | President OSGeo, http://osgeo.org From warmerdam at POBOX.COM Tue Nov 28 09:43:54 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 28 Nov 2006 12:43:54 -0500 Subject: Problem with PHP MapScript Wrappers for WxS Services In-Reply-To: <006f01c71310$10ca8220$0402a8c0@GBerryXPDell> Message-ID: Graham Berry at Virgin wrote: > Frank, > > I am having problems with the set("encoding", "UTF-8") for foreign > character sets. Could this be related to this problem? Graham, I'm afraid I have no idea. I don't know much about how character set encoding works for mapserver, nor do I know anything about your setup. 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 | President OSGeo, http://osgeo.org From A.Versteegen at BOM.GOV.AU Tue Nov 28 15:08:57 2006 From: A.Versteegen at BOM.GOV.AU (Adrian Versteegen) Date: Wed, 29 Nov 2006 10:08:57 +1100 Subject: Converting values returned my mapserver Message-ID: Apologies if this is a duplicate message, the original seemed to be rejected by the listserv server.. We have weather observations with the wind speed values in the shapefile in knots. Our customer wants the values displayed in km/h. I am using a cgi/wms arrangement and have tried various combinations of LABELITEM, EXPRESSION and TEXT to multiply the [Max_Wnd_Gus] attribute by the conversion constant, so the following options in the map file tried individually or collectively give the results shown: LAYER LABELITEM ("Max_Wnd_Gus" * 1.85) - gives an error, ... CLASS EXPRESSION ([Max_Wnd_Gus] * 1.85) - returns true, the values are displayed, TEXT ('[Max_Wnd_Gus] * 1.85' km/h) - displays ' * 1.85' km/h Any ideas? Thanks, Adrian From funkbucket at GMAIL.COM Tue Nov 28 16:22:03 2006 From: funkbucket at GMAIL.COM (Ben Tuttle) Date: Tue, 28 Nov 2006 17:22:03 -0700 Subject: Problem with PHP MapScript Wrappers for WxS Services In-Reply-To: <456C6A09.1080508@pobox.com> Message-ID: I wanted to add one more thing to this. I spent some time today trying to decide on how to go about working around this issue. In php the following seems to work quite nicely: reset($HTTP_SERVER_VARS); while (list ($key, $val) = each ($HTTP_SERVER_VARS)) { putenv("$key=$val"); }; After executing this block loadparams seems to function as expected. Just another option on how to work with the wxs mapscript. > Folks, > > In follow up on this I have come to a momentus discovery. Not all web > application are cgi based! > > Yes, it's hard to imagine, but it's true. > > Not entirely surprisingly when using mod_php (and presumably all the other > non cgi environments) the cgi environment variables do not get set. And > worse, the loadParams() which expects to be used in a cgi enviroment just > calls exit() after any failure, taking down the whole web server > instance (or at least the thread for that request) without returning anything > useful. > > It seems that in non-cgi environments folks wanting to use the WxS services > will need to parse the request using mechanisms other than loadParams(), and > populate the keyword/value pairs in the OWSRequest object manually. > > I have updated the WxS services howto with a note about this, and also will > keep the bug report open as a place to consider ways of passing in the url > to loadParams() for 5.0. > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1975 > > 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 | President OSGeo, http://osgeo.org > > From Steve.Lime at DNR.STATE.MN.US Tue Nov 28 22:18:53 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 29 Nov 2006 00:18:53 -0600 Subject: Converting values returned my mapserver Message-ID: I'm sorry but what you're trying to do isn't possible with MapServer as it sits. You have to pre-compute the km/hr values in another column. Steve >>> Adrian Versteegen 11/28/06 5:08 PM >>> Apologies if this is a duplicate message, the original seemed to be rejected by the listserv server.. We have weather observations with the wind speed values in the shapefile in knots. Our customer wants the values displayed in km/h. I am using a cgi/wms arrangement and have tried various combinations of LABELITEM, EXPRESSION and TEXT to multiply the [Max_Wnd_Gus] attribute by the conversion constant, so the following options in the map file tried individually or collectively give the results shown: LAYER LABELITEM ("Max_Wnd_Gus" * 1.85) - gives an error, ... CLASS EXPRESSION ([Max_Wnd_Gus] * 1.85) - returns true, the values are displayed, TEXT ('[Max_Wnd_Gus] * 1.85' km/h) - displays ' * 1.85' km/h Any ideas? Thanks, Adrian From bob_bobby13 at YAHOO.FR Wed Nov 29 00:26:06 2006 From: bob_bobby13 at YAHOO.FR (bob13) Date: Wed, 29 Nov 2006 00:26:06 -0800 Subject: Mapscript fedora 5 In-Reply-To: <7446944.post@talk.nabble.com> Message-ID: For information, I changed the security of Linux as permissive (It was on Enforcing) It works now...but if you are an other solution please send it! thanks bob13 wrote: > > Hello, > I read a lot of tuto and wiki about mapserver, but I can?t load > php/mapscript: > > I've got an error when httpd is launched: > PHP start up: unable to load dynamic library /usr/lib/mapscript.so - > /usr/local/lib/libgdal.so.1 cannot restore segment prot after reloc: > permission denied in Unknown on line 0 > So, I've got an error on web test as: > PHP fatal error : Call to undefined function ms_newMapobj() in > /var/www/cgi-bin/ > > php --rf ms_newMapobj is ok > ldd /usr/lib/php/modules/php_mapscript.so is ok > php ?m shows MapScript is ok without error > php ?i shows features of MapScript > In a browser : > phpinfo() = there No MapScript !! > > Why these differences between php ?i and phpinfo() ? > > This is my configuration : > php_mapscript.so is in /usr/lib/php/modules/ > mapserv is in /var/www/cgi-bin/ > > Fedora Core 5 > GRASS 6.2 > QGIS 0.7.4 > GDAL 1.3.2 > Pstgresql 8.1.4 > Postgis 1.1.3 > Apache (HTTPD 2) installed with yum > php 5.1.6 installed with yum > mapserver 4.10.0 is compiled with php=/usr/include/php/ > > How do I compile MapServer on Fedora Core 5 ? > I need help... > thanks a lot > -- View this message in context: http://www.nabble.com/Mapscript-fedora-5-tf2670553.html#a7595193 Sent from the Mapserver - User mailing list archive at Nabble.com. From joseramonlopez at GMAIL.COM Wed Nov 29 01:29:43 2006 From: joseramonlopez at GMAIL.COM (=?ISO-8859-1?Q?Jos=E9_Ram=F3n_L=F3pez?=) Date: Wed, 29 Nov 2006 10:29:43 +0100 Subject: WFS Problems Message-ID: Hello again. Im trying to configure a WFS Server with oraclespatial. This is the definition of the layer: LAYER NAME "ferrocarriles" TYPE LINE STATUS ON DUMP TRUE DEBUG ON CONNECTIONTYPE oraclespatial CONNECTION "user/pass at SDE" DATA "SHAPE FROM RED_FERROCARRIL USING VERSION 9i" PROJECTION "init=EPSG:4326" END METADATA "wfs_title" "Ferrocarriles" "gml_featureid" "OBJECTID" "gml_include_items" "all" END CLASS NAME "ferrocarriles" STYLE COLOR 200 255 0 END END END # layer When i make a getcapabilities like: http://192.168.53.18:81/cgi-bin/mapserver?SERVICE=WFS&VERSION=1.1.1&REQUEST=Getcapabilities it shows me ferrocarriles ferrocarriles EPSG:4326 But if i make a getfeature: http://192.168.53.18:81/cgi-bin/mapserver?service=WFS&version=1.0.0&request=getfeature&typename=ferrocarriles ? ? ? 195210.088989,4075810.305023 533545.363841,4261747.980489 With some clients, like udig or gvsig i can connect to wfs, but i cant get info. In apache?s error.log [error] msOracleSpatialLayerOpen called with: SHAPE FROM RED_FERROCARRIL\r [error] msOracleSpatialLayerOpen. Shared connection not available. Creating one.\r [error] msConnPoolRegister(ferrocarriles,user/pass at SDE,0173D7E0)\r [error] msOracleSpatialLayerFreeItemInfo was called.\r [error] msOracleSpatialLayerWhichShapes was called.\r [error] msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT rownum, SHAPE FROM RED_FERROCARRIL WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), MDSYS.SDO_ORDINATE_ARRAY(195210,4075810,533545,4261747) ),'querytype=window') = 'TRUE'\r [error] msOracleSpatialLayerFreeItemInfo was called.\r [error] msOracleSpatialLayerClose was called. Layer connection: user/pass at SDE\r [error] msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r [error] msOracleSpatialLayerClose. Cleaning Oracle handlers.\r [error] msConnPoolRelease(ferrocarriles,user/pass at SDE,0173D7E0)\r [error] msConnPoolClose(user/pass at SDE,0173D7E0)\r [error] msOracleSpatialLayerOpen called with: SHAPE FROM RED_FERROCARRIL\r [error] msOracleSpatialLayerOpen. Shared connection not available. Creating one.\r [error] msConnPoolRegister(ferrocarriles,user/pass at SDE,0179A3F0)\r [error] msOracleSpatialLayerFreeItemInfo was called.\r [error] msOracleSpatialLayerGetItems was called.\r [error] msOracleSpatialLayerInitItemInfo was called.\r [error] msOracleSpatialLayerGetShape was called. Using the record = 1.\r [error] msOracleSpatialLayerClose was called. Layer connection: user/pass at SDE\r [error] msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r [error] msOracleSpatialLayerClose. Cleaning Oracle handlers.\r [error] msConnPoolRelease(ferrocarriles,user/pass at SDE,0179A3F0)\r [error] msConnPoolClose(user/pass at SDE,0179A3F0)\r Does anybody know what is happening? Thanxs -- Jos? Ram?n L?pez Tfno: 627 88 88 24 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at OSGIS.NL Wed Nov 29 01:59:56 2006 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 29 Nov 2006 10:59:56 +0100 Subject: WFS Problems Message-ID: Your DATA statement is missing the USING UNIQUE clause. See the Mapserver Oracle Spatial Howto on the website for details. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Jos? Ram?n L?pez Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] WFS Problems Datum: 29/11/06 07:32 > Hello again.Im trying to configure a WFS Server with oraclespatial.This is the definition of the layer:LAYERNAME "ferrocarriles"TYPE LINESTATUS ONDUMP TRUEDEBUG ONCONNECTIONTYPE oraclespatial > CONNECTION "user/pass at SDE"DATA "SHAPE FROM RED_FERROCARRIL USING VERSION 9i"PROJECTION                   "init=EPSG:4326"ENDMETADATA    "wfs_title"                "Ferrocarriles" >     "gml_featureid"         "OBJECTID"    "gml_include_items"     "all"    ENDCLASS        NAME "ferrocarriles"        STYLE                COLOR 200 255 0 >         ENDENDEND  # layerWhen i make a getcapabilities like: > > http://192.168.53.18:81/cgi-bin/mapserver?SERVICE=WFS&VERSION=1.1.1&REQUEST=Getcapabilities > > it shows me > > <FeatureType> > <Name>ferrocarriles</Name> > <Title>ferrocarriles</Title> > <SRS>EPSG:4326</SRS> > <LatLongBoundingBox minx="195210" miny="4.07581e+006" maxx="533545" maxy="4.26175e+006"/> > </FeatureType>But if i make a getfeature:http://192.168.53.18:81/cgi-bin/mapserver?service=WFS&version=1.0.0&request=getfeature&typename=ferrocarriles > <wfs:FeatureCollection xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd >                          http://mapserver.gis.umn.edu/mapserver > http://localhost:81/cgi-bin/mapserver?service=WFS&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=ferrocarriles&OUTPUTFORMAT=XMLSCHEMA">−    <gml:boundedBy> > −    <gml:Box srsName="EPSG:4326">−    <gml:coordinates>195210.088989,4075810.305023 533545.363841,4261747.980489</gml:coordinates></gml:Box></gml:boundedBy> > </wfs:FeatureCollection>With some clients, like udig or gvsig i can connect to wfs, but i cant get info.In apache?s error.log[error] msOracleSpatialLayerOpen called with: SHAPE FROM RED_FERROCARRILr > [error] msOracleSpatialLayerOpen. Shared connection not available. Creating one.r[error] msConnPoolRegister(ferrocarriles,user/pass at SDE,0173D7E0)r[error] msOracleSpatialLayerFreeItemInfo was called.r[error] msOracleSpatialLayerWhichShapes was called.r > [error] msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT rownum, SHAPE FROM RED_FERROCARRIL WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), > MDSYS.SDO_ORDINATE_ARRAY(195210,4075810,533545,4261747) ),'querytype=window') = 'TRUE'r[error] msOracleSpatialLayerFreeItemInfo was called.r[error] msOracleSpatialLayerClose was called. Layer connection: user/pass at SDE > r[error] msOracleSpatialLayerClose. Cleaning layerinfo handlers.r[error] msOracleSpatialLayerClose. Cleaning Oracle handlers.r[error] msConnPoolRelease(ferrocarriles,user/pass at SDE,0173D7E0)r[error] msConnPoolClose( > user/pass at SDE,0173D7E0)r[error] msOracleSpatialLayerOpen called with: SHAPE FROM RED_FERROCARRILr[error] msOracleSpatialLayerOpen. Shared connection not available. Creating one.r[error] msConnPoolRegister(ferrocarriles, > user/pass at SDE,0179A3F0)r[error] msOracleSpatialLayerFreeItemInfo was called.r[error] msOracleSpatialLayerGetItems was called.r[error] msOracleSpatialLayerInitItemInfo was called.r[error] msOracleSpatialLayerGetShape was called. Using the record = 1.r > [error] msOracleSpatialLayerClose was called. Layer connection: user/pass at SDEr[error] msOracleSpatialLayerClose. Cleaning layerinfo handlers.r[error] msOracleSpatialLayerClose. Cleaning Oracle handlers.r > [error] msConnPoolRelease(ferrocarriles,user/pass at SDE,0179A3F0)r[error] msConnPoolClose(user/pass at SDE,0179A3F0)rDoes anybody know what is happening?Thanxs-- Jos? Ram?n L?pez > Tfno: 627 88 88 24 > > From nataprivate at HOTMAIL.COM Wed Nov 29 02:29:45 2006 From: nataprivate at HOTMAIL.COM (=?iso-8859-1?B?TnVyaWEgR29ueuFsZXo=?=) Date: Wed, 29 Nov 2006 11:29:45 +0100 Subject: construction of cartographic symbols Message-ID: Hi all, In http://mapserver.gis.umn.edu/docs/howto/cartosymbols I've seen some examples to show different possibilities of the UMN MapServer for cartographical symbols of the vector based mapobjects. In my application I need historical symbols (for churchs, bishopric, monastery, ...) Do you know any web page or Do you know how to get more cartoraphical symbols of the vector based mapobjects? TIA, Regards. _________________________________________________________________ Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH From flavio at TYDAC.CH Wed Nov 29 03:44:24 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Wed, 29 Nov 2006 12:44:24 +0100 Subject: construction of cartographic symbols In-Reply-To: Message-ID: Hi Nuria there is a collection on http://umn.mapserver.ch. see under menu symbols. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Nuria Gonz?lez To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Wed, 29 Nov 2006 11:29:45 +0100 Subject: [UMN_MAPSERVER-USERS] construction of cartographic symbols > Hi all, > > In http://mapserver.gis.umn.edu/docs/howto/cartosymbols I've seen > some > examples to show different possibilities of the UMN MapServer for > cartographical symbols of the vector based mapobjects. > In my application I need historical symbols (for churchs, bishopric, > monastery, ...) Do you know any web page or Do you know how to get > more > cartoraphical symbols of the vector based mapobjects? > > TIA, > Regards. > > _________________________________________________________________ > Descarga gratis la Barra de Herramientas de MSN > http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3 > A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH From kbehncke at IGF.UNI-OSNABRUECK.DE Wed Nov 29 04:58:37 2006 From: kbehncke at IGF.UNI-OSNABRUECK.DE (Kai Behncke) Date: Wed, 29 Nov 2006 13:58:37 +0100 Subject: construction of cartographic symbols In-Reply-To: Message-ID: On Wed, 29 Nov 2006 11:29:45 +0100, Nuria Gonz?lez wrote > Hi all, > > In http://mapserver.gis.umn.edu/docs/howto/cartosymbols I've seen > some examples to show different possibilities of the UMN MapServer > for cartographical symbols of the vector based mapobjects. In my > application I need historical symbols (for churchs, bishopric, > monastery, ...) Do you know any web page or Do you know how to get > more cartoraphical symbols of the vector based mapobjects? > > TIA, > Regards. > Hi Nuria, a couple of symbols you find in the ttfs at: http://wald.intevation.org/plugins/scmsvn/viewcvs.php/trunk/fonts/?root=freezvaut Maybe some of them are usefull for you. You can have an overview of them if you are using a font editor like "fontforge". Some more at: http://www.mapmedia.de/dokumente/umn_signaturen_howto/index.html (have a look to the bottom of the dokument, there is also a donwload-link). Regards, Kai -- Dipl.-Geogr. Dipl.-Umweltw. Kai Behncke Institut f?r Geoinformatik und Fernerkundung (IGF) Universit?t Osnabr?ck Kolpingstr. 7 49074 Osnabr?ck Raum: 01/308 Tel.: +49 541 969-4450 E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de Web: http://www.igf.uni-osnabrueck.de From richard.greenwood at GMAIL.COM Wed Nov 29 05:10:45 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 29 Nov 2006 06:10:45 -0700 Subject: postgis with itemnquery Message-ID: My query arguments seem to be getting cast to numeric values when I use postgis (but not when I use shape files). For example: qitem=(mapnum=0009) seems to be interpreted as mapnum=9 I have tried escaping the value with no success. The "mapnum" column is a character field. So my questions: 1. Does anyone have suggestions for escaping the value, or constructing the query differently? 2. How can I log the actual query that is constructed and passed to postgresql? 3. What .c file is used to process itemnquery for postgis? Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From woodbri at SWOODBRIDGE.COM Wed Nov 29 06:23:19 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 29 Nov 2006 09:23:19 -0500 Subject: postgis with itemnquery In-Reply-To: Message-ID: I assume you already tried: (mapnum='0009') (mapnum=\'0009\') -Steve W Richard Greenwood wrote: > My query arguments seem to be getting cast to numeric values when I > use postgis (but not when I use shape files). For example: > qitem=(mapnum=0009) > seems to be interpreted as > mapnum=9 > I have tried escaping the value with no success. The "mapnum" column > is a character field. > > So my questions: > 1. Does anyone have suggestions for escaping the value, or > constructing the query differently? > 2. How can I log the actual query that is constructed and passed to > postgresql? > 3. What .c file is used to process itemnquery for postgis? > > Thanks, > Rich > From toni at SIGTE.UDG.ES Wed Nov 29 06:37:31 2006 From: toni at SIGTE.UDG.ES (=?ISO-8859-1?Q?toni_hern=E1ndez?=) Date: Wed, 29 Nov 2006 15:37:31 +0100 Subject: Mapserver+PostGIS+Charset encoding problems In-Reply-To: <456BF705.5000203@sigte.udg.es> Message-ID: hi, have you checked fonts are installed on your server? Marc Compte wrote: > Hi, > > Sorry if this has already been dealt with before but I searched the > archives and couldn't find an answer for this case. > > I have a mapserver getting data from a PostGIS database. The database > charset encoding is defined as LATIN1 and the text in the tables > displays all fine and good in the pgAdmin as well as in my browser > when I just get a list of them with php. > > When I set that particular field as a LABEL in the map-file the > resulting map shows the special characters wrong (mostly accents is > what I have to deal with). I guess that'd be normal since I wasn't > specifying any charset encoding yet. So I specified this attribute in > my file ... but now the funny thing comes. > > When I set my layer to use ENCODING 'LATIN1' (same as my db) the map > just shows a different set of strange characters, but still not the > right glyphs to show. > > If I try using UTF-8 in my LABEL then it starts working some of the > accents out but not all of them. Special chars that use the accent ? > appear perfectly (such as ?, ?, ?, ? and ?), and so does the ? on top > of vowels. But the ` accent does not seem to work. > > I have been struggling against this problem for a few days already. > Now I noticed that using the UTF-8 gives me back a set of characters > that ressembles very much that of LATIN2. > > An '?' (E0) in my database produces an 'r' with accent (?r). > An '?' (E8) in my database produces a 'c' with the ^ symbol on top > (and inverted) > ... ? (EC) => 'e' with ^ inverted on top > ... ? (F2) => 'n' with ^ inverted on top > ... ? (F9) => 'u' with a ? on top > > This leaves me very puzzled since I don't think I ever used or made > any reference to Latin2 charset. I am getting very confused about the > whole thing ... I have a db in Latin1, I try to convert it to UTF-8 > and what I get is Latin2 ... does this make sense to anyone? I don't > know what else to try, I made a replica of my table in a UTF-8 db, I > have tried using "options='-c client_encoding=LATIN1'" in my > connection string ... and always end up getting the same thing. > > By the way, using "options='-c client_encoding=LATIN1'" in my > connection string produces exactly the same result as specifying > ENCODING 'UTF-8' in the LABEL of my map file, which seems also a bit > weird. > > Does anyone have any idea on what could I try next or where to look? I > am running out of ideas and I'm very close to go to the database and > strip all the accents out ... > > Thanks, > > Marc Compte > From richard.greenwood at GMAIL.COM Wed Nov 29 07:19:31 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 29 Nov 2006 08:19:31 -0700 Subject: postgis with itemnquery In-Reply-To: <456D97D7.8080103@swoodbridge.com> Message-ID: On 11/29/06, Stephen Woodbridge wrote: > I assume you already tried: > > (mapnum='0009') > (mapnum=\'0009\') Ahhh! I had tried both of those, BUT without the parenthesis. Adding the parenthesis has me back in business. Thank you very much. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From JXA at COWI.DK Wed Nov 29 07:38:36 2006 From: JXA at COWI.DK (Jeppe Lund Andersen) Date: Wed, 29 Nov 2006 16:38:36 +0100 Subject: upgrading WKT error Message-ID: Hello I have upgraded from 4.8.1 to mapserver 4.10 and gotten the files from ms4w_1.6 and using php 4.4.2 on a windows IIS. this is using GDAL 1.3.2 and is installed with GEOS the code I made works fine on 4.8.1 and can show the WKT strings Iam storing in the Database ( only problem is that GDAL is version 1.3.1 and does not support WKT strings over 512). now in the new mapserver 4.10 I get this error msOGRFileNextShape(): Column WKT requested for geometry, but it does not exist I know that the WKT coln exist because it running on exact same code that I do on 4.8.1 and there it works fine. Second error is if I try to use ms_shapeObjFromWkt() $NewShapeFromWkt = ms_shapeObjFromWkt( $wktstreng['wkt'] ); I will get this error GEOSShapeFromWKT(): Error reading WKT geometry "POLYGON ((524401.01456 6256859.53403,524393.08587 6256832.01146,524379.23346 6256832.1026,524389.25823 6256860.90105))" is it because this is build with GEOS or is it because of the changed from mapserver 4.8 to 4.10 ? Med venlig hilsen Jeppe Lund Andersen -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmoen at ND.GOV Wed Nov 29 07:34:32 2006 From: pmoen at ND.GOV (Paul Moen) Date: Wed, 29 Nov 2006 09:34:32 -0600 Subject: Personal geodatabase layer not working. In-Reply-To: <456D9B2B.2060004@sigte.udg.es> Message-ID: I have a dsn named 'thecounty' set up to access a Personal Geodatabase. When I use the following command, ogrinfo Pgeo:thecounty votes I get the following output, INFO: Open of `PGeo:thecounty' using driver `PGeo' successful. Layer name: Votes Geometry: Unknown (any) Feature Count: 3 Extent: (2785689.942372, 524554.643027) - (2857978.115425, 559998.112040) Layer SRS WKT: PROJCS["NAD_1983_StatePlane_North_Dakota_South_FIPS_3302_Feet", GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic_2SP"], PARAMETER["False_Easting",1968500.0], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-100.5], PARAMETER["Standard_Parallel_1",46.18333333333333], PARAMETER["Standard_Parallel_2",47.48333333333333], PARAMETER["Latitude_Of_Origin",45.66666666666666], UNIT["Foot_US",0.3048006096012192]] OBJECTID: Integer (11.0) ADDRESS: String (255.0) PRECINCT: String (255.0) PARCEL: String (255.0) CITYNAME: String (255.0) POLL_LOCAT: String (255.0) OGRFeature(Votes):1 OBJECTID (Integer) = 1 ADDRESS (String) = N/A PRECINCT (String) = 09-20-02 & 09-20-03 & 09-20-04 PARCEL (String) = 26000001343010 CITYNAME (String) = ARTHUR POLL_LOCAT (String) = Northern Cass School District OGRFeature(Votes):2 OBJECTID (Integer) = 2 ADDRESS (String) = 550 MAIN ST PRECINCT (String) = 09-22-02 PARCEL (String) = 08010011629000 CITYNAME (String) = ARTHUR POLL_LOCAT (String) = Arthur Community Hall OGRFeature(Votes):3 OBJECTID (Integer) = 3 ADDRESS (String) = 17150 25TH ST SE PRECINCT (String) = 09-22-06 PARCEL (String) = 09020011904000 CITYNAME (String) = ARGUSVILLE POLL_LOCAT (String) = Argusville Fire Hall Which leads me to believe that things are working properly. But, when I add the following layer to my mapfile, LAYER NAME votes TYPE POINT GROUP "TEST" CONNECTIONTYPE ogr CONNECTION "PGeo:thecounty" DATA "Votes" STATUS ON CLASS NAME "votes" STYLE COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END END I get no errors, but nothing is displayed on my map. The projection of my map is the same as the Projection in the personal geodatabase. Anyone have any ideas? Thank you, Paul From warmerdam at POBOX.COM Wed Nov 29 08:24:10 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 29 Nov 2006 11:24:10 -0500 Subject: Personal geodatabase layer not working. In-Reply-To: Message-ID: Paul Moen wrote: > I have a dsn named 'thecounty' set up to access a Personal Geodatabase. > When I use the following command, > ogrinfo Pgeo:thecounty votes > > I get the following output, > > INFO: Open of `PGeo:thecounty' > using driver `PGeo' successful. ... > OGRFeature(Votes):3 > OBJECTID (Integer) = 3 > ADDRESS (String) = 17150 25TH ST SE > PRECINCT (String) = 09-22-06 > PARCEL (String) = 09020011904000 > CITYNAME (String) = ARGUSVILLE > POLL_LOCAT (String) = Argusville Fire Hall > > Which leads me to believe that things are working properly. But, when I add > the following layer to my mapfile, Paul, If things were working properly the above would include a geometry in each feature. If you can provide me with the file in question, I'd be interested in looking into what is going wrong. 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 | President OSGeo, http://osgeo.org From woklist at KYNGCHAOS.COM Wed Nov 29 08:12:19 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Wed, 29 Nov 2006 10:12:19 -0600 Subject: Personal geodatabase layer not working. In-Reply-To: Message-ID: On Nov 29, 2006, at 9:34 AM, Paul Moen wrote: > I have a dsn named 'thecounty' set up to access a Personal > Geodatabase. > When I use the following command, > ogrinfo Pgeo:thecounty votes > > I get the following output, > > INFO: Open of `PGeo:thecounty' > using driver `PGeo' successful. > ... > I get no errors, but nothing is displayed on my map. The > projection of my > map is the same as the Projection in the personal geodatabase. > > Anyone have any ideas? > Still having problems with this? One question - when you installed that Actual Access driver, are you just using the trial? That only returns the first 3 records in any MDB, and those 3 might not be on your map region. try this: ogrinfo -al Pgeo:thecounty votes That should list the attributes and coordinates data for those first three features. Or the whole file if you bought the driver. ----- William Kyngesburye http://www.kyngchaos.com/ "History is an illusion caused by the passage of time, and time is an illusion caused by the passage of history." - Hitchhiker's Guide to the Galaxy From pmoen at ND.GOV Wed Nov 29 08:27:33 2006 From: pmoen at ND.GOV (Paul Moen) Date: Wed, 29 Nov 2006 10:27:33 -0600 Subject: Personal geodatabase layer not working. In-Reply-To: Message-ID: I created a personal geodatabase with only 3 records in each feature class. One has 3 counties as polygons. The other is a point layer with only three points. Maybe I messed up when I created the geodatabase. On 11/29/06 10:12 AM, "William Kyngesburye" wrote: > On Nov 29, 2006, at 9:34 AM, Paul Moen wrote: > >> I have a dsn named 'thecounty' set up to access a Personal >> Geodatabase. >> When I use the following command, >> ogrinfo Pgeo:thecounty votes >> >> I get the following output, >> >> INFO: Open of `PGeo:thecounty' >> using driver `PGeo' successful. >> > ... > >> I get no errors, but nothing is displayed on my map. The >> projection of my >> map is the same as the Projection in the personal geodatabase. >> >> Anyone have any ideas? >> > Still having problems with this? > > One question - when you installed that Actual Access driver, are you > just using the trial? That only returns the first 3 records in any > MDB, and those 3 might not be on your map region. I am using the trial. I was hoping to make sure it works before spending the money. > > try this: > > ogrinfo -al Pgeo:thecounty votes Gives this output. Layer name: Votes Geometry: Unknown (any) Feature Count: 3 Extent: (2785689.942372, 524554.643027) - (2857978.115425, 559998.112040) Layer SRS WKT: PROJCS["NAD_1983_StatePlane_North_Dakota_South_FIPS_3302_Feet", GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic_2SP"], PARAMETER["False_Easting",1968500.0], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-100.5], PARAMETER["Standard_Parallel_1",46.18333333333333], PARAMETER["Standard_Parallel_2",47.48333333333333], PARAMETER["Latitude_Of_Origin",45.66666666666666], UNIT["Foot_US",0.3048006096012192]] OBJECTID: Integer (11.0) ADDRESS: String (255.0) PRECINCT: String (255.0) PARCEL: String (255.0) CITYNAME: String (255.0) POLL_LOCAT: String (255.0) OGRFeature(Votes):1 OBJECTID (Integer) = 1 ADDRESS (String) = N/A PRECINCT (String) = 09-20-02 & 09-20-03 & 09-20-04 PARCEL (String) = 26000001343010 CITYNAME (String) = ARTHUR POLL_LOCAT (String) = Northern Cass School District OGRFeature(Votes):2 OBJECTID (Integer) = 2 ADDRESS (String) = 550 MAIN ST PRECINCT (String) = 09-22-02 PARCEL (String) = 08010011629000 CITYNAME (String) = ARTHUR POLL_LOCAT (String) = Arthur Community Hall OGRFeature(Votes):3 OBJECTID (Integer) = 3 ADDRESS (String) = 17150 25TH ST SE PRECINCT (String) = 09-22-06 PARCEL (String) = 09020011904000 CITYNAME (String) = ARGUSVILLE POLL_LOCAT (String) = Argusville Fire Hall > > That should list the attributes and coordinates data for those first > three features. Or the whole file if you bought the driver. > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "History is an illusion caused by the passage of time, and time is an > illusion caused by the passage of history." > > - Hitchhiker's Guide to the Galaxy > > Paul T. Moen pmoen at nd.gov 701-328-2434 701-328-3696 (fax) ND State Water Commission From benjaminsims at YAHOO.COM Wed Nov 29 08:41:42 2006 From: benjaminsims at YAHOO.COM (Ben Sims) Date: Wed, 29 Nov 2006 08:41:42 -0800 Subject: SOLVED: Sudden death of mapserver appliation Message-ID: For the archives, this problem was caused by the PHP version being changed (backwards, by an overzealous package manager). Was able to solve by recompiling Mapserver and PHP Benjamin ----- Original Message ---- From: Ben Sims To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, 23 November, 2006 10:50:03 AM Subject: [UMN_MAPSERVER-USERS] Sudden death of mapserver appliation Hi, I recently developed and deployed my first mapserver application. After finally sorting out the installation process, it went well and seemed stable. However, yesterday the map generation was failing with the following error: Warning: dl(): Unable to load dynamic library '/usr/lib/php4/php_mapscript.so' - /usr/lib/php4/php_mapscript.so: undefined symbol: php_sprintf Fatal error: Call to undefined function: ms_newmapobj() Searching for the above comes up with not much (see for example http://comments.gmane.org/gmane.comp.gis.mapserver.user/18015 - libraries look normal, and nothing has been changed there) The only recent things changed on this server: - the admin making apache config changes. He says that he has removed them and the server is as before - I installed some python libraries. Could this have messed up the libraries linked by mapserver? Could anybody give me any pointers as to the sorts of things that might cause this? Thanks, Benjamin Send instant messages to your online friends http://uk.messenger.yahoo.com Send instant messages to your online friends http://uk.messenger.yahoo.com From warmerdam at POBOX.COM Wed Nov 29 09:05:18 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 29 Nov 2006 12:05:18 -0500 Subject: upgrading WKT error In-Reply-To: Message-ID: Jeppe Lund Andersen wrote: > Hello > > I have upgraded from 4.8.1 to mapserver 4.10 > and gotten the files from ms4w_1.6 > and using php 4.4.2 on a windows IIS. > this is using GDAL 1.3.2 and is installed with GEOS > > the code I made works fine on 4.8.1 and can show the WKT strings Iam > storing in the Database ( only problem is that GDAL is version 1.3.1 and > does not support WKT strings over 512). > > now in the new mapserver 4.10 I get this error > > msOGRFileNextShape(): Column WKT requested for geometry, but it does not > exist > > I know that the WKT coln exist because it running on exact same code > that I do on 4.8.1 and there it works fine. Jeppe, This error message comes from the OGR ODBC driver when it asks the lower level CPL ODBC code for the column name "WKT" and it is not found. This likely means that for some reason the newer ODBC code in gdal/port is not recognising this as a valid or understandable column for some reason. Could you download FWTools and try it to see what an ogrinfo report for the layer shows? > Second error is if I try to use ms_shapeObjFromWkt() > > $NewShapeFromWkt = ms_shapeObjFromWkt( $wktstreng['wkt'] ); > > I will get this error > GEOSShapeFromWKT(): Error reading WKT geometry "POLYGON ((524401.01456 > 6256859.53403,524393.08587 6256832.01146,524379.23346 > 6256832.1026,524389.25823 6256860.90105))" > > is it because this is build with GEOS or is it because of the changed > from mapserver 4.8 to 4.10 ? When built with geos and ogr, mapserver will use the geos wkt translation in preference to the ogr wkt translation. But I'm not sure why this isn't working. The WKT geometry looks valid to me. 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 | President OSGeo, http://osgeo.org From woklist at KYNGCHAOS.COM Wed Nov 29 08:57:45 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Wed, 29 Nov 2006 10:57:45 -0600 Subject: Personal geodatabase layer not working. In-Reply-To: Message-ID: On Nov 29, 2006, at 10:27 AM, Paul Moen wrote: > Gives this output. > ... (I guess the -al option is implied - same output) Looks like Frank already replied and can look into it. Frank, this is the result of my bug report about the PGEO driver: http://bugzilla.remotesensing.org/show_bug.cgi?id=1367 For the PGEO driver in the GDAL Paul has, I simply commented out the MDB Tools loading parts so that he can use a different Access ODBC driver as configured in his odbc.ini. Also, as I've been doing with all my GDAL builds, it uses iODBC instead of UnixODBC. Just so you know. I tried the Actual Access/iODBC combination a while back (Jan I think) and it seemed to work. I don't remember how much I tested it, so I don't know if I got geometry data returned. ----- William Kyngesburye http://www.kyngchaos.com/ "This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?" - The Ruler of the Universe From matt.ganz at GMAIL.COM Wed Nov 29 09:09:55 2006 From: matt.ganz at GMAIL.COM (Matthew Ganz) Date: Wed, 29 Nov 2006 12:09:55 -0500 Subject: DM solutions scale break units Message-ID: hi. not sure if this is the appropriate place to ask this question but i'm wondering if others are using DM solutions as their street-level map provider. if so, can anyone tell me what their scale break values (MIN, MED, MAX) correspond to, i.e. meters per pixel or...? knowing this will help me calibrate my application's scale bar to their scale breaks. thanks. -- matt. -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Wed Nov 29 09:52:42 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 29 Nov 2006 12:52:42 -0500 Subject: Personal geodatabase layer not working. In-Reply-To: <90C4EA65-B099-47F1-AB49-0521D983C770@kyngchaos.com> Message-ID: William Kyngesburye wrote: > On Nov 29, 2006, at 10:27 AM, Paul Moen wrote: > >> Gives this output. >> > ... > > (I guess the -al option is implied - same output) > > Looks like Frank already replied and can look into it. > > Frank, this is the result of my bug report about the PGEO driver: > > http://bugzilla.remotesensing.org/show_bug.cgi?id=1367 > > For the PGEO driver in the GDAL Paul has, I simply commented out the MDB > Tools loading parts so that he can use a different Access ODBC driver as > configured in his odbc.ini. Also, as I've been doing with all my GDAL > builds, it uses iODBC instead of UnixODBC. Just so you know. > > I tried the Actual Access/iODBC combination a while back (Jan I think) > and it seemed to work. I don't remember how much I tested it, so I > don't know if I got geometry data returned. William, It seems I missed the part in this discussion where it is ocurring on MacOS X! Well, the file works fine for me on windows, so the issue might be something with the odbc setup. 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 | President OSGeo, http://osgeo.org From epk.lists at GMAIL.COM Wed Nov 29 09:18:52 2006 From: epk.lists at GMAIL.COM (Eduardo Patto Kanegae) Date: Wed, 29 Nov 2006 15:18:52 -0200 Subject: MapServer supports MS-SQL 2005 {was:: Re: [UMN_MAPSERVER-USERS] Spatial Extensions for SQL Server 2005} Message-ID: Piero, In fact we already can say that MapServer already supports MS-SQL 2005 with this spatial extension using OGR ODBC driver. Here's what I did using this with MapServer: 1. install MS SQL 2005 Express ( good! it's freeware, but it's not like the old MSDE. In this case, it supports many user connections but your database file can't be greater than 4Gb. But you can split your database in several 4Gb files) 2. create an empty database and deploy the spatial extension from Codeplex ( http://www.codeplex.com/Wiki/View.aspx?ProjectName=MsSqlSpatial ) 3. create a polygon table using traditional CREATE TABLE and then using "ST.AddGeometryColumn" to create a "the_geom" field inside this table 4. fill the table data. How? Just grab a .sql file generated with "shp2pgsql -w" ( that tool from PostGIS) and make some little changes( e.g.: PostGIS says "GeomFromText" , but MS-SQLSpatial says "ST.GeomFromText" ) 5. now, create a DSN ODBC connection using the "SQL Native Client" provider for SQL2005 6. create, in a MapServer mapfile, a polygon layer pointing to a OGR Virtual file containing: ODBC:myuser/mypasswd at MyODBCSQL05DSN MyPolygonTable 7. and, bingo! got a polygon layer rendered with MapServer without problems. best regards, Eduardo Patto Kanegae http://www.webmapit.com.br On 11/17/06, piero cavalieri wrote: > Only to notice this project: > http://www.codeplex.com/Wiki/View.aspx?ProjectName=MsSqlSpatial > Could be great to have Mapserver support it, in the future. > > Cheers > Piero > -- From pmoen at ND.GOV Wed Nov 29 09:25:15 2006 From: pmoen at ND.GOV (Paul Moen) Date: Wed, 29 Nov 2006 11:25:15 -0600 Subject: Personal geodatabase layer not working. In-Reply-To: <90C4EA65-B099-47F1-AB49-0521D983C770@kyngchaos.com> Message-ID: So the consensus is that the odbc driver is the problem. Sorry for the post in the wrong place, I thought I was doing something wrong with my mapfile. On 11/29/06 10:57 AM, "William Kyngesburye" wrote: > On Nov 29, 2006, at 10:27 AM, Paul Moen wrote: > >> Gives this output. >> > ... > > (I guess the -al option is implied - same output) > > Looks like Frank already replied and can look into it. > > Frank, this is the result of my bug report about the PGEO driver: > > http://bugzilla.remotesensing.org/show_bug.cgi?id=1367 > > For the PGEO driver in the GDAL Paul has, I simply commented out the > MDB Tools loading parts so that he can use a different Access ODBC > driver as configured in his odbc.ini. Also, as I've been doing with > all my GDAL builds, it uses iODBC instead of UnixODBC. Just so you > know. > > I tried the Actual Access/iODBC combination a while back (Jan I > think) and it seemed to work. I don't remember how much I tested it, > so I don't know if I got geometry data returned. > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "This is a question about the past, is it? ... How can I tell that > the past isn't a fiction designed to account for the discrepancy > between my immediate physical sensations and my state of mind?" > > - The Ruler of the Universe > > Paul From humberto at PASTORALDACRIANCA.ORG.BR Wed Nov 29 09:29:00 2006 From: humberto at PASTORALDACRIANCA.ORG.BR (Humberto Cereser Ibanez) Date: Wed, 29 Nov 2006 15:29:00 -0200 Subject: Mapserver+PostGIS+Charset encoding problems In-Reply-To: <456D9B2B.2060004@sigte.udg.es> Message-ID: Hi Marc, have you try access it by other browser? I have the similar problem with different versions/configurations of browsers. Humberto Cereser Ibanez De: toni hern?ndez Data: Wed, 29 Nov 2006 15:37:31 +0100 Para: Marc Compte Assunto: Re: [UMN_MAPSERVER-USERS] Mapserver+PostGIS+Charset encoding problems hi, have you checked fonts are installed on your server? Marc Compte wrote: > Hi, > > Sorry if this has already been dealt with before but I searched the > archives and couldn't find an answer for this case. > > I have a mapserver getting data from a PostGIS database. The database > charset encoding is defined as LATIN1 and the text in the tables > displays all fine and good in the pgAdmin as well as in my browser > when I just get a list of them with php. > > When I set that particular field as a LABEL in the map-file the > resulting map shows the special characters wrong (mostly accents is > what I have to deal with). I guess that'd be normal since I wasn't > specifying any charset encoding yet. So I specified this attribute in > my file ... but now the funny thing comes. > > When I set my layer to use ENCODING 'LATIN1' (same as my db) the map > just shows a different set of strange characters, but still not the > right glyphs to show. > > If I try using UTF-8 in my LABEL then it starts working some of the > accents out but not all of them. Special chars that use the accent ? > appear perfectly (such as ?, ?, ?, ? and ?), and so does the ? on top > of vowels. But the ` accent does not seem to work. > > I have been struggling against this problem for a few days already. > Now I noticed that using the UTF-8 gives me back a set of characters > that ressembles very much that of LATIN2. > > An '?' (E0) in my database produces an 'r' with accent (?r). > An '?' (E8) in my database produces a 'c' with the ^ symbol on top > (and inverted) > ... ? (EC) => 'e' with ^ inverted on top > ... ? (F2) => 'n' with ^ inverted on top > ... ? (F9) => 'u' with a ? on top > > This leaves me very puzzled since I don't think I ever used or made > any reference to Latin2 charset. I am getting very confused about the > whole thing ... I have a db in Latin1, I try to convert it to UTF-8 > and what I get is Latin2 ... does this make sense to anyone? I don't > know what else to try, I made a replica of my table in a UTF-8 db, I > have tried using "options='-c client_encoding=LATIN1'" in my > connection string ... and always end up getting the same thing. > > By the way, using "options='-c client_encoding=LATIN1'" in my > connection string produces exactly the same result as specifying > ENCODING 'UTF-8' in the LABEL of my map file, which seems also a bit > weird. > > Does anyone have any idea on what could I try next or where to look? I > am running out of ideas and I'm very close to go to the database and > strip all the accents out ... > > Thanks, > > Marc Compte > From gdavis at REFRACTIONS.NET Wed Nov 29 09:47:09 2006 From: gdavis at REFRACTIONS.NET (Graham Davis) Date: Wed, 29 Nov 2006 09:47:09 -0800 Subject: constant for labelitem In-Reply-To: <456DC8EA.2070206@pobox.com> Message-ID: I'm drawing a set of lines for a layer using geometries from a postgis database. However I want to label the lines with a constant value that isn't a column in the database. This is my DATA query: DATA "geom FROM (SELECT asset.id as assetid, geom from asset_position_lines LEFT JOIN asset ON asset_position_lines.assetid = asset.id WHERE asset.id = 606 AND ( cube(cube(cube(EXTRACT(EPOCH FROM TIMESTAMP WITH TIME ZONE '2006-09-27T00:00:00-07:00'), EXTRACT(EPOCH FROM TIMESTAMP WITH TIME ZONE '2006-09-28T23:59:00-07:00')), xmin(!BOX!), xmax(!BOX!)), ymin(!BOX!), ymax(!BOX!)) @ cubespacetime OR cube(cube(cube(EXTRACT(EPOCH FROM TIMESTAMP WITH TIME ZONE '2006-09-27T00:00:00-07:00'), EXTRACT(EPOCH FROM TIMESTAMP WITH TIME ZONE '2006-09-28T23:59:00-07:00')), xmin(!BOX!), xmax(!BOX!)), ymin(!BOX!), ymax(!BOX!)) && cubespacetime ) ) AS new_table USING UNIQUE assetId USING SRID=4326" Ignore all the CUBE stuff in the WHERE clause, the important part is the SELECT columns. I've tried adding a new column using SQL (which works when I run the query directly in postgis) like this: DATA "geom FROM (SELECT asset.id as assetid, 'test, test' as name, geom from asset_position_lines LEFT JOIN asset ON asset_position_lines.assetid = asset.id WHERE asset.id = 606 AND ( cube(cube(cube(EXTRACT(EPOCH FROM TIMESTAMP WITH TIME ZONE '2006-09-27T00:00:00-07:00'), EXTRACT(EPOCH FROM TIMESTAMP WITH TIME ZONE '2006-09-28T23:59:00-07:00')), xmin(!BOX!), xmax(!BOX!)), ymin(!BOX!), ymax(!BOX!)) @ cubespacetime OR cube(cube(cube(EXTRACT(EPOCH FROM TIMESTAMP WITH TIME ZONE '2006-09-27T00:00:00-07:00'), EXTRACT(EPOCH FROM TIMESTAMP WITH TIME ZONE '2006-09-28T23:59:00-07:00')), xmin(!BOX!), xmax(!BOX!)), ymin(!BOX!), ymax(!BOX!)) && cubespacetime ) ) AS new_table USING UNIQUE assetId USING SRID=4326" 'test, test' is a name I'm using for testing, which I want applied as a label to the lines. I apply a LABELITEM of "name" in the mapfile. This makes mapserver return a premature end of script error. However, if I put that constant string inside some SQL function like UPPER() it works fine: DATA "geom FROM (SELECT asset.id as assetid, UPPER('test, test') as name, geom from asset_position_lines LEFT JOIN asset ON asset_position_lines.assetid = asset.id WHERE asset.id = 606 AND ( cube(cube(cube(EXTRACT(EPOCH FROM TIMESTAMP WITH TIME ZONE '2006-09-27T00:00:00-07:00'), EXTRACT(EPOCH FROM TIMESTAMP WITH TIME ZONE '2006-09-28T23:59:00-07:00')), xmin(!BOX!), xmax(!BOX!)), ymin(!BOX!), ymax(!BOX!)) @ cubespacetime OR cube(cube(cube(EXTRACT(EPOCH FROM TIMESTAMP WITH TIME ZONE '2006-09-27T00:00:00-07:00'), EXTRACT(EPOCH FROM TIMESTAMP WITH TIME ZONE '2006-09-28T23:59:00-07:00')), xmin(!BOX!), xmax(!BOX!)), ymin(!BOX!), ymax(!BOX!)) && cubespacetime ) ) AS new_table USING UNIQUE assetId USING SRID=4326" How come I have to use a function for this to work? Is there another way I could do this without using a function here? Btw, I'm using mapserver 4.10.0, thanks. -- Graham Davis Refractions Research Inc. gdavis at refractions.net From f.glandorf at GMX.DE Wed Nov 29 11:00:08 2006 From: f.glandorf at GMX.DE (Gloem) Date: Wed, 29 Nov 2006 11:00:08 -0800 Subject: Problem with layer Message-ID: Hi, I have a problem with a layer in my mapfile. I want the mapserver to draw a symbol depending on the value in the database. the table looks like this: the_center(geometry), fahrten(varchar(6)) the layer in the mapfile looks like this(in the simple form): LAYER NAME "Fahrten" TYPE POINT MAXSCALE 20000000 MINSCALE 1 TOLERANCE 5 TOLERANCEUNITS PIXELS STATUS On CONNECTIONTYPE postgis CONNECTION "user=postgres password=admin dbname=geodaten host=localhost port=5432" DATA "the_center from post_code_areas" CLASS STYLE SYMBOL "circle" SIZE 10 COLOR 0 0 255 END END METADATA "WMS_TITLE" "Fahrten" "WMS_SRS" "epsg:4326" "WMS_EXTENT" "5.5 47.0 15.2 55.5" "DESCRIPTION" "Angebotene Fahrten" END END The other layer in the mapfile is drawn correct -- View this message in context: http://www.nabble.com/Problem-with-layer-tf2727091.html#a7605644 Sent from the Mapserver - User mailing list archive at Nabble.com. From dur.sri at GMAIL.COM Wed Nov 29 11:18:58 2006 From: dur.sri at GMAIL.COM (Sridur) Date: Wed, 29 Nov 2006 11:18:58 -0800 Subject: SOS GetObservation Message-ID: Hi, I am able to get the GetCapabilties and DescribeSensor requests working correctly (http://mapserver.gis.umn.edu/docs/howto/sos_server/) However, I am not sure how to configure SOS mapfile for GetObservation. I would like to put all my observation values in a database (PostgreSQL) and then be able to retrieve the observation values from it. Can anyone please tell me what all the tables I need to create in the database and also how to configure Mapserver (/mapfile) to retreive the data (observation values) from a request like this: http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/sos/sos_test.map&Request=GetObservation&service=SOS&Offering=WQ1289&observedproperty=WaterQuality&version=0.0.31 Thank you. Regards, Sridur -- View this message in context: http://www.nabble.com/SOS-GetObservation-tf2727213.html#a7605995 Sent from the Mapserver - User mailing list archive at Nabble.com. From A.Versteegen at BOM.GOV.AU Wed Nov 29 13:27:14 2006 From: A.Versteegen at BOM.GOV.AU (Adrian Versteegen) Date: Thu, 30 Nov 2006 08:27:14 +1100 Subject: Converting values returned my mapserver In-Reply-To: <456CD1ED0200008F0000464B@co5.dnr.state.mn.us> Message-ID: Thanks Steve, I will add a column when building the shapefile. Cheers Adrian On Wed, 2006-11-29 at 00:18 -0600, Steve Lime wrote: > I'm sorry but what you're trying to do isn't possible with MapServer as > it sits. You > have to pre-compute the km/hr values in another column. > > Steve > > >>> Adrian Versteegen 11/28/06 5:08 PM >>> > Apologies if this is a duplicate message, the original seemed to be > rejected by the listserv server.. > > We have weather observations with the wind speed values in the shapefile > in knots. Our customer wants the values displayed in km/h. > > I am using a cgi/wms arrangement and have tried various combinations of > LABELITEM, EXPRESSION and TEXT to multiply the [Max_Wnd_Gus] attribute > by the conversion constant, so the following options in the map file > tried individually or collectively give the results shown: > > LAYER > LABELITEM ("Max_Wnd_Gus" * 1.85) - gives an error, > ... > > CLASS > EXPRESSION ([Max_Wnd_Gus] * 1.85) - returns true, the values are > displayed, > TEXT ('[Max_Wnd_Gus] * 1.85' km/h) - displays ' * 1.85' km/h > > Any ideas? > > Thanks, > Adrian From Tom.Kralidis at EC.GC.CA Wed Nov 29 13:46:12 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 29 Nov 2006 16:46:12 -0500 Subject: SOS GetObservation Message-ID: > Hi, > > I am able to get the GetCapabilties and DescribeSensor > requests working correctly > (http://mapserver.gis.umn.edu/docs/howto/sos_server/) > However, I am not sure how to configure SOS mapfile for > GetObservation. I would like to put all my observation values > in a database (PostgreSQL) and then be able to retrieve the > observation values from it. Can anyone please tell me what > all the tables I need to create in the database and also how > to configure Mapserver (/mapfile) to retreive the data > (observation values) from a request like this: > > http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/sos/sos_te st.map&Request=GetObservation&service=SOS&Offering=WQ1289> &observedproperty=WaterQuality&version=0.0.31 In your request URL: I see you have an offering of WQ1289. Did you define this as your offering_id in your LAYER/METADATA? If you can post a LAYER definition within your mapfile, that would be helpful. ..Tom From matt.ganz at GMAIL.COM Wed Nov 29 14:08:49 2006 From: matt.ganz at GMAIL.COM (Matthew Ganz) Date: Wed, 29 Nov 2006 17:08:49 -0500 Subject: minscale/maxscale values Message-ID: hi. this is a rephrase of a question i posted earlier today. sorry, bit of a newbie here. i have a scale bar in my application where each scale level is defined in meters per pixel. i'd like to control what layers show up at each scale level and therefore i need to calibrate my scalebar units with those of the mapfile. so my question is what units do the minscale/maxscale values in the mapfile represent? thanks for any helpful tips. matt. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dur.sri at GMAIL.COM Wed Nov 29 14:40:41 2006 From: dur.sri at GMAIL.COM (Sridur) Date: Wed, 29 Nov 2006 14:40:41 -0800 Subject: SOS GetObservation In-Reply-To: <2576812186CDD411BF1500508B6DCE95103E2E5F@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Hi Tom, Thank you for the reply. Yes, WQ1289 was defined as the sos_offering_id. Below are the contents of my sos_test.map file (example from http://mapserver.gis.umn.edu/docs/howto/sos_server/ ) Regards, Sridur ------------------------------------------------------------------------------------------------------------------------------------------------------- NAME SOS_DEMO STATUS ON SIZE 300 300 EXTENT -66 44 -62 45 UNITS METERS SHAPEPATH "./data/" IMAGECOLOR 255 255 0 SYMBOLSET "./etc/symbols.sym" IMAGETYPE png WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "sos_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/sos/sos_test.map" ## REQUIRED "sos_title" "My SOS Demo Server" ## Recommended "sos_srs" "epsg:4326" ## Recommended END END PROJECTION "init=epsg:4326" END LAYER NAME test_sos_layer METADATA "sos_procedure" "NS01EE0014" ## REQUIRED "sos_offering_id" "WQ1289" ## REQUIRED "sos_observedproperty_id" "WaterQuality" ## REQUIRED "sos_describesensor_url" "http://some/url/NS01EE0014.xml" ## REQUIRED END TYPE POINT STATUS ON DATA sos_test PROJECTION "init=epsg:4326" END CLASS NAME "water quality" STYLE COLOR 255 0 0 SYMBOL "circle" SIZE 8 END END END END #map ----------------------------------------------------------------------------------------- Kralidis,Tom [Burlington] wrote: > >> Hi, >> >> I am able to get the GetCapabilties and DescribeSensor >> requests working correctly >> (http://mapserver.gis.umn.edu/docs/howto/sos_server/) >> However, I am not sure how to configure SOS mapfile for >> GetObservation. I would like to put all my observation values >> in a database (PostgreSQL) and then be able to retrieve the >> observation values from it. Can anyone please tell me what >> all the tables I need to create in the database and also how >> to configure Mapserver (/mapfile) to retreive the data >> (observation values) from a request like this: >> >> http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/sos/sos_te > st.map&Request=GetObservation&service=SOS&Offering=WQ1289> > &observedproperty=WaterQuality&version=0.0.31 > > In your request URL: I see you have an offering of WQ1289. Did you > define this as your offering_id in your LAYER/METADATA? > > If you can post a LAYER definition within your mapfile, that would be > helpful. > > ..Tom > > -- View this message in context: http://www.nabble.com/SOS-GetObservation-tf2727213.html#a7609616 Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at DNR.STATE.MN.US Wed Nov 29 14:40:37 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 29 Nov 2006 16:40:37 -0600 Subject: minscale/maxscale values In-Reply-To: <01cc01c71402$f4351c80$ac0b1f0a@Jupiter> Message-ID: Matt: They are unitless values and they represent the denominator portion of a representative fraction. So: MAXSCALE 24000 refers to a scale 1:24,000 and so on. It's a tad backwards (e.g. 100000 > 24000, but 1/100,000 < 1/24,000) as I'm reminded every once and a while, but you get used to it quickly. Steve >>> Matthew Ganz 11/29/2006 4:08:49 PM >>> hi. this is a rephrase of a question i posted earlier today. sorry, bit of a newbie here. i have a scale bar in my application where each scale level is defined in meters per pixel. i'd like to control what layers show up at each scale level and therefore i need to calibrate my scalebar units with those of the mapfile. so my question is what units do the minscale/maxscale values in the mapfile represent? thanks for any helpful tips. matt. From ed at TOPOZONE.COM Wed Nov 29 18:05:46 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 29 Nov 2006 21:05:46 -0500 Subject: minscale/maxscale values Message-ID: Matt - I will add to Steve's accurate information that the resulting scale ratio is the scale ratio that would be produced if the output raster image were printed or displayed at 72 dots per inch (DPI). The RESOLUTION statement in the map file can be used to change this number from 72 to another value, but that only provides computational convenience. If you have a MAXSCALE 24000 statement, that means that at 72 DPI one inch on the map equals 24,000 inches on the ground. Since that's 24,000 inches over 72 dots (pixels), that's a resolution of 24,000/72 = 333.333 inches per pixel. At 39.37 inches per meter, that is the same as 8.467 meters per pixel. Using the default 72 DPI resolution, a MAXSCALE of 2834.64 equals exactly one meter per pixel. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime Sent: Wednesday, November 29, 2006 5:41 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] minscale/maxscale values Matt: They are unitless values and they represent the denominator portion of a representative fraction. So: MAXSCALE 24000 refers to a scale 1:24,000 and so on. It's a tad backwards (e.g. 100000 > 24000, but 1/100,000 < 1/24,000) as I'm reminded every once and a while, but you get used to it quickly. Steve >>> Matthew Ganz 11/29/2006 4:08:49 PM >>> hi. this is a rephrase of a question i posted earlier today. sorry, bit of a newbie here. i have a scale bar in my application where each scale level is defined in meters per pixel. i'd like to control what layers show up at each scale level and therefore i need to calibrate my scalebar units with those of the mapfile. so my question is what units do the minscale/maxscale values in the mapfile represent? thanks for any helpful tips. matt. From fend0009 at UMN.EDU Wed Nov 29 21:22:24 2006 From: fend0009 at UMN.EDU (fend0009) Date: Wed, 29 Nov 2006 23:22:24 CST Subject: Question on Javascript Pan not Working Message-ID: Hi all: I encountered a problem in constructing my interactive map. The navigation (pan) buttons do not work. The JavaScript Console returned the following error message Error: document.mapserv.submit is not a function Source File: http://maps.socsci.umn.edu/cgi-bin/mapserv?map=/home/fend0009/public_html/noise.map Line: 81 Could someone please give me some guidance? I appreciate your time. Regards, Jessica Fendos From Jacob.Delfos at MAUNSELL.COM Wed Nov 29 23:24:36 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Thu, 30 Nov 2006 15:24:36 +0800 Subject: Question on Javascript Pan not Working Message-ID: Hi Jessica, Given the syntax, I suspect your statement might need to be: document.forms['mapserv'].submit(); But this appears to happen in your mapfile... Which is weird, because your browser isn't supposed to be loading your mapfile, but your template. Can you please check whether you are loading a .html template? And what is your piece of code trying to do? Maybe send a larger piece of code. Regards, Jacob > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of fend0009 > Sent: 30 November 2006 13:22 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Question on Javascript Pan not Working > > Hi all: > > I encountered a problem in constructing my interactive map. > The navigation > (pan) buttons do not work. > > The JavaScript Console returned the following error message > > Error: document.mapserv.submit is not a function > Source File: > http://maps.socsci.umn.edu/cgi-bin/mapserv?map=/home/fend0009/ > public_html/noise.map > Line: 81 > > Could someone please give me some guidance? I appreciate your time. > > Regards, > Jessica Fendos > From stephane.colzy at MAGELLIUM.FR Thu Nov 30 00:50:15 2006 From: stephane.colzy at MAGELLIUM.FR (=?iso-8859-1?Q?St=E9phane_COLZY?=) Date: Thu, 30 Nov 2006 09:50:15 +0100 Subject: TR: orthographic projection Message-ID: Hi there, Take a look at this : See the straight line at the pole ? Is this a known issue with Orthographic projection? Here are the projection?s parameters: +proj=ortho +ellps=WGS84 +lat_0=30.000 +lon_0=-45.0000 +x_0=0.00 +y_0=0.00 stephane -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 45409 bytes Desc: not available URL: From Karin_Kampitsch at GMX.AT Thu Nov 30 01:08:15 2006 From: Karin_Kampitsch at GMX.AT (Karin Kampitsch) Date: Thu, 30 Nov 2006 10:08:15 +0100 Subject: Problems with Displaying a Map (PHPMapScript) Message-ID: Dear List, I want to display my mapfile "wkwms.map" in the internet explorer, but unfortunately there exists some problems. I use Apache Version 2.2.3 , MapServer 4.10.0 and PHP 5.2.0. The Code PHP/Mapscript of "wanderkarte.php" looks like this. selectOutputFormat("png"); $image=$map->draw(); $image_url=$image->saveWebImage(); ?> Example 1: Displaying a map > When i want to call the url: http://localhost/maps/wanderkarte.php, the following error message appears. selectOutputFormat("png"); $image=$map->draw(); $image_url=$image->saveWebImage(); ?> > In the the error.log of Apache: the following message appears: "The given path misformatted or contained invalid characters: Cannot map GET /maps/ AllowOverride None Options All Order allow,deny Allow from all I really do not know, what path could be missing or is incorrect! I also tried to put other Alias, but this also did not work. First I did not had "$map->selectOutputFormat("png");" in the php-file. The error message before adding the selectOutputFormat was: $image=$map->draw(); $image_url=$image->saveWebImage(); ?> > Has anybody an idea? This would be very nice! Regards, karin -- "Ein Herz f?r Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de Unser Dankesch?n: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht! From warmerdam at POBOX.COM Thu Nov 30 06:26:02 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 30 Nov 2006 09:26:02 -0500 Subject: TR: orthographic projection In-Reply-To: <001e01c7145c$8e715fd0$8001a8c0@PC128> Message-ID: St?phane COLZY wrote: > Hi there, > > Take a look at this : > > See the straight line at the pole ? > > Is this a known issue with Orthographic projection? St?phane, This is a known issue. The current logic to handle polygons and lines that go over the horizon is described in: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-5/ This basically tracks where the features goes over the horizon and where it comes back, and draws a straight line between them. I have had the intention to implement a means to track along the horizon but it is a bit involved. In the meantime this is a known problem - not just with orthographic, but with any projection with an effective horizon - a boundary past which the projection fails. 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 | President OSGeo, http://osgeo.org From Debbie.Pagurek at EC.GC.CA Thu Nov 30 06:35:04 2006 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Thu, 30 Nov 2006 09:35:04 -0500 Subject: Problems with Displaying a Map (PHPMapScript) Message-ID: I think the IMAGEURL "C:/ms4w/tmp/ms_tmp/" in your mapfile is incorrect. It should probably read: IMAGEURL "/ms_tmp/". This is the URL that you would use to find the image, not the file location. D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Karin Kampitsch Sent: Thursday, November 30, 2006 4:08 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problems with Displaying a Map (PHPMapScript) Dear List, I want to display my mapfile "wkwms.map" in the internet explorer, but unfortunately there exists some problems. I use Apache Version 2.2.3 , MapServer 4.10.0 and PHP 5.2.0. The Code PHP/Mapscript of "wanderkarte.php" looks like this. selectOutputFormat("png"); $image=$map->draw(); $image_url=$image->saveWebImage(); ?> Example 1: Displaying a map > When i want to call the url: http://localhost/maps/wanderkarte.php, the following error message appears. selectOutputFormat("png"); $image=$map->draw(); $image_url=$image->saveWebImage(); ?> > In the the error.log of Apache: the following message appears: "The given path misformatted or contained invalid characters: Cannot map GET /maps/ AllowOverride None Options All Order allow,deny Allow from all I really do not know, what path could be missing or is incorrect! I also tried to put other Alias, but this also did not work. First I did not had "$map->selectOutputFormat("png");" in the php-file. The error message before adding the selectOutputFormat was: $image=$map->draw(); $image_url=$image->saveWebImage(); ?> > Has anybody an idea? This would be very nice! Regards, karin -- "Ein Herz f?r Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de Unser Dankesch?n: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht! From ernesvega at GMAIL.COM Thu Nov 30 07:58:32 2006 From: ernesvega at GMAIL.COM (Ernesto Vega) Date: Thu, 30 Nov 2006 12:58:32 -0300 Subject: SVG not working Message-ID: Hi, I have a little problem with SVG and I'm not sure how to solve it. I have a map, where if I set IMAGETYPE as PNG it renders a correct image if I execute shp2img to debug it. When I set IMAGETYPE to SVG and run shp2img again, it fails, giving me this message on the map log file: " msDrawMap(): Image handling error. Unable to initialize image.
msPrepareImage(): GD library error. Unable to initialize image.
msImageCreateSVG(): Unable to access file. Failed to open temporary svg file.
" Any ideas ??? Mapserver is built with the follwin options: MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Hope you can help on this, Ernesto From Tom.Kralidis at EC.GC.CA Thu Nov 30 08:09:34 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 30 Nov 2006 11:09:34 -0500 Subject: *****SPAM***** Re: [UMN_MAPSERVER-USERS] SOS GetObservation Message-ID: That's weird. If possible, can you send me (offlist) your data and mapfile as a test case I can try to debug? ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Sridur > Sent: 29 November, 2006 5:41 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: *****SPAM***** Re: [UMN_MAPSERVER-USERS] SOS GetObservation > > Hi Tom, > > Thank you for the reply. Yes, WQ1289 was defined as the > sos_offering_id. > Below are the contents of my sos_test.map file (example from > http://mapserver.gis.umn.edu/docs/howto/sos_server/ ) > > Regards, > Sridur > > -------------------------------------------------------------- > -------------------------------------------------------------- > --------------------------- > NAME SOS_DEMO > STATUS ON > SIZE 300 300 > EXTENT -66 44 -62 45 > UNITS METERS > SHAPEPATH "./data/" > IMAGECOLOR 255 255 0 > SYMBOLSET "./etc/symbols.sym" > > IMAGETYPE png > > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > > METADATA > "sos_onlineresource" > "http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/sos/sos_t > est.map" ## REQUIRED > "sos_title" "My SOS Demo Server" ## Recommended > "sos_srs" "epsg:4326" ## Recommended > END > END > > PROJECTION > "init=epsg:4326" > END > > LAYER > NAME test_sos_layer > METADATA > "sos_procedure" "NS01EE0014" ## REQUIRED > "sos_offering_id" "WQ1289" ## REQUIRED > "sos_observedproperty_id" "WaterQuality" ## REQUIRED > "sos_describesensor_url" "http://some/url/NS01EE0014.xml" > ## REQUIRED > END > TYPE POINT > STATUS ON > DATA sos_test > > PROJECTION > "init=epsg:4326" > END > > CLASS > NAME "water quality" > STYLE > COLOR 255 0 0 > SYMBOL "circle" > SIZE 8 > END > END > END > > END #map > -------------------------------------------------------------- > --------------------------- > > > > Kralidis,Tom [Burlington] wrote: > > > >> Hi, > >> > >> I am able to get the GetCapabilties and DescribeSensor requests > >> working correctly > >> (http://mapserver.gis.umn.edu/docs/howto/sos_server/) > >> However, I am not sure how to configure SOS mapfile for > >> GetObservation. I would like to put all my observation values in a > >> database (PostgreSQL) and then be able to retrieve the observation > >> values from it. Can anyone please tell me what all the > tables I need > >> to create in the database and also how to configure Mapserver > >> (/mapfile) to retreive the data (observation values) from > a request > >> like this: > >> > >> http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/sos/sos_te > > st.map&Request=GetObservation&service=SOS&Offering=WQ1289> > > &observedproperty=WaterQuality&version=0.0.31 > > > > In your request URL: I see you have an offering of WQ1289. > Did you > > define this as your offering_id in your LAYER/METADATA? > > > > If you can post a LAYER definition within your mapfile, > that would be > > helpful. > > > > ..Tom > > > > > > -- > View this message in context: > http://www.nabble.com/SOS-GetObservation-tf2727213.html#a7609616 > Sent from the Mapserver - User mailing list archive at Nabble.com. > From almudenarueda at INICIA.ES Thu Nov 30 08:01:31 2006 From: almudenarueda at INICIA.ES (Almudena Rueda Solache) Date: Thu, 30 Nov 2006 17:01:31 +0100 Subject: RV: [UMN_MAPSERVER-USERS] PhpMapScript reference map Message-ID: Hallo Murat I?m having the same problem with the referenceMap. Have you find any solution? Thanks in advance Almudena -----Mensaje original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]En nombre de Murat BEYHAN Enviado el: jueves, 21 de septiembre de 2006 16:18 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: [UMN_MAPSERVER-USERS] PhpMapScript reference map Dear Friends I have created map by following codes in Php. I have also created reference map for my study. But the outline box doesn't appear on the reference map. What is the wrong with my code. I have using gmap demo gmap.php.inc and gmap.php for develop my study. the reference map on the map file as follows REFERENCE IMAGE ../mapdata/zone.png # The reference image SIZE 200 150 # The size of the reference image in pixels # EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 # The extent of the reference image in map units EXTENT 26 35 45 43 STATUS ON MINBOXSIZE 10 # How small can the reference box be before it gets drawn as a point, in pixels MAXBOXSIZE 150 # The maximum size of the reference box, in pixels COLOR -1 -1 -1 # The reference box fill color, negative numbers mean transparent OUTLINECOLOR 0 255 255 # The reference box outline color MARKERSIZE 8 # The size of the point marker MARKER 'star' # The marker symbol END PHP codes are here................................... function IsHtmlMode() { GLOBAL $gbIsHtmlMode; return $gbIsHtmlMode; } if (strpos( ms_GetVersion(), "OUTPUT=GIF") > 0 ) { $gAppletImgFmt = MS_GIF; $gImagesFmt = MS_GIF; } else { $gAppletImgFmt = MS_JPEG; $gImagesFmt = MS_PNG; } function GMapDrawKeyMap() { GLOBAL $map; GLOBAL $gAppletImgFmt, $gImagesFmt; } $map_path="/var/www/html/zone/"; $map = ms_newMapObj($map_path."zone.map"); $imgref = $map->drawreferencemap(); $urlref = $imgref->saveWebImage($gImagesFmt, 0, 0, -1); $map->setExtent($nMinX, $nMinY, $nMaxX, $nMaxY); $image=$map->draw(); $image_url=$image->saveWebImage(); //$gpoMap = ms_newMapObj("gmap75_key.map"); /* -------------------------------------------------------------------- */ /* extents set in the .map file. */ /* */ /* max extents are 10% of the map. */ /* -------------------------------------------------------------------- */ print " Harita

"; -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Descubre Tiscali Empresas La soluci?n m?s inteligente para tu negocio http://www.tiscali.es/empresas/ From mitchelljj98 at GMAIL.COM Thu Nov 30 10:34:39 2006 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Thu, 30 Nov 2006 13:34:39 -0500 Subject: I need the ability to be able to display ECW and JPEG2000 format files within MapServer via a Community Mapbuilder client which sends WMS requests for the images to MapServer In-Reply-To: <4566168A.7050303@pobox.com> Message-ID: Hi Frank, I now able to display ECW type files via mapserver within a community mapbuilder web browser client. I had question on part of the sample map file that you sent: OUTPUTFORMAT NAME jpeg2000 DRIVER "GDAL/JP2ECW" MIMETYPE "image/jpeg2000" FORMATOPTION "TARGET=95" IMAGEMODE RGB END What does TARGET=95 mean? I am having good success (as far as image quality and small size downloaded to the browser) with displaying my image data as jpeg within community mapbuilder as an example image/jpeg But when I try displaying it as a png as an example. I get poor quality as far as the color. image/png The reason why I would like to sometimes be able to display as png is that when displaying as jpeg I always have to display as the bottom layer because if it is above any other layer then it completely covers any layer above it even if the jpeg has no data(meaning white space). Is there any parameters that can be changed within OUTPUTFORMAT that will allow a better color quality png image to be displayed within the web browser? What application do you use to create your .ECW files? Thanks, John J. Mitchell On 11/23/06, Frank Warmerdam wrote: > > John Mitchell wrote: > > Hi, > > > > I need the ability to be able to display ECW and JPEG2000 format files > > within MapServer via a Community Mapbuilder client which sends WMS > > requests for the images to MapServer. My current architecture is > > PostGreSQL database connected to PostGIS which connects to GeoServer on > > Apache Tomcat and Community Mapbuilder client which sends WMS requests > > for the images to GeoServer. I would like to be able to send similar > > requests to MapServer for compressed Raster data but instead of going to > > PostGIS I would like to connect to the ECW (which are compressed Raster) > > files and JPEG2000 files. > > Since I have never installed or used MapServer before I would appreciate > > it if someone could give my a high level overview of what I would need > > to do as far as: > > > > 1.) What should I download for a windows server if all I want to do is > > display ECW and JPEG2000 files via WMS? > > 2.) What configuration is necessary on the server in order to display > > via WMS for ECW and JPEG2000 files and what location should I place > > these files? > > 3.) What is the format for both a GetMap and GetCapabilities request on > > the client side which in my case is Community Mapbuilder. > > John, > > You don't specify what platform you want to deploy on. The trick with > JPEG2000 and ECW support is getting a binary build for your platform that > has these formats included. > > I have a service at http://maps.gdal.org serving a big south american > landsat scene from ecw. I'll provide details on my configuration. You > may find it helpful to take a similar approach. > > I am using the "standalone" FWTools binaries for linux > (http://fwtools.maptools.org). In my Apache cgi-bin directory I have > the script mapserv_landsat which looks like this: > > ----------------------- > #!/bin/sh > > export MS_MAPFILE=/home/warmerda/maps/landsat.map > . /opt/FWTools-1.0.0a2/fwtools_env.sh > exec /opt/FWTools-1.0.0a2/bin/mapserv "$*" > ----------------------- > > This basically invokes the FWTools mapserver executable with a > preconfigured mapfile. The FWTools binaries include essentially all > required libraries. The mapfile looks like the following and includes > sufficient metadat to serve via WMS and WCS. I think there may be a > bit of extra cruft in there too. > > MAP > > NAME 'LANDSAT' > > EXTENT -180 -90 180 90 > UNITS DD > SIZE 600 300 > IMAGECOLOR 0 255 0 > > IMAGETYPE JPEG > DEBUG ON > > PROJECTION > "init=epsg:4326" > END > > OUTPUTFORMAT > NAME jpeg2000 > DRIVER "GDAL/JP2ECW" > MIMETYPE "image/jpeg2000" > FORMATOPTION "TARGET=95" > IMAGEMODE RGB > END > # > # Start of web interface definition > # > > > WEB > HEADER web/landsatcgi/demo_header.html > TEMPLATE web/landsatcgi/demo.html > FOOTER web/landsatcgi/demo_footer.html > METADATA > "ows_title" "Landsat Server" > "wcs_label" "Landsat WCS Server" > "wcs_keywordlist" "WCS,Landsat" > "wcs_onlineresource" "http://maps.gdal.org/cgi-bin/mapserv_landsat" > END > IMAGEURL "/tmp/" > IMAGEPATH "/u/maps/tmp/" > END > > LAYER > NAME "South America" > STATUS ON > DEBUG ON > TYPE RASTER > DATA '/home/warmerda/torrents/data/South America Landsat742.ecw' > METADATA > wcs_label "Landsat" > ows_title "Landsat" > ows_srs "EPSG:4269 EPSG:4326" > ows_extent "-82.3512420 -56.8510672 -33.9029540 13.0499433" > wcs_resolution "0.00025602 0.00025602" > wcs_formats "JPEG PNG24" > wcs_nativeformat "ECW" > END > DUMP TRUE > PROJECTION > "init=epsg:4326" > END > END > END > > Note that to use an ecw file (or jpeg2000 file) you just specify the > name in the DATA line for the layer. > > The getcapabilities url for my service is: > > > http://maps.gdal.org/cgi-bin/mapserv_landsat?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > I hope this helps. > > Good luck, > -- > > ---------------------------------------+-------------------------------------- > 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 | President OSGeo, http://osgeo.org > > -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Nov 30 12:07:10 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 30 Nov 2006 15:07:10 -0500 Subject: I need the ability to be able to display ECW and JPEG2000 format files within MapServer via a Community Mapbuilder client which sends WMS requests for the images to MapServer In-Reply-To: Message-ID: John Mitchell wrote: > Hi Frank, > > I now able to display ECW type files via mapserver within a community > mapbuilder web browser client. I had question on part of the sample map > file that you sent: > OUTPUTFORMAT > NAME jpeg2000 > DRIVER "GDAL/JP2ECW" > MIMETYPE "image/jpeg2000" > FORMATOPTION "TARGET=95" > IMAGEMODE RGB > END > > What does TARGET=95 mean? John, This means that I am requesting 95% reduction in image size during compression - ie. 20:1 compression. > I am having good success (as far as image quality and small size > downloaded to the browser) with displaying my image data as jpeg within > community mapbuilder as an example > > image/jpeg > > But when I try displaying it as a png as an example. I get poor quality > as far as the color. > > image/png > You like want PNG24 format. The plain PNG format results in a reduction to 8bit which causes a lot of damage to the image. The predefined 24bit PNG output format is called "PNG24", and has a mimetype of "image/png; mode=24bit" > What application do you use to create your .ECW files? The original ecw file I was serving from was one I downloaded from geotorrent.org. But I do sometimes use gdal_translate to produce ecw files. 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 | President OSGeo, http://osgeo.org From mitchelljj98 at GMAIL.COM Thu Nov 30 12:34:43 2006 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Thu, 30 Nov 2006 15:34:43 -0500 Subject: I need the ability to be able to display ECW and JPEG2000 format files within MapServer via a Community Mapbuilder client which sends WMS requests for the images to MapServer In-Reply-To: <456F39EE.60506@pobox.com> Message-ID: Frank, The ECW is already in a compressed format, so this means that the image is compressed another 95%? This additional compression is for performance purposes?; does it affect the image quality? Thanks, John On 11/30/06, Frank Warmerdam wrote: > > John Mitchell wrote: > > Hi Frank, > > > > I now able to display ECW type files via mapserver within a community > > mapbuilder web browser client. I had question on part of the sample map > > file that you sent: > > OUTPUTFORMAT > > NAME jpeg2000 > > DRIVER "GDAL/JP2ECW" > > MIMETYPE "image/jpeg2000" > > FORMATOPTION "TARGET=95" > > IMAGEMODE RGB > > END > > > > What does TARGET=95 mean? > > John, > > This means that I am requesting 95% reduction in image size during > compression - ie. 20:1 compression. > > > I am having good success (as far as image quality and small size > > downloaded to the browser) with displaying my image data as jpeg within > > community mapbuilder as an example > > > > image/jpeg > > > > But when I try displaying it as a png as an example. I get poor quality > > as far as the color. > > > > image/png > > > > You like want PNG24 format. The plain PNG format results in a reduction > to 8bit which causes a lot of damage to the image. The predefined 24bit > PNG output format is called "PNG24", and has a mimetype of > "image/png; mode=24bit" > > > What application do you use to create your .ECW files? > > The original ecw file I was serving from was one I downloaded from > geotorrent.org. But I do sometimes use gdal_translate to produce > ecw files. > > 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 | President OSGeo, http://osgeo.org > > -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From bluecarto at GMAIL.COM Thu Nov 30 13:08:31 2006 From: bluecarto at GMAIL.COM (Pierre GIRAUD) Date: Thu, 30 Nov 2006 22:08:31 +0100 Subject: bug 1964 : queryByAttributes and postGIS Message-ID: Hello all, Just wondering if some of the Mapserver folks had a look at the following bug report ? http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1964 Regards Pierre From Steve.Lime at DNR.STATE.MN.US Thu Nov 30 14:08:31 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 30 Nov 2006 16:08:31 -0600 Subject: bug 1964 : queryByAttributes and postGIS In-Reply-To: Message-ID: Pierre: I'm pretty sure this has been fixed in CVS already (in 4.10 and 5.0 brances). You can download from the 4.10 branch to check. Steve >>> Pierre GIRAUD 11/30/2006 3:08:31 PM >>> Hello all, Just wondering if some of the Mapserver folks had a look at the following bug report ? http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1964 Regards Pierre From warmerdam at POBOX.COM Thu Nov 30 16:37:01 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 30 Nov 2006 19:37:01 -0500 Subject: I need the ability to be able to display ECW and JPEG2000 format files within MapServer via a Community Mapbuilder client which sends WMS requests for the images to MapServer In-Reply-To: Message-ID: John Mitchell wrote: > Frank, > > The ECW is already in a compressed format, so this means that the image > is compressed another 95%? This additional compression is for > performance purposes?; does it affect the image quality? John, The imagery is decompressed within mapserver for rendering purposes, and then (if output is to ecw) re-compressed. So the 95% is relative to uncompressed form, not cumulative. Even if the original image was at 95% compression the process of decompressing and recompressing can result in additional image damage. 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 | President OSGeo, http://osgeo.org From mitchelljj98 at GMAIL.COM Thu Nov 30 19:17:40 2006 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Thu, 30 Nov 2006 22:17:40 -0500 Subject: I need the ability to be able to display ECW and JPEG2000 format files within MapServer via a Community Mapbuilder client which sends WMS requests for the images to MapServer In-Reply-To: <456F792D.6030007@pobox.com> Message-ID: Frank, So if I have the ECW image compressed at a 2:1 ratio mapserver will process it faster than if I have the ECW image at 20:1 because mapserver has to decompress the image first. Also the resulting image should be better since I have not compressed it as much. If I choose to have FORMATOPTION "TARGET=0" which means no compression then my image quality will be better, but it will be slower to download since it is not compressed? John On 11/30/06, Frank Warmerdam wrote: > > John Mitchell wrote: > > Frank, > > > > The ECW is already in a compressed format, so this means that the image > > is compressed another 95%? This additional compression is for > > performance purposes?; does it affect the image quality? > > John, > > The imagery is decompressed within mapserver for rendering purposes, and > then (if output is to ecw) re-compressed. So the 95% is relative to > uncompressed form, not cumulative. Even if the original image was > at 95% compression the process of decompressing and recompressing can > result > in additional image damage. > > 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 | President OSGeo, http://osgeo.org > > -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From mgleahy at GOLDEN.NET Thu Nov 30 20:39:18 2006 From: mgleahy at GOLDEN.NET (Mike Leahy) Date: Thu, 30 Nov 2006 23:39:18 -0500 Subject: Feature-level transparency...in 5.0? In-Reply-To: <456FB1CF.7030606@alumni.uwaterloo.ca> Message-ID: Hello list, As far as I can tell, transparency in MapServer is currently only available at the layer level. I'm working on some data that would benefit from being able to view overlapping features (within a single and/or multiple layers) using transparency to reveal density of coverage of certain features (i.e., the more shapes that overlap a given area, the darker the colour). This works great in some tools (e.g., QGis), but it doesn't work so well in mapserver, as overlapping shapes within a single layer end up looking like a single polygon. It seems that at the moment the only workaround would be to have a separate for each individual shape...or use varying hatched styles to fill the polygons. I saw on this page (http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0) that class or style-level transparency is proposed for 5.0. Out of interest, will this be equivalent to feature-level, or would I have to add individual classes for every feature in a given layer? I suspect the latter, but I'm curious to know if feature-level transparency is on the radar for future development. Thanks for any info... Mike From mdieterich at GMAIL.COM Thu Nov 30 20:50:08 2006 From: mdieterich at GMAIL.COM (Mark Dieterich) Date: Thu, 30 Nov 2006 23:50:08 -0500 Subject: projection confusion... Message-ID: Evening everyone, I'm hoping some of you can help dig me out of my utter confusion ;) I've been humming along, working with mapserver for a while and never really giving projections much thought. Then came tiling... It requires a constant mapping between pixel values and the geographic space. Enter confusion... I'm working with tiger data, national atlas data, and some home grown data (based off the tiger data, so it will have the same projection as the tiger data). So far, all I've managed to do is draw blank maps, so I know I either have projection mis-matches or extents which are foobar. The first issue I have is, how do you determine what projection the data is already in? I've seen about three different answers to the question re: national atlas data; none of them seem to make any difference for me. I've tried playing with ogrinfo to query the underlying shapefiles and haven't found anything remotely helpful. I decided to follow the all mighty google and have my output projection be in a mercator projection, so I have this in my mapfile: PROJECTION "proj=merc" "lat_ts=0.0" "lon_0=-90.0" "x_0=0.0" "y_0=0.0" "ellps=GRS80" "no_defs" END which I think is correct. Now I figure I just need to get my various data layers defined with an appropriate projection and life might get better. As for my second issue, how do I convert from decimal/degree extents to meters? I tried running something like this: proj +proj=merc +lat_ts=0.0 +lon_0=-90.0 +x_0=0.0 +y_0=0.0 +ellps=GRS80 +no_defs and then entering in my lat/long values. It returned some really nice, big, numbers, but I haven't a clue whether they were right. Again, blank map. I clearly have a lot to learn about map projections, but I've spent many, many, many hours searching around the net trying to answer these questions and it's only led to more frustration. Can anyone out there offer up some help? Thanks! Mark From Jukka.Rahkonen at MMMTIKE.FI Thu Nov 30 23:24:36 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 1 Dec 2006 09:24:36 +0200 Subject: I need the ability to be able to display ECW and JPEG2000 format files within MapServer via a Community Mapbuilder client which sends WMS requests for the images to MapServer Message-ID: Hi John, ECW images are always compressed. The first step what Mapserver does in your process is to decompress the original ECW image to some kind of uncompressed pixel map. I haven't measured the times but I do not believe there would be any dramatic difference in how long it takes to perform the decompression if the original images are compressed to ratios 1:20 or 1:5. So I do not believe you could improve the speed very much by adjusting the ECW compression ratio of the originals. Most probably you could get some more speed by having the originals as uncompressed TIFF files because then MapServer could skip the ECW decompression step. But I would like to encourage you to make a test by converting some of your ECW images to TIFF format and then compare the total time your whole process is taking with either TIFF or ECW files. You can make TIFF images which are quite well optimised for Mapserver by the following procedure. First create tiled TIFFs from your ECW files with gdal_translate by using a command: gdal_translate -of GTiff -co "TILED=YES" input.ecw output.tif and then create internal overviews to your new TIFFs with gdaladdo: gdaladdo -r average output.tif 2 4 8 16 Then you ready to make some timing and gather information to help you in making decisions whether or not to have the originals compressed and if to compress the output or send it as uncompressed GeoTIFF instead. I suppose you know your clients and the bandwidth they have because that matters, too. Regards, -Jukka Rahkonen- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: John Mitchell L?hetetty: pe 1.12.2006 5:17 Frank, So if I have the ECW image compressed at a 2:1 ratio mapserver will process it faster than if I have the ECW image at 20:1 because mapserver has to decompress the image first. Also the resulting image should be better since I have not compressed it as much. If I choose to have FORMATOPTION "TARGET=0" which means no compression then my image quality will be better, but it will be slower to download since it is not compressed? John On 11/30/06, Frank Warmerdam wrote: John Mitchell wrote: > Frank, > > The ECW is already in a compressed format, so this means that the image > is compressed another 95%? This additional compression is for > performance purposes?; does it affect the image quality? John, The imagery is decompressed within mapserver for rendering purposes, and then (if output is to ecw) re-compressed. So the 95% is relative to uncompressed form, not cumulative. Even if the original image was at 95% compression the process of decompressing and recompressing can result in additional image damage. 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 | President OSGeo, http://osgeo.org -- John J. Mitchell