From bartvde at osgis.nl Tue Mar 1 01:56:03 2011 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Tue, 1 Mar 2011 10:56:03 +0100 (CET) Subject: [mapserver-users] Re: strange raster problem In-Reply-To: <62804.145.50.39.11.1297787133.squirrel@webmail.hostingdiscounter.nl> References: <62804.145.50.39.11.1297787133.squirrel@webmail.hostingdiscounter.nl> Message-ID: <24571.145.50.39.11.1298973363.squirrel@webmail.hostingdiscounter.nl> We finally identified this issue, it seems that the SCALE_1 processing directive does not work in case of 1 band images? Using SCALE instead of SCALE_1 did the trick. Is this a known issue/limitation? Best regards, Bart > Hi list, > > we have a strange problem with an ArcSDE raster layer. At certain zoom > levels the pixels are very coarse. Zooming out one level the pixels are > okay, however the colour is not. > > You can see this in the following images, the first one is zoomed out and > everything is okay (except the colours since the image should be mostly > black): > > http://www.osgis.nl/download/mapserver/rws1.png > > However when zooming in one level, we obtain the following situation: > > http://www.osgis.nl/download/mapserver/rws2.png > > Does anyone have an explanation for this? Using Mapserver trunk from about > 3 months back and GDAL 1.7.2. > > This is the info from ArcCatalog about the raster layer: > > BODEM.DNZ_GRINDPERCENTAGE_TOT_15CMSDE > Rastergeodatabase.ad.rws.nlRWS_LEZEN5151\tcpSDE.DEFAULT1161, > 20211250.00000000000011, > 2508.95 > MBSDRcontinuousfloating > point32 > Bit-3.402823E+38absentlevel: > 4, resampling: Nearest > NeighborLZ776199911.5560208503459782.82782689098750032.827826891095694661.5560208503ETRS_1989_UTM_Zone_31NMeter > (1.000000)Degree > (0.017453292519943299)500000030.99960D_ETRS_1989skipped > columns:1, rows:1, ignored value: > 0.559.808799743652340.8319692929200052.8258454488402290 > > The LAYER definition is: > > LAYER > CONNECTIONTYPE SDE > DATA > "SDE:xxxxx.ad.rws.nl,port:5151,5151,RWS_LEZEN,XXXXXX,BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM,RASTER" > DUMP TRUE > EXTENT 459782.827826891 5694661.55602085 750032.827826891 > 6199911.55602085 > NAME "BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925" > PROCESSING 'CLOSE_CONNECTION=DEFER' > PROCESSING 'DITHER=NO' > PROCESSING 'NODATA=NODATA' > PROCESSING 'SCALE_1=0.5,59.8087997436523' > PROCESSING 'BANDS=1' > PROCESSING 'LOAD_FULL_RES_IMAGE=NO' > PROCESSING 'LOAD_WHOLE_IMAGE=NO' > SIZEUNITS PIXELS > UNITS METERS > STATUS ON > TEMPLATE 'blank.html' > TOLERANCE 5 > TOLERANCEUNITS PIXELS > TYPE RASTER > PROJECTION > 'init=epsg:25831' > END > METADATA > 'wms_title' 'Grindpercentage, stretched' > 'wms_layer_group' '/Grindpercentage_ NCP' > 'wms_metadataurl_format' 'text/xml' > 'wms_metadataurl_href' > 'http://test.intranet.rijkswaterstaat.nl/services/geoservices-update/metadata/BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM' > 'wms_metadataurl_type' 'TC211' > 'wcs_abstract' 'noordzee grind en zand raster' > 'wcs_bandcount' '1' > # 'wcs_description' 'noordzee grind en zand raster' # Optional > 'wcs_extent' > '459782.827826891,5694661.55602085,750032.827826891,6199911.55602085' > 'wcs_formats' 'GTiff,MrSID,ECW' > 'wcs_keywords' 'RWS,Rijkswaterstaat,noordzee grind en zand > raster,BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925' > 'wcs_label' 'Grindpercentage, stretched' # Required > 'wcs_metadatalink_format' 'text/xml' > 'wcs_metadatalink_href' > 'http://test.intranet.rijkswaterstaat.nl/services/geoservices-update/metadata/BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM' > 'wcs_metadatalink_type' 'TC211' > 'wcs_name' 'BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925' > # 'wcs_nativeformat' 'Raster' # Optional > 'wcs_rangeset_label' 'Grindpercentage, stretched' > 'wcs_rangeset_name' 'BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925' > END > PROCESSING 'SCALE_BUCKETS=256' > CLASS > STYLE > COLORRANGE 0 0 0 255 255 255 > DATARANGE -4.81972160476045 6.48366019060046 > RANGEITEM "pixel" > END > END > END > > TIA. > > Best regards, > Bart > From falcacibar at gmail.com Tue Mar 1 06:10:07 2011 From: falcacibar at gmail.com (Felipe Alcacibar) Date: Tue, 1 Mar 2011 11:10:07 -0300 Subject: [mapserver-users] Compiling with opengl support In-Reply-To: References: Message-ID: Thomas: Thanks for the answer, i want to test this function because it seems amazing the use of GPU instead CPU to render. if i found some bug i sent it to the mapserver trac, oviously i have my account and a previous ticket too ;) Felipe Alcacibar Buccioni On 22 February 2011 14:26, thomas bonfort wrote: > Felipe, > opengl support should compile and run in the trunk version of > mapserver, you'll have to do a checkout if you want to try it out. > please report back the bugs you see ;) > > -- > thomas > > On Tue, Feb 22, 2011 at 16:38, Felipe Alcacibar wrote: >> Hi, i am trying to compile mapserver with the experimental opengl >> support for experimental proposes too, but i cannot do it, i am using >> mesa opengl, gentoo 64bits linux system and mapserver 5.6.6 but it >> seems like this little problems that i cannot figure =/. >> are a solution to this, i need another library, another implementation >> of opengl? >> >> mapogl.cpp: In function ?int msPopulateRendererVTableOGL(rendererVTableObj*)?: >> mapogl.cpp:225: error: invalid conversion from ?void (*)(imageObj*, >> shapeObj*, colorObj*, double, int, double*)? to ?void (*)(imageObj*, >> shapeObj*, strokeStyleObj*)? >> mapogl.cpp:242: error: invalid conversion from ?void (*)(imageObj*, >> shapeObj*, void*)? to ?void (*)(imageObj*, shapeObj*, imageObj*)? >> mapogl.cpp:243: error: invalid conversion from ?void (*)(void*)? to >> ?void (*)(imageObj*)? >> >> wait for your ansewers, thanks in advice. >> >> Felipe Alcacibar Buccioni >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From Bob.Bistrais at maine.gov Tue Mar 1 08:56:12 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 1 Mar 2011 11:56:12 -0500 Subject: [mapserver-users] queryByFeatures not working in 5.6.6? Message-ID: <4EFF8BB964547748A07CA32961810C041A036E39@SOM-TEAQASMAIL1.som.w2k.state.me.us> We are upgrading our MapServer installation to 5.6.6, and now are finding a problem with queries that were previously working. I'm tracing the problem to a queryByFeatures operation. We are taking a selected parcel and querying a zoning layer to see what zones are intersected by the parcel. We are able to successfully select the parcel by a queryByAttributes. We get the shape from the selected parcel, then attempt a queryByFeatures. But no results are returned for the zoning layer. As I mentioned earlier, this was functioning properly in the previous version of MapServer. Is there a change in syntax or something else that I'm not aware of? Here is some of the code to perform the query: -At this point, a parcel has been selected... // Loop through the results set (there should only be one), get the shape, and save the // shape attributes. for ($i=0; $i<=($oLayer_lurc_parcels->getNumResults() - 1); $i++) { $oResult = $oLayer_lurc_parcels->getResult($i); $oLayer_lurc_parcels->open(); $oShape = $oLayer_lurc_parcels->getFeature($oResult->shapeindex,-1); $TPL = $oShape->getValue($oLayer_lurc_parcels,"TPL"); $_SESSION['results']['TPL'][$_SESSION['nresults']] = substr($TPL,0,5); $oLayer_lurc_parcels->close(); } // Perform the intersection; query the zones layer with the parcel feature. Again, should // only be one parcel. $oLayer_lurc_zones->queryByFeatures($oLayer_lurc_parcels->index); -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Mar 1 10:41:20 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 01 Mar 2011 13:41:20 -0500 Subject: [mapserver-users] OGC services have changed in trunk In-Reply-To: <201103011247.58344.aboudreault@mapgears.com> References: <201102231521.04556.aboudreault@mapgears.com> <201102281042.27835.aboudreault@mapgears.com> <201103011247.58344.aboudreault@mapgears.com> Message-ID: <4D6D3DD0.1020205@swoodbridge.com> Hi Users, If you are NOT using SVN trunk and OGC service - you can stop reading here. If you are using trunk and not on the mapserver-dev, then you might want to read this thread in the archives and look at RFC 67. For trunk and for 6.0, you will need to add the follow to disable new OGC/OWS security features and get the old behavior: WEB "ows_enable_request" "*" END Thanks, -Steve W On 3/1/2011 12:47 PM, Alan Boudreault wrote: > Devs, > > I'd like to inform you that I've committed the RFC 67 implementation in trunk, > so if you need to work/test with OGC services... I would suggest you to add > this metadata at the map level: > > WEB > "ows_enable_request" "*" > END > > Thanks, > Alan > > On February 28, 2011 10:42:27 am Alan Boudreault wrote: >> For the record.... I declare this RFC adopted on 2010-02-25 with +1 from >> FrankW, PericlesN SteveW, DanielM, AssefaY, JeffM, TamasS. >> >> I have began the implementation. >> >> Alan >> >> On February 24, 2011 04:43:13 am Tamas Szekeres wrote: >>> +1 >>> >>> Tamas >>> >>> >>> >>> 2011/2/23 Alan Boudreault >>> >>>> Since there do not seem to be any outstanding issue, I think we can go >>>> ahead >>>> and vote to adopt RFC-67 as it is now for implementation in MapServer >>>> 6. >>>> >>>> I start with my +1. >>>> >>>> Alan >>>> -- >>>> Alan Boudreault >>>> Mapgears >>>> http://www.mapgears.com >>>> _______________________________________________ >>>> mapserver-dev mailing list >>>> mapserver-dev at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev > From Bob.Bistrais at maine.gov Tue Mar 1 12:01:52 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 1 Mar 2011 15:01:52 -0500 Subject: [mapserver-users] queryByFeatures not working in 5.6.6? In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036E39@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041A036E3B@SOM-TEAQASMAIL1.som.w2k.state.me.us> I think I've found a workaround. I actually replaced my queryByFeatures with a queryByShape. This works in my application. But, I'm afraid I can't explain why the queryByShape is not working for Mathieu. Maybe you should try queryByFeatures and see if it works for you! ________________________________ From: Mathieu Kouri [mailto:mkouri at dbxgeomatics.com] Sent: Tuesday, March 01, 2011 2:33 PM To: Bistrais, Bob; mapserver-users Subject: RE: [mapserver-users] queryByFeatures not working in 5.6.6? Hi, I would like to mention that we have been also having problem in using queryByShape(...). We were on 5.6.4 and everything was working fine but when updating to 5.6.6 this is no longer seems to be working. Thanks From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: March-01-11 11:56 AM To: mapserver-users Subject: [mapserver-users] queryByFeatures not working in 5.6.6? We are upgrading our MapServer installation to 5.6.6, and now are finding a problem with queries that were previously working. I'm tracing the problem to a queryByFeatures operation. We are taking a selected parcel and querying a zoning layer to see what zones are intersected by the parcel. We are able to successfully select the parcel by a queryByAttributes. We get the shape from the selected parcel, then attempt a queryByFeatures. But no results are returned for the zoning layer. As I mentioned earlier, this was functioning properly in the previous version of MapServer. Is there a change in syntax or something else that I'm not aware of? Here is some of the code to perform the query: -At this point, a parcel has been selected... // Loop through the results set (there should only be one), get the shape, and save the // shape attributes. for ($i=0; $i<=($oLayer_lurc_parcels->getNumResults() - 1); $i++) { $oResult = $oLayer_lurc_parcels->getResult($i); $oLayer_lurc_parcels->open(); $oShape = $oLayer_lurc_parcels->getFeature($oResult->shapeindex,-1); $TPL = $oShape->getValue($oLayer_lurc_parcels,"TPL"); $_SESSION['results']['TPL'][$_SESSION['nresults']] = substr($TPL,0,5); $oLayer_lurc_parcels->close(); } // Perform the intersection; query the zones layer with the parcel feature. Again, should // only be one parcel. $oLayer_lurc_zones->queryByFeatures($oLayer_lurc_parcels->index); -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephan.holl at intevation.de Wed Mar 2 07:25:47 2011 From: stephan.holl at intevation.de (Stephan Holl) Date: Wed, 2 Mar 2011 16:25:47 +0100 Subject: [mapserver-users] WFS Filter Encoding and resulting DB-queries In-Reply-To: <4D65D601.3030601@dmsolutions.ca> References: <20110222094428.5b7c7e3c@thoe.hq.intevation.de> <4D64FCFA.5070505@dmsolutions.ca> <20110223140656.60fafb86@thoe.hq.intevation.de> <4D65D601.3030601@dmsolutions.ca> Message-ID: <20110302162547.0d5034d6@thoe.hq.intevation.de> Hello Assefa, Yewondwossen Assefa , [20110223 - 22:52:33] > On 23/02/2011 8:06 AM, Stephan Holl wrote: > > Hello Assefa, > > > > Yewondwossen Assefa, [20110223 - 07:26:34] > > > >> Hi Stephan, > >> > >> On 22/02/2011 3:44 AM, Stephan Holl wrote: > >>> Hello list, > >>> > >>> while playing with MapServer WFS Filter Encoding capabilities I > >>> found some strange things when it comes to form the DB-queries > >>> (the requested layer is PostGIS-driven). > >>> > >>> It seems that there will always be a full table-scan and later on > >>> the FE will be applied. Is this done by design? > >>> > >> Filters that do include spatial filters end up using the > >> mapserver experssions. 'Simple' filters should end be using > >> traslated into the layer's filter expression and end up being used > >> by postgis as part of the data selection. What does the filter > >> encoding looks like? > > It is not a spatial-filter we use currently. It is an > > attribute-based IsLike-Filter like seen here[1], but we use it with > > POST. So adding a BBOX-related filter as another AND-filter will > > result in optimized SQL-Query with only the subset fetched from the > > database? If so, this seems worth to document though. > > > The filter you sent as example should use the layer's filter > element and that should be used when retrieving the data at the > postgis level. When the layer is in debug mode, MapServer 5.6.x logs > in this case shows something like (which indicates that the filter is > used at the postgis level) > ... > msPostGISLayerWhichShapes query: select .... and ( (NAME like 'Syd%' > escape '!') ) yes, I will get the above query-entries. But before of that there is another query stated in the logs: select * from "projects_with_location" where false limit 0 which pointed me to a (false) conclusion. Thank you for clarifying thouh. Best Stephan -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From Steve.Lime at state.mn.us Wed Mar 2 21:04:30 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 2 Mar 2011 23:04:30 -0600 Subject: [mapserver-users] queryByFeatures not working in 5.6.6? In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036E3B@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041A036E39@SOM-TEAQASMAIL1.som.w2k.state.me.us> , <4EFF8BB964547748A07CA32961810C041A036E3B@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: queryByFeatures uses a query against one layer to select features that are used against other layers. For example, select a county by name and then use it to select lakes or whatever. It's probably a stupid name for the method but that's what it does. It's a two-stage query and a pretty specific use case. As for why things would stop working, not sure without more information. With some of the query processing speedups added in the 5.4 and 5.6 versions we used the various indexes in a result object to store information necessary for fast access. I see you're not passing the result tileindex: $oShape = $oLayer_lurc_parcels->getFeature($oResult->shapeindex,-1); That may be the source of the problem. What happens if you do: $oShape = $oLayer_lurc_parcels->getFeature($oResult->shapeindex, $oResult->tileindex); instead? Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Tuesday, March 01, 2011 2:01 PM To: Mathieu Kouri; mapserver-users Subject: RE: [mapserver-users] queryByFeatures not working in 5.6.6? I think I?ve found a workaround. I actually replaced my queryByFeatures with a queryByShape. This works in my application. But, I?m afraid I can?t explain why the queryByShape is not working for Mathieu. Maybe you should try queryByFeatures and see if it works for you! ________________________________ From: Mathieu Kouri [mailto:mkouri at dbxgeomatics.com] Sent: Tuesday, March 01, 2011 2:33 PM To: Bistrais, Bob; mapserver-users Subject: RE: [mapserver-users] queryByFeatures not working in 5.6.6? Hi, I would like to mention that we have been also having problem in using queryByShape(...). We were on 5.6.4 and everything was working fine but when updating to 5.6.6 this is no longer seems to be working. Thanks From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: March-01-11 11:56 AM To: mapserver-users Subject: [mapserver-users] queryByFeatures not working in 5.6.6? We are upgrading our MapServer installation to 5.6.6, and now are finding a problem with queries that were previously working. I?m tracing the problem to a queryByFeatures operation. We are taking a selected parcel and querying a zoning layer to see what zones are intersected by the parcel. We are able to successfully select the parcel by a queryByAttributes. We get the shape from the selected parcel, then attempt a queryByFeatures. But no results are returned for the zoning layer. As I mentioned earlier, this was functioning properly in the previous version of MapServer. Is there a change in syntax or something else that I?m not aware of? Here is some of the code to perform the query: -At this point, a parcel has been selected? // Loop through the results set (there should only be one), get the shape, and save the // shape attributes. for ($i=0; $i<=($oLayer_lurc_parcels->getNumResults() - 1); $i++) { $oResult = $oLayer_lurc_parcels->getResult($i); $oLayer_lurc_parcels->open(); $oShape = $oLayer_lurc_parcels->getFeature($oResult->shapeindex,-1); $TPL = $oShape->getValue($oLayer_lurc_parcels,"TPL"); $_SESSION['results']['TPL'][$_SESSION['nresults']] = substr($TPL,0,5); $oLayer_lurc_parcels->close(); } // Perform the intersection; query the zones layer with the parcel feature. Again, should // only be one parcel. $oLayer_lurc_zones->queryByFeatures($oLayer_lurc_parcels->index); From sumit321 at hotmail.com Thu Mar 3 23:23:32 2011 From: sumit321 at hotmail.com (Sumit Sharma) Date: Thu, 3 Mar 2011 23:23:32 -0800 (PST) Subject: [mapserver-users] Re: How I solve This Exception In-Reply-To: <1298207153109-6045646.post@n2.nabble.com> References: <1298207153109-6045646.post@n2.nabble.com> Message-ID: <1299223412801-6087553.post@n2.nabble.com> Even to me it seems that you are missing some dll. Best way to identify is load you libmap.dll in dependency walker. It will give you good idea what you are missing. -Sumit -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-I-solve-This-Exception-tp6045646p6087553.html Sent from the Mapserver - User mailing list archive at Nabble.com. From punk.kish at gmail.com Thu Mar 3 23:28:33 2011 From: punk.kish at gmail.com (Puneet Kishor) Date: Fri, 4 Mar 2011 01:28:33 -0600 Subject: [mapserver-users] Re: How I solve This Exception In-Reply-To: <1299223412801-6087553.post@n2.nabble.com> References: <1298207153109-6045646.post@n2.nabble.com> <1299223412801-6087553.post@n2.nabble.com> Message-ID: <6C1AA286880C4DA7A2449EF379C82C81@gmail.com> On Friday, March 4, 2011 at 1:23 AM, Sumit Sharma wrote: Even to me it seems that you are missing some dll. Best way to identify is > load you libmap.dll in dependency walker. It will give you good idea what > you are missing. > -Sumit > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-I-solve-This-Exception-tp6045646p6087553.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > Is anyone else bothered by messages such as above? The thread has been usurped by Nabble, and basically has absolutely no context. Even the subject line was terribly uninformative to start with ("How do I solve This Exception"), and the reply didn't quote the message. It completely defeats the purpose of the MapServer mailing list archives, the attention of the rest of the users on the list, is not informative, not instructive, and just plain unhelpful albeit well-intentioned. If you ask a question, please use subject lines that say something about the question. If you use Nabble to reply, please quote the original message so other list members have something to hang their hat on. Help grow the MapServer knowledgebase by making it richer and more complete instead of sucking the life out of it and sticking it in Nabble. -- Puneet Kishor From dmorissette at mapgears.com Fri Mar 4 04:57:17 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 04 Mar 2011 07:57:17 -0500 Subject: [mapserver-users] OSGeo Montreal Code Sprint seeking more sponsors due to record participation Message-ID: <4D70E1AD.3060307@mapgears.com> Dear MapServer users, The Montreal Code Sprint of March 15-18, 2011 has reached a record of 29 registered participants from 9 open source projects as of yesterday. This is awesome news for OSGeo and its projects that will get a significant boost of code and contributions during that week! This will also greatly benefit the MapServer project since this number includes 14 people who signed up to work on MapServer as you can see in the list of participants at: http://wiki.osgeo.org/wiki/Montreal_Code_Sprint_2011#Participation The downside of this is that our initial budget was for ~20 participants, and with close to 50% more sprinters we need to adjust the budget accordingly and are turning to you to help us find more sponsors to balance the new budget. ** CALL FOR NEW SPONSORS - An investment in the technology that you use! ** We are looking for another round of sponsors ($750 each) to support food and fun for the sprinters as they work hard and play hard for four productive days. Each $750 sponsorship will be put towards lunch, snacks and dinner costs for the sprinters, and any surplus at the end of the event will be turned over to OSGeo or used for a future code sprint. If your organization is using one of the software projects listed below, then please consider this call for sponsorship as an investment in MapServer, the technology that you use, and contact me at dmorissette at mapgears.com to confirm your sponsorship. In addition to visibility in our public announcements you will get recognition for your contribution from the developers and from the OSGeo community. Please also keep in mind that all the participants are volunteering several days of their time in addition to paying for their own travel and hotel expenses. More information about this event is available here: http://wiki.osgeo.org/wiki/Montreal_Code_Sprint_2011 The Open Source projects currently represented are: * MapServer * GDAL/OGR * PostGIS * libLAS * ZOO Project * TinyOWS * GeoPrisma * OpenLayers * GeoExt Thank you once again to our current sponsors (http://wiki.osgeo.org/wiki/Montreal_Code_Sprint_2011#2011_Sponsors) 750$ Sponsors: - LizardTech - http://www.lizardtech.com/ - Azavea - http://www.azavea.com/ - qPublic - http://qpublic.net/ - Farallon Geographics - http://fargeo.com/ - Airborne Interactive - http://airborne.aero/ - Boreal - Information Strategies (Borealis) - http://www.boreal-is.com/ - Mapgears - http://www.mapgears.com/ Hockey Night Sponsor: - Gateway Geomatics - http://gatewaygeomatics.com/ Host (Room and Internet): - Communaut? M?tropolitaine de Montr?al (CMM) - http://cmm.qc.ca/ Please do not hesitate to redistribute this announcement in your respective channels. Daniel -- Daniel Morissette http://www.mapgears.com/ From tigana.fluens at gmail.com Sun Mar 6 03:06:24 2011 From: tigana.fluens at gmail.com (tigana.fluens at gmail.com) Date: Sun, 06 Mar 2011 19:06:24 +0800 Subject: [mapserver-users] MapServer securing .map files Message-ID: <4D736AB0.8070501@gmail.com> What are the best practices when relating application data to MapServer data? If I have a database of users, and each user owns a specific map, what is the best way (also secure of course) of calling those maps (I'm assuming the .map files are the ones needed) that a specific user is related to? Given that: - Tom has map of his real estate - Mark has map of his farm - Web app is a PHP app that uses OpenLayers as an interface to call MapServer How do I manage restrictions, i.e. security? From bgiv at gmx.de Mon Mar 7 05:07:11 2011 From: bgiv at gmx.de (Wolfgang Lahr) Date: Mon, 7 Mar 2011 14:07:11 +0100 Subject: [mapserver-users] shapeObj->buffer Message-ID: <519747754.20110307140711@gmx.de> Hi list, this pertains to a problem I noticed yesterday in mapserver/php_mapscript 5.6.5 running under Windows. I noticed that: ... $oShapeObj = $oLineShapeObj->buffer(0.01) ... will work properly when used on a $oLineShapeObj containing a line with 2 points. It will stop working when the line contains >= 3 points. The function will just return an invalid $oShapeObj. The buffered shape is supposed to be used in a queryByShape operation. This works fine with MapServer < 5.0. Does the buffered $oLineShapeObj now have to be casted to a polygon? Thanks for any hints wollah From jxjackso at franklincountyohio.gov Mon Mar 7 05:17:11 2011 From: jxjackso at franklincountyohio.gov (Jackson, John) Date: Mon, 7 Mar 2011 08:17:11 -0500 Subject: [mapserver-users] Client-side applications for visualizing mapfiles In-Reply-To: References: Message-ID: The "best choice" depends on what you're trying to do. Personally, I'm working up a mapserver project with a ka-map (http://ka-map.maptools.org/) front-end. Ka-map works well for me since it's pretty easy to point to a working mapserver .map file. (just change config.php) As for tutorials, there are some on mapserver's site. Also, if you're using postgis as a data store, they have some pretty good tutorials in their documentation. Hope this helps. --John Jackson --Deputy Auditor, Franklin County Auditor's Office. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ???S????S ????????S Sent: Friday, February 18, 2011 9:35 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Client-side applications for visualizing mapfiles Hello everybody I am a new mapserver user and i need your knowledge and your experience. I know that the heart of mapserver is the mapfile. Also, i can use html files and templates fro visualizing the layers of mapfile in a web-browser. But, i want a more interactive, flexible and quickly solution. Could you suggest me anything?? I know that there are many client-side applications to rend WMS and WFS servers like OpenLayers, Fusion, dbox, Chameleon, GMap, CartoWeb. However, i would like a good explanation, regarding which is the best choice! Moreover, i am grateful, if you send me some tutorial!! Thanks in advance Apostolos -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Mon Mar 7 06:35:18 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 07 Mar 2011 09:35:18 -0500 Subject: [mapserver-users] MapServer securing .map files In-Reply-To: <4D736AB0.8070501@gmail.com> References: <4D736AB0.8070501@gmail.com> Message-ID: <4D74ED26.603@mapgears.com> MapServer has no built in support for securing data by users. If your needs are not too complicated then it should be easy to implement map-level security in your PHP and JavaScript application code. If you have more advanced users/roles requirements then you may want to have a look at http://geoprisma.org/ Actually, I see that geoprisma.org seems quite slow today. You could also have a look at the following demo page which also includes a short intro to GeoPrisma under the [About GeoPrisma] tab: http://dev4g.mapgears.com/geoprisma/demo/ Daniel On 11-03-06 06:06 AM, tigana.fluens at gmail.com wrote: > What are the best practices when relating application data to MapServer > data? If I have a database of users, and each user owns a specific map, > what is the best way (also secure of course) of calling those maps (I'm > assuming the .map files are the ones needed) that a specific user is > related to? Given that: > > - Tom has map of his real estate > - Mark has map of his farm > - Web app is a PHP app that uses OpenLayers as an interface to call > MapServer > > How do I manage restrictions, i.e. security? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From Bob.Basques at ci.stpaul.mn.us Mon Mar 7 06:42:54 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Mon, 07 Mar 2011 08:42:54 -0600 Subject: [mapserver-users] MapServer securing .map files In-Reply-To: <4D74ED26.603@mapgears.com> References: <4D736AB0.8070501@gmail.com> <4D74ED26.603@mapgears.com> Message-ID: <4D749A8E020000A8000273FB@heckle> All, GeoMoose is another product to take a look at. It's possible to set up individual layers with their respective data custodial access parameters. Since all layers are abstracted to thier own MAP file, the layers themselves can be managed separately (or in groups) themselves as well. We use a folder hierarchy for this type of user access control as well as who can control publishing tasks. While GeoMoose doesn't control the access authentication directly, it's publishing storage scheme is very conducive to implementing a control structure down to the layer level, especially for roll your own authentication situations. We stuff all of our data into WebDAV for example, which has all sort of authentication methods available. bobb >>> Daniel Morissette wrote: MapServer has no built in support for securing data by users. If your needs are not too complicated then it should be easy to implement map-level security in your PHP and JavaScript application code. If you have more advanced users/roles requirements then you may want to have a look at http://geoprisma.org/ Actually, I see that geoprisma.org seems quite slow today. You could also have a look at the following demo page which also includes a short intro to GeoPrisma under the [About GeoPrisma] tab: http://dev4g.mapgears.com/geoprisma/demo/ Daniel On 11-03-06 06:06 AM, tigana.fluens at gmail.com wrote: > What are the best practices when relating application data to MapServer > data? If I have a database of users, and each user owns a specific map, > what is the best way (also secure of course) of calling those maps (I'm > assuming the .map files are the ones needed) that a specific user is > related to? Given that: > > - Tom has map of his real estate > - Mark has map of his farm > - Web app is a PHP app that uses OpenLayers as an interface to call > MapServer > > How do I manage restrictions, i.e. security? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From gi08b07 at hs-nb.de Mon Mar 7 06:50:16 2011 From: gi08b07 at hs-nb.de (Dimmer, Frederick-Claud) Date: Mon, 07 Mar 2011 15:50:16 +0100 Subject: [mapserver-users] WFS Problem Message-ID: <7270c9bcf36.4d74feb8@hs-nb.de> Hi, finally i've made it to set up an WFS-Server but now I'm having another problem with the Mapbender configuration. I uploaded the WMS and WFS correctly to the mapbender application, an there were no problems than I created my own application and loaded the WMS to this application. As far as I did this I've set the wfs in the gui-wms settings. Finnaly i've asigned an WFS to the gui. But here comes the problem i want to put the query i gete returned by the database in a table and set extra parameters. I simly can't find an entry where I can edit this. Hope you can help me. If you need more information I'll tell you. Kind regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Mar 7 06:53:51 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 07 Mar 2011 10:53:51 -0400 Subject: [mapserver-users] MapServer securing .map files In-Reply-To: <4D736AB0.8070501@gmail.com> References: <4D736AB0.8070501@gmail.com> Message-ID: <4D74F17F.4010907@gatewaygeomatics.com> On 11-03-06 7:06 AM, tigana.fluens at gmail.com wrote: > What are the best practices when relating application data to MapServer > data? If I have a database of users, and each user owns a specific map, > what is the best way (also secure of course) of calling those maps (I'm > assuming the .map files are the ones needed) that a specific user is > related to? Given that: > > - Tom has map of his real estate > - Mark has map of his farm > - Web app is a PHP app that uses OpenLayers as an interface to call > MapServer > > How do I manage restrictions, i.e. security? Hello, If you are looking to secure OGC services such as WMS,WFS, or SOS, you could also examine GeoShield (http://sites.google.com/site/geoshieldproject/). It supports both MapServer and GeoServer. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jbw2003 at earthlink.net Mon Mar 7 13:59:55 2011 From: jbw2003 at earthlink.net (Jim White) Date: Mon, 07 Mar 2011 16:59:55 -0500 Subject: [mapserver-users] wms transparency Message-ID: <4D75555B.6070408@earthlink.net> I have a MapServer WMS server and I want to overlay its layers on a Google map WMS layer in OpenLayers. I have tried to follow the example http://openlayers.org/dev/examples/layer-opacity.html , but am unable to get any transparency. All I get is a less bright layer. var options2 = { maxExtent: new OpenLayers.Bounds(-7564972, 2022817, -7260079, 2099643), units: 'm', projection: "EPSG:3857", maxScale: 2000000 } var map; var wms; var gphy; $(document).ready(function() { map = new OpenLayers.Map('map', options2); wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://metacomet.zo.ncsu.edu/wms/prgap.php", {layers: 'pd009', format: "image/png", srs: "EPSG:3857"}, { opacity: 0.3} ); gphy = new OpenLayers.Layer.Google( "Google Physical", {type: google.maps.MapTypeId.TERRAIN, //sphericalMercator: true, 'maxExtent': new OpenLayers.Bounds(-7564972, 2022817, -7260079, 2099643) }); map.addLayer(wms); map.addLayer( gphy); map.zoomToMaxExtent(); Wil appreciate any suggestions for my MapServer config or OpenLayers script. Jim From tom_price at yahoo.com Mon Mar 7 17:23:49 2011 From: tom_price at yahoo.com (Tom Price) Date: Mon, 7 Mar 2011 17:23:49 -0800 (PST) Subject: [mapserver-users] Thread safety with Php/Mapscript 3.0.1/5.6.6 and IIS 7 Message-ID: <84401.15786.qm@web110307.mail.gq1.yahoo.com> Haven't been on this board in a long time. I'm in the process of upgrading from PHP 5.2.5 to 5.3.5 and to the latest Php/Mapscript in MS4W which is apparently based on Mapserver 5.6.6. My client plans to host this using the Fast-cgi VC9 version of PHP with IIS 7 on a 64-bit Win 2008 Server. I noticed that the binary in MS4W requires that I install the thread-safe version of PHP on IIS. I get this message from phpinfo() with the NTS version: PHP Warning: PHP Startup: MapScript: Unable to initialize module Module compiled with build ID=API20090626,TS,VC9 PHP compiled with build ID=API20090626,NTS,VC9 These options need to match in Unknown on line 0 Is Mapscript now thread-safe? Or is this selection particular to the Apache deployment? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivanc at kestrel-tech.com Tue Mar 8 01:37:33 2011 From: ivanc at kestrel-tech.com (Ivan Cardenas) Date: Tue, 8 Mar 2011 03:37:33 -0600 Subject: [mapserver-users] Offnet conversion tool In-Reply-To: <7270c9bcf36.4d74feb8@hs-nb.de> References: <7270c9bcf36.4d74feb8@hs-nb.de> Message-ID: Folks, We are looking for an offline tool that can be purchased and run with no internet connectivity for converting .csv's into time animated presentations in Google Earth. We have been using the web-based converter at the following address for the conversion of excel data into CSV. https://www.earthpoint.us/ExcelToKml.aspx This tool converts spreadsheets very effectively into a KML that can also model differing node sizes, colors, temporal data, etc. Does anyone know of a PC (not internet) based tool that can perform all of the above functionalities for csv to kml conversions? Thanks! Ivan Cardenas Technical Director Kestrel Technology Group -------------- next part -------------- An HTML attachment was scrubbed... URL: From just at justobjects.nl Tue Mar 8 05:03:49 2011 From: just at justobjects.nl (Just van den Broecke) Date: Tue, 08 Mar 2011 14:03:49 +0100 Subject: [mapserver-users] Ticket #3274 - !BOX! parameter handling in mapscript Message-ID: <4D762935.8050809@justobjects.nl> Hi, I stumbled across a substitution issue with the !BOX! parameter on PostGIS layers when using Mapscript, but also found that it may have been fixed: http://trac.osgeo.org/mapserver/ticket/3274 The related changeset is not in any release yet, or not that I found, using MS 5.6.6 (Mac OSX Kyngchaos version) or Ubuntu MS 5.6.3 In my case this issue only happens when doing a layer.queryByRect() within Python Mapscript on a layerObj. When dispatching via OWSDispatch() things work as expected. For which release is ticket #3274 planned or is there some other workaround (other than building from SVN) ? My Mapfile snipped is: DATA "the_geom from (select g.id, g.point as the_geom from gw_tracepoint g where g.point && !BOX! order by random() limit 3000) as subquery using unique id using srid=4326" MS issues the following failing query within layer.queryByRect(): "select * from (select g.id, g.point as the_geom from gw_tracepoint g where g.point &&!BOX! order by random() limit 3000) as subquery where false limit 0". This seems to be a "prequery" before doing the real query. Anyways, !BOX! is not substituted. Is there some way to suppress this prequery ? I want to get at most 3000 points within a bbox from a points table, randomly spread within the bbox. Leaving out !BOX! does not work properly since the subquery will then get points from the entire collection and then apply bbox on that set. Suggestions welcome. Best, --Just Just van den Broecke www.justobjects.nl From jmckenna at gatewaygeomatics.com Tue Mar 8 05:21:15 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 08 Mar 2011 09:21:15 -0400 Subject: [mapserver-users] Thread safety with Php/Mapscript 3.0.1/5.6.6 and IIS 7 In-Reply-To: <84401.15786.qm@web110307.mail.gq1.yahoo.com> References: <84401.15786.qm@web110307.mail.gq1.yahoo.com> Message-ID: <4D762D4B.3080403@gatewaygeomatics.com> On 11-03-07 9:23 PM, Tom Price wrote: > Haven't been on this board in a long time. I'm in the process of > upgrading from PHP 5.2.5 to 5.3.5 and to the latest Php/Mapscript in > MS4W which is apparently based on Mapserver 5.6.6. > > My client plans to host this using the Fast-cgi VC9 version of PHP with > IIS 7 on a 64-bit Win 2008 Server. > > I noticed that the binary in MS4W requires that I install the > thread-safe version of PHP on IIS. I get this message from phpinfo() > with the NTS version: > > PHP Warning: PHP Startup: MapScript: Unable to initialize module Module > compiled with build ID=API20090626,TS,VC9 PHP compiled with build > ID=API20090626,NTS,VC9 These options need to match in Unknown on line 0 > > > Is Mapscript now thread-safe? Or is this selection particular to the > Apache deployment? > > Thanks in advance. Hello Tom, I have several comments that you might keep in mind as you travel down this path for your client: - MS4W is compiled for 32bit environments; you will either have to configure your 64bit server to run 32bit applications, or obtain a 64bit version of MapServer (you can contact me directly if you choose the latter option) - MS4W contains a custom PHP version; I have seen errors like that when users try to use their own PHP builds with the MS4W mapscript. Easiest way out of that situation is to use the MS4W version of PHP and mapscript together. - if you have any further questions about MS4W be sure to use the MS4W mailing list (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users) Hope that helps. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From dmorissette at mapgears.com Tue Mar 8 05:44:33 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 08 Mar 2011 08:44:33 -0500 Subject: [mapserver-users] Ticket #3274 - !BOX! parameter handling in mapscript In-Reply-To: <4D762935.8050809@justobjects.nl> References: <4D762935.8050809@justobjects.nl> Message-ID: <4D7632C1.8040109@mapgears.com> On 11-03-08 08:03 AM, Just van den Broecke wrote: > > For which release is ticket #3274 planned or is there some other > workaround (other than building from SVN) ? > The fix will be part of the 6.0 release for which the first beta should be available tomorrow (finally!). Daniel -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From jbw2003 at earthlink.net Tue Mar 8 10:14:50 2011 From: jbw2003 at earthlink.net (Jim White) Date: Tue, 08 Mar 2011 13:14:50 -0500 Subject: [mapserver-users] wms transparency In-Reply-To: References: <4D75555B.6070408@earthlink.net> Message-ID: <4D76721A.9050002@earthlink.net> Arlen, Thanks that helped. However I had to explicitly set my layers to the same projection. // override default epsg code aliasproj = new OpenLayers.Projection("EPSG:3857"); wms.projection = gphy.projection = aliasproj; Your site looks nice. However, I can't read Dutch so I don't know what the layers mean. Jim On 03/07/2011 05:21 PM, Arlen Poort wrote: > Jim, > > You might check the code of my page. This has a transparent mapserver > wms. You can find the code here: > mapserver.nrc-handelsblad.com/PS2011.html > > Best regards, > > Arlen Poort > > Op maandag 7 maart 2011 schreef Jim White (jbw2003 at earthlink.net) het volgende: >> I have a MapServer WMS server and I want to overlay its layers on a Google map WMS layer in OpenLayers. >> I have tried to follow the example http://openlayers.org/dev/examples/layer-opacity.html , but am unable to get any transparency. All I get is a less bright layer. >> >> var options2 = { >> maxExtent: new OpenLayers.Bounds(-7564972, 2022817, -7260079, 2099643), >> units: 'm', >> projection: "EPSG:3857", >> maxScale: 2000000 >> } >> var map; >> var wms; >> var gphy; >> >> >> $(document).ready(function() { >> map = new OpenLayers.Map('map', options2); >> wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", >> "http://metacomet.zo.ncsu.edu/wms/prgap.php", >> {layers: 'pd009', format: "image/png", srs: "EPSG:3857"}, >> { opacity: 0.3} >> ); >> >> gphy = new OpenLayers.Layer.Google( >> "Google Physical", >> {type: google.maps.MapTypeId.TERRAIN, //sphericalMercator: true, >> 'maxExtent': new OpenLayers.Bounds(-7564972, 2022817, -7260079, 2099643) >> }); >> >> map.addLayer(wms); >> map.addLayer( gphy); >> map.zoomToMaxExtent(); >> >> Wil appreciate any suggestions for my MapServer config or OpenLayers script. >> >> Jim >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From Poteat.Brian at geoeye.com Tue Mar 8 11:54:15 2011 From: Poteat.Brian at geoeye.com (Brian Poteat) Date: Tue, 8 Mar 2011 12:54:15 -0700 Subject: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET) Message-ID: <4B420E4877773244A5DE388033C7E800A0408E754C@MS1.geoeye.com> I have a very strange issue while using MapScript from within some web service projects. I have different projects/applications for different services - one for each of WCF, WMS, WFS, and WMTS - so we can configure them independently. MapScript requests work fine for all of them separately but if I access MapScript from one and then another, one of them will not work correctly anymore. The requests will return success (result == 0) and the format returned is correct but the data is either null or an incorrect image. It doesn't seem to be a threading issue since I can bombard any one of the services with asynchronous requests and they are handled fine and the problems don't necessarily come while using the different applications at the same time - just one then the other. I am using a support project for making the MS requests that is referenced by each application (though I tried putting the code directly in each app with the same results). Below is a simplified version of the helper utility I am using. Is there anything that stands out as being an obvious issue? My endpoint applications simply get the query parameters from the url request and pass them as the requestParams argument with the appropriate map file. namespace MapScript { public class MapScriptResponse { public string Format { get; set; } public byte[] Data { get; set; } public string ErrorString { get; set; } public DateTime LastModified { get; set; } } public class MapScriptUtilities { /// /// Execute a service request to mapserver through mapscript /// /// Physical path to the map file on which to make the request /// List of request parameters /// The response from mapscript. public static MapScriptResponse ServiceRequest(string mapFile, Dictionary requestParams) { MapScriptResponse response = new MapScriptResponse(); mapObj map = new mapObj(mapFile); OWSRequest owsRequest = new OWSRequest(); Dictionary.Enumerator en = requestParams.GetEnumerator(); string paramName = ""; string paramValue = ""; while (en.MoveNext()) { paramName = en.Current.Key; paramValue = en.Current.Value; owsRequest.setParameter(paramName, paramValue); } mapscript.msIO_installStdoutToBuffer(); int resultCode = map.OWSDispatch(owsRequest); if (resultCode == 0) { response.Format = mapscript.msIO_stripStdoutBufferContentType(); response.Data = mapscript.msIO_getStdoutBufferBytes(); } return response; } } } Any help would be greatly appreciated. Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue Mar 8 13:45:41 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 8 Mar 2011 22:45:41 +0100 Subject: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET) In-Reply-To: <4B420E4877773244A5DE388033C7E800A0408E754C@MS1.geoeye.com> References: <4B420E4877773244A5DE388033C7E800A0408E754C@MS1.geoeye.com> Message-ID: Hi Brian, Could you provide the sequence of the requests, a mapfile example, that can be used to reproduce this problem? What do you mean by "configure them independently"? Different application pool for each service type? Best regards, Tamas 2011/3/8 Brian Poteat > I have a very strange issue while using MapScript from within some web > service projects. I have different projects/applications for different > services ? one for each of WCF, WMS, WFS, and WMTS ? so we can configure > them independently. MapScript requests work fine for all of them separately > but if I access MapScript from one and then another, one of them will not > work correctly anymore. The requests will return success (result == 0) and > the format returned is correct but the data is either null or an incorrect > image. It doesn?t seem to be a threading issue since I can bombard any one > of the services with asynchronous requests and they are handled fine and the > problems don?t necessarily come while using the different applications at > the same time ? just one then the other. > > > > I am using a support project for making the MS requests that is referenced > by each application (though I tried putting the code directly in each app > with the same results). Below is a simplified version of the helper utility > I am using. Is there anything that stands out as being an obvious issue? My > endpoint applications simply get the query parameters from the url request > and pass them as the requestParams argument with the appropriate map file. > > namespace MapScript > > { > > public class MapScriptResponse > > { > > public string Format { get; set; } > > public byte[] Data { get; set; } > > public string ErrorString { get; set; } > > public DateTime LastModified { get; set; } > > } > > public class MapScriptUtilities > > { > > /// > > /// > Execute a service request to mapserver through mapscript > > /// > > /// > Physical path to the map file on which to make the request > > /// > List of request parameters > > /// The response from mapscript. > > public static MapScriptResponse ServiceRequest(string > mapFile, Dictionary requestParams) > > { > > MapScriptResponse response = new > MapScriptResponse(); > > mapObj map = new mapObj(mapFile); > > OWSRequest owsRequest = new OWSRequest(); > > Dictionary.Enumerator > en = requestParams.GetEnumerator(); > > string paramName = ""; > > string paramValue = ""; > > while (en.MoveNext()) > > { > > paramName = en.Current.Key; > > paramValue = en.Current.Value; > > > owsRequest.setParameter(paramName, paramValue); > > } > > mapscript.msIO_installStdoutToBuffer(); > > int resultCode = map.OWSDispatch(owsRequest); > > if (resultCode == 0) > > { > > response.Format = mapscript > .msIO_stripStdoutBufferContentType(); > > response.Data = mapscript > .msIO_getStdoutBufferBytes(); > > } > > > > return response; > > } > > } > > } > > > > Any help would be greatly appreciated. > > Brian > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joanne.mcgraw at SYMPATICO.CA Tue Mar 8 14:33:58 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Tue, 8 Mar 2011 14:33:58 -0800 (PST) Subject: [mapserver-users] WMS w/SLD - Can I get rid of the labels returned with a GetLegendGraphic request? Message-ID: <1299623638820-6146719.post@n2.nabble.com> Is it possible to get the GetLegendGraphic response from MapServer to not include the labels for the classes (I'd just like a column of icons)? Further info that may, may not, be relevant is that I am using an SLD to display the WMS. I can get the legend graphic fine, but the problem is that is says "default" next to the colour swatch because "default" is the value provided in the of the in the SLD. The data and the SLD are generated dynamically as part of a larger process and there really is no useful name that can be associated with the colour swatch. However, Name is a required entity of NamedLayer in the SLD, so I have to put something in there. But, I don't want to see it in the legend... Is there any way I can stop it? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-w-SLD-Can-I-get-rid-of-the-labels-returned-with-a-GetLegendGraphic-request-tp6146719p6146719.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joanne.mcgraw at SYMPATICO.CA Tue Mar 8 14:37:03 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Tue, 8 Mar 2011 14:37:03 -0800 (PST) Subject: [mapserver-users] Re: WMS w/SLD - Can I get rid of the labels returned with a GetLegendGraphic request? In-Reply-To: <1299623638820-6146719.post@n2.nabble.com> References: <1299623638820-6146719.post@n2.nabble.com> Message-ID: <1299623823709-6146892.post@n2.nabble.com> Oh, sorry, I thought I'd add that I looked around in the docs for the MapFile to see if I could set something there to turn off labels in the legend but didn't have any luck. If someone knows of something through that route, I'd be happy to hear about it. Really, anything would be fine. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-w-SLD-Can-I-get-rid-of-the-labels-returned-with-a-GetLegendGraphic-request-tp6146719p6146892.html Sent from the Mapserver - User mailing list archive at Nabble.com. From saad.hessane at gmail.com Wed Mar 9 02:58:43 2011 From: saad.hessane at gmail.com (=?ISO-8859-1?Q?Mohamed_Sa=E2d_HESSANE?=) Date: Wed, 9 Mar 2011 11:58:43 +0100 Subject: [mapserver-users] Edit a Line shape and save it Message-ID: Hy everybody, I work with python mapscript and i want to create a Line shape. I do this : test = mapscript.shapefileObj('test',mapscript.MS_SHAPEFILE_ARC) for i in range(len(x)) test.addPoint(mapscript.pointObj(x[i],y[i],0,0)) When i execute the script, there is two new file in the script directory (test.shp and test.shx). But when i do an ogrinfo, there's no data stored in the file : $ogrinfo -al test.shp INFO: Open of `test.shp' using driver `ESRI Shapefile' successful. Layer name: test Geometry: Line String Feature Count: 0 Extent: (0.000000, 0.000000) - (0.000000, 0.000000) Layer SRS WKT: (unknown) can you help me please? -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric.lemoine at camptocamp.com Wed Mar 9 08:09:15 2011 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Wed, 9 Mar 2011 17:09:15 +0100 Subject: [mapserver-users] Studio - admin tool for MapServer Message-ID: Hi With this email we're announcing the first release of Studio, an admin tool for MapServer. Studio basically allows editing MapServer Mapfiles, using an easy-to-use web-based interface. Relevant links: - Google Group - Documentation - Demo - Code base - Studio on PyPI Instructions for installing Studio are provided in the documentation at . We at Camptocamp started working on Studio two years ago, but, for various reasons, weren't able to make an actual release of Studio at the time. With this 0.5 release we want to measure the interest for such a tool; we know there's still work to be done before reaching a 1.0 release. We're therefore encouraging interested folks to test Studio, sign up to the Google Group, and provide feedback. Thanks, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine at camptocamp.com http://www.camptocamp.com From jt at mapmedia.de Wed Mar 9 08:35:40 2011 From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=) Date: Wed, 09 Mar 2011 17:35:40 +0100 Subject: [mapserver-users] wms_style_xxx_legendurl_href In-Reply-To: References: Message-ID: <4D77AC5C.60101@mapmedia.de> Hi, I'm using the wms_style-parameters in the layer metadata section to tell the client to use a special legend-url: 'wms_style' 'Farbwerte' 'wms_style_Farbwerte_legendurl_height' '218' 'wms_style_Farbwerte_legendurl_href' 'http://xxx/html/test/gimp.png' 'wms_style_Farbwerte_legendurl_format' 'png' 'wms_style_Farbwerte_legendurl_width' '300' This works fine with only one style. But what do I have to do, if I have defined different styles / classgroups? When defining 'wms_style' 'Farbwerte' the capabilities only shows this style, even if there are more styles (classgroups) defined. Any idea? J?rg From Poteat.Brian at geoeye.com Wed Mar 9 12:48:02 2011 From: Poteat.Brian at geoeye.com (Brian Poteat) Date: Wed, 9 Mar 2011 13:48:02 -0700 Subject: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET) In-Reply-To: References: <4B420E4877773244A5DE388033C7E800A0408E754C@MS1.geoeye.com> Message-ID: <4B420E4877773244A5DE388033C7E800A04096F129@MS1.geoeye.com> Thanks Tamas, I put together a solution that mimics what I am doing at a very simple level and I got it to error fairly easily. This zip contains an example mapfile and the solution used to reproduce the setup. I just put everything in c:\tmp\test. The applications are .NET 4.0 WCF endpoints and will install as IIS web services (so obviously you?ll need the appropriate software to build/run). http://dl.dropbox.com/u/649621/WcfMapScript.zip If you build the solution and then execute the following service requests in order, at some point the requests no longer return correct data. Asking for one layer will return the other. Sometimes the results vary but usually just mixing up the requested layers on the two different services will cause strange behavior. http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L54&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358 http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L57&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358 http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L57&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358 http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L54&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358 I apologize for the strange requests and images but I am a not really familiar with the mapfile format and just tried to reproduce the requests as closely as they were in a real environment. Brian From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, March 08, 2011 4:46 PM To: Brian Poteat Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET) Hi Brian, Could you provide the sequence of the requests, a mapfile example, that can be used to reproduce this problem? What do you mean by "configure them independently"? Different application pool for each service type? Best regards, Tamas 2011/3/8 Brian Poteat > I have a very strange issue while using MapScript from within some web service projects. I have different projects/applications for different services ? one for each of WCF, WMS, WFS, and WMTS ? so we can configure them independently. MapScript requests work fine for all of them separately but if I access MapScript from one and then another, one of them will not work correctly anymore. The requests will return success (result == 0) and the format returned is correct but the data is either null or an incorrect image. It doesn?t seem to be a threading issue since I can bombard any one of the services with asynchronous requests and they are handled fine and the problems don?t necessarily come while using the different applications at the same time ? just one then the other. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed Mar 9 12:58:12 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 9 Mar 2011 21:58:12 +0100 Subject: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET) In-Reply-To: <4B420E4877773244A5DE388033C7E800A04096F129@MS1.geoeye.com> References: <4B420E4877773244A5DE388033C7E800A0408E754C@MS1.geoeye.com> <4B420E4877773244A5DE388033C7E800A04096F129@MS1.geoeye.com> Message-ID: Hi Brian, Got it, thanks. I'm going to inspect the problem and get back to you if I have further questions. Best regards, Tamas 2011/3/9 Brian Poteat > Thanks Tamas, > > I put together a solution that mimics what I am doing at a very simple > level and I got it to error fairly easily. > > > > This zip contains an example mapfile and the solution used to reproduce the > setup. I just put everything in c:\tmp\test. The applications are .NET 4.0 > WCF endpoints and will install as IIS web services (so obviously you?ll need > the appropriate software to build/run). > > http://dl.dropbox.com/u/649621/WcfMapScript.zip > > > > If you build the solution and then execute the following service requests > in order, at some point the requests no longer return correct data. Asking > for one layer will return the other. Sometimes the results vary but usually > just mixing up the requested layers on the two different services will cause > strange behavior. > > > > > http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L54&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358 > > > > > http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L57&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358 > > > > > http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L57&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358 > > > > > http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L54&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358 > > > > I apologize for the strange requests and images but I am a not really > familiar with the mapfile format and just tried to reproduce the requests as > closely as they were in a real environment. > > Brian > > > > > > *From:* Tamas Szekeres [mailto:szekerest at gmail.com] > *Sent:* Tuesday, March 08, 2011 4:46 PM > *To:* Brian Poteat > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] MapScript issue in multiple WCF apps ( > ASP.NET) > > > > Hi Brian, > > > Could you provide the sequence of the requests, a mapfile example, that can > be used to reproduce this problem? > What do you mean by "configure them independently"? Different application > pool for each service type? > > Best regards, > > Tamas > > > 2011/3/8 Brian Poteat > > I have a very strange issue while using MapScript from within some web > service projects. I have different projects/applications for different > services ? one for each of WCF, WMS, WFS, and WMTS ? so we can configure > them independently. MapScript requests work fine for all of them separately > but if I access MapScript from one and then another, one of them will not > work correctly anymore. The requests will return success (result == 0) and > the format returned is correct but the data is either null or an incorrect > image. It doesn?t seem to be a threading issue since I can bombard any one > of the services with asynchronous requests and they are handled fine and the > problems don?t necessarily come while using the different applications at > the same time ? just one then the other. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed Mar 9 13:02:11 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 9 Mar 2011 22:02:11 +0100 Subject: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET) In-Reply-To: References: <4B420E4877773244A5DE388033C7E800A0408E754C@MS1.geoeye.com> <4B420E4877773244A5DE388033C7E800A04096F129@MS1.geoeye.com> Message-ID: BTW: could you file a ticket (assigned to the csharp bindings) in order to keep the things in view? Best regards, Tamas 2011/3/9 Tamas Szekeres > Hi Brian, > > Got it, thanks. I'm going to inspect the problem and get back to you if I > have further questions. > > Best regards, > > Tamas > > > > > 2011/3/9 Brian Poteat > > Thanks Tamas, >> >> I put together a solution that mimics what I am doing at a very simple >> level and I got it to error fairly easily. >> >> >> >> This zip contains an example mapfile and the solution used to reproduce >> the setup. I just put everything in c:\tmp\test. The applications are .NET >> 4.0 WCF endpoints and will install as IIS web services (so obviously you?ll >> need the appropriate software to build/run). >> >> http://dl.dropbox.com/u/649621/WcfMapScript.zip >> >> >> >> If you build the solution and then execute the following service requests >> in order, at some point the requests no longer return correct data. Asking >> for one layer will return the other. Sometimes the results vary but usually >> just mixing up the requested layers on the two different services will cause >> strange behavior. >> >> >> >> >> http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L54&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358 >> >> >> >> >> http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L57&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358 >> >> >> >> >> http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L57&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358 >> >> >> >> >> http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L54&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358 >> >> >> >> I apologize for the strange requests and images but I am a not really >> familiar with the mapfile format and just tried to reproduce the requests as >> closely as they were in a real environment. >> >> Brian >> >> >> >> >> >> *From:* Tamas Szekeres [mailto:szekerest at gmail.com] >> *Sent:* Tuesday, March 08, 2011 4:46 PM >> *To:* Brian Poteat >> *Cc:* mapserver-users at lists.osgeo.org >> *Subject:* Re: [mapserver-users] MapScript issue in multiple WCF apps ( >> ASP.NET) >> >> >> >> Hi Brian, >> >> >> Could you provide the sequence of the requests, a mapfile example, that >> can be used to reproduce this problem? >> What do you mean by "configure them independently"? Different application >> pool for each service type? >> >> Best regards, >> >> Tamas >> >> >> 2011/3/8 Brian Poteat >> >> I have a very strange issue while using MapScript from within some web >> service projects. I have different projects/applications for different >> services ? one for each of WCF, WMS, WFS, and WMTS ? so we can configure >> them independently. MapScript requests work fine for all of them separately >> but if I access MapScript from one and then another, one of them will not >> work correctly anymore. The requests will return success (result == 0) and >> the format returned is correct but the data is either null or an incorrect >> image. It doesn?t seem to be a threading issue since I can bombard any one >> of the services with asynchronous requests and they are handled fine and the >> problems don?t necessarily come while using the different applications at >> the same time ? just one then the other. >> >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joanne.mcgraw at SYMPATICO.CA Wed Mar 9 13:46:35 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Wed, 9 Mar 2011 13:46:35 -0800 (PST) Subject: [mapserver-users] SLD parameter in GetMap and GetLegendGraphic requests Message-ID: <1299707195382-6155608.post@n2.nabble.com> The MapServer documentation says the value of an SLD parameter must point to a "remote SLD (SLD=http://URL_TO_SLD)." Okay, I understand, but I still have to ask this question... Is there any way the path can be provided to a directory that exists on the MapServer host itself? One of our processes generates a shapefile and the SLD to symbolize it dynamically. We then use a blank MAP file (acting as a WMS Server) to load up the data with the SLD for display (using a GetMap request). All the generated files are stored in the same directory on the same system as MapServer. MapServer can get at the shapefile because the blank MAP file has a SHAPEPATH in it and we just pass along the rest of the path to the files through the GetMap request's DATA parameter. For example: http:///ogc/printVecWms_en?map.layer[LineString]=DATA '6543c79b-8c56-4dd1-8a89-ef8dde819e02/LineString' END&VERSION=1.1.1&SLD=http:///printVecData/SLD/6543c79b-8c56-4dd1-8a89-ef8dde819e02/LineString.sld&TRANSPARENT=true&LAYER=LineString&SERVICE=WMS&REQUEST=GetLegendGraphic&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&FORMAT=image/jpeg&SRS=EPSG:42304&BBOX=-397165.01997824,-789911,2108966.9600435,1716220.9800218&WIDTH=256&HEIGHT=256 Unfortunately, the area where these files are created is not accessible externally, nor do we want them to be (particularly the shapefiles). This means we have to move the location of the SLDs to a place where we do not forbid access in order to use the syntax above. And that works fine. However, we'd really, really like to keep the SLDs closely associated (physically) with the Shapefiles they were built for. So, if anyone knows some syntax or a way that we can pass a value through the SLD parameter that is not publically accessible via http, I'd love to here it!! Is there some way of specifying the SLD to use within the MAP file itself and consequently a way that I can set it in the map.layer[LineString]= value instead? I've never heard of such a thing nor have I found anything that suggests I can, I'm just throwing it out there to see if anything jumps in to anyone's mind. Cheers, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/SLD-parameter-in-GetMap-and-GetLegendGraphic-requests-tp6155608p6155608.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Wed Mar 9 18:47:54 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 09 Mar 2011 21:47:54 -0500 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! Message-ID: <4D783BDA.5060600@mapgears.com> The MapServer Team is pleased to announce the release of MapServer 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. This new release introduces important changes in key components of the MapServer core (rendering, query and expressions), and for this reason we count on you, MapServer power users, to help test the release in your respective environments and provide feedback (through the users list or Trac tickets). The timing and feedback for this first beta is very important since it comes one week before the Montreal Code Sprint where about a dozen participants will be working specifically on MapServer and will have a chance to tackle important 6.0 issues that may be found and reported. Here is a quick list of RFCs documenting some of the new features or important changes in 6.0. This list is not complete, we will update it as we polish the release documentation: Core Changes in MapServer 6.0 which could affect existing applications: * MS RFC 54: Rendering Interface API * MS RFC 64: MapServer Expression Parser Overhaul * MS RFC 65: Single-pass Query Changes for 6.0 New Features and Enhancements in MapServer 6.0: * MS RFC 58: Kml Output * MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels with too much character overlap * MS RFC 61: Enhance MapServer Feature Style Support * MS RFC 62: Support Additional WFS GetFeature Output Formats * MS RFC 63: Built-in OpenLayers map viewer * MS RFC 66: Better handling of temporary files * MS RFC 67: Enable/Disable Layers in OGC Web Services * MS RFC 68: Support for combining features from multiple layers * MS RFC 69: Support for clustering of features in point layers (RFCs are available online at http://mapserver.org/development/rfc/) As usual there an a large number of additional small enhancements and bug fixes. For a complete list see the HISTORY.TXT file at: http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT We have started working on a 5.6 -> 6.0 migration guide. This document contains important notes on backwards incompatibilities or other changes required when upgrading to 6.0. It is not complete yet but we strongly recommend that you review the latest version online at: http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT The source for this release can be downloaded at: http://mapserver.org/download.html or http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz The binary distributions listed in the download page should be updated with binaries for the new 6.0.0-beta1 release in the next day or so. This is the first of four planned beta releases and if all goes well a final release should occur around the end of April. The full release plan can be viewed at: http://trac.osgeo.org/mapserver/wiki/60ReleasePlan Once again we need your help to ensure a high quality product, especially for this beta due to its timing with next week's Code Sprint, so please help out by testing your applications with this new code base. Thanks! - The MapServer Team From aboudreault at mapgears.com Wed Mar 9 20:13:21 2011 From: aboudreault at mapgears.com (Alan Boudreault) Date: Wed, 9 Mar 2011 23:13:21 -0500 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D783BDA.5060600@mapgears.com> References: <4D783BDA.5060600@mapgears.com> Message-ID: <201103092313.22149.aboudreault@mapgears.com> The binaries of MapServer 6.0.0-beta1 are now available in UbuntuGIS for Ubuntu hardy, lucid and maverick. ubuntugis-testing ppa: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On March 9, 2011 09:47:54 pm Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. > > This new release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > The timing and feedback for this first beta is very important since it > comes one week before the Montreal Code Sprint where about a dozen > participants will be working specifically on MapServer and will have a > chance to tackle important 6.0 issues that may be found and reported. > > Here is a quick list of RFCs documenting some of the new features or > important changes in 6.0. This list is not complete, we will update it > as we polish the release documentation: > > Core Changes in MapServer 6.0 which could affect existing applications: > > * MS RFC 54: Rendering Interface API > * MS RFC 64: MapServer Expression Parser Overhaul > * MS RFC 65: Single-pass Query Changes for 6.0 > > New Features and Enhancements in MapServer 6.0: > > * MS RFC 58: Kml Output > * MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels > with too much character overlap > * MS RFC 61: Enhance MapServer Feature Style Support > * MS RFC 62: Support Additional WFS GetFeature Output Formats > * MS RFC 63: Built-in OpenLayers map viewer > * MS RFC 66: Better handling of temporary files > * MS RFC 67: Enable/Disable Layers in OGC Web Services > * MS RFC 68: Support for combining features from multiple layers > * MS RFC 69: Support for clustering of features in point layers > > (RFCs are available online at http://mapserver.org/development/rfc/) > > As usual there an a large number of additional small enhancements and > bug fixes. For a complete list see the HISTORY.TXT file at: > > > http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. It is not complete yet but we strongly > recommend that you review the latest version online at: > > http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new 6.0.0-beta1 release in the next day or so. > > > This is the first of four planned beta releases and if all goes well a > final release should occur around the end of April. The full release > plan can be viewed at: > > http://trac.osgeo.org/mapserver/wiki/60ReleasePlan > > Once again we need your help to ensure a high quality product, > especially for this beta due to its timing with next week's Code Sprint, > so please help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From sylvanascent at gmail.com Thu Mar 10 02:54:06 2011 From: sylvanascent at gmail.com (Roger Bedell) Date: Thu, 10 Mar 2011 11:54:06 +0100 Subject: [mapserver-users] MapServer and Guid USING UNIQUE Message-ID: Good Morning. I am currently working with MapServer and the MSSQL Spatial driver. I am seeing that MS does not work with a DATA statement like this in the Map file: DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING SRID=4326" where PKey is defined like this: [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT NULL, No errors are triggered, however nothing is displayed, including all other layers. Is this an issue with the SQL Spatial driver or MapServer? Any ideas on how to fix it? Thanks! Roger Bedell Coordinate Solutions Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvanascent at gmail.com Thu Mar 10 03:35:16 2011 From: sylvanascent at gmail.com (Roger Bedell) Date: Thu, 10 Mar 2011 12:35:16 +0100 Subject: [mapserver-users] MapServer and Guid USING UNIQUE In-Reply-To: <4D78B033.5080308@terrestris.de> References: <4D78B033.5080308@terrestris.de> Message-ID: Thanks Till, however, here is the trace from the ODBC tracer, pretty obvious what is going on: DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Insufficient result space to convert uniqueidentifier value to char. (8170) Guids generally take up 36 characters when converted to a string, and the Select statement only has room for 20. Since this is a SQL specific query, my guess it is being generated in the sql spatial driver? Roger HSTMT 0x0589B310 UCHAR * 0x05E1A990 [ -3] "SELECT Feature.STAsBinary(),convert(varchar(20), PKey) from MetesAndBoundsHeader WHERE Feature.STIntersects(Geometry::STGeomFromText('POLYGON((-104.18599 29.2473266843318,-93.22438 29.2473266843318,-93.22438 41.3707663156682,-104.18599 41.3707663156682,-104.18599 29.2473266843318))',4326)) = 1 \ 0" SDWORD -3 DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Insufficient result space to convert uniqueidentifier value to char. (8170) On Thu, Mar 10, 2011 at 12:04 PM, adams wrote: > Dear Roger, > > if you get an empty image with no error, the first try would be to use a > simple symbol and no expression in your layer. > Also ensure, that your extent when querying the map is correct. > > So you make sure, that everything around your datasource is OK. > > Then use a datastring like this one: > > > DATA "the_geom from (SELECT Feature from MetesAndBoundsHeader) as foo USING > UNIQUE PKey USING SRID=4326" > > or however the geometry-column in mssql server is called ;-) > > Regards, Till > > > > > Roger Bedell wrote: > > Good Morning. > I am currently working with MapServer and the MSSQL Spatial driver. I am > seeing that MS does not work with a DATA statement like this in the Map > file: > > DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING SRID=4326" > > where PKey is defined like this: > > [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT NULL, > > No errors are triggered, however nothing is displayed, including all other > layers. Is this an issue with the SQL Spatial driver or MapServer? Any ideas > on how to fix it? > > Thanks! > Roger Bedell > Coordinate Solutions Inc. > > ------------------------------ > > _______________________________________________ > mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > > --------------------------------------------------------- > terrestris GmbH & Co. KG > Irmintrudisstrasse 17 > 53111 Bonn > Germany > > Till Adams > Gesch?ftsf?hrung > > Tel: +49 (0)228 / 962 899-52 > Fax: +49 (0)228 / 962 899-57adams at terrestris.de http://www.terrestris.de > Amtsgericht Bonn, HRA 6835 > --------------------------------------------------------- > > Komplement?rin: > > terrestris Verwaltungs GmbH > > vertreten durch: > Hinrich Paulsen, Till Adams > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Thu Mar 10 03:56:18 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 10 Mar 2011 12:56:18 +0100 Subject: [mapserver-users] MapServer and Guid USING UNIQUE In-Reply-To: References: <4D78B033.5080308@terrestris.de> Message-ID: Hi Roger, Could you create a ticket with this issue ( http://trac.osgeo.org/mapserver/newticket)? I'll take care of fixing this. Best regards, Tamas 2011/3/10 Roger Bedell > Thanks Till, however, here is the trace from the ODBC tracer, pretty > obvious what is going on: > > DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL > Server]Insufficient result space to convert uniqueidentifier value to char. > (8170) > > Guids generally take up 36 characters when converted to a string, and the > Select statement only has room for 20. > > Since this is a SQL specific query, my guess it is being generated in the > sql spatial driver? > > Roger > > > HSTMT 0x0589B310 > UCHAR * 0x05E1A990 [ -3] "SELECT > Feature.STAsBinary(),convert(varchar(20), PKey) from MetesAndBoundsHeader > WHERE Feature.STIntersects(Geometry::STGeomFromText('POLYGON((-104.18599 > 29.2473266843318,-93.22438 29.2473266843318,-93.22438 > 41.3707663156682,-104.18599 41.3707663156682,-104.18599 > 29.2473266843318))',4326)) = 1 \ 0" > SDWORD -3 > > DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL > Server]Insufficient result space to convert uniqueidentifier value to char. > (8170) > > > > > > > > On Thu, Mar 10, 2011 at 12:04 PM, adams wrote: > >> Dear Roger, >> >> if you get an empty image with no error, the first try would be to use a >> simple symbol and no expression in your layer. >> Also ensure, that your extent when querying the map is correct. >> >> So you make sure, that everything around your datasource is OK. >> >> Then use a datastring like this one: >> >> >> DATA "the_geom from (SELECT Feature from MetesAndBoundsHeader) as foo >> USING UNIQUE PKey USING SRID=4326" >> >> or however the geometry-column in mssql server is called ;-) >> >> Regards, Till >> >> >> >> >> Roger Bedell wrote: >> >> Good Morning. >> I am currently working with MapServer and the MSSQL Spatial driver. I am >> seeing that MS does not work with a DATA statement like this in the Map >> file: >> >> DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING SRID=4326" >> >> where PKey is defined like this: >> >> [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT NULL, >> >> No errors are triggered, however nothing is displayed, including all other >> layers. Is this an issue with the SQL Spatial driver or MapServer? Any ideas >> on how to fix it? >> >> Thanks! >> Roger Bedell >> Coordinate Solutions Inc. >> >> ------------------------------ >> >> _______________________________________________ >> mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> -- >> >> --------------------------------------------------------- >> terrestris GmbH & Co. KG >> Irmintrudisstrasse 17 >> 53111 Bonn >> Germany >> >> Till Adams >> Gesch?ftsf?hrung >> >> Tel: +49 (0)228 / 962 899-52 >> Fax: +49 (0)228 / 962 899-57adams at terrestris.de http://www.terrestris.de >> Amtsgericht Bonn, HRA 6835 >> --------------------------------------------------------- >> >> Komplement?rin: >> >> terrestris Verwaltungs GmbH >> >> vertreten durch: >> Hinrich Paulsen, Till Adams >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvanascent at gmail.com Thu Mar 10 04:12:14 2011 From: sylvanascent at gmail.com (Roger Bedell) Date: Thu, 10 Mar 2011 13:12:14 +0100 Subject: [mapserver-users] MapServer and Guid USING UNIQUE In-Reply-To: References: <4D78B033.5080308@terrestris.de> Message-ID: Thanks Tamas! It is ticket 3722 Roger On Thu, Mar 10, 2011 at 12:56 PM, Tamas Szekeres wrote: > Hi Roger, > > Could you create a ticket with this issue ( > http://trac.osgeo.org/mapserver/newticket)? I'll take care of fixing this. > > Best regards, > > Tamas > > > > 2011/3/10 Roger Bedell > > Thanks Till, however, here is the trace from the ODBC tracer, pretty >> obvious what is going on: >> >> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL >> Server]Insufficient result space to convert uniqueidentifier value to char. >> (8170) >> >> Guids generally take up 36 characters when converted to a string, and the >> Select statement only has room for 20. >> >> Since this is a SQL specific query, my guess it is being generated in the >> sql spatial driver? >> >> Roger >> >> >> HSTMT 0x0589B310 >> UCHAR * 0x05E1A990 [ -3] "SELECT >> Feature.STAsBinary(),convert(varchar(20), PKey) from MetesAndBoundsHeader >> WHERE Feature.STIntersects(Geometry::STGeomFromText('POLYGON((-104.18599 >> 29.2473266843318,-93.22438 29.2473266843318,-93.22438 >> 41.3707663156682,-104.18599 41.3707663156682,-104.18599 >> 29.2473266843318))',4326)) = 1 \ 0" >> SDWORD -3 >> >> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL >> Server]Insufficient result space to convert uniqueidentifier value to char. >> (8170) >> >> >> >> >> >> >> >> On Thu, Mar 10, 2011 at 12:04 PM, adams wrote: >> >>> Dear Roger, >>> >>> if you get an empty image with no error, the first try would be to use a >>> simple symbol and no expression in your layer. >>> Also ensure, that your extent when querying the map is correct. >>> >>> So you make sure, that everything around your datasource is OK. >>> >>> Then use a datastring like this one: >>> >>> >>> DATA "the_geom from (SELECT Feature from MetesAndBoundsHeader) as foo >>> USING UNIQUE PKey USING SRID=4326" >>> >>> or however the geometry-column in mssql server is called ;-) >>> >>> Regards, Till >>> >>> >>> >>> >>> Roger Bedell wrote: >>> >>> Good Morning. >>> I am currently working with MapServer and the MSSQL Spatial driver. I am >>> seeing that MS does not work with a DATA statement like this in the Map >>> file: >>> >>> DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING >>> SRID=4326" >>> >>> where PKey is defined like this: >>> >>> [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT NULL, >>> >>> No errors are triggered, however nothing is displayed, including all >>> other layers. Is this an issue with the SQL Spatial driver or MapServer? Any >>> ideas on how to fix it? >>> >>> Thanks! >>> Roger Bedell >>> Coordinate Solutions Inc. >>> >>> ------------------------------ >>> >>> _______________________________________________ >>> mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> -- >>> >>> --------------------------------------------------------- >>> terrestris GmbH & Co. KG >>> Irmintrudisstrasse 17 >>> 53111 Bonn >>> Germany >>> >>> Till Adams >>> Gesch?ftsf?hrung >>> >>> Tel: +49 (0)228 / 962 899-52 >>> Fax: +49 (0)228 / 962 899-57adams at terrestris.de http://www.terrestris.de >>> Amtsgericht Bonn, HRA 6835 >>> --------------------------------------------------------- >>> >>> Komplement?rin: >>> >>> terrestris Verwaltungs GmbH >>> >>> vertreten durch: >>> Hinrich Paulsen, Till Adams >>> >>> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Thu Mar 10 07:08:00 2011 From: andy at squeakycode.net (Andy Colson) Date: Thu, 10 Mar 2011 09:08:00 -0600 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D783BDA.5060600@mapgears.com> References: <4D783BDA.5060600@mapgears.com> Message-ID: <4D78E950.80806@squeakycode.net> On 3/9/2011 8:47 PM, Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. > Having a problem compiling opengl support. Without opengl it compiles fine. Looks like its looking in /usr/lib, not /usr/lib64. Slackware64 13.1. ./configure --with-ogr --with-gdal --with-agg --with-geos --with-postgis --with-xml2 --with-free-type --with-proj --with-tiff --with-jpeg --with-curl --with-gd --with-postgis=/usr/local/pgsql/bin/pg_config --with-opengl --with-ftgl ...lots of output... checking for gdImageCreatePaletteFromTrueColor in -lgd... yes using libgd 2.0.28 (or higher) from system libs (-L/usr/lib64 -lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ). 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 gdImageOpenPolygon in -lgd... yes checking for gdImageGifPtr in -lgd... yes checking for gdFontGetTiny in -lgd... yes checking for gdImageSetResolution in -l... no checking whether gdImageGetTrueColorPixel is declared... yes checking for gdImageGetTrueColorPixel in -lgd... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs. checking if FTGL support requested... looking for ftgl libs in /usr using ftgl from /usr checking if OGL support requested... looking for opengl libs in /usr ./configure: line 9891: -L/usr/lib64: No such file or directory configure: error: "could not find libGL or libGLU in /usr/lib/." config.log: configure:9774: checking if FTGL support requested configure:9785: result: looking for ftgl libs in /usr configure:9849: result: using ftgl from /usr configure:9873: checking if OGL support requested configure:9885: result: looking for opengl libs in /usr configure:9917: error: "could not find libGL or libGLU in /usr/lib/." ## ----------------- ## ## Output variables. ## ## ----------------- ## ALL_ENABLED='-DUSE_FTGL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE ' ALL_INC='-I/usr/include/FTGL/ -I/usr/include -I/usr/include/freetype2 ' ALL_LIB='-L/usr/lib64 -lftgl -lgd -L/usr/lib64 -lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 -lc -lz -lfreetype -lz ' FTGL_ENABLED='-DUSE_FTGL ' FTGL_INC='-I/usr/include/FTGL/' FTGL_LIB='-L/usr/lib64 -lftgl' -Andy From dmorissette at mapgears.com Thu Mar 10 08:17:32 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 10 Mar 2011 11:17:32 -0500 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D78E950.80806@squeakycode.net> References: <4D783BDA.5060600@mapgears.com> <4D78E950.80806@squeakycode.net> Message-ID: <4D78F99C.7000004@mapgears.com> On 11-03-10 10:08 AM, Andy Colson wrote: > > Having a problem compiling opengl support. Without opengl it compiles > fine. Looks like its looking in /usr/lib, not /usr/lib64. > I have created ticket http://trac.osgeo.org/mapserver/ticket/3724 for this and committed a change that should fix it. However I am not setup to test on that platform, so please test and reopen the ticket if that didn't fix the issue. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From andy at squeakycode.net Thu Mar 10 08:29:58 2011 From: andy at squeakycode.net (Andy Colson) Date: Thu, 10 Mar 2011 10:29:58 -0600 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D78F99C.7000004@mapgears.com> References: <4D783BDA.5060600@mapgears.com> <4D78E950.80806@squeakycode.net> <4D78F99C.7000004@mapgears.com> Message-ID: <4D78FC86.1080205@squeakycode.net> On 3/10/2011 10:17 AM, Daniel Morissette wrote: > On 11-03-10 10:08 AM, Andy Colson wrote: >> >> Having a problem compiling opengl support. Without opengl it compiles >> fine. Looks like its looking in /usr/lib, not /usr/lib64. >> > > I have created ticket http://trac.osgeo.org/mapserver/ticket/3724 for > this and committed a change that should fix it. However I am not setup > to test on that platform, so please test and reopen the ticket if that > didn't fix the issue. > It works. configure went ok, and make built ok. Still need to install and use it. Thanks! -Andy From michufoc at wp.pl Thu Mar 10 09:19:48 2011 From: michufoc at wp.pl (=?ISO-8859-2?Q?Micha=B3_Dro=BFd=BF?=) Date: Thu, 10 Mar 2011 18:19:48 +0100 Subject: [mapserver-users] WMS on top of Google maps API Message-ID: <4d79083429eec3.62799056@wp.pl> An HTML attachment was scrubbed... URL: From andy at squeakycode.net Thu Mar 10 09:33:43 2011 From: andy at squeakycode.net (Andy Colson) Date: Thu, 10 Mar 2011 11:33:43 -0600 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D783BDA.5060600@mapgears.com> References: <4D783BDA.5060600@mapgears.com> Message-ID: <4D790B77.9020502@squeakycode.net> On 3/9/2011 8:47 PM, Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. > My mapfile has: IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE jpeg OUTPUTFORMAT NAME jpeg DRIVER 'GD/JPEG' MIMETYPE 'image/jpeg' EXTENSION 'jpeg' END Error I get: ERROR: 12:OUTPUTFORMAT clause references driver GD/JPEG, but this driver isn't configured.:loadOutputFormat() mapserv -v MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Sure enough, no GD... but I did compile it in: configure: checking for GD 2.0.28 or higher... checking for gdImageCreatePaletteFromTrueColor in -lgd... yes using libgd 2.0.28 (or higher) from system libs (-L/usr/lib64 -lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ). 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 gdImageOpenPolygon in -lgd... yes checking for gdImageGifPtr in -lgd... yes checking for gdFontGetTiny in -lgd... yes checking for gdImageSetResolution in -l... no checking whether gdImageGetTrueColorPixel is declared... yes checking for gdImageGetTrueColorPixel in -lgd... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs. So what do I use? I'd also like to try the new opengl stuff.. is there new docs for: http://mapserver.org/mapfile/outputformat.html -Andy From thomas.bonfort at gmail.com Thu Mar 10 09:36:09 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 10 Mar 2011 18:36:09 +0100 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D790B77.9020502@squeakycode.net> References: <4D783BDA.5060600@mapgears.com> <4D790B77.9020502@squeakycode.net> Message-ID: use AGG/JPEG regards, thomas On Thu, Mar 10, 2011 at 18:33, Andy Colson wrote: > On 3/9/2011 8:47 PM, Daniel Morissette wrote: >> >> The MapServer Team is pleased to announce the release of MapServer >> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. >> > > My mapfile has: > > ? ? ? ?IMAGECOLOR 192 192 192 > ? ? ? ?IMAGEQUALITY 95 > ? ? ? ?IMAGETYPE jpeg > ? ? ? ?OUTPUTFORMAT > ? ? ? ? ? ? ? ?NAME jpeg > ? ? ? ? ? ? ? ?DRIVER 'GD/JPEG' > ? ? ? ? ? ? ? ?MIMETYPE 'image/jpeg' > ? ? ? ? ? ? ? ?EXTENSION 'jpeg' > ? ? ? ?END > > Error I get: > ERROR: 12:OUTPUTFORMAT clause references driver GD/JPEG, but this driver > isn't configured.:loadOutputFormat() > > > ?mapserv -v > MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE > SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > > Sure enough, no GD... but I did compile it in: > > configure: checking for GD 2.0.28 or higher... > checking for gdImageCreatePaletteFromTrueColor in -lgd... yes > ? ? ? ?using libgd 2.0.28 (or higher) from system libs (-L/usr/lib64 -lgd > -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ). > 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 gdImageOpenPolygon in -lgd... yes > checking for gdImageGifPtr in -lgd... yes > checking for gdFontGetTiny in -lgd... yes > checking for gdImageSetResolution in -l... no > checking whether gdImageGetTrueColorPixel is declared... yes > checking for gdImageGetTrueColorPixel in -lgd... yes > ? ? ? ?using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP > -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR > -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs. > > So what do I use? > > I'd also like to try the new opengl stuff.. is there new docs for: > > http://mapserver.org/mapfile/outputformat.html > > -Andy > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From andy at squeakycode.net Thu Mar 10 09:39:05 2011 From: andy at squeakycode.net (Andy Colson) Date: Thu, 10 Mar 2011 11:39:05 -0600 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D783BDA.5060600@mapgears.com> References: <4D783BDA.5060600@mapgears.com> Message-ID: <4D790CB9.8010905@squeakycode.net> On 3/9/2011 8:47 PM, Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. My mapfile has: LABEL TYPE truetype FONT "Vera" SIZE 10 COLOR 255 255 255 OUTLINECOLOR 0 61 245 BUFFER 3 ANGLE [txt_angle] POSITION cc PARTIALS false END I get error: ERROR: 4:Parsing error near (txt_angle):(line 164):getSymbol() (the line number is correct... that's very nice) -Andy From hans.wapenaar at gis-innovations.nl Thu Mar 10 10:32:26 2011 From: hans.wapenaar at gis-innovations.nl (Hans Wapenaar (GIS Innovations)) Date: Thu, 10 Mar 2011 19:32:26 +0100 Subject: [mapserver-users] WMS on top of Google maps API In-Reply-To: <4d79083429eec3.62799056@wp.pl> References: <4d79083429eec3.62799056@wp.pl> Message-ID: <006601cbdf51$826b82a0$874287e0$@wapenaar@gis-innovations.nl> Hi Michal, To get a map transparent I use TRANSPARENT ON in MAP or OUTPUT section and TRANSPARANT XX in the LAYERS section. Probably you won't need IMAGECOLOR anymore. May be it helps, Hans Wapenaar MAP NAME "XXXX" STATUS ON IMAGETYPE PNG UNITS METERS TRANSPARENT ON .... OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER AGG/PNG IMAGEMODE RGBA EXTENSION "png" TRANSPARENT ON END LAYER ... STATUS ON TRANSPARENCY 30 TYPE POLYGON ... END Van: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Namens Michal Drozdz Verzonden: donderdag 10 maart 2011 18:20 Aan: mapserver-users Onderwerp: [mapserver-users] WMS on top of Google maps API Hallo list! I have a problem with mapserver WMS and google maps API http://www.examples.geostrona.pl/WMS_on_top_of_google/ When I am adding WMS layer everything outside national park become white (is is an IMAGECOLOR in mapfile value). How to set transparency for it? I want to have only national park geometry displayed... here is a copy of mapfile: http://www.examples.geostrona.pl/WMS_on_top_of_google/np.map Thanks for help! -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.hopfgartner at r3-gis.com Thu Mar 10 11:02:16 2011 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Thu, 10 Mar 2011 20:02:16 +0100 (CET) Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! Message-ID: <20110310190216.0FB50167821C@mail.r3-gis.com> While trying to build the package for CentOS 5.6, I stumble on Java support: + cd ../java + JAVA_HOME=/usr/lib/jvm/java-1.6.0 + make interface mkdir -p edu/umn/gis/mapscript swig -java -package edu.umn.gis.mapscript -outdir edu/umn/gis/mapscript -o mapscript_wrap.c ../mapscript.i + JAVA_HOME=/usr/lib/jvm/java-1.6.0 + make javac edu/umn/gis/mapscript/*.java gcc -fpic -c -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_SOS_SVR -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL @AGG_ENABLED@ @PDF_ENABLED@ -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_MYGIS -DUSE_THREAD -I/usr/include -Irenderers/agg/include @PDF_INC@ -I/usr/include/php/ext/ereg/ -I/usr/include/gdal -I/usr/include -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -I/usr/include -I/usr/include/libxml2 -I/usr/lib/jvm/java-1.6.0/include -I/usr/lib/jvm/java-1.6.0/include/linux -fno-strict-aliasing mapscript_wrap.c gcc: @AGG_ENABLED@: No such file or directory gcc: @PDF_ENABLED@: No such file or directory gcc: @PDF_INC@: No such file or directory mapscript_wrap.c: In function 'new_imageObj': mapscript_wrap.c:2746: warning: passing argument 1 of 'renderer->loadImageFromFile' discards qualifiers from pointer target type mapscript_wrap.c: In function 'Java_edu_umn_gis_mapscript_mapscriptJNI_imageObj_1getBytes': mapscript_wrap.c:29157: warning: pointer targets in passing argument 2 of 'SWIG_JavaArrayOutSchar' differ in signedness mapscript_wrap.c: In function 'Java_edu_umn_gis_mapscript_mapscriptJNI_msIO_1getStdoutBufferBytes': mapscript_wrap.c:43772: warning: pointer targets in passing argument 2 of 'SWIG_JavaArrayOutSchar' differ in signedness make: *** [mapscript_so] Error 1 error: Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448 (%build) RPM build errors: Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448 (%build) [rpmbuild at rpm-devel ~]$ Regards, Peter R3 GIS Srl - GmbH http://www.r3-gis.com --------Daniel Morissette wrote-------- Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! Date: 10.03.2011 03:48 >The MapServer Team is pleased to announce the release of MapServer >6.0.0-beta1. This is the first beta on our way to a final 6.0 release. > >This new release introduces important changes in key components of the >MapServer core (rendering, query and expressions), and for this reason >we count on you, MapServer power users, to help test the release in your >respective environments and provide feedback (through the users list or >Trac tickets). (...) > >Thanks! - The MapServer Team >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > From andy at squeakycode.net Thu Mar 10 11:03:20 2011 From: andy at squeakycode.net (Andy Colson) Date: Thu, 10 Mar 2011 13:03:20 -0600 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D783BDA.5060600@mapgears.com> References: <4D783BDA.5060600@mapgears.com> Message-ID: <4D792078.6050605@squeakycode.net> On 3/9/2011 8:47 PM, Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. > I cannot get perl mapscript to work. my code: $x = $map->OWSDispatch( $owreq ); if ($x) { print STDERR "ERROR: OWSDispatch: $x\n"; my $errObj = new mapscript::errorObj(); while ($errObj) { print STDERR "ERROR: $errObj->{code}:$errObj->{message}:$errObj->{routine} \n"; $errObj = $errObj->next(); } } my $content_type = mapscript::msIO_stripStdoutBufferContentType(); $x = mapscript::msIO_getStdoutBufferBytes(); This is a test script, and the first problem is I'm not passing any arguments to OWSDispatch. Prior versions errored out and reported: ERROR: OWSDispatch: 1 ERROR: 12:OWS Common exception: exceptionCode=MissingParameterValue, locator=SERVICE, ExceptionText=SERVICE parameter missing.:msOWSDispatch() Ver 6 however reports: ERROR: OWSDispatch: 2 ERROR: 0:: Looks like OWSDispatch returned a 2, but the mapscript::errorObj stuff did not get set. (when I do pass arguments to OWSDispatch I still get an error but with no errorObj descriptions I have no idea whats wrong) Oh, and shp2img works ok. -Andy From dmorissette at mapgears.com Thu Mar 10 11:05:27 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 10 Mar 2011 14:05:27 -0500 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <20110310190216.0FB50167821C@mail.r3-gis.com> References: <20110310190216.0FB50167821C@mail.r3-gis.com> Message-ID: <4D7920F7.703@mapgears.com> Hi Peter, It is quite likely that you are using a SWIG version newer than 1.3.36. The Java SWIG wrappers work best with SWIG 1.3.36. The MapServer source package already contains SWIG wrappers generated using SWIG 1.3.36 so you could use that, or if you must regenerate them then I'd suggest that you try with SWIG 1.3.36. Daniel On 11-03-10 02:02 PM, Peter Hopfgartner wrote: > While trying to build the package for CentOS 5.6, I stumble on Java support: > > + cd ../java > + JAVA_HOME=/usr/lib/jvm/java-1.6.0 > + make interface > mkdir -p edu/umn/gis/mapscript > swig -java -package edu.umn.gis.mapscript -outdir edu/umn/gis/mapscript -o mapscript_wrap.c ../mapscript.i > + JAVA_HOME=/usr/lib/jvm/java-1.6.0 > + make > javac edu/umn/gis/mapscript/*.java > gcc -fpic -c -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_SOS_SVR -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL @AGG_ENABLED@ @PDF_ENABLED@ -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_MYGIS -DUSE_THREAD -I/usr/include -Irenderers/agg/include @PDF_INC@ -I/usr/include/php/ext/ereg/ -I/usr/include/gdal -I/usr/include -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -I/usr/include -I/usr/include/libxml2 -I/usr/l ib/jvm/java-1.6.0/include -I/usr/lib/jvm/java-1.6.0/include/linux -fno-strict-aliasing mapscript_wrap.c > gcc: @AGG_ENABLED@: No such file or directory > gcc: @PDF_ENABLED@: No such file or directory > gcc: @PDF_INC@: No such file or directory > mapscript_wrap.c: In function 'new_imageObj': > mapscript_wrap.c:2746: warning: passing argument 1 of 'renderer->loadImageFromFile' discards qualifiers from pointer target type > mapscript_wrap.c: In function 'Java_edu_umn_gis_mapscript_mapscriptJNI_imageObj_1getBytes': > mapscript_wrap.c:29157: warning: pointer targets in passing argument 2 of 'SWIG_JavaArrayOutSchar' differ in signedness > mapscript_wrap.c: In function 'Java_edu_umn_gis_mapscript_mapscriptJNI_msIO_1getStdoutBufferBytes': > mapscript_wrap.c:43772: warning: pointer targets in passing argument 2 of 'SWIG_JavaArrayOutSchar' differ in signedness > make: *** [mapscript_so] Error 1 > error: Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448 (%build) > > > RPM build errors: > Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448 (%build) > [rpmbuild at rpm-devel ~]$ > > Regards, > > Peter > > R3 GIS Srl - GmbH > http://www.r3-gis.com > > > --------Daniel Morissette wrote-------- > Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! > Date: 10.03.2011 03:48 > >> The MapServer Team is pleased to announce the release of MapServer >> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. >> >> This new release introduces important changes in key components of the >> MapServer core (rendering, query and expressions), and for this reason >> we count on you, MapServer power users, to help test the release in your >> respective environments and provide feedback (through the users list or >> Trac tickets). > (...) >> >> Thanks! - The MapServer Team >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From peter.hopfgartner at r3-gis.com Thu Mar 10 11:05:13 2011 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Thu, 10 Mar 2011 20:05:13 +0100 (CET) Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! Message-ID: <20110310190513.3F987167821C@mail.r3-gis.com> The spec file for MapServer has the following code: chmod -x tests/home.png chmod -x mapscript/php/php_mapscript.c chmod -x mappluginlayer.c chmod -x mapscript/php/mapscript_i.c chmod -x mapscript/php/examples/test_writeshape.phtml chmod -x mapscript/python/examples/*.py chmod -x mapscript/python/tests/rundoctests.dist chmod -x mapscript/perl/examples/*.pl chmod -x mapscript/php/README (...) iconv -f ISO-8859-1 -t UTF-8 < \ mapscript/java/examples/QueryByAttributeUnicode.java > \ mapscript/java/examples/QueryByAttributeUnicode-tmp.java mv -f mapscript/java/examples/QueryByAttributeUnicode-tmp.java \ mapscript/java/examples/QueryByAttributeUnicode.java Could these issues be fixed upstream? Regards, Peter R3 GIS Srl - GmbH http://www.r3-gis.com --------Daniel Morissette wrote-------- Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! Date: 10.03.2011 03:48 >The MapServer Team is pleased to announce the release of MapServer >6.0.0-beta1. This is the first beta on our way to a final 6.0 release. > >This new release introduces important changes in key components of the >MapServer core (rendering, query and expressions), and for this reason >we count on you, MapServer power users, to help test the release in your >respective environments and provide feedback (through the users list or >Trac tickets). > >The timing and feedback for this first beta is very important since it >comes one week before the Montreal Code Sprint where about a dozen >participants will be working specifically on MapServer and will have a >chance to tackle important 6.0 issues that may be found and reported. > >Here is a quick list of RFCs documenting some of the new features or >important changes in 6.0. This list is not complete, we will update it >as we polish the release documentation: > >Core Changes in MapServer 6.0 which could affect existing applications: > >* MS RFC 54: Rendering Interface API >* MS RFC 64: MapServer Expression Parser Overhaul >* MS RFC 65: Single-pass Query Changes for 6.0 > >New Features and Enhancements in MapServer 6.0: > >* MS RFC 58: Kml Output >* MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels >with too much character overlap >* MS RFC 61: Enhance MapServer Feature Style Support >* MS RFC 62: Support Additional WFS GetFeature Output Formats >* MS RFC 63: Built-in OpenLayers map viewer >* MS RFC 66: Better handling of temporary files >* MS RFC 67: Enable/Disable Layers in OGC Web Services >* MS RFC 68: Support for combining features from multiple layers >* MS RFC 69: Support for clustering of features in point layers > >(RFCs are available online at http://mapserver.org/development/rfc/) > >As usual there an a large number of additional small enhancements and >bug fixes. For a complete list see the HISTORY.TXT file at: > > >http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT > >We have started working on a 5.6 -> 6.0 migration guide. This document >contains important notes on backwards incompatibilities or other changes >required when upgrading to 6.0. It is not complete yet but we strongly >recommend that you review the latest version online at: > >http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT > >The source for this release can be downloaded at: > > http://mapserver.org/download.html >or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz > >The binary distributions listed in the download page should be updated >with binaries for the new 6.0.0-beta1 release in the next day or so. > > >This is the first of four planned beta releases and if all goes well a >final release should occur around the end of April. The full release >plan can be viewed at: > > http://trac.osgeo.org/mapserver/wiki/60ReleasePlan > >Once again we need your help to ensure a high quality product, >especially for this beta due to its timing with next week's Code Sprint, >so please help out by testing your applications with this new code base. > >Thanks! - The MapServer Team >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mwkorver at gmail.com Thu Mar 10 11:12:03 2011 From: mwkorver at gmail.com (Mark Korver) Date: Thu, 10 Mar 2011 13:12:03 -0600 Subject: [mapserver-users] WMS on top of Google maps API In-Reply-To: <4d79083429eec3.62799056@wp.pl> References: <4d79083429eec3.62799056@wp.pl> Message-ID: You need to be using png with transparency, not jpeg. Jpeg does not support transparency. format=image/png also &transparent=true quick test is: http://geoforest.org/mapserver/cgi-bin/mapserv?map=/home/mdrozdz/www/np.map&version=1.1.1&request=GetMap&Layers=National_parks_existing&Styles=default&SRS=EPSG:4326&BBOX=20.7421875,42.032974332441405,20.91796875,42.16340342422401&width=256&height=256&format=image/png&transparent=true looks like that works.. 2011/3/10 Micha? Dro?d? : > Hallo list! > > > > I have a problem with mapserver WMS and google maps API > > > > http://www.examples.geostrona.pl/WMS_on_top_of_google/ > > When I am adding WMS layer everything outside national park become white (is > is an IMAGECOLOR in mapfile value). How to set transparency for it? I want > to have only national park geometry displayed... > > > > here is a copy of mapfile: > > http://www.examples.geostrona.pl/WMS_on_top_of_google/np.map > > > > Thanks for help! > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From dmorissette at mapgears.com Thu Mar 10 11:13:12 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 10 Mar 2011 14:13:12 -0500 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <20110310190513.3F987167821C@mail.r3-gis.com> References: <20110310190513.3F987167821C@mail.r3-gis.com> Message-ID: <4D7922C8.9070407@mapgears.com> I have filed a ticket for this and will see what we can do: http://trac.osgeo.org/mapserver/ticket/3726 Daniel On 11-03-10 02:05 PM, Peter Hopfgartner wrote: > The spec file for MapServer has the following code: > > chmod -x tests/home.png > chmod -x mapscript/php/php_mapscript.c > chmod -x mappluginlayer.c > chmod -x mapscript/php/mapscript_i.c > chmod -x mapscript/php/examples/test_writeshape.phtml > chmod -x mapscript/python/examples/*.py > chmod -x mapscript/python/tests/rundoctests.dist > chmod -x mapscript/perl/examples/*.pl > chmod -x mapscript/php/README > > (...) > > iconv -f ISO-8859-1 -t UTF-8< \ > mapscript/java/examples/QueryByAttributeUnicode.java> \ > mapscript/java/examples/QueryByAttributeUnicode-tmp.java > mv -f mapscript/java/examples/QueryByAttributeUnicode-tmp.java \ > mapscript/java/examples/QueryByAttributeUnicode.java > > Could these issues be fixed upstream? > > Regards, > > Peter > > R3 GIS Srl - GmbH > http://www.r3-gis.com > -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From andy at squeakycode.net Thu Mar 10 11:50:53 2011 From: andy at squeakycode.net (Andy Colson) Date: Thu, 10 Mar 2011 13:50:53 -0600 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D792078.6050605@squeakycode.net> References: <4D783BDA.5060600@mapgears.com> <4D792078.6050605@squeakycode.net> Message-ID: <4D792B9D.5070206@squeakycode.net> On 3/10/2011 1:03 PM, Andy Colson wrote: > On 3/9/2011 8:47 PM, Daniel Morissette wrote: >> The MapServer Team is pleased to announce the release of MapServer >> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. >> > > I cannot get perl mapscript to work. > > my code: > > $x = $map->OWSDispatch( $owreq ); > if ($x) > { > print STDERR "ERROR: OWSDispatch: $x\n"; > my $errObj = new mapscript::errorObj(); > while ($errObj) { > print STDERR "ERROR: > $errObj->{code}:$errObj->{message}:$errObj->{routine} \n"; > $errObj = $errObj->next(); > } > } > > my $content_type = mapscript::msIO_stripStdoutBufferContentType(); > $x = mapscript::msIO_getStdoutBufferBytes(); > > This is a test script, and the first problem is I'm not passing any > arguments to OWSDispatch. Prior versions errored out and reported: > > ERROR: OWSDispatch: 1 > ERROR: 12:OWS Common exception: exceptionCode=MissingParameterValue, > locator=SERVICE, ExceptionText=SERVICE parameter missing.:msOWSDispatch() > > > Ver 6 however reports: > > ERROR: OWSDispatch: 2 > ERROR: 0:: > > Looks like OWSDispatch returned a 2, but the mapscript::errorObj stuff > did not get set. > > (when I do pass arguments to OWSDispatch I still get an error but with > no errorObj descriptions I have no idea whats wrong) > > Oh, and shp2img works ok. > > -Andy > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users Oh, if I set EXCEPTIONS to vnd.ogc.se_xml, I do get a message: msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. The layer is set and is valid, its the same request I make to the prior version of mapscript and it works fine. I did have to modify my map file just a bit (commented out the ANGLE and label backgroundcolor), but all the layers are still there. -Andy From yassefa at dmsolutions.ca Thu Mar 10 11:59:07 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 10 Mar 2011 14:59:07 -0500 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D792B9D.5070206@squeakycode.net> References: <4D783BDA.5060600@mapgears.com> <4D792078.6050605@squeakycode.net> <4D792B9D.5070206@squeakycode.net> Message-ID: <4D792D8B.9020405@dmsolutions.ca> nipped> > > msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in > the LAYERS parameter. > > The layer is set and is valid, its the same request I make to the > prior version of mapscript and it works fine. > > I did have to modify my map file just a bit (commented out the ANGLE > and label backgroundcolor), but all the layers are still there. > This could be related to that fact that you should enable ows request (http://mapserver.org/development/rfc/ms-rfc-67.html) "ows_enable_request" "*" best regards, > -Andy > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From szekerest at gmail.com Thu Mar 10 12:01:22 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 10 Mar 2011 21:01:22 +0100 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D792B9D.5070206@squeakycode.net> References: <4D783BDA.5060600@mapgears.com> <4D792078.6050605@squeakycode.net> <4D792B9D.5070206@squeakycode.net> Message-ID: Andy, Take a look at the migration guide http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT Specifically to the "OGC Web Services" part. Best regards, Tamas 2011/3/10 Andy Colson > On 3/10/2011 1:03 PM, Andy Colson wrote: > >> On 3/9/2011 8:47 PM, Daniel Morissette wrote: >> >>> The MapServer Team is pleased to announce the release of MapServer >>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. >>> >>> >> I cannot get perl mapscript to work. >> >> my code: >> >> $x = $map->OWSDispatch( $owreq ); >> if ($x) >> { >> print STDERR "ERROR: OWSDispatch: $x\n"; >> my $errObj = new mapscript::errorObj(); >> while ($errObj) { >> print STDERR "ERROR: >> $errObj->{code}:$errObj->{message}:$errObj->{routine} \n"; >> $errObj = $errObj->next(); >> } >> } >> >> my $content_type = mapscript::msIO_stripStdoutBufferContentType(); >> $x = mapscript::msIO_getStdoutBufferBytes(); >> >> This is a test script, and the first problem is I'm not passing any >> arguments to OWSDispatch. Prior versions errored out and reported: >> >> ERROR: OWSDispatch: 1 >> ERROR: 12:OWS Common exception: exceptionCode=MissingParameterValue, >> locator=SERVICE, ExceptionText=SERVICE parameter missing.:msOWSDispatch() >> >> >> Ver 6 however reports: >> >> ERROR: OWSDispatch: 2 >> ERROR: 0:: >> >> Looks like OWSDispatch returned a 2, but the mapscript::errorObj stuff >> did not get set. >> >> (when I do pass arguments to OWSDispatch I still get an error but with >> no errorObj descriptions I have no idea whats wrong) >> >> Oh, and shp2img works ok. >> >> -Andy >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > Oh, if I set EXCEPTIONS to vnd.ogc.se_xml, I do get a message: > > > > msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the > LAYERS parameter. > > The layer is set and is valid, its the same request I make to the prior > version of mapscript and it works fine. > > I did have to modify my map file just a bit (commented out the ANGLE and > label backgroundcolor), but all the layers are still there. > > > -Andy > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Mar 10 12:08:14 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 10 Mar 2011 16:08:14 -0400 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D783BDA.5060600@mapgears.com> References: <4D783BDA.5060600@mapgears.com> Message-ID: <4D792FAE.9050805@gatewaygeomatics.com> Windows users can test the beta with an MS4W upgrade package (details at http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapserver_ms4w3.x_dev-6.0.0.html). Enjoy! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-03-09 10:47 PM, Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. > > This new release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > The timing and feedback for this first beta is very important since it > comes one week before the Montreal Code Sprint where about a dozen > participants will be working specifically on MapServer and will have a > chance to tackle important 6.0 issues that may be found and reported. > > Here is a quick list of RFCs documenting some of the new features or > important changes in 6.0. This list is not complete, we will update it > as we polish the release documentation: > > Core Changes in MapServer 6.0 which could affect existing applications: > > * MS RFC 54: Rendering Interface API > * MS RFC 64: MapServer Expression Parser Overhaul > * MS RFC 65: Single-pass Query Changes for 6.0 > > New Features and Enhancements in MapServer 6.0: > > * MS RFC 58: Kml Output > * MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels > with too much character overlap > * MS RFC 61: Enhance MapServer Feature Style Support > * MS RFC 62: Support Additional WFS GetFeature Output Formats > * MS RFC 63: Built-in OpenLayers map viewer > * MS RFC 66: Better handling of temporary files > * MS RFC 67: Enable/Disable Layers in OGC Web Services > * MS RFC 68: Support for combining features from multiple layers > * MS RFC 69: Support for clustering of features in point layers > > (RFCs are available online at http://mapserver.org/development/rfc/) > > As usual there an a large number of additional small enhancements and > bug fixes. For a complete list see the HISTORY.TXT file at: > > http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. It is not complete yet but we strongly > recommend that you review the latest version online at: > > http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new 6.0.0-beta1 release in the next day or so. > > > This is the first of four planned beta releases and if all goes well a > final release should occur around the end of April. The full release > plan can be viewed at: > > http://trac.osgeo.org/mapserver/wiki/60ReleasePlan > > Once again we need your help to ensure a high quality product, > especially for this beta due to its timing with next week's Code Sprint, > so please help out by testing your applications with this new code base. > > Thanks! - The MapServer Team From andy at squeakycode.net Thu Mar 10 12:19:45 2011 From: andy at squeakycode.net (Andy Colson) Date: Thu, 10 Mar 2011 14:19:45 -0600 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D792D8B.9020405@dmsolutions.ca> References: <4D783BDA.5060600@mapgears.com> <4D792078.6050605@squeakycode.net> <4D792B9D.5070206@squeakycode.net> <4D792D8B.9020405@dmsolutions.ca> Message-ID: <4D793261.20508@squeakycode.net> On 3/10/2011 1:59 PM, Yewondwossen Assefa wrote: > nipped> >> >> msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in >> the LAYERS parameter. >> >> The layer is set and is valid, its the same request I make to the >> prior version of mapscript and it works fine. >> >> I did have to modify my map file just a bit (commented out the ANGLE >> and label backgroundcolor), but all the layers are still there. >> > This could be related to that fact that you should enable ows request > (http://mapserver.org/development/rfc/ms-rfc-67.html) > > "ows_enable_request" "*" > > > best regards, > > > >> -Andy >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > Ga! Yep. Sort of. My SERVICE is set to WMS not OWS so I completely skipped over it, but I see, reading further there is also wms_enable_request. I enabled both (and either one individually to test) and now I dont get an error, but I also dont get an image back. Might be some other mapfile change. I'll go threw it again. Thanks (and you too Tamas) -Andy From woodbri at swoodbridge.com Thu Mar 10 12:54:42 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 10 Mar 2011 15:54:42 -0500 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: References: <4D783BDA.5060600@mapgears.com> <4D790B77.9020502@squeakycode.net> Message-ID: <4D793A92.3020907@swoodbridge.com> A couple of points on this, MS6.0 no longer has a GD driver? is this correct? if so, then: a. need to add to migration guide b. need to indicate appropriate GD to AGG OUTPUTFORMAT conversions c. mapfile parsing should throw an error ob DRIVER 'GD/...' -Steve W On 3/10/2011 12:36 PM, thomas bonfort wrote: > use AGG/JPEG > > regards, > thomas > > On Thu, Mar 10, 2011 at 18:33, Andy Colson wrote: >> On 3/9/2011 8:47 PM, Daniel Morissette wrote: >>> >>> The MapServer Team is pleased to announce the release of MapServer >>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. >>> >> >> My mapfile has: >> >> IMAGECOLOR 192 192 192 >> IMAGEQUALITY 95 >> IMAGETYPE jpeg >> OUTPUTFORMAT >> NAME jpeg >> DRIVER 'GD/JPEG' >> MIMETYPE 'image/jpeg' >> EXTENSION 'jpeg' >> END >> >> Error I get: >> ERROR: 12:OUTPUTFORMAT clause references driver GD/JPEG, but this driver >> isn't configured.:loadOutputFormat() >> >> >> mapserv -v >> MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >> SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE >> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR >> INPUT=GDAL INPUT=SHAPEFILE >> >> >> Sure enough, no GD... but I did compile it in: >> >> configure: checking for GD 2.0.28 or higher... >> checking for gdImageCreatePaletteFromTrueColor in -lgd... yes >> using libgd 2.0.28 (or higher) from system libs (-L/usr/lib64 -lgd >> -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ). >> 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 gdImageOpenPolygon in -lgd... yes >> checking for gdImageGifPtr in -lgd... yes >> checking for gdFontGetTiny in -lgd... yes >> checking for gdImageSetResolution in -l... no >> checking whether gdImageGetTrueColorPixel is declared... yes >> checking for gdImageGetTrueColorPixel in -lgd... yes >> using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP >> -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR >> -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs. >> >> So what do I use? >> >> I'd also like to try the new opengl stuff.. is there new docs for: >> >> http://mapserver.org/mapfile/outputformat.html >> >> -Andy >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Thu Mar 10 13:18:41 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 10 Mar 2011 15:18:41 -0600 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D790CB9.8010905@squeakycode.net> References: <4D783BDA.5060600@mapgears.com> <4D790CB9.8010905@squeakycode.net> Message-ID: Hmm... Is the mapfile being loaded through MapScript or CGI/sh2img? Will have a look. THANKS FOR TESTING!!! Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Colson Sent: Thursday, March 10, 2011 11:39 AM To: Daniel Morissette Cc: mapserver-users Subject: Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! On 3/9/2011 8:47 PM, Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. My mapfile has: LABEL TYPE truetype FONT "Vera" SIZE 10 COLOR 255 255 255 OUTLINECOLOR 0 61 245 BUFFER 3 ANGLE [txt_angle] POSITION cc PARTIALS false END I get error: ERROR: 4:Parsing error near (txt_angle):(line 164):getSymbol() (the line number is correct... that's very nice) -Andy _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From yassefa at dmsolutions.ca Thu Mar 10 13:32:04 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 10 Mar 2011 16:32:04 -0500 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D793A92.3020907@swoodbridge.com> References: <4D783BDA.5060600@mapgears.com> <4D790B77.9020502@squeakycode.net> <4D793A92.3020907@swoodbridge.com> Message-ID: <4D794354.7070203@dmsolutions.ca> GD is still there . It is still there and does 8bit png and gif. On 10/03/2011 3:54 PM, Stephen Woodbridge wrote: > A couple of points on this, MS6.0 no longer has a GD driver? is this > correct? if so, then: > a. need to add to migration guide > b. need to indicate appropriate GD to AGG OUTPUTFORMAT conversions > c. mapfile parsing should throw an error ob DRIVER 'GD/...' > > -Steve W > > On 3/10/2011 12:36 PM, thomas bonfort wrote: >> use AGG/JPEG >> >> regards, >> thomas >> >> On Thu, Mar 10, 2011 at 18:33, Andy Colson wrote: >>> On 3/9/2011 8:47 PM, Daniel Morissette wrote: >>>> >>>> The MapServer Team is pleased to announce the release of MapServer >>>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. >>>> >>> >>> My mapfile has: >>> >>> IMAGECOLOR 192 192 192 >>> IMAGEQUALITY 95 >>> IMAGETYPE jpeg >>> OUTPUTFORMAT >>> NAME jpeg >>> DRIVER 'GD/JPEG' >>> MIMETYPE 'image/jpeg' >>> EXTENSION 'jpeg' >>> END >>> >>> Error I get: >>> ERROR: 12:OUTPUTFORMAT clause references driver GD/JPEG, but this >>> driver >>> isn't configured.:loadOutputFormat() >>> >>> >>> mapserv -v >>> MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >>> SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL >>> SUPPORTS=FREETYPE >>> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS >>> INPUT=OGR >>> INPUT=GDAL INPUT=SHAPEFILE >>> >>> >>> Sure enough, no GD... but I did compile it in: >>> >>> configure: checking for GD 2.0.28 or higher... >>> checking for gdImageCreatePaletteFromTrueColor in -lgd... yes >>> using libgd 2.0.28 (or higher) from system libs >>> (-L/usr/lib64 -lgd >>> -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ). >>> 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 gdImageOpenPolygon in -lgd... yes >>> checking for gdImageGifPtr in -lgd... yes >>> checking for gdFontGetTiny in -lgd... yes >>> checking for gdImageSetResolution in -l... no >>> checking whether gdImageGetTrueColorPixel is declared... yes >>> checking for gdImageGetTrueColorPixel in -lgd... yes >>> using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG >>> -DUSE_GD_WBMP >>> -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR >>> -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system >>> libs. >>> >>> So what do I use? >>> >>> I'd also like to try the new opengl stuff.. is there new docs for: >>> >>> http://mapserver.org/mapfile/outputformat.html >>> >>> -Andy >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From jbw2003 at earthlink.net Thu Mar 10 13:49:41 2011 From: jbw2003 at earthlink.net (Jim White) Date: Thu, 10 Mar 2011 16:49:41 -0500 Subject: [mapserver-users] Re: WMS on top of Google maps API In-Reply-To: <20110310190221.47649E024BB@lists.osgeo.org> References: <20110310190221.47649E024BB@lists.osgeo.org> Message-ID: <4D794775.5040503@earthlink.net> You can add the OFFSITE option to a layer to set a color to transparent. Jim On 03/10/2011 02:02 PM, mapserver-users-request at lists.osgeo.org wrote: > > > Van:mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Namens Michal Drozdz > Verzonden: donderdag 10 maart 2011 18:20 > Aan: mapserver-users > Onderwerp: [mapserver-users] WMS on top of Google maps API > > > > Hallo list! > > > > I have a problem with mapserver WMS and google maps API > > > > http://www.examples.geostrona.pl/WMS_on_top_of_google/ > > When I am adding WMS layer everything outside national park become white (is > is an IMAGECOLOR in mapfile value). How to set transparency for it? I want > to have only national park geometry displayed... > > > > here is a copy of mapfile: > > http://www.examples.geostrona.pl/WMS_on_top_of_google/np.map > > > > Thanks for help! > > > From wal3 at mindspring.com Thu Mar 10 14:21:40 2011 From: wal3 at mindspring.com (Worth Lutz) Date: Thu, 10 Mar 2011 17:21:40 -0500 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - TEST PROBLEMS! In-Reply-To: <201103092313.22149.aboudreault@mapgears.com> References: <4D783BDA.5060600@mapgears.com> <201103092313.22149.aboudreault@mapgears.com> Message-ID: <9B88EA19DC5441D79FFD2E2F0EC46E33@Worthlaptop> I have loaded MapServer 6.0 from ubuntugis-testing. I finally stripped down a mapfile and got it working. I have upgraded and downgraded several times trying to find the errors in my mapfile. The repository works GREAT. Thanks for creating it!. I want to test the new Cairo/pdf output. I have a need for pdf output and have been waiting for this release. My phpinfo output for mapscript only shows: OUTPUT=GIF/PNG/JPEG PDF and SVG is not included. Can you please add these to the configure options used to create the repository? If not could you give me the proper configuration I should use to compile MapServer 6.0. I have tried one or twice to compile from source and have not been very successful. I never seem to get the configuration right. Thanks for your help, Worth -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Thu Mar 10 14:39:00 2011 From: andy at squeakycode.net (Andy Colson) Date: Thu, 10 Mar 2011 16:39:00 -0600 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D794354.7070203@dmsolutions.ca> References: <4D783BDA.5060600@mapgears.com> <4D790B77.9020502@squeakycode.net> <4D793A92.3020907@swoodbridge.com> <4D794354.7070203@dmsolutions.ca> Message-ID: <4D795304.4050007@squeakycode.net> > On 10/03/2011 3:54 PM, Stephen Woodbridge wrote: >> A couple of points on this, MS6.0 no longer has a GD driver? is this >> correct? if so, then: >> a. need to add to migration guide >> b. need to indicate appropriate GD to AGG OUTPUTFORMAT conversions >> c. mapfile parsing should throw an error ob DRIVER 'GD/...' >> >> -Steve W >> On 3/10/2011 3:32 PM, Yewondwossen Assefa wrote: > GD is still there . It is still there and does 8bit png and gif. > Well, then I think somethings wrong. I cannot get GD to work at all, and I cannot get it to use anything else: andy at mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.jpg -i jpeg loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver GD/JPEG, but this driver isn't configured.
andy at mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i jpg loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver GD/JPEG, but this driver isn't configured.
-- yes, bob2 is defined as an outputform in my .map file as AGG/PNG andy at mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i bob2 loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver GD/JPEG, but this driver isn't configured.
andy at mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i png loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver GD/JPEG, but this driver isn't configured.
Does not seem to matter what I have in the .map file... nothing works. And I did compile GD in, why why wont it use it? -Andy From armin.burger at gmx.net Thu Mar 10 14:42:12 2011 From: armin.burger at gmx.net (Armin Burger) Date: Thu, 10 Mar 2011 23:42:12 +0100 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Error with $point->setXY() In-Reply-To: <4D783BDA.5060600@mapgears.com> References: <4D783BDA.5060600@mapgears.com> Message-ID: <4D7953C4.30103@gmx.net> I tried the MS 6beta1 from SVN (the osgeo download site is not responding). The first error I found in PHP Mapscript was related to the function setXY() for point objects, the following code causes a segmentation fault (something like "child pid 16057 exit signal Segmentation fault (11)" in the Apache error log): $pnt = new PointObj(); $pnt->setXY(250,200); Same problem appears when creating the point with the old syntax $pnt = ms_newPointObj(); The environment is Ubuntu 10.04, PHP 5.3.5 and Apache2 prefork (PHP as DSO). regards armin From andy at squeakycode.net Thu Mar 10 14:46:23 2011 From: andy at squeakycode.net (Andy Colson) Date: Thu, 10 Mar 2011 16:46:23 -0600 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: References: <4D783BDA.5060600@mapgears.com> <4D790CB9.8010905@squeakycode.net> Message-ID: <4D7954BF.2040006@squeakycode.net> > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Colson > Sent: Thursday, March 10, 2011 11:39 AM > To: Daniel Morissette > Cc: mapserver-users > Subject: Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! > > On 3/9/2011 8:47 PM, Daniel Morissette wrote: >> The MapServer Team is pleased to announce the release of MapServer >> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. > > > My mapfile has: > > LABEL > TYPE truetype > FONT "Vera" > SIZE 10 > COLOR 255 255 255 > OUTLINECOLOR 0 61 245 > BUFFER 3 > ANGLE [txt_angle] > POSITION cc > PARTIALS false > END > > I get error: > > ERROR: 4:Parsing error near (txt_angle):(line 164):getSymbol() > > (the line number is correct... that's very nice) > > -Andy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > On 3/10/2011 3:18 PM, Lime, Steve D (DNR) wrote: > Hmm... Is the mapfile being loaded through MapScript or CGI/sh2img? Will have a look. > > THANKS FOR TESTING!!! > > Steve > Both fail. Here is the map file. It uses postGis, hopefully it'll die parsing before you actually need to hit the db. -Andy -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: blueearthmn2.map URL: From gcpp.kalxas at gmail.com Thu Mar 10 14:49:44 2011 From: gcpp.kalxas at gmail.com (Angelos Tzotsos) Date: Fri, 11 Mar 2011 00:49:44 +0200 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D783BDA.5060600@mapgears.com> References: <4D783BDA.5060600@mapgears.com> Message-ID: <4D795588.5070101@gmail.com> Hi, I have completed a test build of beta 1 on OpenSUSE Build Service: https://build.opensuse.org/project/monitor?project=home%3Atzotsos%3Abranches%3AApplication%3AGeo The repository for openSUSE 11.4 is: http://download.opensuse.org/repositories/home:/tzotsos:/branches:/Application:/Geo/openSUSE_11.4/ When the final 6.0.0 is released, I will forward the package to the official repository (Application:Geo) Angelos On 03/10/2011 04:47 AM, Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. > > This new release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in > your respective environments and provide feedback (through the users > list or Trac tickets). > > The timing and feedback for this first beta is very important since it > comes one week before the Montreal Code Sprint where about a dozen > participants will be working specifically on MapServer and will have a > chance to tackle important 6.0 issues that may be found and reported. > > Here is a quick list of RFCs documenting some of the new features or > important changes in 6.0. This list is not complete, we will update it > as we polish the release documentation: > > Core Changes in MapServer 6.0 which could affect existing applications: > > * MS RFC 54: Rendering Interface API > * MS RFC 64: MapServer Expression Parser Overhaul > * MS RFC 65: Single-pass Query Changes for 6.0 > > New Features and Enhancements in MapServer 6.0: > > * MS RFC 58: Kml Output > * MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels > with too much character overlap > * MS RFC 61: Enhance MapServer Feature Style Support > * MS RFC 62: Support Additional WFS GetFeature Output Formats > * MS RFC 63: Built-in OpenLayers map viewer > * MS RFC 66: Better handling of temporary files > * MS RFC 67: Enable/Disable Layers in OGC Web Services > * MS RFC 68: Support for combining features from multiple layers > * MS RFC 69: Support for clustering of features in point layers > > (RFCs are available online at http://mapserver.org/development/rfc/) > > As usual there an a large number of additional small enhancements and > bug fixes. For a complete list see the HISTORY.TXT file at: > > > http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other > changes required when upgrading to 6.0. It is not complete yet but we > strongly recommend that you review the latest version online at: > > http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT > > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new 6.0.0-beta1 release in the next day or so. > > > This is the first of four planned beta releases and if all goes well a > final release should occur around the end of April. The full release > plan can be viewed at: > > http://trac.osgeo.org/mapserver/wiki/60ReleasePlan > > Once again we need your help to ensure a high quality product, > especially for this beta due to its timing with next week's Code > Sprint, so please help out by testing your applications with this new > code base. > > Thanks! - The MapServer Team > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Angelos Tzotsos Remote Sensing Laboratory National Technical University of Athens http://users.ntua.gr/tzotsos From andy at squeakycode.net Thu Mar 10 14:51:42 2011 From: andy at squeakycode.net (Andy Colson) Date: Thu, 10 Mar 2011 16:51:42 -0600 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D795304.4050007@squeakycode.net> References: <4D783BDA.5060600@mapgears.com> <4D790B77.9020502@squeakycode.net> <4D793A92.3020907@swoodbridge.com> <4D794354.7070203@dmsolutions.ca> <4D795304.4050007@squeakycode.net> Message-ID: <4D7955FE.8030701@squeakycode.net> On 3/10/2011 4:39 PM, Andy Colson wrote: >> On 10/03/2011 3:54 PM, Stephen Woodbridge wrote: >>> A couple of points on this, MS6.0 no longer has a GD driver? is this >>> correct? if so, then: >>> a. need to add to migration guide >>> b. need to indicate appropriate GD to AGG OUTPUTFORMAT conversions >>> c. mapfile parsing should throw an error ob DRIVER 'GD/...' >>> >>> -Steve W >>> > > On 3/10/2011 3:32 PM, Yewondwossen Assefa wrote: > > GD is still there . It is still there and does 8bit png and gif. > > > > > Well, then I think somethings wrong. I cannot get GD to work at all, and > I cannot get it to use anything else: > > andy at mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.jpg -i jpeg > loadOutputFormat(): General error message. OUTPUTFORMAT clause > references driver GD/JPEG, but this driver isn't configured.
> > andy at mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i jpg > loadOutputFormat(): General error message. OUTPUTFORMAT clause > references driver GD/JPEG, but this driver isn't configured.
> > -- yes, bob2 is defined as an outputform in my .map file as AGG/PNG > > andy at mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i bob2 > loadOutputFormat(): General error message. OUTPUTFORMAT clause > references driver GD/JPEG, but this driver isn't configured.
> > andy at mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i png > loadOutputFormat(): General error message. OUTPUTFORMAT clause > references driver GD/JPEG, but this driver isn't configured.
> > Does not seem to matter what I have in the .map file... nothing works. > > And I did compile GD in, why why wont it use it? > > -Andy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users BA! I was editing blueearthmn2.map but shp2img'ing blueearthmn.map but still, I cannot get GD to work at all. And it seems like the outputFormats are colliding. If I define: OUTPUTFORMAT NAME "bob2" DRIVER 'AGG/PNG' MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END I can use bob2, but if I name it agg or aggpng24 (or whatever) it has problems. (same with jpeg and jpg, cant seem to use em) If I use anything "standard" I get an empty image back. Meaning zero byte file. (from perl mapscript). Using bob2 I can get an image back, and it looks nice. -Andy From jmckenna at gatewaygeomatics.com Thu Mar 10 15:06:37 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 10 Mar 2011 19:06:37 -0400 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D792FAE.9050805@gatewaygeomatics.com> References: <4D783BDA.5060600@mapgears.com> <4D792FAE.9050805@gatewaygeomatics.com> Message-ID: <4D79597D.4050907@gatewaygeomatics.com> I must not be the only one wanting to test the Cairo PDF output in 6.0...and I thought I'd end the day with something positive: it looks nice and it is easy to test! :) Verify that you have the support required in your local MapServer build by executing "mapserv -v" and making sure the response contains "SUPPORTS=CAIRO". Then simply change IMAGETYPE in your mapfile to "pdf", and test with a shp2img command (shp2img -m test.map -o test.pdf) et voila! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From armin.burger at gmx.net Thu Mar 10 15:29:47 2011 From: armin.burger at gmx.net (Armin Burger) Date: Fri, 11 Mar 2011 00:29:47 +0100 Subject: [mapserver-users] MapServer 6 and KML outputformat Message-ID: <4D795EEB.2030709@gmx.net> Hi all the outputformat KML in the new MS 6 is quite nice and it allows easy and flexible data export to KML especially via Mapscript. But the implementation of the export of data attributes could be improved IMHO. Currently the fields/items of the layers (defined under map file METADATA KML_INCLUDE_ITEMS) are exported to a KML tag "" and inserted as HTML table. While this is of course possible, a cleander way would be how GDAL/OGR exports the attributes: GDAL/OGR uses the tag and places the attribute values in tags, like ... Berlin 3899412 DE This leads to a much better display in Google Earth. In addition to the KML_INCLUDE_ITEMS, another possibility to define a field/item used in KML for the tag would be useful, like OGR allows this via the NameField option. So maybe a METADATA definition like KML_NAME_FIELD could do this. Best regards Armin From andy at squeakycode.net Thu Mar 10 17:16:10 2011 From: andy at squeakycode.net (Andy Colson) Date: Thu, 10 Mar 2011 19:16:10 -0600 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D783BDA.5060600@mapgears.com> References: <4D783BDA.5060600@mapgears.com> Message-ID: <4D7977DA.6080709@squeakycode.net> On 03/09/2011 08:47 PM, Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. > I cannot seem to get opengl to work. a stacktrace of shp2img: Program received signal SIGSEGV, Segmentation fault. 0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1 (gdb) backtrace #0 0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1 #1 0x000000000047667f in OglRenderer::OglRenderer(unsigned int, unsigned int, colorObj*) () #2 0x0000000000474988 in msImageCreateOgl(int, int, outputFormatObj*, colorObj*) () #3 0x000000000044cd26 in msPrepareImage () #4 0x000000000044ce75 in msDrawMap () #5 0x0000000000415067 in main () (gdb) MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I dont need special video card and/or drivers, do I? And I'm not running X. Dont need to, do I? -Andy From Phil.Anzel at ftc.usda.gov Thu Mar 10 17:24:18 2011 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO) Date: Thu, 10 Mar 2011 19:24:18 -0600 Subject: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release Message-ID: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov> All, I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011. It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010. Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output. I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported. Can you help? Thanks, - Phil Anzel Web Soil Survey development team Vistronix Inc. for USDA/NRCS/ITC ..... start of map file ..... MAP OUTPUTFORMAT NAME 'pnga' MIMETYPE 'image/pnga' DRIVER 'AGG/PNG' EXTENSION 'png' IMAGEMODE 'RGBA' TRANSPARENT TRUE FORMATOPTION 'INTERLACE=OFF' END STATUS ON SIZE 954 589 EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729 RESOLUTION 70 UNITS METERS IMAGECOLOR 255 255 255 PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END symbol name 'circle' filled true type ellipse points 0 0 1 1 end end LAYER NAME 'single line' STATUS ON TYPE LINE feature points -11760750 5057520 -11752920 5062330 end end CLASS style symbol 'circle' size 20 color 255 255 0 outlinecolor 255 0 0 end style width 1 color 0 0 255 end end END # end of layer 'single line' END # end of MAP ..... end of map file ..... From andy at squeakycode.net Thu Mar 10 18:02:49 2011 From: andy at squeakycode.net (Andy Colson) Date: Thu, 10 Mar 2011 20:02:49 -0600 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D7977DA.6080709@squeakycode.net> References: <4D783BDA.5060600@mapgears.com> <4D7977DA.6080709@squeakycode.net> Message-ID: <4D7982C9.4050601@squeakycode.net> On 03/10/2011 07:16 PM, Andy Colson wrote: > On 03/09/2011 08:47 PM, Daniel Morissette wrote: >> The MapServer Team is pleased to announce the release of MapServer 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. >> > > I cannot seem to get opengl to work. > > a stacktrace of shp2img: > > Program received signal SIGSEGV, Segmentation fault. > 0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1 > (gdb) backtrace > #0 0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1 > #1 0x000000000047667f in OglRenderer::OglRenderer(unsigned int, unsigned int, colorObj*) () > #2 0x0000000000474988 in msImageCreateOgl(int, int, outputFormatObj*, colorObj*) () > #3 0x000000000044cd26 in msPrepareImage () > #4 0x000000000044ce75 in msDrawMap () > #5 0x0000000000415067 in main () > (gdb) > > > > MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > I dont need special video card and/or drivers, do I? And I'm not running X. Dont need to, do I? > > -Andy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users To reply to myself, after some googling, it looks like yes, X is needed. Which kinda sucks. This is a webserver, it runs apache and postgresql. In a rack someplace. Doesn't even have a monitor attached. If I ever need to do something I ssh in. Its also has a crappy video card. Cuz its a server. Never thought I'd need good video. So here is my delima: do I buy a $80 video card, and run X, so I can get hardware accelerated maps? Is it worth it? Is it that much faster? How many concurrent maps can be drawn at once? If 10 people hit my website can all 10 images be rendered at once? Or will one run and the others error out? Is there an upper limit for the number of concurrent renderings? Any benchmarks? -Andy From thomas.bonfort at gmail.com Fri Mar 11 03:10:54 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 11 Mar 2011 12:10:54 +0100 Subject: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release In-Reply-To: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov> References: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov> Message-ID: Phil, what kind of symbology are you trying to obtain. I suspect you're aiming for a thick line, which now does not require the use of a symbol, but rather: style width 20 color 0 0 255 end regards, thomas On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO wrote: > All, > > I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011. > > It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010. > > Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output. > > I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported. > > Can you help? > > Thanks, > > - Phil Anzel > ?Web Soil Survey development team > ?Vistronix Inc. for USDA/NRCS/ITC > > ..... start of map file ..... > > MAP > ?OUTPUTFORMAT > ? ?NAME 'pnga' > ? ?MIMETYPE 'image/pnga' > ? ?DRIVER 'AGG/PNG' > ? ?EXTENSION 'png' > ? ?IMAGEMODE 'RGBA' > ? ?TRANSPARENT TRUE > ? ?FORMATOPTION 'INTERLACE=OFF' > ?END > ?STATUS ON > ?SIZE 954 589 > ?EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729 > ?RESOLUTION 70 > ?UNITS METERS > ?IMAGECOLOR 255 255 255 > ?PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END > > ?symbol > ? ?name 'circle' filled true type ellipse points 0 0 1 1 end > ?end > > ?LAYER > ? ?NAME ?'single line' > ? ?STATUS ON > ? ?TYPE LINE > ? ?feature points -11760750 5057520 -11752920 5062330 end end > ? ?CLASS > ? ? ?style > ? ? ? ?symbol 'circle' > ? ? ? ?size 20 > ? ? ? ?color 255 255 0 > ? ? ? ?outlinecolor 255 0 0 > ? ? ?end > ? ? ?style > ? ? ? ?width 1 > ? ? ? ?color 0 0 255 > ? ? ?end > ? ?end > ?END # end of layer 'single line' > END ?# end of MAP > > ..... end of map file ..... > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Fri Mar 11 03:20:41 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 11 Mar 2011 12:20:41 +0100 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D7982C9.4050601@squeakycode.net> References: <4D783BDA.5060600@mapgears.com> <4D7977DA.6080709@squeakycode.net> <4D7982C9.4050601@squeakycode.net> Message-ID: Andy, yes a (beefy) video card is needed or at least wanted, as you want to offset the calculations to the GPU. If one isn't present, you're going to fall back to a software opengl implementation which will be orders of magnitude slower than what AGG is going to take. cc-ing Toby if he wants to comment further on this. regards, thomas On Fri, Mar 11, 2011 at 03:02, Andy Colson wrote: > On 03/10/2011 07:16 PM, Andy Colson wrote: >> >> On 03/09/2011 08:47 PM, Daniel Morissette wrote: >>> >>> The MapServer Team is pleased to announce the release of MapServer >>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. >>> >> >> I cannot seem to get opengl to work. >> >> a stacktrace of shp2img: >> >> Program received signal SIGSEGV, Segmentation fault. >> 0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1 >> (gdb) backtrace >> #0 0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1 >> #1 0x000000000047667f in OglRenderer::OglRenderer(unsigned int, unsigned >> int, colorObj*) () >> #2 0x0000000000474988 in msImageCreateOgl(int, int, outputFormatObj*, >> colorObj*) () >> #3 0x000000000044cd26 in msPrepareImage () >> #4 0x000000000044ce75 in msDrawMap () >> #5 0x0000000000415067 in main () >> (gdb) >> >> >> >> MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >> SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE >> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR >> INPUT=GDAL INPUT=SHAPEFILE >> >> I dont need special video card and/or drivers, do I? And I'm not running >> X. Dont need to, do I? >> >> -Andy >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > To reply to myself, after some googling, it looks like yes, X is needed. > > Which kinda sucks. ?This is a webserver, it runs apache and postgresql. ?In > a rack someplace. ?Doesn't even have a monitor attached. ?If I ever need to > do something I ssh in. > > Its also has a crappy video card. ?Cuz its a server. ?Never thought I'd need > good video. > > So here is my delima: do I buy a $80 video card, and run X, so I can get > hardware accelerated maps? ?Is it worth it? ?Is it that much faster? > > How many concurrent maps can be drawn at once? ?If 10 people hit my website > can all 10 images be rendered at once? ?Or will one run and the others error > out? ?Is there an upper limit for the number of concurrent renderings? > > Any benchmarks? > > -Andy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Fri Mar 11 03:17:20 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 11 Mar 2011 12:17:20 +0100 Subject: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release In-Reply-To: References: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov> Message-ID: huh, I may have misinterpreted... you can't expect to obtain a point/marker symbology when using a line geometry. if you effectively want to use marker symbols, you can have a look RFC 48 and its GEOMTRANSFORM "start|end|vertices" transformations. -- thomas On Fri, Mar 11, 2011 at 12:10, thomas bonfort wrote: > Phil, > > what kind of symbology are you trying to obtain. I suspect you're > aiming for a thick line, which now does not require the use of a > symbol, but rather: > > style > ?width 20 > ?color 0 0 255 > end > > regards, > thomas > > On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO > wrote: >> All, >> >> I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011. >> >> It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010. >> >> Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output. >> >> I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported. >> >> Can you help? >> >> Thanks, >> >> - Phil Anzel >> ?Web Soil Survey development team >> ?Vistronix Inc. for USDA/NRCS/ITC >> >> ..... start of map file ..... >> >> MAP >> ?OUTPUTFORMAT >> ? ?NAME 'pnga' >> ? ?MIMETYPE 'image/pnga' >> ? ?DRIVER 'AGG/PNG' >> ? ?EXTENSION 'png' >> ? ?IMAGEMODE 'RGBA' >> ? ?TRANSPARENT TRUE >> ? ?FORMATOPTION 'INTERLACE=OFF' >> ?END >> ?STATUS ON >> ?SIZE 954 589 >> ?EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729 >> ?RESOLUTION 70 >> ?UNITS METERS >> ?IMAGECOLOR 255 255 255 >> ?PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END >> >> ?symbol >> ? ?name 'circle' filled true type ellipse points 0 0 1 1 end >> ?end >> >> ?LAYER >> ? ?NAME ?'single line' >> ? ?STATUS ON >> ? ?TYPE LINE >> ? ?feature points -11760750 5057520 -11752920 5062330 end end >> ? ?CLASS >> ? ? ?style >> ? ? ? ?symbol 'circle' >> ? ? ? ?size 20 >> ? ? ? ?color 255 255 0 >> ? ? ? ?outlinecolor 255 0 0 >> ? ? ?end >> ? ? ?style >> ? ? ? ?width 1 >> ? ? ? ?color 0 0 255 >> ? ? ?end >> ? ?end >> ?END # end of layer 'single line' >> END ?# end of MAP >> >> ..... end of map file ..... >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From Steve.Lime at state.mn.us Fri Mar 11 05:29:47 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 11 Mar 2011 07:29:47 -0600 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! In-Reply-To: <4D7954BF.2040006@squeakycode.net> References: <4D783BDA.5060600@mapgears.com> <4D790CB9.8010905@squeakycode.net> , <4D7954BF.2040006@squeakycode.net> Message-ID: This is fixed in svn. See http://trac.osgeo.org/mapserver/ticket/3727. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Colson [andy at squeakycode.net] Sent: Thursday, March 10, 2011 4:46 PM To: Lime, Steve D (DNR) Cc: mapserver-users; Daniel Morissette Subject: Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Colson > Sent: Thursday, March 10, 2011 11:39 AM > To: Daniel Morissette > Cc: mapserver-users > Subject: Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! > > On 3/9/2011 8:47 PM, Daniel Morissette wrote: >> The MapServer Team is pleased to announce the release of MapServer >> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. > > > My mapfile has: > > LABEL > TYPE truetype > FONT "Vera" > SIZE 10 > COLOR 255 255 255 > OUTLINECOLOR 0 61 245 > BUFFER 3 > ANGLE [txt_angle] > POSITION cc > PARTIALS false > END > > I get error: > > ERROR: 4:Parsing error near (txt_angle):(line 164):getSymbol() > > (the line number is correct... that's very nice) > > -Andy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > On 3/10/2011 3:18 PM, Lime, Steve D (DNR) wrote: > Hmm... Is the mapfile being loaded through MapScript or CGI/sh2img? Will have a look. > > THANKS FOR TESTING!!! > > Steve > Both fail. Here is the map file. It uses postGis, hopefully it'll die parsing before you actually need to hit the db. -Andy From thomas.bonfort at gmail.com Fri Mar 11 05:43:41 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 11 Mar 2011 14:43:41 +0100 Subject: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release In-Reply-To: <809503517A1B0347AF9A161507E6B29923BA4ECC91@mokansasc7s304.agent.one.usda.gov> References: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov> <809503517A1B0347AF9A161507E6B29923BA4ECC91@mokansasc7s304.agent.one.usda.gov> Message-ID: for a tie symbol you should specify a (negative) GAP. something like: http://www2.terriscope.fr/geocache/wms?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=epsg%3A4326&BBOX=1.34033203125,43.76953125,1.3623046875,43.79150390625&WIDTH=256&HEIGHT=256 is obtained with SYMBOL NAME "rail" TYPE TRUETYPE FONT sc CHARACTER '|' GAP -3 END ... STYLE WIDTH 2 OUTLINEWIDTH 1 OUTLINECOLOR "#555554" COLOR "#ffffff" END STYLE SYMBOL rail SIZE 5 COLOR "#555554" END On Fri, Mar 11, 2011 at 14:35, Anzel, Phil - Fort Collins, CO wrote: > Hi, Thomas, > > Thanks for looking into this problem. > > My goal is to create a "railroad" cross-hatching along a line. I originally used: > ? ?SYMBOL > ? ? ?NAME 'default' > ? ? ?Type simple > ? ?END > ? ?SYMBOL > ? ? ?NAME 'tie' > ? ? ?TYPE vector > ? ? ?POINTS 0 0 ?0 7 ?-99 -99 ?7 0 ?7 7 ?END > ? ?END > These were referenced, within a layer of type "line", by: > ? CLASS > ? ? STYLE > ? ? ? SYMBOL ? ? ? ? ? ?'default' > ? ? ? SIZE ? ? ? ? ? ? ?1 > ? ? ? COLOR ? ? ? ? ? ? 0 0 0 > ? ? END > ? ? STYLE > ? ? ?SYMBOL ? ? ? ? ? ? 'tie' > ? ? ?SIZE ? ? ? ? ? ? ? 8 > ? ? ?COLOR ? ? ? ? ? ? ?0 0 0 > ? ? END > ? END > > This had worked under MapServer 5.6.3. I returned to this example after upgrading to 5.7DEV on March 9, 2011, and found that the "tie" cross-hatching had disappeared. I tried several other symbols; I used the "circle" as an example because it also worked in the past and is used in the MapServer "Introduction to MapServer", section 2.4.3, "CLASS and STYLE objects". > > Closer to the 2.4.3 example, if I define: > ?symbol > ? ?name 'circle' > ? ?filled true > ? ?type ellipse > ? ?points 0 0 1 1 end > ?end > and reference this definition, as per the example, with: > ? ? style > ? ? ? symbol "circle" > ? ? ? color 178 114 1 > ? ? ? size 15 > ? ? end > ? ? style > ? ? ? symbol "circle" > ? ? ? color 254 161 0 > ? ? ? size 7 > ? ? end > then there is no image created. > > Given these experimental results, I wonder if there has been a change in behavior in drawing symbols. Alternatively I've made a very simple error. > > Is there an error in my map file? How do you recommend that the "railroad" hatched line be drawn? > > Thanks again. > > - Phil > > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Friday, March 11, 2011 4:17 AM > To: Anzel, Phil - Fort Collins, CO > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release > > huh, I may have misinterpreted... > > you can't expect to obtain a point/marker symbology when using a line geometry. > > if you effectively want to use marker symbols, you can have a look RFC > 48 and its > ?GEOMTRANSFORM "start|end|vertices" transformations. > > -- > thomas > > On Fri, Mar 11, 2011 at 12:10, thomas bonfort wrote: >> Phil, >> >> what kind of symbology are you trying to obtain. I suspect you're >> aiming for a thick line, which now does not require the use of a >> symbol, but rather: >> >> style >> ?width 20 >> ?color 0 0 255 >> end >> >> regards, >> thomas >> >> On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO >> wrote: >>> All, >>> >>> I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011. >>> >>> It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010. >>> >>> Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output. >>> >>> I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported. >>> >>> Can you help? >>> >>> Thanks, >>> >>> - Phil Anzel >>> ?Web Soil Survey development team >>> ?Vistronix Inc. for USDA/NRCS/ITC >>> >>> ..... start of map file ..... >>> >>> MAP >>> ?OUTPUTFORMAT >>> ? ?NAME 'pnga' >>> ? ?MIMETYPE 'image/pnga' >>> ? ?DRIVER 'AGG/PNG' >>> ? ?EXTENSION 'png' >>> ? ?IMAGEMODE 'RGBA' >>> ? ?TRANSPARENT TRUE >>> ? ?FORMATOPTION 'INTERLACE=OFF' >>> ?END >>> ?STATUS ON >>> ?SIZE 954 589 >>> ?EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729 >>> ?RESOLUTION 70 >>> ?UNITS METERS >>> ?IMAGECOLOR 255 255 255 >>> ?PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END >>> >>> ?symbol >>> ? ?name 'circle' filled true type ellipse points 0 0 1 1 end >>> ?end >>> >>> ?LAYER >>> ? ?NAME ?'single line' >>> ? ?STATUS ON >>> ? ?TYPE LINE >>> ? ?feature points -11760750 5057520 -11752920 5062330 end end >>> ? ?CLASS >>> ? ? ?style >>> ? ? ? ?symbol 'circle' >>> ? ? ? ?size 20 >>> ? ? ? ?color 255 255 0 >>> ? ? ? ?outlinecolor 255 0 0 >>> ? ? ?end >>> ? ? ?style >>> ? ? ? ?width 1 >>> ? ? ? ?color 0 0 255 >>> ? ? ?end >>> ? ?end >>> ?END # end of layer 'single line' >>> END ?# end of MAP >>> >>> ..... end of map file ..... >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > From Phil.Anzel at ftc.usda.gov Fri Mar 11 05:35:38 2011 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO) Date: Fri, 11 Mar 2011 07:35:38 -0600 Subject: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release In-Reply-To: References: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov> Message-ID: <809503517A1B0347AF9A161507E6B29923BA4ECC91@mokansasc7s304.agent.one.usda.gov> Hi, Thomas, Thanks for looking into this problem. My goal is to create a "railroad" cross-hatching along a line. I originally used: SYMBOL NAME 'default' Type simple END SYMBOL NAME 'tie' TYPE vector POINTS 0 0 0 7 -99 -99 7 0 7 7 END END These were referenced, within a layer of type "line", by: CLASS STYLE SYMBOL 'default' SIZE 1 COLOR 0 0 0 END STYLE SYMBOL 'tie' SIZE 8 COLOR 0 0 0 END END This had worked under MapServer 5.6.3. I returned to this example after upgrading to 5.7DEV on March 9, 2011, and found that the "tie" cross-hatching had disappeared. I tried several other symbols; I used the "circle" as an example because it also worked in the past and is used in the MapServer "Introduction to MapServer", section 2.4.3, "CLASS and STYLE objects". Closer to the 2.4.3 example, if I define: symbol name 'circle' filled true type ellipse points 0 0 1 1 end end and reference this definition, as per the example, with: style symbol "circle" color 178 114 1 size 15 end style symbol "circle" color 254 161 0 size 7 end then there is no image created. Given these experimental results, I wonder if there has been a change in behavior in drawing symbols. Alternatively I've made a very simple error. Is there an error in my map file? How do you recommend that the "railroad" hatched line be drawn? Thanks again. - Phil -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Friday, March 11, 2011 4:17 AM To: Anzel, Phil - Fort Collins, CO Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release huh, I may have misinterpreted... you can't expect to obtain a point/marker symbology when using a line geometry. if you effectively want to use marker symbols, you can have a look RFC 48 and its GEOMTRANSFORM "start|end|vertices" transformations. -- thomas On Fri, Mar 11, 2011 at 12:10, thomas bonfort wrote: > Phil, > > what kind of symbology are you trying to obtain. I suspect you're > aiming for a thick line, which now does not require the use of a > symbol, but rather: > > style > ?width 20 > ?color 0 0 255 > end > > regards, > thomas > > On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO > wrote: >> All, >> >> I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011. >> >> It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010. >> >> Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output. >> >> I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported. >> >> Can you help? >> >> Thanks, >> >> - Phil Anzel >> ?Web Soil Survey development team >> ?Vistronix Inc. for USDA/NRCS/ITC >> >> ..... start of map file ..... >> >> MAP >> ?OUTPUTFORMAT >> ? ?NAME 'pnga' >> ? ?MIMETYPE 'image/pnga' >> ? ?DRIVER 'AGG/PNG' >> ? ?EXTENSION 'png' >> ? ?IMAGEMODE 'RGBA' >> ? ?TRANSPARENT TRUE >> ? ?FORMATOPTION 'INTERLACE=OFF' >> ?END >> ?STATUS ON >> ?SIZE 954 589 >> ?EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729 >> ?RESOLUTION 70 >> ?UNITS METERS >> ?IMAGECOLOR 255 255 255 >> ?PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END >> >> ?symbol >> ? ?name 'circle' filled true type ellipse points 0 0 1 1 end >> ?end >> >> ?LAYER >> ? ?NAME ?'single line' >> ? ?STATUS ON >> ? ?TYPE LINE >> ? ?feature points -11760750 5057520 -11752920 5062330 end end >> ? ?CLASS >> ? ? ?style >> ? ? ? ?symbol 'circle' >> ? ? ? ?size 20 >> ? ? ? ?color 255 255 0 >> ? ? ? ?outlinecolor 255 0 0 >> ? ? ?end >> ? ? ?style >> ? ? ? ?width 1 >> ? ? ? ?color 0 0 255 >> ? ? ?end >> ? ?end >> ?END # end of layer 'single line' >> END ?# end of MAP >> >> ..... end of map file ..... >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From Phil.Anzel at ftc.usda.gov Fri Mar 11 06:07:52 2011 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO) Date: Fri, 11 Mar 2011 08:07:52 -0600 Subject: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release In-Reply-To: References: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov> <809503517A1B0347AF9A161507E6B29923BA4ECC91@mokansasc7s304.agent.one.usda.gov> Message-ID: <809503517A1B0347AF9A161507E6B29923BA4ECCA0@mokansasc7s304.agent.one.usda.gov> Thomas, Thanks yet again. I tried your suggestion and it looks quite nice. If I may, a related question: is there a change in behavior in use of symbols? I'm fairly certain that the MapServer tutorial example worked under 5.6.3, as did my use of the "tie" symbol. The motivation here is to tease out a potential bug in Mapserver 6.0.0-beta1. - Phil -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Friday, March 11, 2011 6:44 AM To: Anzel, Phil - Fort Collins, CO Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release for a tie symbol you should specify a (negative) GAP. something like: http://www2.terriscope.fr/geocache/wms?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=epsg%3A4326&BBOX=1.34033203125,43.76953125,1.3623046875,43.79150390625&WIDTH=256&HEIGHT=256 is obtained with SYMBOL NAME "rail" TYPE TRUETYPE FONT sc CHARACTER '|' GAP -3 END ... STYLE WIDTH 2 OUTLINEWIDTH 1 OUTLINECOLOR "#555554" COLOR "#ffffff" END STYLE SYMBOL rail SIZE 5 COLOR "#555554" END On Fri, Mar 11, 2011 at 14:35, Anzel, Phil - Fort Collins, CO wrote: > Hi, Thomas, > > Thanks for looking into this problem. > > My goal is to create a "railroad" cross-hatching along a line. I originally used: > ? ?SYMBOL > ? ? ?NAME 'default' > ? ? ?Type simple > ? ?END > ? ?SYMBOL > ? ? ?NAME 'tie' > ? ? ?TYPE vector > ? ? ?POINTS 0 0 ?0 7 ?-99 -99 ?7 0 ?7 7 ?END > ? ?END > These were referenced, within a layer of type "line", by: > ? CLASS > ? ? STYLE > ? ? ? SYMBOL ? ? ? ? ? ?'default' > ? ? ? SIZE ? ? ? ? ? ? ?1 > ? ? ? COLOR ? ? ? ? ? ? 0 0 0 > ? ? END > ? ? STYLE > ? ? ?SYMBOL ? ? ? ? ? ? 'tie' > ? ? ?SIZE ? ? ? ? ? ? ? 8 > ? ? ?COLOR ? ? ? ? ? ? ?0 0 0 > ? ? END > ? END > > This had worked under MapServer 5.6.3. I returned to this example after upgrading to 5.7DEV on March 9, 2011, and found that the "tie" cross-hatching had disappeared. I tried several other symbols; I used the "circle" as an example because it also worked in the past and is used in the MapServer "Introduction to MapServer", section 2.4.3, "CLASS and STYLE objects". > > Closer to the 2.4.3 example, if I define: > ?symbol > ? ?name 'circle' > ? ?filled true > ? ?type ellipse > ? ?points 0 0 1 1 end > ?end > and reference this definition, as per the example, with: > ? ? style > ? ? ? symbol "circle" > ? ? ? color 178 114 1 > ? ? ? size 15 > ? ? end > ? ? style > ? ? ? symbol "circle" > ? ? ? color 254 161 0 > ? ? ? size 7 > ? ? end > then there is no image created. > > Given these experimental results, I wonder if there has been a change in behavior in drawing symbols. Alternatively I've made a very simple error. > > Is there an error in my map file? How do you recommend that the "railroad" hatched line be drawn? > > Thanks again. > > - Phil > > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Friday, March 11, 2011 4:17 AM > To: Anzel, Phil - Fort Collins, CO > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release > > huh, I may have misinterpreted... > > you can't expect to obtain a point/marker symbology when using a line geometry. > > if you effectively want to use marker symbols, you can have a look RFC > 48 and its > ?GEOMTRANSFORM "start|end|vertices" transformations. > > -- > thomas > > On Fri, Mar 11, 2011 at 12:10, thomas bonfort wrote: >> Phil, >> >> what kind of symbology are you trying to obtain. I suspect you're >> aiming for a thick line, which now does not require the use of a >> symbol, but rather: >> >> style >> ?width 20 >> ?color 0 0 255 >> end >> >> regards, >> thomas >> >> On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO >> wrote: >>> All, >>> >>> I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011. >>> >>> It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010. >>> >>> Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output. >>> >>> I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported. >>> >>> Can you help? >>> >>> Thanks, >>> >>> - Phil Anzel >>> ?Web Soil Survey development team >>> ?Vistronix Inc. for USDA/NRCS/ITC >>> >>> ..... start of map file ..... >>> >>> MAP >>> ?OUTPUTFORMAT >>> ? ?NAME 'pnga' >>> ? ?MIMETYPE 'image/pnga' >>> ? ?DRIVER 'AGG/PNG' >>> ? ?EXTENSION 'png' >>> ? ?IMAGEMODE 'RGBA' >>> ? ?TRANSPARENT TRUE >>> ? ?FORMATOPTION 'INTERLACE=OFF' >>> ?END >>> ?STATUS ON >>> ?SIZE 954 589 >>> ?EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729 >>> ?RESOLUTION 70 >>> ?UNITS METERS >>> ?IMAGECOLOR 255 255 255 >>> ?PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END >>> >>> ?symbol >>> ? ?name 'circle' filled true type ellipse points 0 0 1 1 end >>> ?end >>> >>> ?LAYER >>> ? ?NAME ?'single line' >>> ? ?STATUS ON >>> ? ?TYPE LINE >>> ? ?feature points -11760750 5057520 -11752920 5062330 end end >>> ? ?CLASS >>> ? ? ?style >>> ? ? ? ?symbol 'circle' >>> ? ? ? ?size 20 >>> ? ? ? ?color 255 255 0 >>> ? ? ? ?outlinecolor 255 0 0 >>> ? ? ?end >>> ? ? ?style >>> ? ? ? ?width 1 >>> ? ? ? ?color 0 0 255 >>> ? ? ?end >>> ? ?end >>> ?END # end of layer 'single line' >>> END ?# end of MAP >>> >>> ..... end of map file ..... >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > From joanne.mcgraw at SYMPATICO.CA Fri Mar 11 07:52:23 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Fri, 11 Mar 2011 07:52:23 -0800 (PST) Subject: [mapserver-users] Re: SLD parameter in GetMap and GetLegendGraphic requests In-Reply-To: <1299707195382-6155608.post@n2.nabble.com> References: <1299707195382-6155608.post@n2.nabble.com> Message-ID: <1299858743779-6161896.post@n2.nabble.com> Okay, well, it was worth a shot... We are moving the location of dynamically-generated SLDs to a publicly-accessible area of our website. They will be remote from the Shapefiles they are used for, but we'll survive. I thought I should add a final comment to provide (what appears to be) the only resolution in case someone else is trying to find a way around the same thing in future. Cheers all, -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/SLD-parameter-in-GetMap-and-GetLegendGraphic-requests-tp6155608p6161896.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joanne.mcgraw at SYMPATICO.CA Fri Mar 11 08:05:24 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Fri, 11 Mar 2011 08:05:24 -0800 (PST) Subject: [mapserver-users] Re: WMS w/SLD - Can I get rid of the labels returned with a GetLegendGraphic request? In-Reply-To: <1299623823709-6146892.post@n2.nabble.com> References: <1299623638820-6146719.post@n2.nabble.com> <1299623823709-6146892.post@n2.nabble.com> Message-ID: <1299859524604-6161941.post@n2.nabble.com> Another one bites the dust....I guess this one isn't possible as asked either. I did want to let any future readers know what we have done to address this is create a "legend generator" (for lack of a better term) web service that uses a getStyles request for a given layer, parses the SLD and generates image files representing each rule. Then, it builds a JSON object with all the details to build the legend presentation in whatever client calls it (including the paths to the legend icons). The client can decide if it wants to display the text that goes with a given legend icon itself. Cheers all, -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-w-SLD-Can-I-get-rid-of-the-labels-returned-with-a-GetLegendGraphic-request-tp6146719p6161941.html Sent from the Mapserver - User mailing list archive at Nabble.com. From peter.hopfgartner at r3-gis.com Fri Mar 11 08:11:04 2011 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Fri, 11 Mar 2011 17:11:04 +0100 (CET) Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! Message-ID: <20110311161104.ED9D71678235@mail.r3-gis.com> Hi Daniel --------Daniel Morissette wrote-------- Subject: Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! Date: 10.03.2011 20:05 >Hi Peter, > >It is quite likely that you are using a SWIG version newer than 1.3.36. > CentOS comes with swig 1.3.29, which, I guess, is not recent enough. I tried to skip "make interface", but swig is run even without this. How can I avoid that swig regenerates the wrappers? Anyway, having a closer look, it seems more that CCFLAGS was not build correctly, since it contains things like "@AGG_ENABLED@ @PDF_ENABLED@" which leads to the errors: gcc: @AGG_ENABLED@: No such file or directory gcc: @PDF_ENABLED@: No such file or directory gcc: @PDF_INC@: No such file or directory The others are just warnings. >The Java SWIG wrappers work best with SWIG 1.3.36. The MapServer source >package already contains SWIG wrappers generated using SWIG 1.3.36 so >you could use that, or if you must regenerate them then I'd suggest that >you try with SWIG 1.3.36. > >Daniel > Peter R3 GIS Srl - GmbH http://www.r3-gis.com > >On 11-03-10 02:02 PM, Peter Hopfgartner wrote: >> While trying to build the package for CentOS 5.6, I stumble on Java >support: >> >> + cd ../java >> + JAVA_HOME=/usr/lib/jvm/java-1.6.0 >> + make interface >> mkdir -p edu/umn/gis/mapscript >> swig -java -package edu.umn.gis.mapscript -outdir edu/umn/gis/mapscript >-o mapscript_wrap.c ../mapscript.i >> + JAVA_HOME=/usr/lib/jvm/java-1.6.0 >> + make >> javac edu/umn/gis/mapscript/*.java >> gcc -fpic -c -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions >-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC >-Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR >-DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR >-DUSE_WCS_SVR -DUSE_SOS_SVR -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG >-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW >-DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS >-DGD_HAS_GET_TRUE_COLOR_PIXEL @AGG_ENABLED@ @PDF_ENABLED@ -DUSE_OGR >-DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS >-DPOSTGIS_HAS_SERVER_VERSION -DUSE_MYGIS -DUSE_THREAD -I/usr/include >-Irenderers/agg/include @PDF_INC@ -I/usr/include/php/ext/ereg/ >-I/usr/include/gdal -I/usr/include -I/usr/include/mysql -g -pipe >-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector >--param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 >-D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -I/usr/include >-I/usr/include/libxml2 -I/usr/l >ib/jvm/java-1.6.0/include -I/usr/lib/jvm/java-1.6.0/include/linux >-fno-strict-aliasing mapscript_wrap.c >> gcc: @AGG_ENABLED@: No such file or directory >> gcc: @PDF_ENABLED@: No such file or directory >> gcc: @PDF_INC@: No such file or directory >> mapscript_wrap.c: In function 'new_imageObj': >> mapscript_wrap.c:2746: warning: passing argument 1 of >'renderer->loadImageFromFile' discards qualifiers from pointer target type >> mapscript_wrap.c: In function >'Java_edu_umn_gis_mapscript_mapscriptJNI_imageObj_1getBytes': >> mapscript_wrap.c:29157: warning: pointer targets in passing argument 2 >of 'SWIG_JavaArrayOutSchar' differ in signedness >> mapscript_wrap.c: In function >'Java_edu_umn_gis_mapscript_mapscriptJNI_msIO_1getStdoutBufferBytes': >> mapscript_wrap.c:43772: warning: pointer targets in passing argument 2 >of 'SWIG_JavaArrayOutSchar' differ in signedness >> make: *** [mapscript_so] Error 1 >> error: Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448 >(%build) >> >> >> RPM build errors: >> Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448 >(%build) >> [rpmbuild at rpm-devel ~]$ >> >> Regards, >> >> Peter >> >> R3 GIS Srl - GmbH >> http://www.r3-gis.com >> >> >> --------Daniel Morissette wrote-------- >> Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! >> Date: 10.03.2011 03:48 >> >>> The MapServer Team is pleased to announce the release of MapServer >>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. >>> >>> This new release introduces important changes in key components of the >>> MapServer core (rendering, query and expressions), and for this reason >>> we count on you, MapServer power users, to help test the release in >your >>> respective environments and provide feedback (through the users list >or >>> Trac tickets). >> (...) >>> >>> Thanks! - The MapServer Team >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > >-- >Daniel Morissette >http://www.mapgears.com/ >Provider of Professional MapServer Support since 2000 > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > From joanne.mcgraw at SYMPATICO.CA Fri Mar 11 08:49:46 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Fri, 11 Mar 2011 08:49:46 -0800 (PST) Subject: [mapserver-users] Another dynamic WMS server and WMC question - dynamic Name anyone? Message-ID: <1299862186148-6162084.post@n2.nabble.com> Just looking for ideas regarding another dynamic WMS and WMC question ... As described in other posts about this project I am working on, we have a process that dynamically generates Shapefiles and then, using a "blank" Map file acting as a WMS server, we do GetMap requests that include the DATA path to the new file to add the individual vector layers to a single image. We have another "blank" Map file that we use to print these layers. For this we pass a WMC context that defines all the layers that should be included. While I hope that background explanation is good enough for the purposes of this post, if it is not, a more detailed description of this process (including examples) can be found at:http://osgeo-org.1803224.n2.nabble.com/mode-map-with-WMC-of-dynamic-lt-Layer-gt-failing-with-getString-error-td5824774.html#a5831237 Now, my problem... The "blank" WMS server Map file has 3 layers in it: a point, a line and a polygon. Each have their own unique name: "Point", "Line", "Polygon". When we add a dynamic vector/WMS layer individually, the WMS GetMap request uses that name to indicate which layer provides the basic configuration. When that layer is added to the WMC for printing, that name is used as the value of the Layer's Name entity in the LayerList to indicate which Map file layer to use. All this is fine unless there are more than one of the same type of layer added to the WMC. At that time, there are multiple LayerList Layers with the same Name value (say, "Line") in the WMC. So, my question is this... Is there any way of dynamically assigning a name to a layer in the mapfile. I really can't imagine that there is but am wondering if there's some way of using something like the DATAPATTERN for a layer where, say, as long as the format of characters match it will use that layer. Something like: LAYER NAME "line" NAMEFORMAT "Line*" STATUS ON TYPE line PROJECTION "init=epsg:42304" END CLASS COLOR 0 0 0 NAME "Some Line Layer" END METADATA "wms_title" "Some Line Layer" END END So that if I made a request as below it would resolve to figuring out what the correct layer to use is but still allow that unique name to be used to reference it: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/testing/dynamic.map&request=getMap&service=wms&version=1.1.1&map.layer[LineOfRoads]=DATA ?id3/vector? END&layers=LineOfRoads&srs=EPSG:42304&bbox=-2338951,-800000,3008692,3900000&format=image/png&height=300&width=300 I don't really expect that it would actually work like this...the amount of time necessary for processing and resolving requests would be prohibitive. I'm just trying to suggest something that might convey what we're trying to accomplish in the hopes of causing some creative juices to spill out there and asking if anyone knows of any way (even an obscure one) that will allow us to get unique Name values into the printing WMC. Cheers, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Another-dynamic-WMS-server-and-WMC-question-dynamic-Name-anyone-tp6162084p6162084.html Sent from the Mapserver - User mailing list archive at Nabble.com. From arlen.poort at gmail.com Fri Mar 11 09:10:25 2011 From: arlen.poort at gmail.com (Arlen Poort) Date: Fri, 11 Mar 2011 18:10:25 +0100 Subject: [mapserver-users] Stunned by itemnquery, qstring etc. Message-ID: Dear listers, I have searched the archives through and through, but I can't get a working solution. I am trying to build a url to query Mapserver. But whatever I try, I always get the same result, which are the contents of my EMPTY template, as defined in my mapfile. The url I've built is this one, which I hoped to give me a list of all items starting with 'R': http://mapserver.nrc-handelsblad.com/cgi-bin/mapserv? map=/var/www/fgs/chameleon/map/PS2011SB.map &mode=itemnquery &qlayer=Grootste2010 &qitem=Gemnaam &qstring=/^R/ I've tried this one too, which I hoped would give me the item 'Rotterdam': http://mapserver.nrc-handelsblad.com/cgi-bin/mapserv? map=/var/www/fgs/chameleon/map/PS2011SB.map &mode=itemquery &qlayer=Grootste2010 &qstring=('Gemnaam'='Rotterdam') I also tried escaped characters (%5b and %3d etc,), but every result is the same: nothing. Can anyone please help me? (Documentation below.) Thanks! Arlen You can find the complete application (in Openlayers) here: http://mapserver.nrc-handelsblad.com/PS2011SB.html ************************************************************************************************************ My mapfile looks like this: MAP NAME TK2010 STATUS ON SIZE 458 542 SYMBOLSET ../etc/symbols.sym EXTENT 13000 305000 279000 620000 UNITS METERS SHAPEPATH "../data" IMAGECOLOR 255 255 255 FONTSET ../etc/fonts.txt WEB IMAGEPATH "/var/www/fgs/chameleon/htdocs/tmp/" IMAGEURL "tmp/" LOG "/tmp/gmap.log" EMPTY "http://mapserver.nrc-handelsblad.com/empty.html" METADATA "wms_feature_info_mime_type" "text/html" "wms_title" "WMS NRC TK2010" "wms_onlineresource" " http://mapserver.nrc-handelsblad.com/cgi-bin/mapserv?" "wms_srs" "EPSG:28992 EPSG:4326 EPSG:900913" END END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 14 POSITION ul LABEL FONT sans TYPE TRUETYPE SIZE 8 OFFSET 0 -2 END STATUS off END PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END OUTPUTFORMAT NAME "aggpng24" DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END QUERYMAP STATUS on STYLE hilite COLOR 255 255 0 SIZE 320 160 END SYMBOL NAME "Stembureau" TYPE ellipse FILLED true POINTS 1 1 END END LAYER NAME "Grootste2010" METADATA "wms_feature_info_mime_type" "text/html" "wms_title" "Grootste partij 2010" "DESCRIPTION" "Verkiezingen TK2010" "LAYER" "TK2010" "qstring_validation_pattern" '.' END TYPE POINT STATUS on DATA "/var/www/fgs/chameleon/data/PS2011/PS2011stembureausDispWGS84.shp" TOLERANCE 10 OPACITY 100 HEADER "PS2011SBheader.html" TEMPLATE "PS2011SBquerytemplate.html" FOOTER "PS2011SBfooter.html" CLASS STYLE SYMBOL "Stembureau" SIZE 9 COLOR 109 208 122 OUTLINECOLOR 52 162 67 END MAXSCALEDENOM 5000000 END END ************************************************************************************************************* My querytemplate look like this: [ID]
[SBNR]
[GEMNR]
[Gemnaam]
[SBNAAM]
(etc.) -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Fri Mar 11 09:21:05 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 11 Mar 2011 12:21:05 -0500 Subject: [mapserver-users] MapServer 6 and KML outputformat In-Reply-To: <4D795EEB.2030709@gmx.net> References: <4D795EEB.2030709@gmx.net> Message-ID: <4D7A5A01.70503@dmsolutions.ca> On 10/03/2011 6:29 PM, Armin Burger wrote: > Currently the fields/items of the layers (defined under map file > METADATA KML_INCLUDE_ITEMS) are exported to a KML tag "" > and inserted as HTML table. While this is of course possible, a > cleander way would be how GDAL/OGR exports the attributes: > > GDAL/OGR uses the tag and places the attribute values > in tags, like > > ... > > Berlin > 3899412 > DE > > > This leads to a much better display in Google Earth. > I have added this in http://trac.osgeo.org/mapserver/ticket/3728 and possibly address it before 6.0 or shortly after. > In addition to the KML_INCLUDE_ITEMS, another possibility to define a > field/item used in KML for the tag would be useful, like OGR > allows this via the NameField option. So maybe a METADATA definition > like KML_NAME_FIELD could do this. The is added to the current svn and will be available for beta2 (ticket ). The docs are also updated. Note that the metedata is KML_NAME_ITEM to follow other metada names used. best regards, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Phil.Anzel at ftc.usda.gov Fri Mar 11 09:25:59 2011 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO) Date: Fri, 11 Mar 2011 11:25:59 -0600 Subject: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release In-Reply-To: <809503517A1B0347AF9A161507E6B29923BA4ECCA0@mokansasc7s304.agent.one.usda.gov> References: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov> <809503517A1B0347AF9A161507E6B29923BA4ECC91@mokansasc7s304.agent.one.usda.gov> <809503517A1B0347AF9A161507E6B29923BA4ECCA0@mokansasc7s304.agent.one.usda.gov> Message-ID: <809503517A1B0347AF9A161507E6B29923BA4ECD61@mokansasc7s304.agent.one.usda.gov> Thomas and All, A follow up: submitted as a tracker defect: http://trac.osgeo.org/mapserver/ticket/3729 The test map file is: MAP OUTPUTFORMAT NAME 'pnga' MIMETYPE 'image/pnga' DRIVER 'AGG/PNG' EXTENSION 'png' IMAGEMODE 'RGBA' TRANSPARENT TRUE FORMATOPTION 'INTERLACE=OFF' END STATUS ON SIZE 954 589 EXTENT 0 0 954 589 RESOLUTION 72 IMAGECOLOR 255 255 255 symbol name 'circle' filled true type ellipse points 0 0 1 1 end end LAYER NAME 'single line' STATUS ON TYPE LINE feature points 10 10 950 580 end end CLASS style symbol 'circle' size 20 color 255 255 0 outlinecolor 255 0 0 end style width 1 color 0 0 255 end end END # end of layer 'single line' END # end of MAP The above map file works as desired under 5.6 and demonstrates the problem under 5.7/6.0. - Phil -----Original Message----- From: Anzel, Phil - Fort Collins, CO Sent: Friday, March 11, 2011 7:08 AM To: thomas bonfort Cc: mapserver-users at lists.osgeo.org; Anzel, Phil - Fort Collins, CO Subject: RE: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release Thomas, Thanks yet again. I tried your suggestion and it looks quite nice. If I may, a related question: is there a change in behavior in use of symbols? I'm fairly certain that the MapServer tutorial example worked under 5.6.3, as did my use of the "tie" symbol. The motivation here is to tease out a potential bug in Mapserver 6.0.0-beta1. - Phil -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Friday, March 11, 2011 6:44 AM To: Anzel, Phil - Fort Collins, CO Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release for a tie symbol you should specify a (negative) GAP. something like: http://www2.terriscope.fr/geocache/wms?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=epsg%3A4326&BBOX=1.34033203125,43.76953125,1.3623046875,43.79150390625&WIDTH=256&HEIGHT=256 is obtained with SYMBOL NAME "rail" TYPE TRUETYPE FONT sc CHARACTER '|' GAP -3 END ... STYLE WIDTH 2 OUTLINEWIDTH 1 OUTLINECOLOR "#555554" COLOR "#ffffff" END STYLE SYMBOL rail SIZE 5 COLOR "#555554" END On Fri, Mar 11, 2011 at 14:35, Anzel, Phil - Fort Collins, CO wrote: > Hi, Thomas, > > Thanks for looking into this problem. > > My goal is to create a "railroad" cross-hatching along a line. I originally used: > ? ?SYMBOL > ? ? ?NAME 'default' > ? ? ?Type simple > ? ?END > ? ?SYMBOL > ? ? ?NAME 'tie' > ? ? ?TYPE vector > ? ? ?POINTS 0 0 ?0 7 ?-99 -99 ?7 0 ?7 7 ?END > ? ?END > These were referenced, within a layer of type "line", by: > ? CLASS > ? ? STYLE > ? ? ? SYMBOL ? ? ? ? ? ?'default' > ? ? ? SIZE ? ? ? ? ? ? ?1 > ? ? ? COLOR ? ? ? ? ? ? 0 0 0 > ? ? END > ? ? STYLE > ? ? ?SYMBOL ? ? ? ? ? ? 'tie' > ? ? ?SIZE ? ? ? ? ? ? ? 8 > ? ? ?COLOR ? ? ? ? ? ? ?0 0 0 > ? ? END > ? END > > This had worked under MapServer 5.6.3. I returned to this example after upgrading to 5.7DEV on March 9, 2011, and found that the "tie" cross-hatching had disappeared. I tried several other symbols; I used the "circle" as an example because it also worked in the past and is used in the MapServer "Introduction to MapServer", section 2.4.3, "CLASS and STYLE objects". > > Closer to the 2.4.3 example, if I define: > ?symbol > ? ?name 'circle' > ? ?filled true > ? ?type ellipse > ? ?points 0 0 1 1 end > ?end > and reference this definition, as per the example, with: > ? ? style > ? ? ? symbol "circle" > ? ? ? color 178 114 1 > ? ? ? size 15 > ? ? end > ? ? style > ? ? ? symbol "circle" > ? ? ? color 254 161 0 > ? ? ? size 7 > ? ? end > then there is no image created. > > Given these experimental results, I wonder if there has been a change in behavior in drawing symbols. Alternatively I've made a very simple error. > > Is there an error in my map file? How do you recommend that the "railroad" hatched line be drawn? > > Thanks again. > > - Phil > > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Friday, March 11, 2011 4:17 AM > To: Anzel, Phil - Fort Collins, CO > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release > > huh, I may have misinterpreted... > > you can't expect to obtain a point/marker symbology when using a line geometry. > > if you effectively want to use marker symbols, you can have a look RFC > 48 and its > ?GEOMTRANSFORM "start|end|vertices" transformations. > > -- > thomas > > On Fri, Mar 11, 2011 at 12:10, thomas bonfort wrote: >> Phil, >> >> what kind of symbology are you trying to obtain. I suspect you're >> aiming for a thick line, which now does not require the use of a >> symbol, but rather: >> >> style >> ?width 20 >> ?color 0 0 255 >> end >> >> regards, >> thomas >> >> On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO >> wrote: >>> All, >>> >>> I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011. >>> >>> It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010. >>> >>> Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output. >>> >>> I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported. >>> >>> Can you help? >>> >>> Thanks, >>> >>> - Phil Anzel >>> ?Web Soil Survey development team >>> ?Vistronix Inc. for USDA/NRCS/ITC >>> >>> ..... start of map file ..... >>> >>> MAP >>> ?OUTPUTFORMAT >>> ? ?NAME 'pnga' >>> ? ?MIMETYPE 'image/pnga' >>> ? ?DRIVER 'AGG/PNG' >>> ? ?EXTENSION 'png' >>> ? ?IMAGEMODE 'RGBA' >>> ? ?TRANSPARENT TRUE >>> ? ?FORMATOPTION 'INTERLACE=OFF' >>> ?END >>> ?STATUS ON >>> ?SIZE 954 589 >>> ?EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729 >>> ?RESOLUTION 70 >>> ?UNITS METERS >>> ?IMAGECOLOR 255 255 255 >>> ?PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END >>> >>> ?symbol >>> ? ?name 'circle' filled true type ellipse points 0 0 1 1 end >>> ?end >>> >>> ?LAYER >>> ? ?NAME ?'single line' >>> ? ?STATUS ON >>> ? ?TYPE LINE >>> ? ?feature points -11760750 5057520 -11752920 5062330 end end >>> ? ?CLASS >>> ? ? ?style >>> ? ? ? ?symbol 'circle' >>> ? ? ? ?size 20 >>> ? ? ? ?color 255 255 0 >>> ? ? ? ?outlinecolor 255 0 0 >>> ? ? ?end >>> ? ? ?style >>> ? ? ? ?width 1 >>> ? ? ? ?color 0 0 255 >>> ? ? ?end >>> ? ?end >>> ?END # end of layer 'single line' >>> END ?# end of MAP >>> >>> ..... end of map file ..... >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > From thomas.bonfort at gmail.com Fri Mar 11 10:06:56 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 11 Mar 2011 19:06:56 +0100 Subject: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release In-Reply-To: <809503517A1B0347AF9A161507E6B29923BA4ECD61@mokansasc7s304.agent.one.usda.gov> References: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov> <809503517A1B0347AF9A161507E6B29923BA4ECC91@mokansasc7s304.agent.one.usda.gov> <809503517A1B0347AF9A161507E6B29923BA4ECCA0@mokansasc7s304.agent.one.usda.gov> <809503517A1B0347AF9A161507E6B29923BA4ECD61@mokansasc7s304.agent.one.usda.gov> Message-ID: Phil, You're using the old version of drawing thick lines, that was needed for GD. We'll have to decide at the codesprint if this is something that we want to stop supporting, as this is something that we are trailing along since 4.10. As I said in my first email, thick lines are obtained with the WIDTH keyword. As for vector symbols, there are known limitations actually, which we will try to overcome during the codesprint - what's certain is we won't be able to maintain backwards compatibility *and* expect consistent rendering across renderers. best regards, thomas On Fri, Mar 11, 2011 at 18:25, Anzel, Phil - Fort Collins, CO wrote: > Thomas and All, > > A follow up: submitted as a tracker defect: http://trac.osgeo.org/mapserver/ticket/3729 > > The test map file is: > MAP > ?OUTPUTFORMAT > ? ?NAME 'pnga' > ? ?MIMETYPE 'image/pnga' > ? ?DRIVER 'AGG/PNG' > ? ?EXTENSION 'png' > ? ?IMAGEMODE 'RGBA' > ? ?TRANSPARENT TRUE > ? ?FORMATOPTION 'INTERLACE=OFF' > ?END > ?STATUS ON > ?SIZE 954 589 > ?EXTENT 0 0 954 589 > ?RESOLUTION 72 > ?IMAGECOLOR 255 255 255 > > ?symbol > ? ?name 'circle' filled true type ellipse points 0 0 1 1 end > ?end > > ?LAYER > ? ?NAME ?'single line' > ? ?STATUS ON > ? ?TYPE LINE > ? ?feature points 10 10 950 580 end end > ? ?CLASS > ? ? ?style > ? ? ? ?symbol 'circle' > ? ? ? ?size 20 > ? ? ? ?color 255 255 0 > ? ? ? ?outlinecolor 255 0 0 > ? ? ?end > ? ? ?style > ? ? ? ?width 1 > ? ? ? ?color 0 0 255 > ? ? ?end > ? ?end > ?END # end of layer 'single line' > END ?# end of MAP > > The above map file works as desired under 5.6 and demonstrates the problem under 5.7/6.0. > > - Phil > > -----Original Message----- > From: Anzel, Phil - Fort Collins, CO > Sent: Friday, March 11, 2011 7:08 AM > To: thomas bonfort > Cc: mapserver-users at lists.osgeo.org; Anzel, Phil - Fort Collins, CO > Subject: RE: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release > > Thomas, > > Thanks yet again. I tried your suggestion and it looks quite nice. > > If I may, a related question: is there a change in behavior in use of symbols? I'm fairly certain that the MapServer tutorial example worked under 5.6.3, as did my use of the "tie" symbol. The motivation here is to tease out a potential bug in Mapserver 6.0.0-beta1. > > - Phil > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Friday, March 11, 2011 6:44 AM > To: Anzel, Phil - Fort Collins, CO > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release > > for a tie symbol you should specify a (negative) GAP. > > something like: > http://www2.terriscope.fr/geocache/wms?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=epsg%3A4326&BBOX=1.34033203125,43.76953125,1.3623046875,43.79150390625&WIDTH=256&HEIGHT=256 > > is obtained with > > SYMBOL > ? ?NAME "rail" > ? ?TYPE TRUETYPE > ? ?FONT sc > ? ?CHARACTER '|' > ? ?GAP -3 > END > > ... > > ? ? ? ?STYLE > ? ? ? ? ? ?WIDTH 2 > ? ? ? ? ? ?OUTLINEWIDTH 1 > ? ? ? ? ? ?OUTLINECOLOR "#555554" > ? ? ? ? ? ?COLOR "#ffffff" > ? ? ? ?END > ? ? ? ?STYLE > ? ? ? ? ? ?SYMBOL rail > ? ? ? ? ? ?SIZE 5 > ? ? ? ? ? ?COLOR "#555554" > ? ? ? ?END > > On Fri, Mar 11, 2011 at 14:35, Anzel, Phil - Fort Collins, CO > wrote: >> Hi, Thomas, >> >> Thanks for looking into this problem. >> >> My goal is to create a "railroad" cross-hatching along a line. I originally used: >> ? ?SYMBOL >> ? ? ?NAME 'default' >> ? ? ?Type simple >> ? ?END >> ? ?SYMBOL >> ? ? ?NAME 'tie' >> ? ? ?TYPE vector >> ? ? ?POINTS 0 0 ?0 7 ?-99 -99 ?7 0 ?7 7 ?END >> ? ?END >> These were referenced, within a layer of type "line", by: >> ? CLASS >> ? ? STYLE >> ? ? ? SYMBOL ? ? ? ? ? ?'default' >> ? ? ? SIZE ? ? ? ? ? ? ?1 >> ? ? ? COLOR ? ? ? ? ? ? 0 0 0 >> ? ? END >> ? ? STYLE >> ? ? ?SYMBOL ? ? ? ? ? ? 'tie' >> ? ? ?SIZE ? ? ? ? ? ? ? 8 >> ? ? ?COLOR ? ? ? ? ? ? ?0 0 0 >> ? ? END >> ? END >> >> This had worked under MapServer 5.6.3. I returned to this example after upgrading to 5.7DEV on March 9, 2011, and found that the "tie" cross-hatching had disappeared. I tried several other symbols; I used the "circle" as an example because it also worked in the past and is used in the MapServer "Introduction to MapServer", section 2.4.3, "CLASS and STYLE objects". >> >> Closer to the 2.4.3 example, if I define: >> ?symbol >> ? ?name 'circle' >> ? ?filled true >> ? ?type ellipse >> ? ?points 0 0 1 1 end >> ?end >> and reference this definition, as per the example, with: >> ? ? style >> ? ? ? symbol "circle" >> ? ? ? color 178 114 1 >> ? ? ? size 15 >> ? ? end >> ? ? style >> ? ? ? symbol "circle" >> ? ? ? color 254 161 0 >> ? ? ? size 7 >> ? ? end >> then there is no image created. >> >> Given these experimental results, I wonder if there has been a change in behavior in drawing symbols. Alternatively I've made a very simple error. >> >> Is there an error in my map file? How do you recommend that the "railroad" hatched line be drawn? >> >> Thanks again. >> >> - Phil >> >> >> -----Original Message----- >> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> Sent: Friday, March 11, 2011 4:17 AM >> To: Anzel, Phil - Fort Collins, CO >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release >> >> huh, I may have misinterpreted... >> >> you can't expect to obtain a point/marker symbology when using a line geometry. >> >> if you effectively want to use marker symbols, you can have a look RFC >> 48 and its >> ?GEOMTRANSFORM "start|end|vertices" transformations. >> >> -- >> thomas >> >> On Fri, Mar 11, 2011 at 12:10, thomas bonfort wrote: >>> Phil, >>> >>> what kind of symbology are you trying to obtain. I suspect you're >>> aiming for a thick line, which now does not require the use of a >>> symbol, but rather: >>> >>> style >>> ?width 20 >>> ?color 0 0 255 >>> end >>> >>> regards, >>> thomas >>> >>> On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO >>> wrote: >>>> All, >>>> >>>> I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011. >>>> >>>> It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010. >>>> >>>> Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output. >>>> >>>> I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported. >>>> >>>> Can you help? >>>> >>>> Thanks, >>>> >>>> - Phil Anzel >>>> ?Web Soil Survey development team >>>> ?Vistronix Inc. for USDA/NRCS/ITC >>>> >>>> ..... start of map file ..... >>>> >>>> MAP >>>> ?OUTPUTFORMAT >>>> ? ?NAME 'pnga' >>>> ? ?MIMETYPE 'image/pnga' >>>> ? ?DRIVER 'AGG/PNG' >>>> ? ?EXTENSION 'png' >>>> ? ?IMAGEMODE 'RGBA' >>>> ? ?TRANSPARENT TRUE >>>> ? ?FORMATOPTION 'INTERLACE=OFF' >>>> ?END >>>> ?STATUS ON >>>> ?SIZE 954 589 >>>> ?EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729 >>>> ?RESOLUTION 70 >>>> ?UNITS METERS >>>> ?IMAGECOLOR 255 255 255 >>>> ?PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END >>>> >>>> ?symbol >>>> ? ?name 'circle' filled true type ellipse points 0 0 1 1 end >>>> ?end >>>> >>>> ?LAYER >>>> ? ?NAME ?'single line' >>>> ? ?STATUS ON >>>> ? ?TYPE LINE >>>> ? ?feature points -11760750 5057520 -11752920 5062330 end end >>>> ? ?CLASS >>>> ? ? ?style >>>> ? ? ? ?symbol 'circle' >>>> ? ? ? ?size 20 >>>> ? ? ? ?color 255 255 0 >>>> ? ? ? ?outlinecolor 255 0 0 >>>> ? ? ?end >>>> ? ? ?style >>>> ? ? ? ?width 1 >>>> ? ? ? ?color 0 0 255 >>>> ? ? ?end >>>> ? ?end >>>> ?END # end of layer 'single line' >>>> END ?# end of MAP >>>> >>>> ..... end of map file ..... >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >> > From Poteat.Brian at geoeye.com Wed Mar 9 06:17:55 2011 From: Poteat.Brian at geoeye.com (Brian Poteat) Date: Wed, 9 Mar 2011 07:17:55 -0700 Subject: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET) In-Reply-To: References: <4B420E4877773244A5DE388033C7E800A0408E754C@MS1.geoeye.com> Message-ID: <4B420E4877773244A5DE388033C7E800A0408E7AB8@MS1.geoeye.com> Thanks Tamas, I put together a solution that mimics what I am doing at a very simple level and I got it to error fairly easily. This zip contains an example mapfile and the solution used to reproduce the setup. I just put everything in c:\tmp\test. The applications are .NET 4.0 WCF endpoints and will install as IIS web services (so obviously you?ll need the appropriate software to build/run). http://dl.dropbox.com/u/649621/WcfMapScript.zip If you build the solution and then execute the following service requests in order, at some point the requests no longer return correct data. Asking for one layer will return the other. Sometimes the results vary but usually just mixing up the requested layers on the two different services will cause strange behavior. http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L54&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358 http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L57&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358 http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L57&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358 http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L54&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358 I apologize for the strange requests and images but I am a not really familiar with the mapfile format and just tried to reproduce the requests as closely as they were in a real environment. Brian From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, March 08, 2011 4:46 PM To: Brian Poteat Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET) Hi Brian, Could you provide the sequence of the requests, a mapfile example, that can be used to reproduce this problem? What do you mean by "configure them independently"? Different application pool for each service type? Best regards, Tamas 2011/3/8 Brian Poteat > I have a very strange issue while using MapScript from within some web service projects. I have different projects/applications for different services ? one for each of WCF, WMS, WFS, and WMTS ? so we can configure them independently. MapScript requests work fine for all of them separately but if I access MapScript from one and then another, one of them will not work correctly anymore. The requests will return success (result == 0) and the format returned is correct but the data is either null or an incorrect image. It doesn?t seem to be a threading issue since I can bombard any one of the services with asynchronous requests and they are handled fine and the problems don?t necessarily come while using the different applications at the same time ? just one then the other. I am using a support project for making the MS requests that is referenced by each application (though I tried putting the code directly in each app with the same results). Below is a simplified version of the helper utility I am using. Is there anything that stands out as being an obvious issue? My endpoint applications simply get the query parameters from the url request and pass them as the requestParams argument with the appropriate map file. namespace MapScript { public class MapScriptResponse { public string Format { get; set; } public byte[] Data { get; set; } public string ErrorString { get; set; } public DateTime LastModified { get; set; } } public class MapScriptUtilities { /// /// Execute a service request to mapserver through mapscript /// /// Physical path to the map file on which to make the request /// List of request parameters /// The response from mapscript. public static MapScriptResponse ServiceRequest(string mapFile, Dictionary requestParams) { MapScriptResponse response = new MapScriptResponse(); mapObj map = new mapObj(mapFile); OWSRequest owsRequest = new OWSRequest(); Dictionary.Enumerator en = requestParams.GetEnumerator(); string paramName = ""; string paramValue = ""; while (en.MoveNext()) { paramName = en.Current.Key; paramValue = en.Current.Value; owsRequest.setParameter(paramName, paramValue); } mapscript.msIO_installStdoutToBuffer(); int resultCode = map.OWSDispatch(owsRequest); if (resultCode == 0) { response.Format = mapscript.msIO_stripStdoutBufferContentType(); response.Data = mapscript.msIO_getStdoutBufferBytes(); } return response; } } } Any help would be greatly appreciated. Brian _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Fri Mar 11 10:34:54 2011 From: andy at squeakycode.net (Andy Colson) Date: Fri, 11 Mar 2011 12:34:54 -0600 Subject: [mapserver-users] MapServer 6 beta, opengl Message-ID: <4D7A6B4E.9050606@squeakycode.net> Started X, changed my .map file to use opengl, ran shp2img, which before would segfault, now runs ok and produces and image. But the image is just static. I'll attempt to attach it. Any ideas? -Andy -------------- next part -------------- A non-text attachment was scrubbed... Name: tmp.png Type: image/png Size: 952953 bytes Desc: not available URL: From Phil.Anzel at ftc.usda.gov Fri Mar 11 12:49:18 2011 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO) Date: Fri, 11 Mar 2011 14:49:18 -0600 Subject: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release In-Reply-To: References: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov> <809503517A1B0347AF9A161507E6B29923BA4ECC91@mokansasc7s304.agent.one.usda.gov> <809503517A1B0347AF9A161507E6B29923BA4ECCA0@mokansasc7s304.agent.one.usda.gov> <809503517A1B0347AF9A161507E6B29923BA4ECD61@mokansasc7s304.agent.one.usda.gov> Message-ID: <809503517A1B0347AF9A161507E6B29923BA4ECDF2@mokansasc7s304.agent.one.usda.gov> Thomas, Thanks again. I'll keep my eyes open for Code Sprint outcomes with respect to Symbols of Type Vector. - Phil -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Friday, March 11, 2011 11:07 AM To: Anzel, Phil - Fort Collins, CO Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release Phil, You're using the old version of drawing thick lines, that was needed for GD. We'll have to decide at the codesprint if this is something that we want to stop supporting, as this is something that we are trailing along since 4.10. As I said in my first email, thick lines are obtained with the WIDTH keyword. As for vector symbols, there are known limitations actually, which we will try to overcome during the codesprint - what's certain is we won't be able to maintain backwards compatibility *and* expect consistent rendering across renderers. best regards, thomas On Fri, Mar 11, 2011 at 18:25, Anzel, Phil - Fort Collins, CO wrote: > Thomas and All, > > A follow up: submitted as a tracker defect: http://trac.osgeo.org/mapserver/ticket/3729 > > The test map file is: > MAP > ?OUTPUTFORMAT > ? ?NAME 'pnga' > ? ?MIMETYPE 'image/pnga' > ? ?DRIVER 'AGG/PNG' > ? ?EXTENSION 'png' > ? ?IMAGEMODE 'RGBA' > ? ?TRANSPARENT TRUE > ? ?FORMATOPTION 'INTERLACE=OFF' > ?END > ?STATUS ON > ?SIZE 954 589 > ?EXTENT 0 0 954 589 > ?RESOLUTION 72 > ?IMAGECOLOR 255 255 255 > > ?symbol > ? ?name 'circle' filled true type ellipse points 0 0 1 1 end > ?end > > ?LAYER > ? ?NAME ?'single line' > ? ?STATUS ON > ? ?TYPE LINE > ? ?feature points 10 10 950 580 end end > ? ?CLASS > ? ? ?style > ? ? ? ?symbol 'circle' > ? ? ? ?size 20 > ? ? ? ?color 255 255 0 > ? ? ? ?outlinecolor 255 0 0 > ? ? ?end > ? ? ?style > ? ? ? ?width 1 > ? ? ? ?color 0 0 255 > ? ? ?end > ? ?end > ?END # end of layer 'single line' > END ?# end of MAP > > The above map file works as desired under 5.6 and demonstrates the problem under 5.7/6.0. > > - Phil > > -----Original Message----- > From: Anzel, Phil - Fort Collins, CO > Sent: Friday, March 11, 2011 7:08 AM > To: thomas bonfort > Cc: mapserver-users at lists.osgeo.org; Anzel, Phil - Fort Collins, CO > Subject: RE: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release > > Thomas, > > Thanks yet again. I tried your suggestion and it looks quite nice. > > If I may, a related question: is there a change in behavior in use of symbols? I'm fairly certain that the MapServer tutorial example worked under 5.6.3, as did my use of the "tie" symbol. The motivation here is to tease out a potential bug in Mapserver 6.0.0-beta1. > > - Phil > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Friday, March 11, 2011 6:44 AM > To: Anzel, Phil - Fort Collins, CO > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release > > for a tie symbol you should specify a (negative) GAP. > > something like: > http://www2.terriscope.fr/geocache/wms?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=epsg%3A4326&BBOX=1.34033203125,43.76953125,1.3623046875,43.79150390625&WIDTH=256&HEIGHT=256 > > is obtained with > > SYMBOL > ? ?NAME "rail" > ? ?TYPE TRUETYPE > ? ?FONT sc > ? ?CHARACTER '|' > ? ?GAP -3 > END > > ... > > ? ? ? ?STYLE > ? ? ? ? ? ?WIDTH 2 > ? ? ? ? ? ?OUTLINEWIDTH 1 > ? ? ? ? ? ?OUTLINECOLOR "#555554" > ? ? ? ? ? ?COLOR "#ffffff" > ? ? ? ?END > ? ? ? ?STYLE > ? ? ? ? ? ?SYMBOL rail > ? ? ? ? ? ?SIZE 5 > ? ? ? ? ? ?COLOR "#555554" > ? ? ? ?END > > On Fri, Mar 11, 2011 at 14:35, Anzel, Phil - Fort Collins, CO > wrote: >> Hi, Thomas, >> >> Thanks for looking into this problem. >> >> My goal is to create a "railroad" cross-hatching along a line. I originally used: >> ? ?SYMBOL >> ? ? ?NAME 'default' >> ? ? ?Type simple >> ? ?END >> ? ?SYMBOL >> ? ? ?NAME 'tie' >> ? ? ?TYPE vector >> ? ? ?POINTS 0 0 ?0 7 ?-99 -99 ?7 0 ?7 7 ?END >> ? ?END >> These were referenced, within a layer of type "line", by: >> ? CLASS >> ? ? STYLE >> ? ? ? SYMBOL ? ? ? ? ? ?'default' >> ? ? ? SIZE ? ? ? ? ? ? ?1 >> ? ? ? COLOR ? ? ? ? ? ? 0 0 0 >> ? ? END >> ? ? STYLE >> ? ? ?SYMBOL ? ? ? ? ? ? 'tie' >> ? ? ?SIZE ? ? ? ? ? ? ? 8 >> ? ? ?COLOR ? ? ? ? ? ? ?0 0 0 >> ? ? END >> ? END >> >> This had worked under MapServer 5.6.3. I returned to this example after upgrading to 5.7DEV on March 9, 2011, and found that the "tie" cross-hatching had disappeared. I tried several other symbols; I used the "circle" as an example because it also worked in the past and is used in the MapServer "Introduction to MapServer", section 2.4.3, "CLASS and STYLE objects". >> >> Closer to the 2.4.3 example, if I define: >> ?symbol >> ? ?name 'circle' >> ? ?filled true >> ? ?type ellipse >> ? ?points 0 0 1 1 end >> ?end >> and reference this definition, as per the example, with: >> ? ? style >> ? ? ? symbol "circle" >> ? ? ? color 178 114 1 >> ? ? ? size 15 >> ? ? end >> ? ? style >> ? ? ? symbol "circle" >> ? ? ? color 254 161 0 >> ? ? ? size 7 >> ? ? end >> then there is no image created. >> >> Given these experimental results, I wonder if there has been a change in behavior in drawing symbols. Alternatively I've made a very simple error. >> >> Is there an error in my map file? How do you recommend that the "railroad" hatched line be drawn? >> >> Thanks again. >> >> - Phil >> >> >> -----Original Message----- >> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> Sent: Friday, March 11, 2011 4:17 AM >> To: Anzel, Phil - Fort Collins, CO >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release >> >> huh, I may have misinterpreted... >> >> you can't expect to obtain a point/marker symbology when using a line geometry. >> >> if you effectively want to use marker symbols, you can have a look RFC >> 48 and its >> ?GEOMTRANSFORM "start|end|vertices" transformations. >> >> -- >> thomas >> >> On Fri, Mar 11, 2011 at 12:10, thomas bonfort wrote: >>> Phil, >>> >>> what kind of symbology are you trying to obtain. I suspect you're >>> aiming for a thick line, which now does not require the use of a >>> symbol, but rather: >>> >>> style >>> ?width 20 >>> ?color 0 0 255 >>> end >>> >>> regards, >>> thomas >>> >>> On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO >>> wrote: >>>> All, >>>> >>>> I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011. >>>> >>>> It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010. >>>> >>>> Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output. >>>> >>>> I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported. >>>> >>>> Can you help? >>>> >>>> Thanks, >>>> >>>> - Phil Anzel >>>> ?Web Soil Survey development team >>>> ?Vistronix Inc. for USDA/NRCS/ITC >>>> >>>> ..... start of map file ..... >>>> >>>> MAP >>>> ?OUTPUTFORMAT >>>> ? ?NAME 'pnga' >>>> ? ?MIMETYPE 'image/pnga' >>>> ? ?DRIVER 'AGG/PNG' >>>> ? ?EXTENSION 'png' >>>> ? ?IMAGEMODE 'RGBA' >>>> ? ?TRANSPARENT TRUE >>>> ? ?FORMATOPTION 'INTERLACE=OFF' >>>> ?END >>>> ?STATUS ON >>>> ?SIZE 954 589 >>>> ?EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729 >>>> ?RESOLUTION 70 >>>> ?UNITS METERS >>>> ?IMAGECOLOR 255 255 255 >>>> ?PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END >>>> >>>> ?symbol >>>> ? ?name 'circle' filled true type ellipse points 0 0 1 1 end >>>> ?end >>>> >>>> ?LAYER >>>> ? ?NAME ?'single line' >>>> ? ?STATUS ON >>>> ? ?TYPE LINE >>>> ? ?feature points -11760750 5057520 -11752920 5062330 end end >>>> ? ?CLASS >>>> ? ? ?style >>>> ? ? ? ?symbol 'circle' >>>> ? ? ? ?size 20 >>>> ? ? ? ?color 255 255 0 >>>> ? ? ? ?outlinecolor 255 0 0 >>>> ? ? ?end >>>> ? ? ?style >>>> ? ? ? ?width 1 >>>> ? ? ? ?color 0 0 255 >>>> ? ? ?end >>>> ? ?end >>>> ?END # end of layer 'single line' >>>> END ?# end of MAP >>>> >>>> ..... end of map file ..... >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >> > From wal3 at mindspring.com Fri Mar 11 13:44:41 2011 From: wal3 at mindspring.com (Worth Lutz) Date: Fri, 11 Mar 2011 16:44:41 -0500 Subject: [Ubuntu] Re: [mapserver-users] MapServer 6.0.0-beta1 release -Please test! In-Reply-To: <201103092313.22149.aboudreault@mapgears.com> References: <4D783BDA.5060600@mapgears.com> <201103092313.22149.aboudreault@mapgears.com> Message-ID: Alan, Thanks for the ubuntugis repository. It took me a good bit of trying today but I got Mapserver 6.0 installed today by building from source. I'm not sure I've got it all right but I've got a working version for testing. I'd prefer to just load from the repository. Could you add "--with-cairo" to the next build to allow pdf output. Thanks Worth _____ From: ubuntu-bounces at lists.osgeo.org [mailto:ubuntu-bounces at lists.osgeo.org] On Behalf Of Alan Boudreault Sent: Wednesday, March 09, 2011 11:13 PM To: mapserver-users at lists.osgeo.org Cc: ubuntu at lists.osgeo.org; mapserver-devs at lists.osgeo.org Subject: [Ubuntu] Re: [mapserver-users] MapServer 6.0.0-beta1 release -Please test! The binaries of MapServer 6.0.0-beta1 are now available in UbuntuGIS for Ubuntu hardy, lucid and maverick. ubuntugis-testing ppa: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On March 9, 2011 09:47:54 pm Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. > > This new release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > The timing and feedback for this first beta is very important since it > comes one week before the Montreal Code Sprint where about a dozen > participants will be working specifically on MapServer and will have a > chance to tackle important 6.0 issues that may be found and reported. > > Here is a quick list of RFCs documenting some of the new features or > important changes in 6.0. This list is not complete, we will update it > as we polish the release documentation: > > Core Changes in MapServer 6.0 which could affect existing applications: > > * MS RFC 54: Rendering Interface API > * MS RFC 64: MapServer Expression Parser Overhaul > * MS RFC 65: Single-pass Query Changes for 6.0 > > New Features and Enhancements in MapServer 6.0: > > * MS RFC 58: Kml Output > * MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels > with too much character overlap > * MS RFC 61: Enhance MapServer Feature Style Support > * MS RFC 62: Support Additional WFS GetFeature Output Formats > * MS RFC 63: Built-in OpenLayers map viewer > * MS RFC 66: Better handling of temporary files > * MS RFC 67: Enable/Disable Layers in OGC Web Services > * MS RFC 68: Support for combining features from multiple layers > * MS RFC 69: Support for clustering of features in point layers > > (RFCs are available online at http://mapserver.org/development/rfc/) > > As usual there an a large number of additional small enhancements and > bug fixes. For a complete list see the HISTORY.TXT file at: > > > http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. It is not complete yet but we strongly > recommend that you review the latest version online at: > > http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new 6.0.0-beta1 release in the next day or so. > > > This is the first of four planned beta releases and if all goes well a > final release should occur around the end of April. The full release > plan can be viewed at: > > http://trac.osgeo.org/mapserver/wiki/60ReleasePlan > > Once again we need your help to ensure a high quality product, > especially for this beta due to its timing with next week's Code Sprint, > so please help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ UbuntuGIS mailing list Ubuntu at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/ubuntu http://trac.osgeo.org/ubuntugis/wiki _____ No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1204 / Virus Database: 1497/3495 - Release Date: 03/09/11 -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Fri Mar 11 20:13:09 2011 From: andy at squeakycode.net (Andy Colson) Date: Fri, 11 Mar 2011 22:13:09 -0600 Subject: [mapserver-users] MapServer 6 beta, opengl, linux In-Reply-To: <4D7A6B4E.9050606@squeakycode.net> References: <4D7A6B4E.9050606@squeakycode.net> Message-ID: <4D7AF2D5.3050508@squeakycode.net> On 03/11/2011 05:20 AM, thomas bonfort wrote: > Andy, > yes a (beefy) video card is needed or at least wanted, as you want to > offset the calculations to the GPU. If one isn't present, you're going > to fall back to a software opengl implementation which will be orders > of magnitude slower than what AGG is going to take. > > cc-ing Toby if he wants to comment further on this. > > regards, > thomas > > On Fri, Mar 11, 2011 at 03:02, Andy Colson wrote: >> On 03/10/2011 07:16 PM, Andy Colson wrote: >>> >>> On 03/09/2011 08:47 PM, Daniel Morissette wrote: >>>> >>>> The MapServer Team is pleased to announce the release of MapServer >>>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. >>>> >>> >>> I cannot seem to get opengl to work. >>> >>> a stacktrace of shp2img: >>> >>> Program received signal SIGSEGV, Segmentation fault. >>> 0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1 >>> (gdb) backtrace >>> #0 0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1 >>> #1 0x000000000047667f in OglRenderer::OglRenderer(unsigned int, unsigned >>> int, colorObj*) () >>> #2 0x0000000000474988 in msImageCreateOgl(int, int, outputFormatObj*, >>> colorObj*) () >>> #3 0x000000000044cd26 in msPrepareImage () >>> #4 0x000000000044ce75 in msDrawMap () >>> #5 0x0000000000415067 in main () >>> (gdb) >>> I'll continue my comments from another thread in this better named thread. So... I'm confused with mapoglrenderer.cpp. I dont see where any GLX context or PBuffer have been setup yet before the first call to OglRenderer::OglRenderer. The first thing it does is: glGetIntegerv(GL_VIEWPORT ,viewPort); But how can there be a viewport size yet? I added a debug message right after it: if(msGetGlobalDebugLevel() >= MS_DEBUGLEVEL_DEBUG) { msDebug("viewport %d, %d, %d, %d\n", viewportX, viewportY, viewportWidth, viewportHeight); } and got: $ ./shp2img -all_debug 15 -m /pub/maps/test.map -o x.png [Fri Mar 11 19:30:01 2011].731230 msLoadMap(): 0.000s [Fri Mar 11 19:30:01 2011].731352 viewport 48, 135483496, 134889737, 0 that cant be right... can it? The next thing is getTextureSize, which calls glTexImage2D. Will that work with no context? -Andy From emilianocastaneda at suremptec.com.ar Sun Mar 13 14:25:03 2011 From: emilianocastaneda at suremptec.com.ar (=?ISO-8859-1?Q?Emiliano_Casta=F1eda?=) Date: Sun, 13 Mar 2011 18:25:03 -0300 Subject: [mapserver-users] Error on QueryBy* on PHP Mapscript when querying raster layer? Message-ID: I have defined a mapfile for a raster LAYER object with a CLASS object to define a KEYIMAGE tag. The CLASS object doesn?t contain a COLOR tag, but contains a TEMPLATE tag. When performing a QueryByRect or QueryByPoint using PHP Mapscript (didn't try other queries), value1, value2, value3 contain the correct raster data, but red, green and blue contain 0, even though the image is rendered correctly with red=value1, green=value2, and blue=value3. If I add a COLOR tag to the CLASS, when querying red, green and blue contain this color, as expected. If I remove the CLASS object, when querying red, green and blue containt value1, value2 and value3 as expected, but I cannot create a legend icon as KEYIMAGE is not defined. Shouldn't red, green and blue contain value1, value2, and value3 if CLASS object doesn't contain a COLOR tag as those are the rendered values? Regards -- Ing. Emiliano Casta?eda SUR Emprendimientos Tecnol?gicos Per? 345 Piso 5to Oficina "B" (C1067AAG) Ciudad de Buenos Aires, Argentina Tel. +54 (11) 4342-2976/84 emilianocastaneda at suremptec.com.ar www.suremptec.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreas.siegel at vorarlberg.at Mon Mar 14 06:13:48 2011 From: andreas.siegel at vorarlberg.at (sulu) Date: Mon, 14 Mar 2011 06:13:48 -0700 (PDT) Subject: [mapserver-users] How to format a GetfeatureInfoRequest results? Message-ID: <1300108428336-6168987.post@n2.nabble.com> Hi. I'm in search of information/tutorial on formatting GetfeatureInfoRequests by using HTML-Templates. As an example; assume there is an attibute "test" which may have some content or may not. As far as i know i can format the result in the Body-HTML-Template like that: [item name=test format=$value escape=none] This works but i would like to add some logic in order to improve it a bit. E.g. add an if clause that returns "n/a" if the attribute has no content or turn it red if the value exceeds som threshold. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-format-a-GetfeatureInfoRequest-results-tp6168987p6168987.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Mon Mar 14 06:28:56 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 14 Mar 2011 08:28:56 -0500 Subject: [mapserver-users] How to format a GetfeatureInfoRequest results? In-Reply-To: <1300108428336-6168987.post@n2.nabble.com> References: <1300108428336-6168987.post@n2.nabble.com> Message-ID: There is limited "logic" support in the item tag. There are two attributes to consider: - nullformat, sets the string to be displayed if the item is empty [item name=test nullformat="n\a" ...] - pattern, sets a regex to check the item against, results are only displayed if the item value matches [item name=test pattern="foo" format="bar"] You might be able to combine the two, not sure about that though. Let me know if you have questions. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of sulu Sent: Monday, March 14, 2011 8:14 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How to format a GetfeatureInfoRequest results? Hi. I'm in search of information/tutorial on formatting GetfeatureInfoRequests by using HTML-Templates. As an example; assume there is an attibute "test" which may have some content or may not. As far as i know i can format the result in the Body-HTML-Template like that: [item name=test format=$value escape=none] This works but i would like to add some logic in order to improve it a bit. E.g. add an if clause that returns "n/a" if the attribute has no content or turn it red if the value exceeds som threshold. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-format-a-GetfeatureInfoRequest-results-tp6168987p6168987.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From andreas.siegel at vorarlberg.at Mon Mar 14 07:12:53 2011 From: andreas.siegel at vorarlberg.at (sulu) Date: Mon, 14 Mar 2011 07:12:53 -0700 (PDT) Subject: [mapserver-users] RE: How to format a GetfeatureInfoRequest results? In-Reply-To: References: <1300108428336-6168987.post@n2.nabble.com> Message-ID: <1300111973552-6169182.post@n2.nabble.com> Hi Steve. Thanks! That works. Is there a synopsis where i can look up the format options that are available? Maybe i'm struck with blindness but i could not find them in the mapserver.pdf. Cheers Andy -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-format-a-GetfeatureInfoRequest-results-tp6168987p6169182.html Sent from the Mapserver - User mailing list archive at Nabble.com. From maymerich at argongra.es Mon Mar 14 08:17:43 2011 From: maymerich at argongra.es (Manuel Aymerich) Date: Mon, 14 Mar 2011 16:17:43 +0100 Subject: [mapserver-users] About html code inside query attribute responses Message-ID: <002d01cbe25a$f97883f0$ec698bd0$@es> Hi, I've prepared WMS getFeautreInfo queries so that mapserver's template receives pure html attributes (containing the
tag for example). I would like to show this html code as it is. So that it integrates with the existing html header, footer and the rest of the template inside mapservers response, hoping that at the frontend the html response could be interpreted as a whole. However, the html stored data is shown either as escaped html or as url encoded data. I'ver read mapserver documentation but I had not success while implementing each possible solution: If I try: [attribute name] : I get escaped html (
is translated into <br>) [attrribute name_esc]: I get url encdes text (
is translated into %3Cbr%2F%3) [attribute item name_raw]: I get something in between but not pure html (
is translated into \n). Mapserver documentation says ".By default the attributes are encoded especially for HTML representation" but I now disagree. Any ideas about what's happening here? Any workaround solutions? Thanks in advance, Manuel Aymerich -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Mar 14 08:45:36 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 14 Mar 2011 10:45:36 -0500 Subject: [mapserver-users] About html code inside query attribute responses In-Reply-To: <002d01cbe25a$f97883f0$ec698bd0$@es> References: <002d01cbe25a$f97883f0$ec698bd0$@es> Message-ID: What you describe is basically correct. Except, there is no code in place to translate html elements like you mention with [attribute item name_raw]. That should be the correct method of telling MapServer not to touch the contents of an attribute at all. You could also try: [item name="name" escape="none"] That should generate the same output as [name_raw] and is the preferred way of doing this sort of thing. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Manuel Aymerich Sent: Monday, March 14, 2011 10:18 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] About html code inside query attribute responses Hi, I've prepared WMS getFeautreInfo queries so that mapserver's template receives pure html attributes (containing the
tag for example). I would like to show this html code as it is. So that it integrates with the existing html header, footer and the rest of the template inside mapservers response, hoping that at the frontend the html response could be interpreted as a whole. However, the html stored data is shown either as escaped html or as url encoded data. I'ver read mapserver documentation but I had not success while implementing each possible solution: If I try: [attribute name] : I get escaped html (
is translated into <br>) [attrribute name_esc]: I get url encdes text (
is translated into %3Cbr%2F%3) [attribute item name_raw]: I get something in between but not pure html (
is translated into \n). Mapserver documentation says "...By default the attributes are encoded especially for HTML representation" but I now disagree. Any ideas about what's happening here? Any workaround solutions? Thanks in advance, Manuel Aymerich -------------- next part -------------- An HTML attachment was scrubbed... URL: From emilianocastaneda at suremptec.com.ar Mon Mar 14 09:39:53 2011 From: emilianocastaneda at suremptec.com.ar (=?ISO-8859-1?Q?Emiliano_Casta=F1eda?=) Date: Mon, 14 Mar 2011 13:39:53 -0300 Subject: [mapserver-users] Problem with QueryByPoint and QueryByRect with PHP Mapscript Message-ID: Hi to all, Im having a problem when using QueryByPoint and QueryByRect on PHP Mapscript and Mapserver 5.6.6 on this layer, as Red, Green, and Blue attributes are always 0, even though the image is rendered correctly. LAYER GROUP "grBlueMarble" NAME "nmBlueMarble" TYPE raster DATA "../../../layers/raster/BlueMarble.img" STATUS OFF OPACITY 100 PROJECTION "init=epsg:900913" END OFFSITE 0 0 0 CLASS TEMPLATE "foo.bar" NAME "BlueMarble" KEYIMAGE "../../../images/icon_rasterLayer.png" END END As the image is correctly rendered I would expect to receive Red, Green, and Blue attributes the same as Value_0, Value_1 as Value_2 instead of 0. If I remove the CLASS object the Red, Green, and Blue attributes are correct but I cannot define a KEYIMAGE tag. ?Could this be a bug? Regards, Ing. Emiliano Casta?eda -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ken.Boss at state.mn.us Mon Mar 14 12:23:32 2011 From: Ken.Boss at state.mn.us (Boss, Ken (DNR)) Date: Mon, 14 Mar 2011 14:23:32 -0500 Subject: [mapserver-users] Nodata in raster queries Message-ID: <4CF306D7079ED548B6AB1864F369FE78177008BC16@MNMAIL05.ead.state.mn.us> I have a DEM that I am using with mapserver 5.6 to service queries for an elevation value at a given point. The DEM contains significant offsite/nodata areas. From gdalinfo: Band 1 Block=19063x1 Type=Int16, ColorInterp=Gray NoData Value=-32768 If I open the image in QGIS and use the identify tool over a nodata area, it says: Band 1 null (no data) But when I run a mapserver point query at the same point, the value returned is -32768. Is there a way to configure mapserver to return something more like null for raster nodata areas? Thanks, --Ken Boss MN DNR From michufoc at wp.pl Tue Mar 15 03:55:56 2011 From: michufoc at wp.pl (michal_drozdz) Date: Tue, 15 Mar 2011 03:55:56 -0700 (PDT) Subject: [mapserver-users] Re: WMS on top of Google maps API In-Reply-To: References: <4d79083429eec3.62799056@wp.pl> Message-ID: <1300186556297-6172316.post@n2.nabble.com> Thanks a lot! That works! I used solution proposed by mwkorver -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-on-top-of-Google-maps-API-tp6158585p6172316.html Sent from the Mapserver - User mailing list archive at Nabble.com. From maymerich at argongra.es Tue Mar 15 08:04:24 2011 From: maymerich at argongra.es (Manuel Aymerich) Date: Tue, 15 Mar 2011 16:04:24 +0100 Subject: [mapserver-users] About html code inside query attribute responses In-Reply-To: References: <002d01cbe25a$f97883f0$ec698bd0$@es> Message-ID: <000901cbe322$4608b4c0$d21a1e40$@es> Thanks Steve. As you already pointed out [item name=?name? escape=?none?] behaves exactly as [name_raw], which in my case translates html tags from < > to <br> . Not a really coherent behavior, is it? Manuel De: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Enviado el: lunes, 14 de marzo de 2011 16:46 Para: Manuel Aymerich; mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] About html code inside query attribute responses What you describe is basically correct. Except, there is no code in place to translate html elements like you mention with [attribute item name_raw]. That should be the correct method of telling MapServer not to touch the contents of an attribute at all. You could also try: [item name=?name? escape=?none?] That should generate the same output as [name_raw] and is the preferred way of doing this sort of thing. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Manuel Aymerich Sent: Monday, March 14, 2011 10:18 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] About html code inside query attribute responses Hi, I?ve prepared WMS getFeautreInfo queries so that mapserver?s template receives pure html attributes (containing the
tag for example). I would like to show this html code as it is. So that it integrates with the existing html header, footer and the rest of the template inside mapservers response, hoping that at the frontend the html response could be interpreted as a whole. However, the html stored data is shown either as escaped html or as url encoded data. I?ver read mapserver documentation but I had not success while implementing each possible solution: If I try: [attribute name] : I get escaped html (
is translated into <br>) [attrribute name_esc]: I get url encdes text (
is translated into %3Cbr%2F%3) [attribute item name_raw]: I get something in between but not pure html (
is translated into \n). Mapserver documentation says ? By default the attributes are encoded especially for HTML representation? but I now disagree. Any ideas about what?s happening here? Any workaround solutions? Thanks in advance, Manuel Aymerich _____ Se certific? que el correo no contiene virus. Comprobada por AVG - www.avg.es Versi?n: 10.0.1204 / Base de datos de virus: 1498/3505 - Fecha de la versi?n: 13/03/2011 -------------- next part -------------- An HTML attachment was scrubbed... URL: From francesco.pirotti at unipd.it Tue Mar 15 10:47:11 2011 From: francesco.pirotti at unipd.it (francesco) Date: Tue, 15 Mar 2011 18:47:11 +0100 Subject: [mapserver-users] MapServer 6 testing: WMS - invalid layer parameter In-Reply-To: <4D7A5A01.70503@dmsolutions.ca> References: <4D795EEB.2030709@gmx.net> <4D7A5A01.70503@dmsolutions.ca> Message-ID: <4D7FA61F.1070400@unipd.it> Hello everyone, I am trying the new mapserver 6.0 :-) and I ran into the following error message when trying as WMS server msWMSGetLegendGraphic(): WMS server error. Invalid layer given in the LAYER parameter. As a matter of fact when I shoot the "GetCapabilites" request, no layers are present except the map layer (the name of my map). Using Mapserver 5.6.6 everything worked fine. Is there anything I am missing? Cheers, and thanks to developers for their hard work - looking forward to the Montreal code sprint! Francesco -- ************************************************** *Francesco Pirotti* Dep. TESAF CIRGEO -- Interdepartmental Research Center on Cartography Photogrammetry Remote Sensing and G.I.S. University of Padova Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm Email: francesco.pirotti at unipd.it Phone: +39 049 827 2710 Phone: +39 349 55 39 261 ************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Mar 15 11:26:22 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 15 Mar 2011 14:26:22 -0400 Subject: [mapserver-users] MapServer 6 testing: WMS - invalid layer parameter In-Reply-To: <4D7FA61F.1070400@unipd.it> References: <4D795EEB.2030709@gmx.net> <4D7A5A01.70503@dmsolutions.ca> <4D7FA61F.1070400@unipd.it> Message-ID: > Is there anything I am missing? yes, the migration guide ! ;) (the part on OGC Web Services) -- thomas From vincentpmiller at yahoo.com Tue Mar 15 14:03:29 2011 From: vincentpmiller at yahoo.com (Vince Miller) Date: Tue, 15 Mar 2011 14:03:29 -0700 (PDT) Subject: [mapserver-users] two mapserver speed-optimization questions Message-ID: <186659.61102.qm@web110213.mail.gq1.yahoo.com> Hi, I'm new to this list. A quick search did not find answers to two mapserver speed-optimization questions. Can someone please help? 1. The following two lines of PHP from my application transform an php image object into a raster map layer: imagepng($rmap, __MAPS_PATH__ . "resource.png"); $map->getLayerByName("resource")->set("data", __MAPS_PATH__ . "resource.png"); The imagepng call is a major bottleneck when the extent of the layer is large. Can the data in image "$rmap" be accessed for layer "resource" directly, without the file write/read? If so, how? FYI, the following lines appear in my mapfile: ? LAYER ??? NAME resource ??? DATA "resource.png" ??? TYPE raster ??? PROCESSING "RESAMPLE=NEAREST" ? END 2. When large vector layers are included in the map, or when the layer consists of labels, the mapObj's draw method is slow, even if only a small portion of the layer data is needed. Sample SQL that created the layer data column is: CREATE TABLE domains ( ??? domid integer PRIMARY KEY, ??? ... ); SELECT AddGeometryColumn('','domains','boundaries','4326','MULTIPOLYGON',2); \i boundaries.sql; /* contains a bunch of INSERT INTOs */ CREATE INDEX dombound_idx ON domains USING gist (boundaries); ALTER TABLE domains CLUSTER ON dombound_idx; and the mapfile has: ? LAYER ??? CONNECTIONTYPE postgis ??? PROCESSING "CLOSE_CONNECTION=DEFER" ??? NAME???????? boundaries ??? DATA???????? "boundaries from domains using unique domid" ??? TYPE???????? POLYGON ??? CLASS ?????? ... ??? END ? END Any suggestions for speeding this up? Thanks a bunch, Vince -------------- next part -------------- An HTML attachment was scrubbed... URL: From jt at mapmedia.de Wed Mar 16 03:53:52 2011 From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=) Date: Wed, 16 Mar 2011 11:53:52 +0100 Subject: [mapserver-users] wms_style_xxx_legendurl_href In-Reply-To: <4D77AC5C.60101@mapmedia.de> References: <4D77AC5C.60101@mapmedia.de> Message-ID: <4D8096C0.5000800@mapmedia.de> Hi, o.k., it was not the best moment to ask my question, because at the same time the mapserver beta 6 was announced ;) so here a 'repost', it would be nice if anyone could give me a hint: > Hi, > > I'm using the wms_style-parameters in the layer metadata section to tell > the client to use a special legend-url: > 'wms_style' 'Farbwerte' > 'wms_style_Farbwerte_legendurl_height' '218' > 'wms_style_Farbwerte_legendurl_href' 'http://xxx/html/test/gimp.png' > 'wms_style_Farbwerte_legendurl_format' 'png' > 'wms_style_Farbwerte_legendurl_width' '300' > > This works fine with only one style. But what do I have to do, if I have > defined different styles / classgroups? one should use a pre-defined image, > the other ones should be generated by mapserver. > When defining > 'wms_style' 'Farbwerte' > the capabilities only shows this style, even if there are more styles > (classgroups) defined. > > Any idea? > > J?rg From warmerdam at pobox.com Wed Mar 16 04:47:31 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 16 Mar 2011 07:47:31 -0400 Subject: [mapserver-users] two mapserver speed-optimization questions In-Reply-To: <186659.61102.qm@web110213.mail.gq1.yahoo.com> References: <186659.61102.qm@web110213.mail.gq1.yahoo.com> Message-ID: On Tue, Mar 15, 2011 at 5:03 PM, Vince Miller wrote: > 1. The following two lines of PHP from my application transform an php image object into a raster map layer: > > imagepng($rmap, __MAPS_PATH__ . "resource.png"); > $map->getLayerByName("resource")->set("data", __MAPS_PATH__ . "resource.png"); > > The imagepng call is a major bottleneck when the extent of the layer is large. > Can the data in image "$rmap" be accessed for layer "resource" directly, without the file write/read? If so, how? FYI, the following lines appear in my mapfile: Vince, There are no mechanisms to utilize a PHP image object as the data in a mapserver raster layer without first writing to disk. I gather PHP image resources are actually a handle to a gdImage object, so if you needed it badly enough it should be possible to write a PHP function that turn that gdImage into something that was accessable to GDAL as a raster but that would be quite involved and not something likely to go back into the core distribution. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up?? | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush? ? | Geospatial Programmer for Rent From saad.hessane at gmail.com Wed Mar 16 05:11:11 2011 From: saad.hessane at gmail.com (=?ISO-8859-1?Q?Mohamed_Sa=E2d_HESSANE?=) Date: Wed, 16 Mar 2011 13:11:11 +0100 Subject: [mapserver-users] two mapserver speed-optimization questions In-Reply-To: References: <186659.61102.qm@web110213.mail.gq1.yahoo.com> Message-ID: For the raster image you can build pyramid with gdaladdo, it's really useful to increase performances 2011/3/16 Frank Warmerdam > On Tue, Mar 15, 2011 at 5:03 PM, Vince Miller > wrote: > > 1. The following two lines of PHP from my application transform an php > image object into a raster map layer: > > > > imagepng($rmap, __MAPS_PATH__ . "resource.png"); > > $map->getLayerByName("resource")->set("data", __MAPS_PATH__ . > "resource.png"); > > > > The imagepng call is a major bottleneck when the extent of the layer is > large. > > Can the data in image "$rmap" be accessed for layer "resource" directly, > without the file write/read? If so, how? FYI, the following lines appear in > my mapfile: > > > Vince, > > There are no mechanisms to utilize a PHP image object as the > data in a mapserver raster layer without first writing to disk. I > gather PHP image resources are actually a handle to a gdImage > object, so if you needed it badly enough it should be possible to > write a PHP function that turn that gdImage into something that > was accessable to GDAL as a raster but that would be quite > involved and not something likely to go back into the core > distribution. > > Best regards, > > > > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Weisbend at wapa.gov Wed Mar 16 09:18:14 2011 From: Weisbend at wapa.gov (Eric Weisbender) Date: Wed, 16 Mar 2011 10:18:14 -0600 Subject: [mapserver-users] GeoWebCache WMS Message-ID: <4D808E66020000DF00071B3E@10.1.50.131> Hello, I am trying to use the GeoWebCache WMS service, http://maps.opengeo.org/geowebcache/service/wms ( http://maps.opengeo.org/geowebcache/service/wms ), with cgi MapServer as a layer defined in may mapfile and it doesn't work. It also doesn't work in QGIS, GlobalMapper, or Google Earth. However, It works fine in may OpenLayers app. Any insight as to why it only works with OpenLayers would be greatly appreciated. Thanks EW -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Wed Mar 16 09:47:50 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 16 Mar 2011 12:47:50 -0400 Subject: [mapserver-users] Nodata in raster queries In-Reply-To: <4CF306D7079ED548B6AB1864F369FE78177008BC16@MNMAIL05.ead.state.mn.us> References: <4CF306D7079ED548B6AB1864F369FE78177008BC16@MNMAIL05.ead.state.mn.us> Message-ID: <4D80E9B6.1090102@pobox.com> On 11-03-14 03:23 PM, Boss, Ken (DNR) wrote: > I have a DEM that I am using with mapserver 5.6 to service queries for an elevation value at a given point. The DEM contains significant offsite/nodata areas. From gdalinfo: > > Band 1 Block=19063x1 Type=Int16, ColorInterp=Gray > NoData Value=-32768 > > If I open the image in QGIS and use the identify tool over a nodata area, it says: > > Band 1 null (no data) > > But when I run a mapserver point query at the same point, the value returned is -32768. Is there a way to configure mapserver to return something more like null for raster nodata areas? Ken, Mapserver has a few mechanisms for specifying nodata. I skimmed the raster query code and it does not seem to honour these. If you file a ticket on this issue, I can try and implement nodata support in the raster query code this week at the code sprint. In MapServer 6.0 (trunk) there are some improvements to detecting nodata values, even for non-8bit data, in the raster drawing case. This just hasn't all made it into the raster query logic. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Steve.Lime at state.mn.us Wed Mar 16 10:05:54 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 16 Mar 2011 12:05:54 -0500 Subject: [mapserver-users] About html code inside query attribute responses In-Reply-To: <000901cbe322$4608b4c0$d21a1e40$@es> References: <002d01cbe25a$f97883f0$ec698bd0$@es> , <000901cbe322$4608b4c0$d21a1e40$@es> Message-ID: Can you or someone else share a sample shapefile with HTML in an attribute? I've not experienced this problem but donw have access to a datafile with that type of content... Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Manuel Aymerich [maymerich at argongra.es] Sent: Tuesday, March 15, 2011 10:04 AM To: mapserver-users at lists.osgeo.org Cc: Lime, Steve D (DNR) Subject: RE: [mapserver-users] About html code inside query attribute responses Thanks Steve. As you already pointed out [item name=?name? escape=?none?] behaves exactly as [name_raw], which in my case translates html tags from to <br> . Not a really coherent behavior, is it? Manuel De: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Enviado el: lunes, 14 de marzo de 2011 16:46 Para: Manuel Aymerich; mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] About html code inside query attribute responses What you describe is basically correct. Except, there is no code in place to translate html elements like you mention with [attribute item name_raw]. That should be the correct method of telling MapServer not to touch the contents of an attribute at all. You could also try: [item name=?name? escape=?none?] That should generate the same output as [name_raw] and is the preferred way of doing this sort of thing. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Manuel Aymerich Sent: Monday, March 14, 2011 10:18 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] About html code inside query attribute responses Hi, I?ve prepared WMS getFeautreInfo queries so that mapserver?s template receives pure html attributes (containing the
tag for example). I would like to show this html code as it is. So that it integrates with the existing html header, footer and the rest of the template inside mapservers response, hoping that at the frontend the html response could be interpreted as a whole. However, the html stored data is shown either as escaped html or as url encoded data. I?ver read mapserver documentation but I had not success while implementing each possible solution: If I try: [attribute name] : I get escaped html (
is translated into <br>) [attrribute name_esc]: I get url encdes text (
is translated into %3Cbr%2F%3) [attribute item name_raw]: I get something in between but not pure html (
is translated into \n). Mapserver documentation says ??By default the attributes are encoded especially for HTML representation? but I now disagree. Any ideas about what?s happening here? Any workaround solutions? Thanks in advance, Manuel Aymerich ________________________________ Se certific? que el correo no contiene virus. Comprobada por AVG - www.avg.es Versi?n: 10.0.1204 / Base de datos de virus: 1498/3505 - Fecha de la versi?n: 13/03/2011 From bartvde at osgis.nl Wed Mar 16 10:13:15 2011 From: bartvde at osgis.nl (Bart van den Eijnden) Date: Wed, 16 Mar 2011 18:13:15 +0100 Subject: [mapserver-users] GeoWebCache WMS In-Reply-To: <4D808E66020000DF00071B3E@10.1.50.131> References: <4D808E66020000DF00071B3E@10.1.50.131> Message-ID: <1E158DE0-972B-4179-92A0-5B6B40953FE9@osgis.nl> Hi, it's a tiled service, so only imagery at certain scales. That's why it does not work in regular WMS clients, only tiled (WMS-C) clients. Best regards, Bart -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bartvde at osgis.nl On Mar 16, 2011, at 5:18 PM, Eric Weisbender wrote: > Hello, > > I am trying to use the GeoWebCache WMS service, http://maps.opengeo.org/geowebcache/service/wms, with cgi MapServer as a layer defined in may mapfile and it doesn't work. It also doesn't work in QGIS, GlobalMapper, or Google Earth. However, It works fine in may OpenLayers app. Any insight as to why it only works with OpenLayers would be greatly appreciated. > > Thanks > EW > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwkorver at gmail.com Wed Mar 16 10:28:09 2011 From: mwkorver at gmail.com (Mark Korver) Date: Wed, 16 Mar 2011 12:28:09 -0500 Subject: [mapserver-users] GeoWebCache WMS In-Reply-To: <1E158DE0-972B-4179-92A0-5B6B40953FE9@osgis.nl> References: <4D808E66020000DF00071B3E@10.1.50.131> <1E158DE0-972B-4179-92A0-5B6B40953FE9@osgis.nl> Message-ID: GlobalMapper has been updated in ver 12 to work with tiled services, but I have not tried WMS-C with it. MapServer will also work with tiled services from gdal ver 1.7+ see http://www.gdal.org/frmt_wms.html Another angle on this is to put MapProxy in front of it which is easy way to wms a tms source and get both for the price of one? On Wed, Mar 16, 2011 at 12:13 PM, Bart van den Eijnden wrote: > Hi, > it's a tiled service, so only imagery at certain scales. That's why it does > not work in regular WMS clients, only tiled (WMS-C) clients. > Best regards, > Bart > -- > Looking for flexible support on OpenLayers or GeoExt? Please check out > http://www.osgis.nl/support.html > Bart van den Eijnden > OSGIS > bartvde at osgis.nl > On Mar 16, 2011, at 5:18 PM, Eric Weisbender wrote: > > Hello, > > I am trying to use the GeoWebCache WMS service, > http://maps.opengeo.org/geowebcache/service/wms,?with cgi MapServer as a > layer defined in may mapfile and it doesn't work.? It also doesn't work in > QGIS, GlobalMapper, or Google Earth.? However, It works fine in may > OpenLayers app.? Any insight as to why it only works with?OpenLayers?would > be greatly appreciated. > > Thanks > EW > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From fruitwerks at gmail.com Wed Mar 16 10:41:54 2011 From: fruitwerks at gmail.com (fruitwerks) Date: Wed, 16 Mar 2011 10:41:54 -0700 Subject: [mapserver-users] display tile error as text? Message-ID: Is there a way to get a request resulting in an error to return plain text? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From saad.hessane at gmail.com Wed Mar 16 12:23:07 2011 From: saad.hessane at gmail.com (=?ISO-8859-1?Q?Mohamed_Sa=E2d_HESSANE?=) Date: Wed, 16 Mar 2011 20:23:07 +0100 Subject: [mapserver-users] display tile error as text? In-Reply-To: References: Message-ID: intercept exception with try catch finally (C# mapscript) 2011/3/16 fruitwerks > Is there a way to get a request resulting in an error to return plain text? > > Thanks! > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sarawut.map at gmail.com Thu Mar 17 01:32:29 2011 From: sarawut.map at gmail.com (Sarawut Ninsawat) Date: Thu, 17 Mar 2011 17:32:29 +0900 Subject: [mapserver-users] Re: Message-ID: ..Life without cigarettes? http://79.96.74.146/links.php?cjzyahoo=37am7 From Clement.MONIER at v-trafic.com Thu Mar 17 07:37:51 2011 From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=) Date: Thu, 17 Mar 2011 15:37:51 +0100 Subject: [mapserver-users] showing line direction (without font) Message-ID: <0B6D7F516315594DBEFE58178D91BD3201C1BCAA674A@exchangemm.mm.fr> Hi, Is it possible to display a layer of lines with direction's marks using MapServer ? With no "font trick" (i.e a char symbol like '>',...) See picture attached showing a nice sample Thanks & Regards Clement -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: arrow_nice_sample.jpg Type: image/jpeg Size: 9794 bytes Desc: arrow_nice_sample.jpg URL: From sylvanascent at gmail.com Thu Mar 17 07:45:23 2011 From: sylvanascent at gmail.com (Roger Bedell) Date: Thu, 17 Mar 2011 15:45:23 +0100 Subject: [mapserver-users] MapServer and Guid USING UNIQUE In-Reply-To: References: <4D78B033.5080308@terrestris.de> Message-ID: Hi Tamas, I'm trying to get this working and ran into a couple snags. We are currently using mapscript_csharp.dll version 5.6.5 in a .NET program. 1) Tried to just copy just the msplugin_mssql2008.dll from your latest build from http://vbkto.dyndns.org/sdk/ - this didn't work, must have other dependencies, I didn't really think it would work. 2) Tried to use the latest build. Strangely, mapscript_csharp.dll doesn't seem to have the same objects as 5.6.5, and I got a bunch of unresolved references in the code. What do you think is the easiest way to get this working? Thanks, Roger Bedell Coordinate Solutions Inc. On Thu, Mar 10, 2011 at 12:56 PM, Tamas Szekeres wrote: > Hi Roger, > > Could you create a ticket with this issue ( > http://trac.osgeo.org/mapserver/newticket)? I'll take care of fixing this. > > Best regards, > > Tamas > > > > > 2011/3/10 Roger Bedell > >> Thanks Till, however, here is the trace from the ODBC tracer, pretty >> obvious what is going on: >> >> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL >> Server]Insufficient result space to convert uniqueidentifier value to char. >> (8170) >> >> Guids generally take up 36 characters when converted to a string, and the >> Select statement only has room for 20. >> >> Since this is a SQL specific query, my guess it is being generated in the >> sql spatial driver? >> >> Roger >> >> >> HSTMT 0x0589B310 >> UCHAR * 0x05E1A990 [ -3] "SELECT >> Feature.STAsBinary(),convert(varchar(20), PKey) from MetesAndBoundsHeader >> WHERE Feature.STIntersects(Geometry::STGeomFromText('POLYGON((-104.18599 >> 29.2473266843318,-93.22438 29.2473266843318,-93.22438 >> 41.3707663156682,-104.18599 41.3707663156682,-104.18599 >> 29.2473266843318))',4326)) = 1 \ 0" >> SDWORD -3 >> >> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL >> Server]Insufficient result space to convert uniqueidentifier value to char. >> (8170) >> >> >> >> >> >> >> >> On Thu, Mar 10, 2011 at 12:04 PM, adams wrote: >> >>> Dear Roger, >>> >>> if you get an empty image with no error, the first try would be to use a >>> simple symbol and no expression in your layer. >>> Also ensure, that your extent when querying the map is correct. >>> >>> So you make sure, that everything around your datasource is OK. >>> >>> Then use a datastring like this one: >>> >>> >>> DATA "the_geom from (SELECT Feature from MetesAndBoundsHeader) as foo >>> USING UNIQUE PKey USING SRID=4326" >>> >>> or however the geometry-column in mssql server is called ;-) >>> >>> Regards, Till >>> >>> >>> >>> >>> Roger Bedell wrote: >>> >>> Good Morning. >>> I am currently working with MapServer and the MSSQL Spatial driver. I am >>> seeing that MS does not work with a DATA statement like this in the Map >>> file: >>> >>> DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING >>> SRID=4326" >>> >>> where PKey is defined like this: >>> >>> [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT NULL, >>> >>> No errors are triggered, however nothing is displayed, including all >>> other layers. Is this an issue with the SQL Spatial driver or MapServer? Any >>> ideas on how to fix it? >>> >>> Thanks! >>> Roger Bedell >>> Coordinate Solutions Inc. >>> >>> ------------------------------ >>> >>> _______________________________________________ >>> mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> -- >>> >>> --------------------------------------------------------- >>> terrestris GmbH & Co. KG >>> Irmintrudisstrasse 17 >>> 53111 Bonn >>> Germany >>> >>> Till Adams >>> Gesch?ftsf?hrung >>> >>> Tel: +49 (0)228 / 962 899-52 >>> Fax: +49 (0)228 / 962 899-57adams at terrestris.de http://www.terrestris.de >>> Amtsgericht Bonn, HRA 6835 >>> --------------------------------------------------------- >>> >>> Komplement?rin: >>> >>> terrestris Verwaltungs GmbH >>> >>> vertreten durch: >>> Hinrich Paulsen, Till Adams >>> >>> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Thu Mar 17 09:16:58 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 17 Mar 2011 17:16:58 +0100 Subject: [mapserver-users] MapServer and Guid USING UNIQUE In-Reply-To: References: <4D78B033.5080308@terrestris.de> Message-ID: Roger, Which package did you try. The -stable branches (ie: http://vbkto.dyndns.org/sdk/PackageList.aspx?file=release-1600-gdal-1-8-mapserver-5-6.zip) should contain the fix. Best regards, Tamas 2011/3/17 Roger Bedell > Hi Tamas, > I'm trying to get this working and ran into a couple snags. We are > currently using mapscript_csharp.dll version 5.6.5 in a .NET program. > > 1) Tried to just copy just the msplugin_mssql2008.dll from your latest > build from http://vbkto.dyndns.org/sdk/ - this didn't work, must have > other dependencies, I didn't really think it would work. > > 2) Tried to use the latest build. Strangely, mapscript_csharp.dll doesn't > seem to have the same objects as 5.6.5, and I got a bunch of unresolved > references in the code. > > What do you think is the easiest way to get this working? > > > Thanks, > Roger Bedell > Coordinate Solutions Inc. > > > On Thu, Mar 10, 2011 at 12:56 PM, Tamas Szekeres wrote: > >> Hi Roger, >> >> Could you create a ticket with this issue ( >> http://trac.osgeo.org/mapserver/newticket)? I'll take care of fixing >> this. >> >> Best regards, >> >> Tamas >> >> >> >> >> 2011/3/10 Roger Bedell >> >>> Thanks Till, however, here is the trace from the ODBC tracer, pretty >>> obvious what is going on: >>> >>> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL >>> Server]Insufficient result space to convert uniqueidentifier value to char. >>> (8170) >>> >>> Guids generally take up 36 characters when converted to a string, and the >>> Select statement only has room for 20. >>> >>> Since this is a SQL specific query, my guess it is being generated in the >>> sql spatial driver? >>> >>> Roger >>> >>> >>> HSTMT 0x0589B310 >>> UCHAR * 0x05E1A990 [ -3] "SELECT >>> Feature.STAsBinary(),convert(varchar(20), PKey) from MetesAndBoundsHeader >>> WHERE Feature.STIntersects(Geometry::STGeomFromText('POLYGON((-104.18599 >>> 29.2473266843318,-93.22438 29.2473266843318,-93.22438 >>> 41.3707663156682,-104.18599 41.3707663156682,-104.18599 >>> 29.2473266843318))',4326)) = 1 \ 0" >>> SDWORD -3 >>> >>> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL >>> Server]Insufficient result space to convert uniqueidentifier value to char. >>> (8170) >>> >>> >>> >>> >>> >>> >>> >>> On Thu, Mar 10, 2011 at 12:04 PM, adams wrote: >>> >>>> Dear Roger, >>>> >>>> if you get an empty image with no error, the first try would be to use a >>>> simple symbol and no expression in your layer. >>>> Also ensure, that your extent when querying the map is correct. >>>> >>>> So you make sure, that everything around your datasource is OK. >>>> >>>> Then use a datastring like this one: >>>> >>>> >>>> DATA "the_geom from (SELECT Feature from MetesAndBoundsHeader) as foo >>>> USING UNIQUE PKey USING SRID=4326" >>>> >>>> or however the geometry-column in mssql server is called ;-) >>>> >>>> Regards, Till >>>> >>>> >>>> >>>> >>>> Roger Bedell wrote: >>>> >>>> Good Morning. >>>> I am currently working with MapServer and the MSSQL Spatial driver. I am >>>> seeing that MS does not work with a DATA statement like this in the Map >>>> file: >>>> >>>> DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING >>>> SRID=4326" >>>> >>>> where PKey is defined like this: >>>> >>>> [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT NULL, >>>> >>>> No errors are triggered, however nothing is displayed, including all >>>> other layers. Is this an issue with the SQL Spatial driver or MapServer? Any >>>> ideas on how to fix it? >>>> >>>> Thanks! >>>> Roger Bedell >>>> Coordinate Solutions Inc. >>>> >>>> ------------------------------ >>>> >>>> _______________________________________________ >>>> mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> -- >>>> >>>> --------------------------------------------------------- >>>> terrestris GmbH & Co. KG >>>> Irmintrudisstrasse 17 >>>> 53111 Bonn >>>> Germany >>>> >>>> Till Adams >>>> Gesch?ftsf?hrung >>>> >>>> Tel: +49 (0)228 / 962 899-52 >>>> Fax: +49 (0)228 / 962 899-57adams at terrestris.de http://www.terrestris.de >>>> Amtsgericht Bonn, HRA 6835 >>>> --------------------------------------------------------- >>>> >>>> Komplement?rin: >>>> >>>> terrestris Verwaltungs GmbH >>>> >>>> vertreten durch: >>>> Hinrich Paulsen, Till Adams >>>> >>>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jean-francois at gigand.fr Thu Mar 17 09:52:17 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Thu, 17 Mar 2011 17:52:17 +0100 Subject: [mapserver-users] Raster dataset recommendations In-Reply-To: <4D68F3CF.9010300@gatewaygeomatics.com> References: <4D6801B5.1030909@gatewaygeomatics.com> <4D68F3CF.9010300@gatewaygeomatics.com> Message-ID: Back after a few weeks... You are right obviously. That time, I did not spend time further than gdaladdo and tiled tiffs. I thought the reprojection could be equally made statically with gdalwarp or at mapserver level, considering that map tiles are cached. And also because I was probably running out of space for another 400 Go, since I wanted to keep the original projection as well, for other uses. Thinking of the raster process, it is obvious that reprojecting all tiffs once is a lot faster, for generating all map tiles, than requesting MapServer to do it, because every TIFF is used multiple times. Thanks Edi for your advise. "you dont need more than four tiles to display the image" This rule is enough to make decisions on how to build the pyramidal structure. Of course, benches needs to be made, and every aspect is important, including the FS type, HD technology and the whole... About PostGIS raster and TIFFs, I don't get any clear feedback... Probably because PostGIS hasn't been used a lot for rasters so far... I will make my own experiments, then. Will give feedback here. JF 2011/2/26 Jeff McKenna : > On 11-02-25 6:02 PM, Jean-Fran?ois Gigand wrote: >> >> I take the opportunity of this topic to ask a similar question. >> I have a larger data set (400 Go) in about 24000 GeoTIFFs files, using >> the method described by Edi (tiled, internal overviews, index shape). >> It works pretty well (older version of MapServer), with on-the-fly >> reprojection, quick enough when the resolution is small-enough. > > Hi JF, > > You mentioned reprojecting...why would you force MapServer to reproject all > those files on-the-fly? ?I would never recommend that, for speed > considerations. ?I would invest some time in a gdalwarp script. > > That was my thought when reading your message :) > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woodbri at swoodbridge.com Thu Mar 17 09:53:26 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 17 Mar 2011 12:53:26 -0400 Subject: [mapserver-users] showing line direction (without font) In-Reply-To: <0B6D7F516315594DBEFE58178D91BD3201C1BCAA674A@exchangemm.mm.fr> References: <0B6D7F516315594DBEFE58178D91BD3201C1BCAA674A@exchangemm.mm.fr> Message-ID: <4D823C86.6040402@swoodbridge.com> On 3/17/2011 10:37 AM, Cl?ment MONIER wrote: > Hi, > > Is it possible to display a layer of lines with direction?s marks using > MapServer ? > > With no ?font trick? (i.e a char symbol like ?>?,?) > > See picture attached showing a nice sample I have tried to do this but I think it is possible maybe like this. 1. You need the arrow head as a symbol, probably pointing north. 2. you can use the GEOMTRANSFORM START or END in the STYLE to place the arrow symbol 3. Set ANGLE AUTO to align with vector Sorry, I don't have time right now to test this out. -Steve W From sylvanascent at gmail.com Thu Mar 17 12:53:44 2011 From: sylvanascent at gmail.com (Roger Bedell) Date: Thu, 17 Mar 2011 20:53:44 +0100 Subject: [mapserver-users] MapServer and Guid USING UNIQUE In-Reply-To: References: <4D78B033.5080308@terrestris.de> Message-ID: Hi Tamas. I appreciate your help. I tried this one: http://vbkto.dyndns.org/sdk/Download.aspx?file=release-1600-gdal-1-8-0-mapserver-5-6-6.zip It seemed to me to be the latest stable. It works fine, except the fix for Guid doesn't seem to be in there. Roger On Thu, Mar 17, 2011 at 5:16 PM, Tamas Szekeres wrote: > Roger, > > Which package did you try. The -stable branches (ie: > http://vbkto.dyndns.org/sdk/PackageList.aspx?file=release-1600-gdal-1-8-mapserver-5-6.zip) > should contain the fix. > > Best regards, > > Tamas > > > > > 2011/3/17 Roger Bedell > >> Hi Tamas, >> I'm trying to get this working and ran into a couple snags. We are >> currently using mapscript_csharp.dll version 5.6.5 in a .NET program. >> >> 1) Tried to just copy just the msplugin_mssql2008.dll from your latest >> build from http://vbkto.dyndns.org/sdk/ - this didn't work, must have >> other dependencies, I didn't really think it would work. >> >> 2) Tried to use the latest build. Strangely, mapscript_csharp.dll doesn't >> seem to have the same objects as 5.6.5, and I got a bunch of unresolved >> references in the code. >> >> What do you think is the easiest way to get this working? >> >> >> Thanks, >> Roger Bedell >> Coordinate Solutions Inc. >> >> >> On Thu, Mar 10, 2011 at 12:56 PM, Tamas Szekeres wrote: >> >>> Hi Roger, >>> >>> Could you create a ticket with this issue ( >>> http://trac.osgeo.org/mapserver/newticket)? I'll take care of fixing >>> this. >>> >>> Best regards, >>> >>> Tamas >>> >>> >>> >>> >>> 2011/3/10 Roger Bedell >>> >>>> Thanks Till, however, here is the trace from the ODBC tracer, pretty >>>> obvious what is going on: >>>> >>>> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL >>>> Server]Insufficient result space to convert uniqueidentifier value to char. >>>> (8170) >>>> >>>> Guids generally take up 36 characters when converted to a string, and >>>> the Select statement only has room for 20. >>>> >>>> Since this is a SQL specific query, my guess it is being generated in >>>> the sql spatial driver? >>>> >>>> Roger >>>> >>>> >>>> HSTMT 0x0589B310 >>>> UCHAR * 0x05E1A990 [ -3] "SELECT >>>> Feature.STAsBinary(),convert(varchar(20), PKey) from MetesAndBoundsHeader >>>> WHERE Feature.STIntersects(Geometry::STGeomFromText('POLYGON((-104.18599 >>>> 29.2473266843318,-93.22438 29.2473266843318,-93.22438 >>>> 41.3707663156682,-104.18599 41.3707663156682,-104.18599 >>>> 29.2473266843318))',4326)) = 1 \ 0" >>>> SDWORD -3 >>>> >>>> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL >>>> Server]Insufficient result space to convert uniqueidentifier value to char. >>>> (8170) >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> On Thu, Mar 10, 2011 at 12:04 PM, adams wrote: >>>> >>>>> Dear Roger, >>>>> >>>>> if you get an empty image with no error, the first try would be to use >>>>> a simple symbol and no expression in your layer. >>>>> Also ensure, that your extent when querying the map is correct. >>>>> >>>>> So you make sure, that everything around your datasource is OK. >>>>> >>>>> Then use a datastring like this one: >>>>> >>>>> >>>>> DATA "the_geom from (SELECT Feature from MetesAndBoundsHeader) as foo >>>>> USING UNIQUE PKey USING SRID=4326" >>>>> >>>>> or however the geometry-column in mssql server is called ;-) >>>>> >>>>> Regards, Till >>>>> >>>>> >>>>> >>>>> >>>>> Roger Bedell wrote: >>>>> >>>>> Good Morning. >>>>> I am currently working with MapServer and the MSSQL Spatial driver. I >>>>> am seeing that MS does not work with a DATA statement like this in the Map >>>>> file: >>>>> >>>>> DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING >>>>> SRID=4326" >>>>> >>>>> where PKey is defined like this: >>>>> >>>>> [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT >>>>> NULL, >>>>> >>>>> No errors are triggered, however nothing is displayed, including all >>>>> other layers. Is this an issue with the SQL Spatial driver or MapServer? Any >>>>> ideas on how to fix it? >>>>> >>>>> Thanks! >>>>> Roger Bedell >>>>> Coordinate Solutions Inc. >>>>> >>>>> ------------------------------ >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>>> -- >>>>> >>>>> --------------------------------------------------------- >>>>> terrestris GmbH & Co. KG >>>>> Irmintrudisstrasse 17 >>>>> 53111 Bonn >>>>> Germany >>>>> >>>>> Till Adams >>>>> Gesch?ftsf?hrung >>>>> >>>>> Tel: <%2B49%20%280%29228%20%2F%20962%20899-52> <%2B49%20%280%29228%20%2F%20962%20899-52>+49 (0)228 / 962 899-52 >>>>> Fax: <%2B49%20%280%29228%20%2F%20962%20899-57> <%2B49%20%280%29228%20%2F%20962%20899-57>+49 (0)228 / 962 899-57adams at terrestris.de http://www.terrestris.de >>>>> Amtsgericht Bonn, HRA 6835 >>>>> --------------------------------------------------------- >>>>> >>>>> Komplement?rin: >>>>> >>>>> terrestris Verwaltungs GmbH >>>>> >>>>> vertreten durch: >>>>> Hinrich Paulsen, Till Adams >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvanascent at gmail.com Thu Mar 17 13:19:13 2011 From: sylvanascent at gmail.com (Roger Bedell) Date: Thu, 17 Mar 2011 21:19:13 +0100 Subject: [mapserver-users] MapServer and Guid USING UNIQUE In-Reply-To: References: <4D78B033.5080308@terrestris.de> Message-ID: Sorry about that, I understand now. Development is trunk, -stable is fixes to the official release. I do this all the time with GeoServer, so one would think I'd learn.[?] Roger On Thu, Mar 17, 2011 at 9:08 PM, Tamas Szekeres wrote: > Hi Roger, > > The package you mention contains the latest "official" release versions of > MapServer and GDAL which has been released earlier and doesn't contain the > fix, you should use the -stable branch versions instead. > > > Best regards, > > Tamas > > > > 2011/3/17 Roger Bedell > >> Hi Tamas. I appreciate your help. I tried this one: >> >> >> http://vbkto.dyndns.org/sdk/Download.aspx?file=release-1600-gdal-1-8-0-mapserver-5-6-6.zip >> >> It seemed to me to be the latest stable. It works fine, except the fix for >> Guid doesn't seem to be in there. >> >> Roger >> >> >> On Thu, Mar 17, 2011 at 5:16 PM, Tamas Szekeres wrote: >> >>> Roger, >>> >>> Which package did you try. The -stable branches (ie: >>> http://vbkto.dyndns.org/sdk/PackageList.aspx?file=release-1600-gdal-1-8-mapserver-5-6.zip) >>> should contain the fix. >>> >>> Best regards, >>> >>> Tamas >>> >>> >>> >>> >>> 2011/3/17 Roger Bedell >>> >>>> Hi Tamas, >>>> I'm trying to get this working and ran into a couple snags. We are >>>> currently using mapscript_csharp.dll version 5.6.5 in a .NET program. >>>> >>>> 1) Tried to just copy just the msplugin_mssql2008.dll from your latest >>>> build from http://vbkto.dyndns.org/sdk/ - this didn't work, must have >>>> other dependencies, I didn't really think it would work. >>>> >>>> 2) Tried to use the latest build. Strangely, mapscript_csharp.dll >>>> doesn't seem to have the same objects as 5.6.5, and I got a bunch of >>>> unresolved references in the code. >>>> >>>> What do you think is the easiest way to get this working? >>>> >>>> >>>> Thanks, >>>> Roger Bedell >>>> Coordinate Solutions Inc. >>>> >>>> >>>> On Thu, Mar 10, 2011 at 12:56 PM, Tamas Szekeres wrote: >>>> >>>>> Hi Roger, >>>>> >>>>> Could you create a ticket with this issue ( >>>>> http://trac.osgeo.org/mapserver/newticket)? I'll take care of fixing >>>>> this. >>>>> >>>>> Best regards, >>>>> >>>>> Tamas >>>>> >>>>> >>>>> >>>>> >>>>> 2011/3/10 Roger Bedell >>>>> >>>>>> Thanks Till, however, here is the trace from the ODBC tracer, pretty >>>>>> obvious what is going on: >>>>>> >>>>>> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL >>>>>> Server]Insufficient result space to convert uniqueidentifier value to char. >>>>>> (8170) >>>>>> >>>>>> Guids generally take up 36 characters when converted to a string, and >>>>>> the Select statement only has room for 20. >>>>>> >>>>>> Since this is a SQL specific query, my guess it is being generated in >>>>>> the sql spatial driver? >>>>>> >>>>>> Roger >>>>>> >>>>>> >>>>>> HSTMT 0x0589B310 >>>>>> UCHAR * 0x05E1A990 [ -3] "SELECT >>>>>> Feature.STAsBinary(),convert(varchar(20), PKey) from MetesAndBoundsHeader >>>>>> WHERE Feature.STIntersects(Geometry::STGeomFromText('POLYGON((-104.18599 >>>>>> 29.2473266843318,-93.22438 29.2473266843318,-93.22438 >>>>>> 41.3707663156682,-104.18599 41.3707663156682,-104.18599 >>>>>> 29.2473266843318))',4326)) = 1 \ 0" >>>>>> SDWORD -3 >>>>>> >>>>>> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL >>>>>> Server]Insufficient result space to convert uniqueidentifier value to char. >>>>>> (8170) >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Thu, Mar 10, 2011 at 12:04 PM, adams wrote: >>>>>> >>>>>>> Dear Roger, >>>>>>> >>>>>>> if you get an empty image with no error, the first try would be to >>>>>>> use a simple symbol and no expression in your layer. >>>>>>> Also ensure, that your extent when querying the map is correct. >>>>>>> >>>>>>> So you make sure, that everything around your datasource is OK. >>>>>>> >>>>>>> Then use a datastring like this one: >>>>>>> >>>>>>> >>>>>>> DATA "the_geom from (SELECT Feature from MetesAndBoundsHeader) as foo >>>>>>> USING UNIQUE PKey USING SRID=4326" >>>>>>> >>>>>>> or however the geometry-column in mssql server is called ;-) >>>>>>> >>>>>>> Regards, Till >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> Roger Bedell wrote: >>>>>>> >>>>>>> Good Morning. >>>>>>> I am currently working with MapServer and the MSSQL Spatial driver. I >>>>>>> am seeing that MS does not work with a DATA statement like this in the Map >>>>>>> file: >>>>>>> >>>>>>> DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING >>>>>>> SRID=4326" >>>>>>> >>>>>>> where PKey is defined like this: >>>>>>> >>>>>>> [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT >>>>>>> NULL, >>>>>>> >>>>>>> No errors are triggered, however nothing is displayed, including all >>>>>>> other layers. Is this an issue with the SQL Spatial driver or MapServer? Any >>>>>>> ideas on how to fix it? >>>>>>> >>>>>>> Thanks! >>>>>>> Roger Bedell >>>>>>> Coordinate Solutions Inc. >>>>>>> >>>>>>> ------------------------------ >>>>>>> >>>>>>> _______________________________________________ >>>>>>> mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> --------------------------------------------------------- >>>>>>> terrestris GmbH & Co. KG >>>>>>> Irmintrudisstrasse 17 >>>>>>> 53111 Bonn >>>>>>> Germany >>>>>>> >>>>>>> Till Adams >>>>>>> Gesch?ftsf?hrung >>>>>>> >>>>>>> Tel: <%2B49%20%280%29228%20%2F%20962%20899-52> <%2B49%20%280%29228%20%2F%20962%20899-52>+49 (0)228 / 962 899-52 >>>>>>> Fax: <%2B49%20%280%29228%20%2F%20962%20899-57> <%2B49%20%280%29228%20%2F%20962%20899-57>+49 (0)228 / 962 899-57adams at terrestris.de http://www.terrestris.de >>>>>>> Amtsgericht Bonn, HRA 6835 >>>>>>> --------------------------------------------------------- >>>>>>> >>>>>>> Komplement?rin: >>>>>>> >>>>>>> terrestris Verwaltungs GmbH >>>>>>> >>>>>>> vertreten durch: >>>>>>> Hinrich Paulsen, Till Adams >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 330.gif Type: image/gif Size: 96 bytes Desc: not available URL: From edikaradumi at gmail.com Fri Mar 18 00:57:57 2011 From: edikaradumi at gmail.com (Edi.Karadumi) Date: Fri, 18 Mar 2011 00:57:57 -0700 (PDT) Subject: [mapserver-users] Re: Raster dataset recommendations In-Reply-To: References: <4D6801B5.1030909@gatewaygeomatics.com> <4D68F3CF.9010300@gatewaygeomatics.com> Message-ID: <1300435077407-6183710.post@n2.nabble.com> Hello Jean, You can use the gdal_retile.py script to generate the tiles and the zoom levels, than use the minscale and maxscale for showing and hiding the appropriate level. The raster data are not suggested to have them in a database or in your case in postgis. If they are file system it is faster, it is easier to maintain, to update tiles ect. You can see also other posts that give suggestion about file system vs database for raster data. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-dataset-recommendations-tp6064491p6183710.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sylvanascent at gmail.com Fri Mar 18 03:41:44 2011 From: sylvanascent at gmail.com (Roger Bedell) Date: Fri, 18 Mar 2011 11:41:44 +0100 Subject: [mapserver-users] MapServer and Guid USING UNIQUE In-Reply-To: References: <4D78B033.5080308@terrestris.de> Message-ID: Hi Tamas, Ok, well thanks so much for trying! I wonder if we could create unique integer ID with a view - I have no idea if that is possible. Roger On Fri, Mar 18, 2011 at 11:09 AM, Tamas Szekeres wrote: > Hi Roger, > > I came into the conclusion that supporting the uniqueidentifier is not > possible with MapServer because the feature index is stored as int and we > cannot convert the guid value to int. > I'll revert the code to the original behaviour so MapServer will provide an > error if the uniqueidentifier is used. For a workaround we could probably > create an additional column with identity int or try to use checksum(PKey) > instead of PKey in the layer configuration. > > Best regards, > > Tamas > > > > > 2011/3/18 Roger Bedell > >> Hi Tamas, >> Try this, the UNIQUE is currently oid in the MAP file, and it should work. >> Change to PKey, and it should bomb. >> Roger >> >> >> On Thu, Mar 17, 2011 at 11:31 PM, Tamas Szekeres wrote: >> >>> Hmmm. Just tried this and it works for me. Do you have a data/mapfile >>> example to reproduce the problem? >>> >>> >>> Best regards, >>> >>> Tamas >>> >>> >>> >>> 2011/3/17 Roger Bedell >>> >>>> Hi Tamas, >>>> >>>> I get this: >>>> >>>> "Attempted to read or write protected memory. This is often an >>>> indication that other memory is corrupt." when trying to use the >>>> UniqueIdentifier field as Unique. Same thing works fine using an integer >>>> field as Unique. >>>> >>>> Roger >>>> >>>> >>>> On Thu, Mar 17, 2011 at 9:19 PM, Roger Bedell wrote: >>>> >>>>> Sorry about that, I understand now. Development is trunk, -stable is >>>>> fixes to the official release. I do this all the time with GeoServer, so one >>>>> would think I'd learn.[?] >>>>> >>>>> Roger >>>>> >>>>> >>>>> On Thu, Mar 17, 2011 at 9:08 PM, Tamas Szekeres wrote: >>>>> >>>>>> Hi Roger, >>>>>> >>>>>> The package you mention contains the latest "official" release >>>>>> versions of MapServer and GDAL which has been released earlier and doesn't >>>>>> contain the fix, you should use the -stable branch versions instead. >>>>>> >>>>>> >>>>>> Best regards, >>>>>> >>>>>> Tamas >>>>>> >>>>>> >>>>>> >>>>>> 2011/3/17 Roger Bedell >>>>>> >>>>>>> Hi Tamas. I appreciate your help. I tried this one: >>>>>>> >>>>>>> >>>>>>> http://vbkto.dyndns.org/sdk/Download.aspx?file=release-1600-gdal-1-8-0-mapserver-5-6-6.zip >>>>>>> >>>>>>> It seemed to me to be the latest stable. It works fine, except the >>>>>>> fix for Guid doesn't seem to be in there. >>>>>>> >>>>>>> Roger >>>>>>> >>>>>>> >>>>>>> On Thu, Mar 17, 2011 at 5:16 PM, Tamas Szekeres >>>>>> > wrote: >>>>>>> >>>>>>>> Roger, >>>>>>>> >>>>>>>> Which package did you try. The -stable branches (ie: >>>>>>>> http://vbkto.dyndns.org/sdk/PackageList.aspx?file=release-1600-gdal-1-8-mapserver-5-6.zip) >>>>>>>> should contain the fix. >>>>>>>> >>>>>>>> Best regards, >>>>>>>> >>>>>>>> Tamas >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> 2011/3/17 Roger Bedell >>>>>>>> >>>>>>>>> Hi Tamas, >>>>>>>>> I'm trying to get this working and ran into a couple snags. We are >>>>>>>>> currently using mapscript_csharp.dll version 5.6.5 in a .NET program. >>>>>>>>> >>>>>>>>> 1) Tried to just copy just the msplugin_mssql2008.dll from your >>>>>>>>> latest build from http://vbkto.dyndns.org/sdk/ - this didn't work, >>>>>>>>> must have other dependencies, I didn't really think it would work. >>>>>>>>> >>>>>>>>> 2) Tried to use the latest build. Strangely, mapscript_csharp.dll >>>>>>>>> doesn't seem to have the same objects as 5.6.5, and I got a bunch of >>>>>>>>> unresolved references in the code. >>>>>>>>> >>>>>>>>> What do you think is the easiest way to get this working? >>>>>>>>> >>>>>>>>> >>>>>>>>> Thanks, >>>>>>>>> Roger Bedell >>>>>>>>> Coordinate Solutions Inc. >>>>>>>>> >>>>>>>>> >>>>>>>>> On Thu, Mar 10, 2011 at 12:56 PM, Tamas Szekeres < >>>>>>>>> szekerest at gmail.com> wrote: >>>>>>>>> >>>>>>>>>> Hi Roger, >>>>>>>>>> >>>>>>>>>> Could you create a ticket with this issue ( >>>>>>>>>> http://trac.osgeo.org/mapserver/newticket)? I'll take care of >>>>>>>>>> fixing this. >>>>>>>>>> >>>>>>>>>> Best regards, >>>>>>>>>> >>>>>>>>>> Tamas >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> 2011/3/10 Roger Bedell >>>>>>>>>> >>>>>>>>>>> Thanks Till, however, here is the trace from the ODBC tracer, >>>>>>>>>>> pretty obvious what is going on: >>>>>>>>>>> >>>>>>>>>>> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL >>>>>>>>>>> Server]Insufficient result space to convert uniqueidentifier value to char. >>>>>>>>>>> (8170) >>>>>>>>>>> >>>>>>>>>>> Guids generally take up 36 characters when converted to a string, >>>>>>>>>>> and the Select statement only has room for 20. >>>>>>>>>>> >>>>>>>>>>> Since this is a SQL specific query, my guess it is being >>>>>>>>>>> generated in the sql spatial driver? >>>>>>>>>>> >>>>>>>>>>> Roger >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> HSTMT 0x0589B310 >>>>>>>>>>> UCHAR * 0x05E1A990 [ -3] "SELECT >>>>>>>>>>> Feature.STAsBinary(),convert(varchar(20), PKey) from MetesAndBoundsHeader >>>>>>>>>>> WHERE Feature.STIntersects(Geometry::STGeomFromText('POLYGON((-104.18599 >>>>>>>>>>> 29.2473266843318,-93.22438 29.2473266843318,-93.22438 >>>>>>>>>>> 41.3707663156682,-104.18599 41.3707663156682,-104.18599 >>>>>>>>>>> 29.2473266843318))',4326)) = 1 \ 0" >>>>>>>>>>> SDWORD -3 >>>>>>>>>>> >>>>>>>>>>> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL >>>>>>>>>>> Server]Insufficient result space to convert uniqueidentifier value to char. >>>>>>>>>>> (8170) >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On Thu, Mar 10, 2011 at 12:04 PM, adams wrote: >>>>>>>>>>> >>>>>>>>>>>> Dear Roger, >>>>>>>>>>>> >>>>>>>>>>>> if you get an empty image with no error, the first try would be >>>>>>>>>>>> to use a simple symbol and no expression in your layer. >>>>>>>>>>>> Also ensure, that your extent when querying the map is correct. >>>>>>>>>>>> >>>>>>>>>>>> So you make sure, that everything around your datasource is OK. >>>>>>>>>>>> >>>>>>>>>>>> Then use a datastring like this one: >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> DATA "the_geom from (SELECT Feature from MetesAndBoundsHeader) >>>>>>>>>>>> as foo USING UNIQUE PKey USING SRID=4326" >>>>>>>>>>>> >>>>>>>>>>>> or however the geometry-column in mssql server is called ;-) >>>>>>>>>>>> >>>>>>>>>>>> Regards, Till >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> Roger Bedell wrote: >>>>>>>>>>>> >>>>>>>>>>>> Good Morning. >>>>>>>>>>>> I am currently working with MapServer and the MSSQL Spatial >>>>>>>>>>>> driver. I am seeing that MS does not work with a DATA statement like this in >>>>>>>>>>>> the Map file: >>>>>>>>>>>> >>>>>>>>>>>> DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING >>>>>>>>>>>> SRID=4326" >>>>>>>>>>>> >>>>>>>>>>>> where PKey is defined like this: >>>>>>>>>>>> >>>>>>>>>>>> [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL >>>>>>>>>>>> NOT NULL, >>>>>>>>>>>> >>>>>>>>>>>> No errors are triggered, however nothing is displayed, including >>>>>>>>>>>> all other layers. Is this an issue with the SQL Spatial driver or MapServer? >>>>>>>>>>>> Any ideas on how to fix it? >>>>>>>>>>>> >>>>>>>>>>>> Thanks! >>>>>>>>>>>> Roger Bedell >>>>>>>>>>>> Coordinate Solutions Inc. >>>>>>>>>>>> >>>>>>>>>>>> ------------------------------ >>>>>>>>>>>> >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> >>>>>>>>>>>> --------------------------------------------------------- >>>>>>>>>>>> terrestris GmbH & Co. KG >>>>>>>>>>>> Irmintrudisstrasse 17 >>>>>>>>>>>> 53111 Bonn >>>>>>>>>>>> Germany >>>>>>>>>>>> >>>>>>>>>>>> Till Adams >>>>>>>>>>>> Gesch?ftsf?hrung >>>>>>>>>>>> >>>>>>>>>>>> Tel: <%2B49%20%280%29228%20%2F%20962%20899-52> <%2B49%20%280%29228%20%2F%20962%20899-52> <%2B49%20%280%29228%20%2F%20962%20899-52>+49 (0)228 / 962 899-52 >>>>>>>>>>>> Fax: <%2B49%20%280%29228%20%2F%20962%20899-57> <%2B49%20%280%29228%20%2F%20962%20899-57> <%2B49%20%280%29228%20%2F%20962%20899-57>+49 (0)228 / 962 899-57adams at terrestris.de http://www.terrestris.de >>>>>>>>>>>> Amtsgericht Bonn, HRA 6835 >>>>>>>>>>>> --------------------------------------------------------- >>>>>>>>>>>> >>>>>>>>>>>> Komplement?rin: >>>>>>>>>>>> >>>>>>>>>>>> terrestris Verwaltungs GmbH >>>>>>>>>>>> >>>>>>>>>>>> vertreten durch: >>>>>>>>>>>> Hinrich Paulsen, Till Adams >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> mapserver-users mailing list >>>>>>>>>>> mapserver-users at lists.osgeo.org >>>>>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 330.gif Type: image/gif Size: 96 bytes Desc: not available URL: From sylvanascent at gmail.com Fri Mar 18 04:36:31 2011 From: sylvanascent at gmail.com (Roger Bedell) Date: Fri, 18 Mar 2011 12:36:31 +0100 Subject: [mapserver-users] MapServer and Guid USING UNIQUE In-Reply-To: References: <4D78B033.5080308@terrestris.de> Message-ID: I found this: SELECT (select count(*) from QQHeader where PKey<=a.PKey) AS RowNo, a.* FROM QQHeader AS a from here: http://dbaspot.com/forums/sqlserver-server/355698-how-add-identity-column-view.html Seems to work fine in MapServer, but I don't know how well it will work in large tables though... Roger On Fri, Mar 18, 2011 at 11:41 AM, Roger Bedell wrote: > Hi Tamas, > > Ok, well thanks so much for trying! I wonder if we could create unique > integer ID with a view - I have no idea if that is possible. > > Roger > > > On Fri, Mar 18, 2011 at 11:09 AM, Tamas Szekeres wrote: > >> Hi Roger, >> >> I came into the conclusion that supporting the uniqueidentifier is not >> possible with MapServer because the feature index is stored as int and we >> cannot convert the guid value to int. >> I'll revert the code to the original behaviour so MapServer will provide >> an error if the uniqueidentifier is used. For a workaround we could probably >> create an additional column with identity int or try to use checksum(PKey) >> instead of PKey in the layer configuration. >> >> Best regards, >> >> Tamas >> >> >> >> >> 2011/3/18 Roger Bedell >> >>> Hi Tamas, >>> Try this, the UNIQUE is currently oid in the MAP file, and it should >>> work. Change to PKey, and it should bomb. >>> Roger >>> >>> >>> On Thu, Mar 17, 2011 at 11:31 PM, Tamas Szekeres wrote: >>> >>>> Hmmm. Just tried this and it works for me. Do you have a data/mapfile >>>> example to reproduce the problem? >>>> >>>> >>>> Best regards, >>>> >>>> Tamas >>>> >>>> >>>> >>>> 2011/3/17 Roger Bedell >>>> >>>>> Hi Tamas, >>>>> >>>>> I get this: >>>>> >>>>> "Attempted to read or write protected memory. This is often an >>>>> indication that other memory is corrupt." when trying to use the >>>>> UniqueIdentifier field as Unique. Same thing works fine using an integer >>>>> field as Unique. >>>>> >>>>> Roger >>>>> >>>>> >>>>> On Thu, Mar 17, 2011 at 9:19 PM, Roger Bedell wrote: >>>>> >>>>>> Sorry about that, I understand now. Development is trunk, -stable is >>>>>> fixes to the official release. I do this all the time with GeoServer, so one >>>>>> would think I'd learn.[?] >>>>>> >>>>>> Roger >>>>>> >>>>>> >>>>>> On Thu, Mar 17, 2011 at 9:08 PM, Tamas Szekeres wrote: >>>>>> >>>>>>> Hi Roger, >>>>>>> >>>>>>> The package you mention contains the latest "official" release >>>>>>> versions of MapServer and GDAL which has been released earlier and doesn't >>>>>>> contain the fix, you should use the -stable branch versions instead. >>>>>>> >>>>>>> >>>>>>> Best regards, >>>>>>> >>>>>>> Tamas >>>>>>> >>>>>>> >>>>>>> >>>>>>> 2011/3/17 Roger Bedell >>>>>>> >>>>>>>> Hi Tamas. I appreciate your help. I tried this one: >>>>>>>> >>>>>>>> >>>>>>>> http://vbkto.dyndns.org/sdk/Download.aspx?file=release-1600-gdal-1-8-0-mapserver-5-6-6.zip >>>>>>>> >>>>>>>> It seemed to me to be the latest stable. It works fine, except the >>>>>>>> fix for Guid doesn't seem to be in there. >>>>>>>> >>>>>>>> Roger >>>>>>>> >>>>>>>> >>>>>>>> On Thu, Mar 17, 2011 at 5:16 PM, Tamas Szekeres < >>>>>>>> szekerest at gmail.com> wrote: >>>>>>>> >>>>>>>>> Roger, >>>>>>>>> >>>>>>>>> Which package did you try. The -stable branches (ie: >>>>>>>>> http://vbkto.dyndns.org/sdk/PackageList.aspx?file=release-1600-gdal-1-8-mapserver-5-6.zip) >>>>>>>>> should contain the fix. >>>>>>>>> >>>>>>>>> Best regards, >>>>>>>>> >>>>>>>>> Tamas >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> 2011/3/17 Roger Bedell >>>>>>>>> >>>>>>>>>> Hi Tamas, >>>>>>>>>> I'm trying to get this working and ran into a couple snags. We are >>>>>>>>>> currently using mapscript_csharp.dll version 5.6.5 in a .NET program. >>>>>>>>>> >>>>>>>>>> 1) Tried to just copy just the msplugin_mssql2008.dll from your >>>>>>>>>> latest build from http://vbkto.dyndns.org/sdk/ - this didn't >>>>>>>>>> work, must have other dependencies, I didn't really think it would work. >>>>>>>>>> >>>>>>>>>> 2) Tried to use the latest build. Strangely, mapscript_csharp.dll >>>>>>>>>> doesn't seem to have the same objects as 5.6.5, and I got a bunch of >>>>>>>>>> unresolved references in the code. >>>>>>>>>> >>>>>>>>>> What do you think is the easiest way to get this working? >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Thanks, >>>>>>>>>> Roger Bedell >>>>>>>>>> Coordinate Solutions Inc. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Thu, Mar 10, 2011 at 12:56 PM, Tamas Szekeres < >>>>>>>>>> szekerest at gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> Hi Roger, >>>>>>>>>>> >>>>>>>>>>> Could you create a ticket with this issue ( >>>>>>>>>>> http://trac.osgeo.org/mapserver/newticket)? I'll take care of >>>>>>>>>>> fixing this. >>>>>>>>>>> >>>>>>>>>>> Best regards, >>>>>>>>>>> >>>>>>>>>>> Tamas >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> 2011/3/10 Roger Bedell >>>>>>>>>>> >>>>>>>>>>>> Thanks Till, however, here is the trace from the ODBC tracer, >>>>>>>>>>>> pretty obvious what is going on: >>>>>>>>>>>> >>>>>>>>>>>> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL >>>>>>>>>>>> Server]Insufficient result space to convert uniqueidentifier value to char. >>>>>>>>>>>> (8170) >>>>>>>>>>>> >>>>>>>>>>>> Guids generally take up 36 characters when converted to a >>>>>>>>>>>> string, and the Select statement only has room for 20. >>>>>>>>>>>> >>>>>>>>>>>> Since this is a SQL specific query, my guess it is being >>>>>>>>>>>> generated in the sql spatial driver? >>>>>>>>>>>> >>>>>>>>>>>> Roger >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> HSTMT 0x0589B310 >>>>>>>>>>>> UCHAR * 0x05E1A990 [ -3] "SELECT >>>>>>>>>>>> Feature.STAsBinary(),convert(varchar(20), PKey) from MetesAndBoundsHeader >>>>>>>>>>>> WHERE Feature.STIntersects(Geometry::STGeomFromText('POLYGON((-104.18599 >>>>>>>>>>>> 29.2473266843318,-93.22438 29.2473266843318,-93.22438 >>>>>>>>>>>> 41.3707663156682,-104.18599 41.3707663156682,-104.18599 >>>>>>>>>>>> 29.2473266843318))',4326)) = 1 \ 0" >>>>>>>>>>>> SDWORD -3 >>>>>>>>>>>> >>>>>>>>>>>> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL >>>>>>>>>>>> Server]Insufficient result space to convert uniqueidentifier value to char. >>>>>>>>>>>> (8170) >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On Thu, Mar 10, 2011 at 12:04 PM, adams wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Dear Roger, >>>>>>>>>>>>> >>>>>>>>>>>>> if you get an empty image with no error, the first try would be >>>>>>>>>>>>> to use a simple symbol and no expression in your layer. >>>>>>>>>>>>> Also ensure, that your extent when querying the map is correct. >>>>>>>>>>>>> >>>>>>>>>>>>> So you make sure, that everything around your datasource is OK. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> Then use a datastring like this one: >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> DATA "the_geom from (SELECT Feature from MetesAndBoundsHeader) >>>>>>>>>>>>> as foo USING UNIQUE PKey USING SRID=4326" >>>>>>>>>>>>> >>>>>>>>>>>>> or however the geometry-column in mssql server is called ;-) >>>>>>>>>>>>> >>>>>>>>>>>>> Regards, Till >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> Roger Bedell wrote: >>>>>>>>>>>>> >>>>>>>>>>>>> Good Morning. >>>>>>>>>>>>> I am currently working with MapServer and the MSSQL Spatial >>>>>>>>>>>>> driver. I am seeing that MS does not work with a DATA statement like this in >>>>>>>>>>>>> the Map file: >>>>>>>>>>>>> >>>>>>>>>>>>> DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING >>>>>>>>>>>>> SRID=4326" >>>>>>>>>>>>> >>>>>>>>>>>>> where PKey is defined like this: >>>>>>>>>>>>> >>>>>>>>>>>>> [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL >>>>>>>>>>>>> NOT NULL, >>>>>>>>>>>>> >>>>>>>>>>>>> No errors are triggered, however nothing is displayed, >>>>>>>>>>>>> including all other layers. Is this an issue with the SQL Spatial driver or >>>>>>>>>>>>> MapServer? Any ideas on how to fix it? >>>>>>>>>>>>> >>>>>>>>>>>>> Thanks! >>>>>>>>>>>>> Roger Bedell >>>>>>>>>>>>> Coordinate Solutions Inc. >>>>>>>>>>>>> >>>>>>>>>>>>> ------------------------------ >>>>>>>>>>>>> >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> >>>>>>>>>>>>> --------------------------------------------------------- >>>>>>>>>>>>> terrestris GmbH & Co. KG >>>>>>>>>>>>> Irmintrudisstrasse 17 >>>>>>>>>>>>> 53111 Bonn >>>>>>>>>>>>> Germany >>>>>>>>>>>>> >>>>>>>>>>>>> Till Adams >>>>>>>>>>>>> Gesch?ftsf?hrung >>>>>>>>>>>>> >>>>>>>>>>>>> Tel: <%2B49%20%280%29228%20%2F%20962%20899-52> <%2B49%20%280%29228%20%2F%20962%20899-52> <%2B49%20%280%29228%20%2F%20962%20899-52>+49 (0)228 / 962 899-52 >>>>>>>>>>>>> Fax: <%2B49%20%280%29228%20%2F%20962%20899-57> <%2B49%20%280%29228%20%2F%20962%20899-57> <%2B49%20%280%29228%20%2F%20962%20899-57>+49 (0)228 / 962 899-57adams at terrestris.de http://www.terrestris.de >>>>>>>>>>>>> Amtsgericht Bonn, HRA 6835 >>>>>>>>>>>>> --------------------------------------------------------- >>>>>>>>>>>>> >>>>>>>>>>>>> Komplement?rin: >>>>>>>>>>>>> >>>>>>>>>>>>> terrestris Verwaltungs GmbH >>>>>>>>>>>>> >>>>>>>>>>>>> vertreten durch: >>>>>>>>>>>>> Hinrich Paulsen, Till Adams >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> mapserver-users mailing list >>>>>>>>>>>> mapserver-users at lists.osgeo.org >>>>>>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 330.gif Type: image/gif Size: 96 bytes Desc: not available URL: From szekerest at gmail.com Fri Mar 18 04:52:42 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 18 Mar 2011 12:52:42 +0100 Subject: [mapserver-users] MapServer and Guid USING UNIQUE In-Reply-To: References: <4D78B033.5080308@terrestris.de> Message-ID: 2011/3/18 Roger Bedell > I found this: > > SELECT (select count(*) from QQHeader where PKey<=a.PKey) AS RowNo, a.* > FROM QQHeader AS a > > The problem with this (and with the ROW_NUMBER option as well) is that the order of the rows may be undeterministic unless an orderby clause is used. I would rather suggest to use a function (either an UDF or the checksum) to create and integer is from guid. BTW: In the development version having an oid should not necessarily be a requirment in order to have the query option to work. So you may probably omit the using unique section in the layer definition (not tested by me). Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From janmartin at diy-streetview.org Fri Mar 18 05:22:02 2011 From: janmartin at diy-streetview.org (Jan Martin) Date: Fri, 18 Mar 2011 13:22:02 +0100 Subject: [mapserver-users] Mapserver as back-end for Google custom streetview? Message-ID: Hi all, I just published 200 panoramas I shot myself using the latest Google custom streetview API v3: http://www.diy-streetview.org/2011/03/17/google-streetview-player-for-diy-streetviews/ For this i added an overview map using div's. My camera used to shoot the 200 streetviews while walking, without even stopping, in just 20 minutes: http://www.diy-streetview.com I am looking for help to implement a back-end using http://mapserver.org. Any sugestions how to do this? Thanks, Jan Martin janmartin AT diy-streetview DOT org P.S.: Google custom streetview API: http://code.google.com/apis/maps/documentation/javascript/services.html#CustomStreetView -- http://www.DIY-streetview.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwkorver at gmail.com Fri Mar 18 07:31:25 2011 From: mwkorver at gmail.com (Mark Korver) Date: Fri, 18 Mar 2011 09:31:25 -0500 Subject: [mapserver-users] Mapserver as back-end for Google custom streetview? In-Reply-To: References: Message-ID: if you purpose is to replace the google base layer with something different this might help http://wiki.openstreetmap.org/wiki/Google_Maps_Example#Example_Using_Google_Maps_API_V3 that allows you to use OSM as basemap. To use MapServer behind this rather than just getting from OSM, or CloudMade etc, you need to be able to serve Tiles from MapServer. see here for how to do that http://mapserver.org/output/tile_mode.html The references here are for GMap v2 so you will have to adapt the examples abit to work with GMap V3 On Fri, Mar 18, 2011 at 7:22 AM, Jan Martin wrote: > Hi all, > > I just published 200 panoramas I shot myself using the latest Google custom > streetview API v3: > > http://www.diy-streetview.org/2011/03/17/google-streetview-player-for-diy-streetviews/ > > For this i added an overview map using div's. > > My camera used to shoot the 200 streetviews while walking, without even > stopping, in just 20 minutes: > http://www.diy-streetview.com > > I am looking for help to implement a back-end using http://mapserver.org. > Any sugestions how to do this? > > Thanks, > Jan Martin > janmartin AT diy-streetview DOT org > > P.S.: > Google custom streetview API: > http://code.google.com/apis/maps/documentation/javascript/services.html#CustomStreetView > > -- > http://www.DIY-streetview.org > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Tom.Kralidis at ec.gc.ca Fri Mar 18 07:44:51 2011 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Fri, 18 Mar 2011 10:44:51 -0400 Subject: [mapserver-users] MapServer WMS and INSPIRE View Services development Message-ID: FYI there has been some discussion with regard to enabling forthcoming INSPIRE [1] View Services support for MapServer WMS server. For MapServer WMS users in European Union member states, this support is vital in your WMS services. At the Montreal Code Sprint this week, we decided that it would be valuable to start a mailing list devoted to discussing requirements for INSPIRE support in MapServer WMS server. This can help in formulating the scope, requirements and level of effort for a future RFC. If you are interested in seeing INSPIRE support in MapServer WMS server, you are encouraged to join the mailing list at http://lists.osgeo.org/mailman/listinfo/mapserver-inspire. Thanks ..Tom [1] http://inspire.jrc.ec.europa.eu/ From janmartin at diy-streetview.org Fri Mar 18 07:48:05 2011 From: janmartin at diy-streetview.org (Jan Martin) Date: Fri, 18 Mar 2011 15:48:05 +0100 Subject: [mapserver-users] Mapserver as back-end for Google custom streetview? In-Reply-To: References: Message-ID: Way simpler: I took about 200 panoramas, geotagged them and display them using Google custom streetview API, which is part of Google maps API v3: http://code.google.com/apis/maps/documentation/javascript/services.html#CustomStreetView For this I created 2 sets of data: a) Polyline for the "blue roads" on the map: var points = [ new google.maps.LatLng(49.994581,8.664265), new google.maps.LatLng(49.994636,8.666582), etc... ]; b) List of my custom streetviews: var panoramas = { '000038': { latLng: new google.maps.LatLng(49.99434383656390, 8.66439325015278), description: '000038', pano: '000038', copyright: 'Imagery (c) 2011 DIY-streetview.com', tiles: { worldSize: new google.maps.Size(8192, 4096), tileSize: new google.maps.Size(512, 512), heading: 339 }, links: [ { heading: 159, description: '000037', pano: '000037', roadColor: '#C9BE62', roadOpacity: '0.3' }, { heading: 339, description: '000039', pano: '000039', roadColor: '#C9BE62', roadOpacity: '0.3' }]}, etc.... Obviously this does not scale. So I like to serve this data only using Mapserver. Tiles are from Google. How to do this? Thanks, Jan My working example: http://www.diy-streetview.org/2011/03/17/google-streetview-player-for-diy-streetviews/ On Fri, Mar 18, 2011 at 3:31 PM, Mark Korver wrote: > if you purpose is to replace the google base layer with something > different this might help > > > http://wiki.openstreetmap.org/wiki/Google_Maps_Example#Example_Using_Google_Maps_API_V3 > > that allows you to use OSM as basemap. > > To use MapServer behind this rather than just getting from OSM, or > CloudMade etc, you need to be able to serve Tiles from MapServer. > > see here for how to do that > > http://mapserver.org/output/tile_mode.html > > The references here are for GMap v2 so you will have to adapt the > examples abit to work with GMap V3 > > > On Fri, Mar 18, 2011 at 7:22 AM, Jan Martin > wrote: > > Hi all, > > > > I just published 200 panoramas I shot myself using the latest Google > custom > > streetview API v3: > > > > > http://www.diy-streetview.org/2011/03/17/google-streetview-player-for-diy-streetviews/ > > > > For this i added an overview map using div's. > > > > My camera used to shoot the 200 streetviews while walking, without even > > stopping, in just 20 minutes: > > http://www.diy-streetview.com > > > > I am looking for help to implement a back-end using http://mapserver.org > . > > Any sugestions how to do this? > > > > Thanks, > > Jan Martin > > janmartin AT diy-streetview DOT org > > > > P.S.: > > Google custom streetview API: > > > http://code.google.com/apis/maps/documentation/javascript/services.html#CustomStreetView > > > > -- > > http://www.DIY-streetview.org > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- http://www.DIY-streetview.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff.dege at korterra.com Fri Mar 18 09:52:08 2011 From: jeff.dege at korterra.com (Jeff Dege) Date: Fri, 18 Mar 2011 11:52:08 -0500 Subject: [mapserver-users] Problems getting started with POSTGIS Message-ID: I've been using MapServer with shapefiles for some time. I'm trying to convert a site to PostGIS, and I'm having problems. I've successfully installed PostGIS on my Ubunto 10.04 box, and copied a number of shapefiles into it, using shp2pgsql. I can view the new tables using qGIS, so I'm sure the data is right. So now I've copies a mapfile that was working against the original shapefiles, and I'm trying to convert it to use PostGIS. I'm working on just one layer, and I'm trying to test that layer with shp2img. I've added to the LAYER definition: LAYER NAME "countyboundaries" CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=test_db user=gis password=xxxxx" DATA "the_geom from gis_schema.county" [...] END As I said, I know the data is in the database, because I can load it as a PostGIS layer from qGIS. Column and table names are right, because when I run "select the_geom from gis_schema.county" in the query tool I get the data. But when I run shp2img from the commandline, I get an error: $ shp2img -m test.map -o test.gif -i GIF -l countyboundaries msDrawMap(): Image handling error. Failed to draw layer named 'countyboundaries'. msPostGISParseData(): Query error. Error parsing PostGIS DATA variable. Must contain 'geometry from table' or 'geometry from (subselect) as foo'. County shp2img is MapServer version 5.6.6, and the output from -v does contain "INPUT=POSTGIS". Any ideas? I'm trying to keep things simple, and it's frustrating when simple doesn't work. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ciesaremedina at hotmail.com Fri Mar 18 11:08:55 2011 From: ciesaremedina at hotmail.com (=?iso-8859-1?B?Q+lzYXIgTWVkaW5h?=) Date: Fri, 18 Mar 2011 14:08:55 -0400 Subject: [mapserver-users] First SouthAmerican FOSS4G Conference In-Reply-To: References: , Message-ID: Hi all, I am presenting the First SouthAmerican FOSS4G Conference, will be held at the Mayor University in 8th April 2011 we will have presentations about OSGeo Foundation and OSM, gvSIG, among others. Help us to promote it, see the twitter and facebook page.http://twitter.com/Foss4g_chile and http://www.facebook.com/?ref=logo#!/profile.php?id=100002192893828 More information about the conference http://www.foss4gchile.org/blog/primer-foss4g-sudamericano/ kinds RegardsOrganizer Committee1st SouthAmerican FOSS4G Conference -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Fri Mar 18 12:41:19 2011 From: andy at squeakycode.net (Andy Colson) Date: Fri, 18 Mar 2011 14:41:19 -0500 Subject: [mapserver-users] Problems getting started with POSTGIS In-Reply-To: References: Message-ID: <4D83B55F.1020103@squeakycode.net> On 3/18/2011 11:52 AM, Jeff Dege wrote: > I?ve been using MapServer with shapefiles for some time. I?m trying to > convert a site to PostGIS, and I?m having problems. > > I?ve successfully installed PostGIS on my Ubunto 10.04 box, and copied a > number of shapefiles into it, using shp2pgsql. I can view the new tables > using qGIS, so I?m sure the data is right. > > So now I?ve copies a mapfile that was working against the original > shapefiles, and I?m trying to convert it to use PostGIS. I?m working on > just one layer, and I?m trying to test that layer with shp2img. > > I?ve added to the LAYER definition: > > LAYER > > NAME ?countyboundaries? > > CONNECTIONTYPE postgis > > CONNECTION ?host=localhost dbname=test_db user=gis password=xxxxx? > > DATA ?the_geom from gis_schema.county? > > [?] > > END > > As I said, I know the data is in the database, because I can load it as > a PostGIS layer from qGIS. Column and table names are right, because > when I run ?select the_geom from gis_schema.county? in the query tool I > get the data. > > But when I run shp2img from the commandline, I get an error: > > $ shp2img -m test.map -o test.gif -i GIF -l countyboundaries > > msDrawMap(): Image handling error. Failed to draw layer named > ?countyboundaries?. > > msPostGISParseData(): Query error. Error parsing PostGIS DATA variable. > Must contain ?geometry > > from table? or ?geometry from (subselect) as foo?. County > > shp2img is MapServer version 5.6.6, and the output from -v does contain > ?INPUT=POSTGIS?. > > Any ideas? I?m trying to keep things simple, and it?s frustrating when > simple doesn?t work. I cant see anything really wrong. I'm doing mostly the same thing. however: > CONNECTION ?dbname=test_db user=gis password=xxxxx? because mapserver and PG run on the same box, I left off the host=localhost... not sure if its important. > DATA "the_geom from gis_schema.county using unique gid using srid=-1" I also have the unique and srid things, again not sure if there'd be a difference. And as a last hint, you can try bumping up the debug: MAP CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" ... LAYER DEBUG 4 ... END -Andy From dmorissette at mapgears.com Fri Mar 18 12:48:10 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 18 Mar 2011 15:48:10 -0400 Subject: [mapserver-users] MapServer 6.0.0-beta2 release Message-ID: <4D83B6FA.3090505@mapgears.com> Thanks to the hard work from everyone during the Montreal Code Sprint this week (http://wiki.osgeo.org/wiki/Montreal_Code_Sprint_2011), the MapServer Team is pleased to announce the release of MapServer 6.0.0-beta2. This is the latest beta on our way to a final 6.0 release, and includes a large number of fixes made during the Montreal Code Sprint. The 6.0 release introduces important changes in key components of the MapServer core (rendering, query and expressions), and for this reason we count on you, MapServer power users, to help test the release in your respective environments and provide feedback (through the users list or Trac tickets). This is the second of four planned beta releases and if all goes well a final release should occur around the end of April. The full release plan which also includes the list of new features and changes in this release is available at: http://mapserver.org/trunk/development/release/release-plan-6.0.html The list of fixes since beta1 is attached at the end of this message. For a complete list see the HISTORY.TXT file at: http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta2/mapserver/HISTORY.TXT We have started working on a 5.6 -> 6.0 migration guide. This document contains important notes on backwards incompatibilities or other changes required when upgrading to 6.0. It is not complete yet but we strongly recommend that you review the latest version online at: http://mapserver.org/trunk/MIGRATION_GUIDE.html The source for this release can be downloaded at: http://mapserver.org/download.html or http://download.osgeo.org/mapserver/mapserver-6.0.0-beta2.tar.gz The binary distributions listed in the download page should be updated with binaries for the new beta release in the next day or so. Once again we need your help to ensure a high quality product, so please help out by testing your applications with this new code base. Thanks! - The MapServer Team Version 6.0.0-beta2 (2011-03-18) -------------------------------- - correct scaling of symbol GAP and PATTERN (#3752) - remove references to SWF/MING - CGI runtime substitution requires a validation pattern (was optional before) (#3522) - add a default png8 outputformat that uses AGG/PNG with quantization - change MS_INIT_COLOR to take alpha as a parameter - stop using style->opacity in rendering code, use alpha from colorObjs. - Fixed big Oracle memory leak when rendering in KML (#3719) - avoid linking in postgres dependencies unnecessarily (#3708) - don't initialize outputformats until they are selected - use "seamless" creation of tiles for polygon fills with vector symbols - Ability to escape single/double quotes inside a string (#3706) - Globally replace msCaseFindSubstring with strcasestr (#3255) - support GROUP layers in shp2img (#3746) - Honour MAXSIZE for WCS 2.0 responses (#3204). - fallback to ows_title for WCS ows:Title of CoverageDescription (#3528) - Added msIO_stripStdoutBufferContentHeaders() to strip off all Content-* headers from a buffer (#3673, #3665). - Added raster classification support for STYLE level OPACITY. - Allow attribute references, that is [itemname], within a TEXT string (#3736) - Fixed segmentation fault when parsing invalid extent arguments in shp2img (#3734) - Make "openlayers mode" work even without OWS support (#3732) - Add a static table to define the axis order for soem epsg codes (#3582) - Add possibility to use KML_NAME_ITEM (#3728) - Fixed mapfile parsing error when a label angle referenced an attribute (e.g. ANGLE [angle]) #3727 - Removed executable flag on some source files (#3726) - Fixed SQL Spatial to be able to use UniqueIdentifier field as unique key (#3722) - Fix PHP Windows build (#3714) - Fixed --with-opengl build issue: Look for OpenGL libs under /usr/lib64 as well (#3724) From kevin.ngai at ec.gc.ca Fri Mar 18 14:31:27 2011 From: kevin.ngai at ec.gc.ca (kngai) Date: Fri, 18 Mar 2011 14:31:27 -0700 (PDT) Subject: [mapserver-users] Querying a WMS layer with data input from MySQL? Message-ID: <1300483887881-6186251.post@n2.nabble.com> Hi, I'm a new user of MapServer. So far I've mainly used it to display ShapeFiles via WMS on an OpenLayers application I'm developing. I now have polygons stored in a MySQL table (stored as a WKT format in a POLYGON column). I'm able to display it as a layer just fine via a WMS request, but I want to be able to display a specific polygon from a row. That is, I want to be able to query the MySQL data input when requesting this layer. Right now, I have something like this in my Mapfile for the Layer parameter: TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "MySQL:customtable,user=user,password=****" DATA "SELECT custom_polygon FROM mytable WHERE fid=2" I want to be able to perform a WMS request with parameters that can allow me to query the layer (where fid can be changed). For example: http://www.server.com/cgi-bin/mapserv?REQUEST=GetMap&SERVICE=WMS&FORMAT=image/png&...LAYERS=custompoly&...fid=33&... Can this sort of thing be done on MapServer? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Querying-a-WMS-layer-with-data-input-from-MySQL-tp6186251p6186251.html Sent from the Mapserver - User mailing list archive at Nabble.com. From kevin.ngai at ec.gc.ca Fri Mar 18 14:35:56 2011 From: kevin.ngai at ec.gc.ca (kngai) Date: Fri, 18 Mar 2011 14:35:56 -0700 (PDT) Subject: [mapserver-users] Re: Querying a WMS layer with data input from MySQL? In-Reply-To: <1300483887881-6186251.post@n2.nabble.com> References: <1300483887881-6186251.post@n2.nabble.com> Message-ID: <1300484156463-6186263.post@n2.nabble.com> I've noticed that something I'm asking can be done with this example from iNWS, so I thought I'd ask how: http://inws.wrh.noaa.gov/cgi-bin/wms_iNWS?alert_area_custom_filter=id%3D0+or+id%3D26715&alert_area_county_filter=id%3D0&product_segment_filter=id=399374&HEIGHT=500&WIDTH=500&LAYERS=radar,counties,states,roads,product_segment,alert_area_county,alert_area_custom,cities&radar_time=2011-03-13T18%3A00%3A00Z&SRS=EPSG:900913&STYLES=&FORMAT=image/png&TILED=false&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application/vnd.ogc.se_inimage&BBOX=-13861560.5,5832312,-13408652.5,6285220 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Querying-a-WMS-layer-with-data-input-from-MySQL-tp6186251p6186263.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Fri Mar 18 14:43:36 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 18 Mar 2011 17:43:36 -0400 Subject: [mapserver-users] Problems getting started with POSTGIS In-Reply-To: <4D83B55F.1020103@squeakycode.net> References: <4D83B55F.1020103@squeakycode.net> Message-ID: <4D83D208.9050709@swoodbridge.com> On 3/18/2011 3:41 PM, Andy Colson wrote: > On 3/18/2011 11:52 AM, Jeff Dege wrote: >> I?ve been using MapServer with shapefiles for some time. I?m trying to >> convert a site to PostGIS, and I?m having problems. >> >> I?ve successfully installed PostGIS on my Ubunto 10.04 box, and copied a >> number of shapefiles into it, using shp2pgsql. I can view the new tables >> using qGIS, so I?m sure the data is right. >> >> So now I?ve copies a mapfile that was working against the original >> shapefiles, and I?m trying to convert it to use PostGIS. I?m working on >> just one layer, and I?m trying to test that layer with shp2img. >> >> I?ve added to the LAYER definition: >> >> LAYER >> >> NAME ?countyboundaries? >> >> CONNECTIONTYPE postgis >> >> CONNECTION ?host=localhost dbname=test_db user=gis password=xxxxx? >> >> DATA ?the_geom from gis_schema.county? >> >> [?] >> >> END >> >> As I said, I know the data is in the database, because I can load it as >> a PostGIS layer from qGIS. Column and table names are right, because >> when I run ?select the_geom from gis_schema.county? in the query tool I >> get the data. >> >> But when I run shp2img from the commandline, I get an error: >> >> $ shp2img -m test.map -o test.gif -i GIF -l countyboundaries >> >> msDrawMap(): Image handling error. Failed to draw layer named >> ?countyboundaries?. >> >> msPostGISParseData(): Query error. Error parsing PostGIS DATA variable. >> Must contain ?geometry >> >> from table? or ?geometry from (subselect) as foo?. County >> >> shp2img is MapServer version 5.6.6, and the output from -v does contain >> ?INPUT=POSTGIS?. >> >> Any ideas? I?m trying to keep things simple, and it?s frustrating when >> simple doesn?t work. > > I cant see anything really wrong. I'm doing mostly the same thing. > > however: > > > CONNECTION ?dbname=test_db user=gis password=xxxxx? > > because mapserver and PG run on the same box, I left off the > host=localhost... not sure if its important. Yes, it might be, it depends on how postgresql is configured. You can test it with: psql -U gis test_db vs: psql -U gis -h localhost test_db > > DATA "the_geom from gis_schema.county using unique gid using srid=-1" > > I also have the unique and srid things, again not sure if there'd be a > difference. This also might be a problem. In general you should not use srid=-1 in the database of in the mapfile. When you load your data you should specify the correct srid and reference in the mapfile. in your mapfile add: MAP CONFIG MS_ERRORFILE "stderr" DEBUG 10 then run your shp2img again and you might get more debug info. You can also add the DEBUG 10 to you LAYER and I think it will spit out the SQL it is trying to execute so you can try it in psql and maybe get helpful messages there. -Steve W > > And as a last hint, you can try bumping up the debug: > > MAP > CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" > ... > LAYER > DEBUG 4 > ... > END > > -Andy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jeff.dege at korterra.com Fri Mar 18 15:25:26 2011 From: jeff.dege at korterra.com (Jeff Dege) Date: Fri, 18 Mar 2011 17:25:26 -0500 Subject: [mapserver-users] Problems getting started with POSTGIS In-Reply-To: <4D83D208.9050709@swoodbridge.com> References: <4D83B55F.1020103@squeakycode.net> <4D83D208.9050709@swoodbridge.com> Message-ID: I'm not seeing the query - I don't think I'm getting that far. msPostGISWhichShapes called. msPostGISParseData called. msPostGISParseData(): Query error. Error parsing PostGIS DATA variable. Must contain 'geometry from table' or geometry from (subselect) as Foo'. County But playing around, I saw that I was getting the same error regardless of what I put in the DATA variable. Which made no sense. I tried stuff that should not have worked at all, and saw no difference. So I looked beyond my problematic DATA variable - and found another DATA variable, later in the LAYER definition. If you remember, I started this by copying a mapfile that had been working with shapefiles. I'd changed the CONNECTIONTYPE, added a CONNECTION, and a new DATA - but I hadn't deleted the old DATA. Oops. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Friday, March 18, 2011 4:44 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problems getting started with POSTGIS On 3/18/2011 3:41 PM, Andy Colson wrote: > On 3/18/2011 11:52 AM, Jeff Dege wrote: >> I've been using MapServer with shapefiles for some time. I'm trying >> to convert a site to PostGIS, and I'm having problems. >> >> I've successfully installed PostGIS on my Ubunto 10.04 box, and >> copied a number of shapefiles into it, using shp2pgsql. I can view >> the new tables using qGIS, so I'm sure the data is right. >> >> So now I've copies a mapfile that was working against the original >> shapefiles, and I'm trying to convert it to use PostGIS. I'm working >> on just one layer, and I'm trying to test that layer with shp2img. >> >> I've added to the LAYER definition: >> >> LAYER >> >> NAME "countyboundaries" >> >> CONNECTIONTYPE postgis >> >> CONNECTION "host=localhost dbname=test_db user=gis password=xxxxx" >> >> DATA "the_geom from gis_schema.county" >> >> [...] >> >> END >> >> As I said, I know the data is in the database, because I can load it >> as a PostGIS layer from qGIS. Column and table names are right, >> because when I run "select the_geom from gis_schema.county" in the >> query tool I get the data. >> >> But when I run shp2img from the commandline, I get an error: >> >> $ shp2img -m test.map -o test.gif -i GIF -l countyboundaries >> >> msDrawMap(): Image handling error. Failed to draw layer named >> 'countyboundaries'. >> >> msPostGISParseData(): Query error. Error parsing PostGIS DATA variable. >> Must contain 'geometry >> >> from table' or 'geometry from (subselect) as foo'. County >> >> shp2img is MapServer version 5.6.6, and the output from -v does >> contain "INPUT=POSTGIS". >> >> Any ideas? I'm trying to keep things simple, and it's frustrating >> when simple doesn't work. > > I cant see anything really wrong. I'm doing mostly the same thing. > > however: > > > CONNECTION "dbname=test_db user=gis password=xxxxx" > > because mapserver and PG run on the same box, I left off the > host=localhost... not sure if its important. Yes, it might be, it depends on how postgresql is configured. You can test it with: psql -U gis test_db vs: psql -U gis -h localhost test_db > > DATA "the_geom from gis_schema.county using unique gid using srid=-1" > > I also have the unique and srid things, again not sure if there'd be a > difference. This also might be a problem. In general you should not use srid=-1 in the database of in the mapfile. When you load your data you should specify the correct srid and reference in the mapfile. in your mapfile add: MAP CONFIG MS_ERRORFILE "stderr" DEBUG 10 then run your shp2img again and you might get more debug info. You can also add the DEBUG 10 to you LAYER and I think it will spit out the SQL it is trying to execute so you can try it in psql and maybe get helpful messages there. -Steve W > > And as a last hint, you can try bumping up the debug: > > MAP > CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" > ... > LAYER > DEBUG 4 > ... > END > > -Andy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From peter.hopfgartner at r3-gis.com Sat Mar 19 01:19:28 2011 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Sat, 19 Mar 2011 09:19:28 +0100 (CET) Subject: [mapserver-users] MapServer 6.0.0-beta2 release: problems building Java MapScript Message-ID: <20110319081928.BB3F8167821F@mail.r3-gis.com> On CentOS 5.5: After running ./configure --with-gd --with-zlib --with-tiff --with-freetype --with-gdal --with-ogr --with-geos --with-proj --with-sos --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-xpm --with-agg --with-cairo --with-postgis --with-curl-config --with-xml2-config --with-threads --enable-debug in mapscript/java/Makefile I've found the following, which causes some troubles afterwards: AGG= @AGG_ENABLED@ AGG_INC= -Irenderers/agg/include (...) PDF_INC= @PDF_INC@ PDF_LIB= @PDF_LIB@ PDF= @PDF_ENABLED@ I have the same situation with Ubuntu 10.04 on current SVN, as of now. Unfortunatly my autoconf skills are very low, so I not really know how to provide a fix or better diagnosis. Peter R3 GIS Srl - GmbH http://www.r3-gis.com --------Daniel Morissette wrote-------- Subject: [mapserver-users] MapServer 6.0.0-beta2 release Date: 18.03.2011 20:48 >Thanks to the hard work from everyone during the Montreal Code Sprint >this week (http://wiki.osgeo.org/wiki/Montreal_Code_Sprint_2011), the >MapServer Team is pleased to announce the release of MapServer >6.0.0-beta2. This is the latest beta on our way to a final 6.0 release, >and includes a large number of fixes made during the Montreal Code >Sprint. > >The 6.0 release introduces important changes in key components of the >MapServer core (rendering, query and expressions), and for this reason >we count on you, MapServer power users, to help test the release in your >respective environments and provide feedback (through the users list or >Trac tickets). > >This is the second of four planned beta releases and if all goes well a >final release should occur around the end of April. The full release >plan which also includes the list of new features and changes in this >release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > >The list of fixes since beta1 is attached at the end of this message. >For a complete list see the HISTORY.TXT file at: > > >http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta2/mapserver/HISTORY.TXT > >We have started working on a 5.6 -> 6.0 migration guide. This document >contains important notes on backwards incompatibilities or other changes >required when upgrading to 6.0. It is not complete yet but we strongly >recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > >The source for this release can be downloaded at: > > http://mapserver.org/download.html >or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta2.tar.gz > >The binary distributions listed in the download page should be updated >with binaries for the new beta release in the next day or so. > >Once again we need your help to ensure a high quality product, so please >help out by testing your applications with this new code base. > >Thanks! - The MapServer Team > > >Version 6.0.0-beta2 (2011-03-18) >-------------------------------- > >- correct scaling of symbol GAP and PATTERN (#3752) > >- remove references to SWF/MING > >- CGI runtime substitution requires a validation pattern (was optional > before) (#3522) > >- add a default png8 outputformat that uses AGG/PNG with quantization > >- change MS_INIT_COLOR to take alpha as a parameter > >- stop using style->opacity in rendering code, use alpha from colorObjs. > >- Fixed big Oracle memory leak when rendering in KML (#3719) > >- avoid linking in postgres dependencies unnecessarily (#3708) > >- don't initialize outputformats until they are selected > >- use "seamless" creation of tiles for polygon fills with vector symbols > >- Ability to escape single/double quotes inside a string (#3706) > >- Globally replace msCaseFindSubstring with strcasestr (#3255) > >- support GROUP layers in shp2img (#3746) > >- Honour MAXSIZE for WCS 2.0 responses (#3204). > >- fallback to ows_title for WCS ows:Title of CoverageDescription (#3528) > >- Added msIO_stripStdoutBufferContentHeaders() to strip off all > Content-* headers from a buffer (#3673, #3665). > >- Added raster classification support for STYLE level OPACITY. > >- Allow attribute references, that is [itemname], within a TEXT string >(#3736) > >- Fixed segmentation fault when parsing invalid extent arguments in > shp2img (#3734) > >- Make "openlayers mode" work even without OWS support (#3732) > >- Add a static table to define the axis order for soem epsg codes (#3582) > >- Add possibility to use KML_NAME_ITEM (#3728) > >- Fixed mapfile parsing error when a label angle referenced an attribute > (e.g. ANGLE [angle]) #3727 > >- Removed executable flag on some source files (#3726) > >- Fixed SQL Spatial to be able to use UniqueIdentifier field as unique > key (#3722) > >- Fix PHP Windows build (#3714) > >- Fixed --with-opengl build issue: Look for OpenGL libs under /usr/lib64 >as > well (#3724) > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > From umberto.nicoletti at gmail.com Sat Mar 19 01:59:01 2011 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Sat, 19 Mar 2011 09:59:01 +0100 Subject: [mapserver-users] MapServer 6.0.0-beta2 release: problems building Java MapScript In-Reply-To: <20110319081928.BB3F8167821F@mail.r3-gis.com> References: <20110319081928.BB3F8167821F@mail.r3-gis.com> Message-ID: Try the attached patch and if it works I will commit the changes. The Makefile.in for java mapscript is probaly missing other defines from the main Makefile, I'm looking into it right now. Regards, Umberto On Sat, Mar 19, 2011 at 9:19 AM, Peter Hopfgartner < peter.hopfgartner at r3-gis.com> wrote: > On CentOS 5.5: > > After running > > ./configure --with-gd --with-zlib --with-tiff --with-freetype --with-gdal > --with-ogr --with-geos --with-proj --with-sos --with-wfs --with-wcs > --with-wmsclient --with-wfsclient --with-xpm --with-agg --with-cairo > --with-postgis --with-curl-config --with-xml2-config --with-threads > --enable-debug > > in mapscript/java/Makefile I've found the following, which causes some > troubles afterwards: > > AGG= @AGG_ENABLED@ > AGG_INC= -Irenderers/agg/include > > (...) > PDF_INC= @PDF_INC@ > PDF_LIB= @PDF_LIB@ > PDF= @PDF_ENABLED@ > > > I have the same situation with Ubuntu 10.04 on current SVN, as of now. > > Unfortunatly my autoconf skills are very low, so I not really know how to > provide a fix or better diagnosis. > > Peter > > R3 GIS Srl - GmbH > http://www.r3-gis.com > > > --------Daniel Morissette wrote-------- > Subject: [mapserver-users] MapServer 6.0.0-beta2 release > Date: 18.03.2011 20:48 > > >Thanks to the hard work from everyone during the Montreal Code Sprint > >this week (http://wiki.osgeo.org/wiki/Montreal_Code_Sprint_2011), the > >MapServer Team is pleased to announce the release of MapServer > >6.0.0-beta2. This is the latest beta on our way to a final 6.0 release, > >and includes a large number of fixes made during the Montreal Code > >Sprint. > > > >The 6.0 release introduces important changes in key components of the > >MapServer core (rendering, query and expressions), and for this reason > >we count on you, MapServer power users, to help test the release in your > >respective environments and provide feedback (through the users list or > >Trac tickets). > > > >This is the second of four planned beta releases and if all goes well a > >final release should occur around the end of April. The full release > >plan which also includes the list of new features and changes in this > >release is available at: > > http://mapserver.org/trunk/development/release/release-plan-6.0.html > > > >The list of fixes since beta1 is attached at the end of this message. > >For a complete list see the HISTORY.TXT file at: > > > > > > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta2/mapserver/HISTORY.TXT > > > >We have started working on a 5.6 -> 6.0 migration guide. This document > >contains important notes on backwards incompatibilities or other changes > >required when upgrading to 6.0. It is not complete yet but we strongly > >recommend that you review the latest version online at: > > > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > > >The source for this release can be downloaded at: > > > > http://mapserver.org/download.html > >or > > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta2.tar.gz > > > >The binary distributions listed in the download page should be updated > >with binaries for the new beta release in the next day or so. > > > >Once again we need your help to ensure a high quality product, so please > >help out by testing your applications with this new code base. > > > >Thanks! - The MapServer Team > > > > > >Version 6.0.0-beta2 (2011-03-18) > >-------------------------------- > > > >- correct scaling of symbol GAP and PATTERN (#3752) > > > >- remove references to SWF/MING > > > >- CGI runtime substitution requires a validation pattern (was optional > > before) (#3522) > > > >- add a default png8 outputformat that uses AGG/PNG with quantization > > > >- change MS_INIT_COLOR to take alpha as a parameter > > > >- stop using style->opacity in rendering code, use alpha from colorObjs. > > > >- Fixed big Oracle memory leak when rendering in KML (#3719) > > > >- avoid linking in postgres dependencies unnecessarily (#3708) > > > >- don't initialize outputformats until they are selected > > > >- use "seamless" creation of tiles for polygon fills with vector symbols > > > >- Ability to escape single/double quotes inside a string (#3706) > > > >- Globally replace msCaseFindSubstring with strcasestr (#3255) > > > >- support GROUP layers in shp2img (#3746) > > > >- Honour MAXSIZE for WCS 2.0 responses (#3204). > > > >- fallback to ows_title for WCS ows:Title of CoverageDescription (#3528) > > > >- Added msIO_stripStdoutBufferContentHeaders() to strip off all > > Content-* headers from a buffer (#3673, #3665). > > > >- Added raster classification support for STYLE level OPACITY. > > > >- Allow attribute references, that is [itemname], within a TEXT string > >(#3736) > > > >- Fixed segmentation fault when parsing invalid extent arguments in > > shp2img (#3734) > > > >- Make "openlayers mode" work even without OWS support (#3732) > > > >- Add a static table to define the axis order for soem epsg codes (#3582) > > > >- Add possibility to use KML_NAME_ITEM (#3728) > > > >- Fixed mapfile parsing error when a label angle referenced an attribute > > (e.g. ANGLE [angle]) #3727 > > > >- Removed executable flag on some source files (#3726) > > > >- Fixed SQL Spatial to be able to use UniqueIdentifier field as unique > > key (#3722) > > > >- Fix PHP Windows build (#3714) > > > >- Fixed --with-opengl build issue: Look for OpenGL libs under /usr/lib64 > >as > > well (#3724) > > > >_______________________________________________ > >mapserver-users mailing list > >mapserver-users at lists.osgeo.org > >http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: jm.patch Type: text/x-patch Size: 714 bytes Desc: not available URL: From peter.hopfgartner at r3-gis.com Sat Mar 19 03:19:45 2011 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Sat, 19 Mar 2011 11:19:45 +0100 (CET) Subject: [mapserver-users] MapServer 6.0.0-beta2 release: problems building Java MapScript Message-ID: <20110319101945.F2C0D167821F@mail.r3-gis.com> Seems good. Thanks, Peter R3 GIS Srl - GmbH http://www.r3-gis.com --------Umberto Nicoletti wrote-------- Subject: Re: [mapserver-users] MapServer 6.0.0-beta2 release: problems building Java MapScript Date: 19.03.2011 09:59 >Try the attached patch and if it works I will commit the changes. >The Makefile.in for java mapscript is probaly missing other defines from >the >main Makefile, I'm looking into it right now. > >Regards, >Umberto > >On Sat, Mar 19, 2011 at 9:19 AM, Peter Hopfgartner < >peter.hopfgartner at r3-gis.com> wrote: > >> On CentOS 5.5: >> >> After running >> >> ./configure --with-gd --with-zlib --with-tiff --with-freetype >--with-gdal >> --with-ogr --with-geos --with-proj --with-sos --with-wfs --with-wcs >> --with-wmsclient --with-wfsclient --with-xpm --with-agg --with-cairo >> --with-postgis --with-curl-config --with-xml2-config --with-threads >> --enable-debug >> >> in mapscript/java/Makefile I've found the following, which causes some >> troubles afterwards: >> >> AGG= @AGG_ENABLED@ >> AGG_INC= -Irenderers/agg/include >> >> (...) >> PDF_INC= @PDF_INC@ >> PDF_LIB= @PDF_LIB@ >> PDF= @PDF_ENABLED@ >> >> >> I have the same situation with Ubuntu 10.04 on current SVN, as of now. >> >> Unfortunatly my autoconf skills are very low, so I not really know how >to >> provide a fix or better diagnosis. >> >> Peter >> >> R3 GIS Srl - GmbH >> http://www.r3-gis.com >> >> >> --------Daniel Morissette wrote-------- >> Subject: [mapserver-users] MapServer 6.0.0-beta2 release >> Date: 18.03.2011 20:48 >> >> >Thanks to the hard work from everyone during the Montreal Code Sprint >> >this week (http://wiki.osgeo.org/wiki/Montreal_Code_Sprint_2011), the >> >MapServer Team is pleased to announce the release of MapServer >> >6.0.0-beta2. This is the latest beta on our way to a final 6.0 >release, >> >and includes a large number of fixes made during the Montreal Code >> >Sprint. >> > >> >The 6.0 release introduces important changes in key components of the >> >MapServer core (rendering, query and expressions), and for this reason >> >we count on you, MapServer power users, to help test the release in >your >> >respective environments and provide feedback (through the users list >or >> >Trac tickets). >> > >> >This is the second of four planned beta releases and if all goes well >a >> >final release should occur around the end of April. The full release >> >plan which also includes the list of new features and changes in this >> >release is available at: >> > >http://mapserver.org/trunk/development/release/release-plan-6.0.html >> > >> >The list of fixes since beta1 is attached at the end of this message. >> >For a complete list see the HISTORY.TXT file at: >> > >> > >> > >> >http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta2/mapserver/HISTORY.TXT >> > >> >We have started working on a 5.6 -> 6.0 migration guide. This document >> >contains important notes on backwards incompatibilities or other >changes >> >required when upgrading to 6.0. It is not complete yet but we strongly >> >recommend that you review the latest version online at: >> > >> > http://mapserver.org/trunk/MIGRATION_GUIDE.html >> > >> >The source for this release can be downloaded at: >> > >> > http://mapserver.org/download.html >> >or >> > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta2.tar.gz >> > >> >The binary distributions listed in the download page should be updated >> >with binaries for the new beta release in the next day or so. >> > >> >Once again we need your help to ensure a high quality product, so >please >> >help out by testing your applications with this new code base. >> > >> >Thanks! - The MapServer Team >> > >> > >> >Version 6.0.0-beta2 (2011-03-18) >> >-------------------------------- >> > >> >- correct scaling of symbol GAP and PATTERN (#3752) >> > >> >- remove references to SWF/MING >> > >> >- CGI runtime substitution requires a validation pattern (was optional >> > before) (#3522) >> > >> >- add a default png8 outputformat that uses AGG/PNG with quantization >> > >> >- change MS_INIT_COLOR to take alpha as a parameter >> > >> >- stop using style->opacity in rendering code, use alpha from >colorObjs. >> > >> >- Fixed big Oracle memory leak when rendering in KML (#3719) >> > >> >- avoid linking in postgres dependencies unnecessarily (#3708) >> > >> >- don't initialize outputformats until they are selected >> > >> >- use "seamless" creation of tiles for polygon fills with vector >symbols >> > >> >- Ability to escape single/double quotes inside a string (#3706) >> > >> >- Globally replace msCaseFindSubstring with strcasestr (#3255) >> > >> >- support GROUP layers in shp2img (#3746) >> > >> >- Honour MAXSIZE for WCS 2.0 responses (#3204). >> > >> >- fallback to ows_title for WCS ows:Title of CoverageDescription >(#3528) >> > >> >- Added msIO_stripStdoutBufferContentHeaders() to strip off all >> > Content-* headers from a buffer (#3673, #3665). >> > >> >- Added raster classification support for STYLE level OPACITY. >> > >> >- Allow attribute references, that is [itemname], within a TEXT string >> >(#3736) >> > >> >- Fixed segmentation fault when parsing invalid extent arguments in >> > shp2img (#3734) >> > >> >- Make "openlayers mode" work even without OWS support (#3732) >> > >> >- Add a static table to define the axis order for soem epsg codes >(#3582) >> > >> >- Add possibility to use KML_NAME_ITEM (#3728) >> > >> >- Fixed mapfile parsing error when a label angle referenced an >attribute >> > (e.g. ANGLE [angle]) #3727 >> > >> >- Removed executable flag on some source files (#3726) >> > >> >- Fixed SQL Spatial to be able to use UniqueIdentifier field as unique >> > key (#3722) >> > >> >- Fix PHP Windows build (#3714) >> > >> >- Fixed --with-opengl build issue: Look for OpenGL libs under >/usr/lib64 >> >as >> > well (#3724) >> > >> >_______________________________________________ >> >mapserver-users mailing list >> >mapserver-users at lists.osgeo.org >> >http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From umberto.nicoletti at gmail.com Sat Mar 19 03:37:45 2011 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Sat, 19 Mar 2011 11:37:45 +0100 Subject: [mapserver-users] MapServer 6.0.0-beta2 release: problems building Java MapScript In-Reply-To: <20110319101945.F2C0D167821F@mail.r3-gis.com> References: <20110319101945.F2C0D167821F@mail.r3-gis.com> Message-ID: I'm still working on it as it seems there is a memory problem (the tests crash consistently), but unless you create map, layers and other object programmatically you should be fine. @daniel: where should I commit the changes? Cheers, Umberto On Sat, Mar 19, 2011 at 11:19 AM, Peter Hopfgartner < peter.hopfgartner at r3-gis.com> wrote: > Seems good. > > Thanks, > > Peter > > R3 GIS Srl - GmbH > http://www.r3-gis.com > > > --------Umberto Nicoletti wrote-------- > Subject: Re: [mapserver-users] MapServer 6.0.0-beta2 release: problems > building Java MapScript > Date: 19.03.2011 09:59 > > >Try the attached patch and if it works I will commit the changes. > >The Makefile.in for java mapscript is probaly missing other defines from > >the > >main Makefile, I'm looking into it right now. > > > >Regards, > >Umberto > > > >On Sat, Mar 19, 2011 at 9:19 AM, Peter Hopfgartner < > >peter.hopfgartner at r3-gis.com> wrote: > > > >> On CentOS 5.5: > >> > >> After running > >> > >> ./configure --with-gd --with-zlib --with-tiff --with-freetype > >--with-gdal > >> --with-ogr --with-geos --with-proj --with-sos --with-wfs --with-wcs > >> --with-wmsclient --with-wfsclient --with-xpm --with-agg --with-cairo > >> --with-postgis --with-curl-config --with-xml2-config --with-threads > >> --enable-debug > >> > >> in mapscript/java/Makefile I've found the following, which causes some > >> troubles afterwards: > >> > >> AGG= @AGG_ENABLED@ > >> AGG_INC= -Irenderers/agg/include > >> > >> (...) > >> PDF_INC= @PDF_INC@ > >> PDF_LIB= @PDF_LIB@ > >> PDF= @PDF_ENABLED@ > >> > >> > >> I have the same situation with Ubuntu 10.04 on current SVN, as of now. > >> > >> Unfortunatly my autoconf skills are very low, so I not really know how > >to > >> provide a fix or better diagnosis. > >> > >> Peter > >> > >> R3 GIS Srl - GmbH > >> http://www.r3-gis.com > >> > >> > >> --------Daniel Morissette wrote-------- > >> Subject: [mapserver-users] MapServer 6.0.0-beta2 release > >> Date: 18.03.2011 20:48 > >> > >> >Thanks to the hard work from everyone during the Montreal Code Sprint > >> >this week (http://wiki.osgeo.org/wiki/Montreal_Code_Sprint_2011), the > >> >MapServer Team is pleased to announce the release of MapServer > >> >6.0.0-beta2. This is the latest beta on our way to a final 6.0 > >release, > >> >and includes a large number of fixes made during the Montreal Code > >> >Sprint. > >> > > >> >The 6.0 release introduces important changes in key components of the > >> >MapServer core (rendering, query and expressions), and for this reason > >> >we count on you, MapServer power users, to help test the release in > >your > >> >respective environments and provide feedback (through the users list > >or > >> >Trac tickets). > >> > > >> >This is the second of four planned beta releases and if all goes well > >a > >> >final release should occur around the end of April. The full release > >> >plan which also includes the list of new features and changes in this > >> >release is available at: > >> > > >http://mapserver.org/trunk/development/release/release-plan-6.0.html > >> > > >> >The list of fixes since beta1 is attached at the end of this message. > >> >For a complete list see the HISTORY.TXT file at: > >> > > >> > > >> > > >> > > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta2/mapserver/HISTORY.TXT > >> > > >> >We have started working on a 5.6 -> 6.0 migration guide. This document > >> >contains important notes on backwards incompatibilities or other > >changes > >> >required when upgrading to 6.0. It is not complete yet but we strongly > >> >recommend that you review the latest version online at: > >> > > >> > http://mapserver.org/trunk/MIGRATION_GUIDE.html > >> > > >> >The source for this release can be downloaded at: > >> > > >> > http://mapserver.org/download.html > >> >or > >> > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta2.tar.gz > >> > > >> >The binary distributions listed in the download page should be updated > >> >with binaries for the new beta release in the next day or so. > >> > > >> >Once again we need your help to ensure a high quality product, so > >please > >> >help out by testing your applications with this new code base. > >> > > >> >Thanks! - The MapServer Team > >> > > >> > > >> >Version 6.0.0-beta2 (2011-03-18) > >> >-------------------------------- > >> > > >> >- correct scaling of symbol GAP and PATTERN (#3752) > >> > > >> >- remove references to SWF/MING > >> > > >> >- CGI runtime substitution requires a validation pattern (was optional > >> > before) (#3522) > >> > > >> >- add a default png8 outputformat that uses AGG/PNG with quantization > >> > > >> >- change MS_INIT_COLOR to take alpha as a parameter > >> > > >> >- stop using style->opacity in rendering code, use alpha from > >colorObjs. > >> > > >> >- Fixed big Oracle memory leak when rendering in KML (#3719) > >> > > >> >- avoid linking in postgres dependencies unnecessarily (#3708) > >> > > >> >- don't initialize outputformats until they are selected > >> > > >> >- use "seamless" creation of tiles for polygon fills with vector > >symbols > >> > > >> >- Ability to escape single/double quotes inside a string (#3706) > >> > > >> >- Globally replace msCaseFindSubstring with strcasestr (#3255) > >> > > >> >- support GROUP layers in shp2img (#3746) > >> > > >> >- Honour MAXSIZE for WCS 2.0 responses (#3204). > >> > > >> >- fallback to ows_title for WCS ows:Title of CoverageDescription > >(#3528) > >> > > >> >- Added msIO_stripStdoutBufferContentHeaders() to strip off all > >> > Content-* headers from a buffer (#3673, #3665). > >> > > >> >- Added raster classification support for STYLE level OPACITY. > >> > > >> >- Allow attribute references, that is [itemname], within a TEXT string > >> >(#3736) > >> > > >> >- Fixed segmentation fault when parsing invalid extent arguments in > >> > shp2img (#3734) > >> > > >> >- Make "openlayers mode" work even without OWS support (#3732) > >> > > >> >- Add a static table to define the axis order for soem epsg codes > >(#3582) > >> > > >> >- Add possibility to use KML_NAME_ITEM (#3728) > >> > > >> >- Fixed mapfile parsing error when a label angle referenced an > >attribute > >> > (e.g. ANGLE [angle]) #3727 > >> > > >> >- Removed executable flag on some source files (#3726) > >> > > >> >- Fixed SQL Spatial to be able to use UniqueIdentifier field as unique > >> > key (#3722) > >> > > >> >- Fix PHP Windows build (#3714) > >> > > >> >- Fixed --with-opengl build issue: Look for OpenGL libs under > >/usr/lib64 > >> >as > >> > well (#3724) > >> > > >> >_______________________________________________ > >> >mapserver-users mailing list > >> >mapserver-users at lists.osgeo.org > >> >http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at gmail.com Sat Mar 19 04:07:23 2011 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Sat, 19 Mar 2011 12:07:23 +0100 Subject: [mapserver-users] MapServer 6.0.0-beta2 release: problems building Java MapScript In-Reply-To: References: <20110319101945.F2C0D167821F@mail.r3-gis.com> Message-ID: make test still fails with a SIGSEV in: C [libmapscript.so+0xd3bfa] msFree+0x23 C [libmapscript.so+0xbdb88] msFreeHashItems+0x9e C [libmapscript.so+0xfa2f6] msFreeFontSet+0x3f C [libmapscript.so+0x143711] msFreeMap+0x102 but I can't understand what's going on (have tried memory debuggers without luck so far). Has anyone suggestions on what I should be looking into? Umberto On Sat, Mar 19, 2011 at 11:37 AM, Umberto Nicoletti < umberto.nicoletti at gmail.com> wrote: > I'm still working on it as it seems there is a memory problem (the tests > crash consistently), but unless you create map, layers and other object > programmatically you should be fine. > > @daniel: where should I commit the changes? > > Cheers, > Umberto > > On Sat, Mar 19, 2011 at 11:19 AM, Peter Hopfgartner < > peter.hopfgartner at r3-gis.com> wrote: > >> Seems good. >> >> Thanks, >> >> Peter >> >> R3 GIS Srl - GmbH >> http://www.r3-gis.com >> >> >> --------Umberto Nicoletti wrote-------- >> Subject: Re: [mapserver-users] MapServer 6.0.0-beta2 release: problems >> building Java MapScript >> Date: 19.03.2011 09:59 >> >> >Try the attached patch and if it works I will commit the changes. >> >The Makefile.in for java mapscript is probaly missing other defines from >> >the >> >main Makefile, I'm looking into it right now. >> > >> >Regards, >> >Umberto >> > >> >On Sat, Mar 19, 2011 at 9:19 AM, Peter Hopfgartner < >> >peter.hopfgartner at r3-gis.com> wrote: >> > >> >> On CentOS 5.5: >> >> >> >> After running >> >> >> >> ./configure --with-gd --with-zlib --with-tiff --with-freetype >> >--with-gdal >> >> --with-ogr --with-geos --with-proj --with-sos --with-wfs --with-wcs >> >> --with-wmsclient --with-wfsclient --with-xpm --with-agg --with-cairo >> >> --with-postgis --with-curl-config --with-xml2-config --with-threads >> >> --enable-debug >> >> >> >> in mapscript/java/Makefile I've found the following, which causes some >> >> troubles afterwards: >> >> >> >> AGG= @AGG_ENABLED@ >> >> AGG_INC= -Irenderers/agg/include >> >> >> >> (...) >> >> PDF_INC= @PDF_INC@ >> >> PDF_LIB= @PDF_LIB@ >> >> PDF= @PDF_ENABLED@ >> >> >> >> >> >> I have the same situation with Ubuntu 10.04 on current SVN, as of now. >> >> >> >> Unfortunatly my autoconf skills are very low, so I not really know how >> >to >> >> provide a fix or better diagnosis. >> >> >> >> Peter >> >> >> >> R3 GIS Srl - GmbH >> >> http://www.r3-gis.com >> >> >> >> >> >> --------Daniel Morissette wrote-------- >> >> Subject: [mapserver-users] MapServer 6.0.0-beta2 release >> >> Date: 18.03.2011 20:48 >> >> >> >> >Thanks to the hard work from everyone during the Montreal Code Sprint >> >> >this week (http://wiki.osgeo.org/wiki/Montreal_Code_Sprint_2011), the >> >> >MapServer Team is pleased to announce the release of MapServer >> >> >6.0.0-beta2. This is the latest beta on our way to a final 6.0 >> >release, >> >> >and includes a large number of fixes made during the Montreal Code >> >> >Sprint. >> >> > >> >> >The 6.0 release introduces important changes in key components of the >> >> >MapServer core (rendering, query and expressions), and for this reason >> >> >we count on you, MapServer power users, to help test the release in >> >your >> >> >respective environments and provide feedback (through the users list >> >or >> >> >Trac tickets). >> >> > >> >> >This is the second of four planned beta releases and if all goes well >> >a >> >> >final release should occur around the end of April. The full release >> >> >plan which also includes the list of new features and changes in this >> >> >release is available at: >> >> > >> >http://mapserver.org/trunk/development/release/release-plan-6.0.html >> >> > >> >> >The list of fixes since beta1 is attached at the end of this message. >> >> >For a complete list see the HISTORY.TXT file at: >> >> > >> >> > >> >> > >> >> >> > >> http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta2/mapserver/HISTORY.TXT >> >> > >> >> >We have started working on a 5.6 -> 6.0 migration guide. This document >> >> >contains important notes on backwards incompatibilities or other >> >changes >> >> >required when upgrading to 6.0. It is not complete yet but we strongly >> >> >recommend that you review the latest version online at: >> >> > >> >> > http://mapserver.org/trunk/MIGRATION_GUIDE.html >> >> > >> >> >The source for this release can be downloaded at: >> >> > >> >> > http://mapserver.org/download.html >> >> >or >> >> > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta2.tar.gz >> >> > >> >> >The binary distributions listed in the download page should be updated >> >> >with binaries for the new beta release in the next day or so. >> >> > >> >> >Once again we need your help to ensure a high quality product, so >> >please >> >> >help out by testing your applications with this new code base. >> >> > >> >> >Thanks! - The MapServer Team >> >> > >> >> > >> >> >Version 6.0.0-beta2 (2011-03-18) >> >> >-------------------------------- >> >> > >> >> >- correct scaling of symbol GAP and PATTERN (#3752) >> >> > >> >> >- remove references to SWF/MING >> >> > >> >> >- CGI runtime substitution requires a validation pattern (was optional >> >> > before) (#3522) >> >> > >> >> >- add a default png8 outputformat that uses AGG/PNG with quantization >> >> > >> >> >- change MS_INIT_COLOR to take alpha as a parameter >> >> > >> >> >- stop using style->opacity in rendering code, use alpha from >> >colorObjs. >> >> > >> >> >- Fixed big Oracle memory leak when rendering in KML (#3719) >> >> > >> >> >- avoid linking in postgres dependencies unnecessarily (#3708) >> >> > >> >> >- don't initialize outputformats until they are selected >> >> > >> >> >- use "seamless" creation of tiles for polygon fills with vector >> >symbols >> >> > >> >> >- Ability to escape single/double quotes inside a string (#3706) >> >> > >> >> >- Globally replace msCaseFindSubstring with strcasestr (#3255) >> >> > >> >> >- support GROUP layers in shp2img (#3746) >> >> > >> >> >- Honour MAXSIZE for WCS 2.0 responses (#3204). >> >> > >> >> >- fallback to ows_title for WCS ows:Title of CoverageDescription >> >(#3528) >> >> > >> >> >- Added msIO_stripStdoutBufferContentHeaders() to strip off all >> >> > Content-* headers from a buffer (#3673, #3665). >> >> > >> >> >- Added raster classification support for STYLE level OPACITY. >> >> > >> >> >- Allow attribute references, that is [itemname], within a TEXT string >> >> >(#3736) >> >> > >> >> >- Fixed segmentation fault when parsing invalid extent arguments in >> >> > shp2img (#3734) >> >> > >> >> >- Make "openlayers mode" work even without OWS support (#3732) >> >> > >> >> >- Add a static table to define the axis order for soem epsg codes >> >(#3582) >> >> > >> >> >- Add possibility to use KML_NAME_ITEM (#3728) >> >> > >> >> >- Fixed mapfile parsing error when a label angle referenced an >> >attribute >> >> > (e.g. ANGLE [angle]) #3727 >> >> > >> >> >- Removed executable flag on some source files (#3726) >> >> > >> >> >- Fixed SQL Spatial to be able to use UniqueIdentifier field as unique >> >> > key (#3722) >> >> > >> >> >- Fix PHP Windows build (#3714) >> >> > >> >> >- Fixed --with-opengl build issue: Look for OpenGL libs under >> >/usr/lib64 >> >> >as >> >> > well (#3724) >> >> > >> >> >_______________________________________________ >> >> >mapserver-users mailing list >> >> >mapserver-users at lists.osgeo.org >> >> >http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > >> >> >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Sat Mar 19 06:55:51 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Sat, 19 Mar 2011 08:55:51 -0500 Subject: [mapserver-users] MapServer 6.0.0-beta2 release: problems building Java MapScript In-Reply-To: References: <20110319101945.F2C0D167821F@mail.r3-gis.com>, Message-ID: Changes should go into trunk... Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Umberto Nicoletti [umberto.nicoletti at gmail.com] Sent: Saturday, March 19, 2011 5:37 AM To: peter.hopfgartner at r3-gis.com; Daniel Morissette Cc: mapserver-users Subject: Re: Re: [mapserver-users] MapServer 6.0.0-beta2 release: problems building Java MapScript I'm still working on it as it seems there is a memory problem (the tests crash consistently), but unless you create map, layers and other object programmatically you should be fine. @daniel: where should I commit the changes? Cheers, Umberto On Sat, Mar 19, 2011 at 11:19 AM, Peter Hopfgartner > wrote: Seems good. Thanks, Peter R3 GIS Srl - GmbH http://www.r3-gis.com --------Umberto Nicoletti > wrote-------- Subject: Re: [mapserver-users] MapServer 6.0.0-beta2 release: problems building Java MapScript Date: 19.03.2011 09:59 >Try the attached patch and if it works I will commit the changes. >The Makefile.in for java mapscript is probaly missing other defines from >the >main Makefile, I'm looking into it right now. > >Regards, >Umberto > >On Sat, Mar 19, 2011 at 9:19 AM, Peter Hopfgartner < >peter.hopfgartner at r3-gis.com> wrote: > >> On CentOS 5.5: >> >> After running >> >> ./configure --with-gd --with-zlib --with-tiff --with-freetype >--with-gdal >> --with-ogr --with-geos --with-proj --with-sos --with-wfs --with-wcs >> --with-wmsclient --with-wfsclient --with-xpm --with-agg --with-cairo >> --with-postgis --with-curl-config --with-xml2-config --with-threads >> --enable-debug >> >> in mapscript/java/Makefile I've found the following, which causes some >> troubles afterwards: >> >> AGG= @AGG_ENABLED@ >> AGG_INC= -Irenderers/agg/include >> >> (...) >> PDF_INC= @PDF_INC@ >> PDF_LIB= @PDF_LIB@ >> PDF= @PDF_ENABLED@ >> >> >> I have the same situation with Ubuntu 10.04 on current SVN, as of now. >> >> Unfortunatly my autoconf skills are very low, so I not really know how >to >> provide a fix or better diagnosis. >> >> Peter >> >> R3 GIS Srl - GmbH >> http://www.r3-gis.com >> >> >> --------Daniel Morissette > wrote-------- >> Subject: [mapserver-users] MapServer 6.0.0-beta2 release >> Date: 18.03.2011 20:48 >> >> >Thanks to the hard work from everyone during the Montreal Code Sprint >> >this week (http://wiki.osgeo.org/wiki/Montreal_Code_Sprint_2011), the >> >MapServer Team is pleased to announce the release of MapServer >> >6.0.0-beta2. This is the latest beta on our way to a final 6.0 >release, >> >and includes a large number of fixes made during the Montreal Code >> >Sprint. >> > >> >The 6.0 release introduces important changes in key components of the >> >MapServer core (rendering, query and expressions), and for this reason >> >we count on you, MapServer power users, to help test the release in >your >> >respective environments and provide feedback (through the users list >or >> >Trac tickets). >> > >> >This is the second of four planned beta releases and if all goes well >a >> >final release should occur around the end of April. The full release >> >plan which also includes the list of new features and changes in this >> >release is available at: >> > >http://mapserver.org/trunk/development/release/release-plan-6.0.html >> > >> >The list of fixes since beta1 is attached at the end of this message. >> >For a complete list see the HISTORY.TXT file at: >> > >> > >> > >> >http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta2/mapserver/HISTORY.TXT >> > >> >We have started working on a 5.6 -> 6.0 migration guide. This document >> >contains important notes on backwards incompatibilities or other >changes >> >required when upgrading to 6.0. It is not complete yet but we strongly >> >recommend that you review the latest version online at: >> > >> > http://mapserver.org/trunk/MIGRATION_GUIDE.html >> > >> >The source for this release can be downloaded at: >> > >> > http://mapserver.org/download.html >> >or >> > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta2.tar.gz >> > >> >The binary distributions listed in the download page should be updated >> >with binaries for the new beta release in the next day or so. >> > >> >Once again we need your help to ensure a high quality product, so >please >> >help out by testing your applications with this new code base. >> > >> >Thanks! - The MapServer Team >> > >> > >> >Version 6.0.0-beta2 (2011-03-18) >> >-------------------------------- >> > >> >- correct scaling of symbol GAP and PATTERN (#3752) >> > >> >- remove references to SWF/MING >> > >> >- CGI runtime substitution requires a validation pattern (was optional >> > before) (#3522) >> > >> >- add a default png8 outputformat that uses AGG/PNG with quantization >> > >> >- change MS_INIT_COLOR to take alpha as a parameter >> > >> >- stop using style->opacity in rendering code, use alpha from >colorObjs. >> > >> >- Fixed big Oracle memory leak when rendering in KML (#3719) >> > >> >- avoid linking in postgres dependencies unnecessarily (#3708) >> > >> >- don't initialize outputformats until they are selected >> > >> >- use "seamless" creation of tiles for polygon fills with vector >symbols >> > >> >- Ability to escape single/double quotes inside a string (#3706) >> > >> >- Globally replace msCaseFindSubstring with strcasestr (#3255) >> > >> >- support GROUP layers in shp2img (#3746) >> > >> >- Honour MAXSIZE for WCS 2.0 responses (#3204). >> > >> >- fallback to ows_title for WCS ows:Title of CoverageDescription >(#3528) >> > >> >- Added msIO_stripStdoutBufferContentHeaders() to strip off all >> > Content-* headers from a buffer (#3673, #3665). >> > >> >- Added raster classification support for STYLE level OPACITY. >> > >> >- Allow attribute references, that is [itemname], within a TEXT string >> >(#3736) >> > >> >- Fixed segmentation fault when parsing invalid extent arguments in >> > shp2img (#3734) >> > >> >- Make "openlayers mode" work even without OWS support (#3732) >> > >> >- Add a static table to define the axis order for soem epsg codes >(#3582) >> > >> >- Add possibility to use KML_NAME_ITEM (#3728) >> > >> >- Fixed mapfile parsing error when a label angle referenced an >attribute >> > (e.g. ANGLE [angle]) #3727 >> > >> >- Removed executable flag on some source files (#3726) >> > >> >- Fixed SQL Spatial to be able to use UniqueIdentifier field as unique >> > key (#3722) >> > >> >- Fix PHP Windows build (#3714) >> > >> >- Fixed --with-opengl build issue: Look for OpenGL libs under >/usr/lib64 >> >as >> > well (#3724) >> > >> >_______________________________________________ >> >mapserver-users mailing list >> >mapserver-users at lists.osgeo.org >> >http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From umberto.nicoletti at gmail.com Sun Mar 20 09:04:01 2011 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Sun, 20 Mar 2011 17:04:01 +0100 Subject: [mapserver-users] MapServer 6.0.0-beta2 release: problems building Java MapScript In-Reply-To: References: <20110319101945.F2C0D167821F@mail.r3-gis.com> Message-ID: committed yesterday into trunk On Sat, Mar 19, 2011 at 2:55 PM, Lime, Steve D (DNR) wrote: > Changes should go into trunk... Steve > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [ > mapserver-users-bounces at lists.osgeo.org] On Behalf Of Umberto Nicoletti [ > umberto.nicoletti at gmail.com] > Sent: Saturday, March 19, 2011 5:37 AM > To: peter.hopfgartner at r3-gis.com; Daniel Morissette > Cc: mapserver-users > Subject: Re: Re: [mapserver-users] MapServer 6.0.0-beta2 release: problems > building Java MapScript > > I'm still working on it as it seems there is a memory problem (the tests > crash consistently), but unless you create map, layers and other object > programmatically you should be fine. > > @daniel: where should I commit the changes? > > Cheers, > Umberto > > On Sat, Mar 19, 2011 at 11:19 AM, Peter Hopfgartner < > peter.hopfgartner at r3-gis.com> wrote: > Seems good. > > Thanks, > > Peter > > R3 GIS Srl - GmbH > http://www.r3-gis.com > > > --------Umberto Nicoletti umberto.nicoletti at gmail.com>> wrote-------- > Subject: Re: [mapserver-users] MapServer 6.0.0-beta2 release: problems > building Java MapScript > Date: 19.03.2011 09:59 > > >Try the attached patch and if it works I will commit the changes. > >The Makefile.in for java mapscript is probaly missing other defines from > >the > >main Makefile, I'm looking into it right now. > > > >Regards, > >Umberto > > > >On Sat, Mar 19, 2011 at 9:19 AM, Peter Hopfgartner < > >peter.hopfgartner at r3-gis.com> wrote: > > > >> On CentOS 5.5: > >> > >> After running > >> > >> ./configure --with-gd --with-zlib --with-tiff --with-freetype > >--with-gdal > >> --with-ogr --with-geos --with-proj --with-sos --with-wfs --with-wcs > >> --with-wmsclient --with-wfsclient --with-xpm --with-agg --with-cairo > >> --with-postgis --with-curl-config --with-xml2-config --with-threads > >> --enable-debug > >> > >> in mapscript/java/Makefile I've found the following, which causes some > >> troubles afterwards: > >> > >> AGG= @AGG_ENABLED@ > >> AGG_INC= -Irenderers/agg/include > >> > >> (...) > >> PDF_INC= @PDF_INC@ > >> PDF_LIB= @PDF_LIB@ > >> PDF= @PDF_ENABLED@ > >> > >> > >> I have the same situation with Ubuntu 10.04 on current SVN, as of now. > >> > >> Unfortunatly my autoconf skills are very low, so I not really know how > >to > >> provide a fix or better diagnosis. > >> > >> Peter > >> > >> R3 GIS Srl - GmbH > >> http://www.r3-gis.com > >> > >> > >> --------Daniel Morissette dmorissette at mapgears.com>> wrote-------- > >> Subject: [mapserver-users] MapServer 6.0.0-beta2 release > >> Date: 18.03.2011 20:48 > >> > >> >Thanks to the hard work from everyone during the Montreal Code Sprint > >> >this week (http://wiki.osgeo.org/wiki/Montreal_Code_Sprint_2011), the > >> >MapServer Team is pleased to announce the release of MapServer > >> >6.0.0-beta2. This is the latest beta on our way to a final 6.0 > >release, > >> >and includes a large number of fixes made during the Montreal Code > >> >Sprint. > >> > > >> >The 6.0 release introduces important changes in key components of the > >> >MapServer core (rendering, query and expressions), and for this reason > >> >we count on you, MapServer power users, to help test the release in > >your > >> >respective environments and provide feedback (through the users list > >or > >> >Trac tickets). > >> > > >> >This is the second of four planned beta releases and if all goes well > >a > >> >final release should occur around the end of April. The full release > >> >plan which also includes the list of new features and changes in this > >> >release is available at: > >> > > >http://mapserver.org/trunk/development/release/release-plan-6.0.html > >> > > >> >The list of fixes since beta1 is attached at the end of this message. > >> >For a complete list see the HISTORY.TXT file at: > >> > > >> > > >> > > >> > > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta2/mapserver/HISTORY.TXT > >> > > >> >We have started working on a 5.6 -> 6.0 migration guide. This document > >> >contains important notes on backwards incompatibilities or other > >changes > >> >required when upgrading to 6.0. It is not complete yet but we strongly > >> >recommend that you review the latest version online at: > >> > > >> > http://mapserver.org/trunk/MIGRATION_GUIDE.html > >> > > >> >The source for this release can be downloaded at: > >> > > >> > http://mapserver.org/download.html > >> >or > >> > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta2.tar.gz > >> > > >> >The binary distributions listed in the download page should be updated > >> >with binaries for the new beta release in the next day or so. > >> > > >> >Once again we need your help to ensure a high quality product, so > >please > >> >help out by testing your applications with this new code base. > >> > > >> >Thanks! - The MapServer Team > >> > > >> > > >> >Version 6.0.0-beta2 (2011-03-18) > >> >-------------------------------- > >> > > >> >- correct scaling of symbol GAP and PATTERN (#3752) > >> > > >> >- remove references to SWF/MING > >> > > >> >- CGI runtime substitution requires a validation pattern (was optional > >> > before) (#3522) > >> > > >> >- add a default png8 outputformat that uses AGG/PNG with quantization > >> > > >> >- change MS_INIT_COLOR to take alpha as a parameter > >> > > >> >- stop using style->opacity in rendering code, use alpha from > >colorObjs. > >> > > >> >- Fixed big Oracle memory leak when rendering in KML (#3719) > >> > > >> >- avoid linking in postgres dependencies unnecessarily (#3708) > >> > > >> >- don't initialize outputformats until they are selected > >> > > >> >- use "seamless" creation of tiles for polygon fills with vector > >symbols > >> > > >> >- Ability to escape single/double quotes inside a string (#3706) > >> > > >> >- Globally replace msCaseFindSubstring with strcasestr (#3255) > >> > > >> >- support GROUP layers in shp2img (#3746) > >> > > >> >- Honour MAXSIZE for WCS 2.0 responses (#3204). > >> > > >> >- fallback to ows_title for WCS ows:Title of CoverageDescription > >(#3528) > >> > > >> >- Added msIO_stripStdoutBufferContentHeaders() to strip off all > >> > Content-* headers from a buffer (#3673, #3665). > >> > > >> >- Added raster classification support for STYLE level OPACITY. > >> > > >> >- Allow attribute references, that is [itemname], within a TEXT string > >> >(#3736) > >> > > >> >- Fixed segmentation fault when parsing invalid extent arguments in > >> > shp2img (#3734) > >> > > >> >- Make "openlayers mode" work even without OWS support (#3732) > >> > > >> >- Add a static table to define the axis order for soem epsg codes > >(#3582) > >> > > >> >- Add possibility to use KML_NAME_ITEM (#3728) > >> > > >> >- Fixed mapfile parsing error when a label angle referenced an > >attribute > >> > (e.g. ANGLE [angle]) #3727 > >> > > >> >- Removed executable flag on some source files (#3726) > >> > > >> >- Fixed SQL Spatial to be able to use UniqueIdentifier field as unique > >> > key (#3722) > >> > > >> >- Fix PHP Windows build (#3714) > >> > > >> >- Fixed --with-opengl build issue: Look for OpenGL libs under > >/usr/lib64 > >> >as > >> > well (#3724) > >> > > >> >_______________________________________________ > >> >mapserver-users mailing list > >> >mapserver-users at lists.osgeo.org > > >> >http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Sebastien.Favre at spotimage.fr Mon Mar 21 02:44:51 2011 From: Sebastien.Favre at spotimage.fr (Favre, Sebastien) Date: Mon, 21 Mar 2011 09:44:51 +0000 Subject: [mapserver-users] WMS GetfeatureInfo from KML file Message-ID: Hello to all, I have managed to expose a KML file as a WMS layer. Now I want to allow GetFeatureInfo for the layer in my OpenLayers client. Attributes are stored as follows in the KML file : Aruba ... I have added : "KML_INCLUDE_ITEMS all" in the METADATA tag of the LAYER declaration part without success. How must I configure the mapfile for that ? Thank you. S?bastien Sebastien FAVRE Software Engineer | Spot Image GEO-Information Services Astrium Services 2600 route des Cr?tes, BP 282 F-06905 Sophia Antipolis Cedex, France Tel: +33 (0) 4 97 23 24 12 | Fax: +33 (0) 4 93 95 83 29 sebastien.favre at spotimage.fr | www.spotimage.com >> Spot Image & Infoterra are teaming up. The GEO-Information Services division of Astrium will bring a consolidated portfolio of services & products to customers worldwide. [Description?: Description?: Description?: Description?: Description?: Description?: Description?: cid:image001.png at 01CBAC1D.6B514B70] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 9730 bytes Desc: image001.png URL: -------------- next part -------------- Ce courrier ?lectronique et toutes les pi?ces ?ventuellement jointes qu?il contient sont CONFIDENTIELS et destin?s exclusivement ? l?usage de leur destinataire. Si une erreur de transmission ou une adresse erron?e a mal dirig?e ce courrier, merci d?en informer l?exp?diteur en lui faisant une r?ponse par courrier ?lectronique d?s r?ception. Si vous n??tes pas le destinataire de ce courrier, vous ne devez pas l?utiliser, le conserver, en faire ?tat, le distribuer, le copier, l?imprimer ou en r?v?ler le contenu ? une tierce partie. Ce courrier ?lectronique est ? usage strictement informatif et ne saurait engager de quelque mani?re que ce soit SPOT IMAGE SA, ni ses filiales. This e-mail and any attachments hereto are CONFIDENTIAL and intended solely for the use of the addressee. If you have received this e-mail in error please send it back to the person that sent it to you. If you have received it in error, please notify the sender by return email. If you are not the addressee of this email, you must not use, keep, disseminate, copy, print or otherwise deal with it. This email is for information only and will not bind SPOT IMAGE SA in any contract or obligation, nor its subsidiaries. From daniel.degasperi at r3-gis.com Mon Mar 21 06:47:07 2011 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Mon, 21 Mar 2011 14:47:07 +0100 Subject: [mapserver-users] Floating point exception agg png Message-ID: <4D8756DB.4010508@r3-gis.com> Hi, I'v encountered following problem with outputformat png (agg driver): shp2img -m /data/sites/R3-MTB-Public/sito/etc/goldart/mtb.map -l "ropeway" -e 667072.437052 5153904.693426 677867.431220 5164699.687594 -s 1224 1224 -o test-mtb.png -all_debug 1 (i got a FPE) The debugger backtrace gives me: Program received signal SIGFPE, Arithmetic exception. 0x00000000004ba89e in mapserver::line_image_pattern >::pixel (this=0x7fffffffc940, p=0x7fffffffc43c, x=82, y=-757) at renderers/agg/include/agg_renderer_outline_image.h:173 173 m_filter->pixel_high_res(m_buf.rows(), (gdb) bt #0 0x00000000004ba89e in mapserver::line_image_pattern >::pixel (this=0x7fffffffc940, p=0x7fffffffc43c, x=82, y=-757) at renderers/agg/include/agg_renderer_outline_image.h:173 #1 0x00000000004ba8fb in mapserver::renderer_outline_image, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern > >::pixel (this=0x7fffffffc9e0, p=0x7fffffffc43c, x=82, y=-757) at renderers/agg/include/agg_renderer_outline_image.h:860 #2 0x00000000004bafba in mapserver::line_interpolator_image, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern > > >::step_hor (this=0x7fffffffc1c0) at renderers/agg/include/agg_renderer_outline_image.h:668 #3 0x00000000004bb27f in mapserver::renderer_outline_image, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern > >::line3_no_clip (this=0x7fffffffc9e0, lp=..., sx=105681, sy=155778, ex=101946, ey=147898) at renderers/agg/include/agg_renderer_outline_image.h:931 #4 0x00000000004c99f9 in mapserver::renderer_outline_image, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern > >::line3 (this=0x7fffffffc9e0, lp=..., sx=105681, sy=155778, ex=101946, ey=147898) at renderers/agg/include/agg_renderer_outline_image.h:992 #5 0x00000000004cc5b9 in mapserver::rasterizer_outline_aa, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern > >, mapserver::line_coord_sat>::render (this=0x7fffffffc9a0, close_polygon=false) at renderers/agg/include/agg_rasterizer_outline_aa.h:540 #6 0x00000000004cc9b5 in mapserver::rasterizer_outline_aa, mapserv_row_ptr_cache, int> >, mapserver::line_image_pattern > >, mapserver::line_coord_sat>::add_path ( this=0x7fffffffc9a0, vs=..., path_id=0) at renderers/agg/include/agg_rasterizer_outline_aa.h:177 #7 0x00000000004cca3f in AGGMapserverRenderer::renderPathPixmapBGRA (this=0xf74350, line=..., pattern=...) at mapagg.cpp:392 #8 0x00000000004cccea in AGGMapserverRenderer::renderPolylineVectorSymbol >, mapserver::null_markers> > (this=0xf74350, shape=..., symbol=..., tilewidth=0, tileheight=5, color=..., backgroundcolor=...) at mapagg.cpp:370 #9 0x00000000004a9b21 in msDrawLineSymbolAGG(._98 *, ._105 *, ._39 *, ._91 *, double) (symbolset=0x822ae0, image=0x937b30, p=0x7fffffffd310, style=0x87e230, scalefactor=1.3333333333333333) at mapagg.cpp:1723 #10 0x000000000053d573 in msDrawLineSymbol (symbolset=0x822ae0, image=0x937b30, p=0x7fffffffd310, style=0x87e230, scalefactor=1.3333333333333333) at maprendering.c:488 #11 0x0000000000485521 in msDrawShape (map=0x822ab0, layer=0x87c820, shape=0x7fffffffd310, image=0x937b30, style=0, querymapMode=0) at mapdraw.c:1962 #12 0x000000000047fe20 in msDrawVectorLayer (map=0x822ab0, layer=0x87c820, image=0x937b30) at mapdraw.c:1032 #13 0x000000000047f32e in msDrawLayer (map=0x822ab0, layer=0x87c820, image=0x937b30) at mapdraw.c:822 #14 0x000000000047e1e5 in msDrawMap (map=0x822ab0, querymap=0) at mapdraw.c:468 #15 0x0000000000440b32 in main (argc=17, argv=0x7fffffffd848) at shp2img.c:292 When I switch to outputformat jpeg (agg driver) everything is fine. MapServer is 5.6.6 on 64bit CentOS 5.5 Best regards, Daniel -- Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com From thomas.bonfort at gmail.com Mon Mar 21 07:03:18 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 21 Mar 2011 15:03:18 +0100 Subject: [mapserver-users] Floating point exception agg png In-Reply-To: <4D8756DB.4010508@r3-gis.com> References: <4D8756DB.4010508@r3-gis.com> Message-ID: Daniel, any chance you can create a ticket for that with a mapfile and sample data that reproduces it ? the png vs. jpeg should not intervene as at the point the error is occuring the code path has been nearly identical (i.e. no png or jpeg library calls have been made yet). thomas On Mon, Mar 21, 2011 at 14:47, Daniel Degasperi wrote: > Hi, > I'v encountered following problem with outputformat png (agg driver): > > shp2img -m /data/sites/R3-MTB-Public/sito/etc/goldart/mtb.map -l "ropeway" > -e 667072.437052 5153904.693426 677867.431220 5164699.687594 -s 1224 1224 -o > test-mtb.png -all_debug 1 (i got a FPE) > > The debugger backtrace gives me: > > Program received signal SIGFPE, Arithmetic exception. > 0x00000000004ba89e in > mapserver::line_image_pattern >>::pixel (this=0x7fffffffc940, p=0x7fffffffc43c, x=82, y=-757) > ? ?at renderers/agg/include/agg_renderer_outline_image.h:173 > 173 ? ? ? ? ? ? ? ? m_filter->pixel_high_res(m_buf.rows(), > (gdb) bt > #0 ?0x00000000004ba89e in > mapserver::line_image_pattern >>::pixel (this=0x7fffffffc940, p=0x7fffffffc43c, x=82, y=-757) > ? ?at renderers/agg/include/agg_renderer_outline_image.h:173 > #1 ?0x00000000004ba8fb in > mapserver::renderer_outline_image mapserver::order_bgra>, mapserv_row_ptr_cache, int> >, > mapserver::line_image_pattern >> >::pixel (this=0x7fffffffc9e0, p=0x7fffffffc43c, x=82, y=-757) > ? ?at renderers/agg/include/agg_renderer_outline_image.h:860 > #2 ?0x00000000004bafba in > mapserver::line_interpolator_image mapserver::order_bgra>, mapserv_row_ptr_cache, int> >, > mapserver::line_image_pattern >> > >::step_hor (this=0x7fffffffc1c0) > ? ?at renderers/agg/include/agg_renderer_outline_image.h:668 > #3 ?0x00000000004bb27f in > mapserver::renderer_outline_image mapserver::order_bgra>, mapserv_row_ptr_cache, int> >, > mapserver::line_image_pattern >> >::line3_no_clip (this=0x7fffffffc9e0, lp=..., sx=105681, sy=155778, > ex=101946, ey=147898) > ? ?at renderers/agg/include/agg_renderer_outline_image.h:931 > #4 ?0x00000000004c99f9 in > mapserver::renderer_outline_image mapserver::order_bgra>, mapserv_row_ptr_cache, int> >, > mapserver::line_image_pattern >> >::line3 (this=0x7fffffffc9e0, lp=..., sx=105681, sy=155778, ex=101946, > ey=147898) > ? ?at renderers/agg/include/agg_renderer_outline_image.h:992 > #5 ?0x00000000004cc5b9 in > mapserver::rasterizer_outline_aa mapserver::order_bgra>, mapserv_row_ptr_cache, int> >, > mapserver::line_image_pattern >> >, mapserver::line_coord_sat>::render (this=0x7fffffffc9a0, > ? ?close_polygon=false) at > renderers/agg/include/agg_rasterizer_outline_aa.h:540 > #6 ?0x00000000004cc9b5 in > mapserver::rasterizer_outline_aa mapserver::order_bgra>, mapserv_row_ptr_cache, int> >, > mapserver::line_image_pattern >> >, mapserver::line_coord_sat>::add_path ( > ? ?this=0x7fffffffc9a0, vs=..., path_id=0) at > renderers/agg/include/agg_rasterizer_outline_aa.h:177 > #7 ?0x00000000004cca3f in > AGGMapserverRenderer::renderPathPixmapBGRA (this=0xf74350, > line=..., pattern=...) at mapagg.cpp:392 > #8 ?0x00000000004cccea in > AGGMapserverRenderer::renderPolylineVectorSymbol mapserver::conv_stroke 8u, 256u> >, mapserver::null_markers> > (this=0xf74350, shape=..., > symbol=..., tilewidth=0, tileheight=5, color=..., backgroundcolor=...) at > mapagg.cpp:370 > #9 ?0x00000000004a9b21 in msDrawLineSymbolAGG(._98 *, ._105 *, ._39 *, ._91 > *, double) (symbolset=0x822ae0, image=0x937b30, p=0x7fffffffd310, > style=0x87e230, scalefactor=1.3333333333333333) > ? ?at mapagg.cpp:1723 > #10 0x000000000053d573 in msDrawLineSymbol (symbolset=0x822ae0, > image=0x937b30, p=0x7fffffffd310, style=0x87e230, > scalefactor=1.3333333333333333) at maprendering.c:488 > #11 0x0000000000485521 in msDrawShape (map=0x822ab0, layer=0x87c820, > shape=0x7fffffffd310, image=0x937b30, style=0, querymapMode=0) at > mapdraw.c:1962 > #12 0x000000000047fe20 in msDrawVectorLayer (map=0x822ab0, layer=0x87c820, > image=0x937b30) at mapdraw.c:1032 > #13 0x000000000047f32e in msDrawLayer (map=0x822ab0, layer=0x87c820, > image=0x937b30) at mapdraw.c:822 > #14 0x000000000047e1e5 in msDrawMap (map=0x822ab0, querymap=0) at > mapdraw.c:468 > #15 0x0000000000440b32 in main (argc=17, argv=0x7fffffffd848) at > shp2img.c:292 > > When I switch to outputformat jpeg (agg driver) everything is fine. > > MapServer is 5.6.6 on 64bit CentOS 5.5 > > Best regards, > Daniel > > -- > Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From g8a at email.com Mon Mar 21 09:01:03 2011 From: g8a at email.com (aznan) Date: Mon, 21 Mar 2011 09:01:03 -0700 (PDT) Subject: [mapserver-users] Restrict WMS operations Message-ID: <1300723263465-6192759.post@n2.nabble.com> Hi! I'm a new Mapserver user and I'm trying to figure out how to make my WMS server only accept GetCapabilities and GetMap requests. The documentation at http://mapserver.org/ogc/wms_server.html says that GetLegendGraphic requires a LEGEND object in the map file. I've been looking at the examples in the OGC workshop and I tried to remove LEGEND from config.map but GetLegendGraphic still shows up in the capabilities response and a request still returns the blue squiggly line and 'Rivers' image. I don't even know where to begin restricting GetFeatureInfo and the other operations. Please help! /Matti -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Restrict-WMS-operations-tp6192759p6192759.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Mon Mar 21 09:26:17 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 21 Mar 2011 13:26:17 -0300 Subject: [mapserver-users] Restrict WMS operations In-Reply-To: <1300723263465-6192759.post@n2.nabble.com> References: <1300723263465-6192759.post@n2.nabble.com> Message-ID: <4D877C29.9040709@gatewaygeomatics.com> On 11-03-21 1:01 PM, aznan wrote: > Hi! > I'm a new Mapserver user and I'm trying to figure out how to make my WMS > server only accept GetCapabilities and GetMap requests. > > The documentation at http://mapserver.org/ogc/wms_server.html says that > GetLegendGraphic requires a LEGEND object in the map file. I've been looking > at the examples in the OGC workshop and I tried to remove LEGEND from > config.map but GetLegendGraphic still shows up in the capabilities response > and a request still returns the blue squiggly line and 'Rivers' image. I > don't even know where to begin restricting GetFeatureInfo and the other > operations. > > Please help! Hello, Regarding restricting WMS requests, take a look at the functionality that is upcoming in the MapServer 6.0 release: http://mapserver.org/development/rfc/ms-rfc-67.html You should be able to try this on your platform, as MapServer 6.0-beta2 was just released. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From daniel.degasperi at r3-gis.com Mon Mar 21 09:27:42 2011 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Mon, 21 Mar 2011 17:27:42 +0100 Subject: [mapserver-users] Floating point exception agg png In-Reply-To: References: <4D8756DB.4010508@r3-gis.com> Message-ID: <4D877C7E.8060604@r3-gis.com> Ok, ticket created at http://trac.osgeo.org/mapserver/ticket/3760 and necessary files attached. Daniel Am 21/03/2011 15:03, schrieb thomas bonfort: > Daniel, > any chance you can create a ticket for that with a mapfile and sample > data that reproduces it ? > the png vs. jpeg should not intervene as at the point the error is > occuring the code path has been nearly identical (i.e. no png or jpeg > library calls have been made yet). > > thomas > > On Mon, Mar 21, 2011 at 14:47, Daniel Degasperi > wrote: >> Hi, >> I'v encountered following problem with outputformat png (agg driver): >> >> shp2img -m /data/sites/R3-MTB-Public/sito/etc/goldart/mtb.map -l "ropeway" >> -e 667072.437052 5153904.693426 677867.431220 5164699.687594 -s 1224 1224 -o >> test-mtb.png -all_debug 1 (i got a FPE) >> >> The debugger backtrace gives me: >> >> Program received signal SIGFPE, Arithmetic exception. >> 0x00000000004ba89e in >> mapserver::line_image_pattern >>> ::pixel (this=0x7fffffffc940, p=0x7fffffffc43c, x=82, y=-757) >> at renderers/agg/include/agg_renderer_outline_image.h:173 >> 173 m_filter->pixel_high_res(m_buf.rows(), >> (gdb) bt >> #0 0x00000000004ba89e in >> mapserver::line_image_pattern >>> ::pixel (this=0x7fffffffc940, p=0x7fffffffc43c, x=82, y=-757) >> at renderers/agg/include/agg_renderer_outline_image.h:173 >> #1 0x00000000004ba8fb in >> mapserver::renderer_outline_image> mapserver::order_bgra>, mapserv_row_ptr_cache, int> >, >> mapserver::line_image_pattern >>>> ::pixel (this=0x7fffffffc9e0, p=0x7fffffffc43c, x=82, y=-757) >> at renderers/agg/include/agg_renderer_outline_image.h:860 >> #2 0x00000000004bafba in >> mapserver::line_interpolator_image> mapserver::order_bgra>, mapserv_row_ptr_cache, int> >, >> mapserver::line_image_pattern >>>>> ::step_hor (this=0x7fffffffc1c0) >> at renderers/agg/include/agg_renderer_outline_image.h:668 >> #3 0x00000000004bb27f in >> mapserver::renderer_outline_image> mapserver::order_bgra>, mapserv_row_ptr_cache, int> >, >> mapserver::line_image_pattern >>>> ::line3_no_clip (this=0x7fffffffc9e0, lp=..., sx=105681, sy=155778, >> ex=101946, ey=147898) >> at renderers/agg/include/agg_renderer_outline_image.h:931 >> #4 0x00000000004c99f9 in >> mapserver::renderer_outline_image> mapserver::order_bgra>, mapserv_row_ptr_cache, int> >, >> mapserver::line_image_pattern >>>> ::line3 (this=0x7fffffffc9e0, lp=..., sx=105681, sy=155778, ex=101946, >> ey=147898) >> at renderers/agg/include/agg_renderer_outline_image.h:992 >> #5 0x00000000004cc5b9 in >> mapserver::rasterizer_outline_aa> mapserver::order_bgra>, mapserv_row_ptr_cache, int> >, >> mapserver::line_image_pattern >>>> , mapserver::line_coord_sat>::render (this=0x7fffffffc9a0, >> close_polygon=false) at >> renderers/agg/include/agg_rasterizer_outline_aa.h:540 >> #6 0x00000000004cc9b5 in >> mapserver::rasterizer_outline_aa> mapserver::order_bgra>, mapserv_row_ptr_cache, int> >, >> mapserver::line_image_pattern >>>> , mapserver::line_coord_sat>::add_path ( >> this=0x7fffffffc9a0, vs=..., path_id=0) at >> renderers/agg/include/agg_rasterizer_outline_aa.h:177 >> #7 0x00000000004cca3f in >> AGGMapserverRenderer::renderPathPixmapBGRA (this=0xf74350, >> line=..., pattern=...) at mapagg.cpp:392 >> #8 0x00000000004cccea in >> AGGMapserverRenderer::renderPolylineVectorSymbol> mapserver::conv_stroke> 8u, 256u> >, mapserver::null_markers> > (this=0xf74350, shape=..., >> symbol=..., tilewidth=0, tileheight=5, color=..., backgroundcolor=...) at >> mapagg.cpp:370 >> #9 0x00000000004a9b21 in msDrawLineSymbolAGG(._98 *, ._105 *, ._39 *, ._91 >> *, double) (symbolset=0x822ae0, image=0x937b30, p=0x7fffffffd310, >> style=0x87e230, scalefactor=1.3333333333333333) >> at mapagg.cpp:1723 >> #10 0x000000000053d573 in msDrawLineSymbol (symbolset=0x822ae0, >> image=0x937b30, p=0x7fffffffd310, style=0x87e230, >> scalefactor=1.3333333333333333) at maprendering.c:488 >> #11 0x0000000000485521 in msDrawShape (map=0x822ab0, layer=0x87c820, >> shape=0x7fffffffd310, image=0x937b30, style=0, querymapMode=0) at >> mapdraw.c:1962 >> #12 0x000000000047fe20 in msDrawVectorLayer (map=0x822ab0, layer=0x87c820, >> image=0x937b30) at mapdraw.c:1032 >> #13 0x000000000047f32e in msDrawLayer (map=0x822ab0, layer=0x87c820, >> image=0x937b30) at mapdraw.c:822 >> #14 0x000000000047e1e5 in msDrawMap (map=0x822ab0, querymap=0) at >> mapdraw.c:468 >> #15 0x0000000000440b32 in main (argc=17, argv=0x7fffffffd848) at >> shp2img.c:292 >> >> When I switch to outputformat jpeg (agg driver) everything is fine. >> >> MapServer is 5.6.6 on 64bit CentOS 5.5 >> >> Best regards, >> Daniel >> >> -- >> Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> -- Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com From jeff.dege at korterra.com Mon Mar 21 09:27:43 2011 From: jeff.dege at korterra.com (Jeff Dege) Date: Mon, 21 Mar 2011 11:27:43 -0500 Subject: [mapserver-users] Production mapserver Message-ID: What do we need to do to get Mapserver running in a production configuration? There are packages out there to help new users get mapserver up and running in a development/playing-around-in mode, ms4w, etc. But these are designed for ease of installation, not performance on a production server. I have a set of shapefiles, and some mapfiles I've built to display them. I have them running on a dev machine, just fine. So what do I need to do to go into production. I have a dedicated Ubuntu 10.04 box, that will be doing nothing but serving maps through WMS requests, using Mapserver. It currently has both Apache and MapServer installed, using the current apt-get packages. Should I be using Apache? Or should I use Lighttpd? Standard CGI? FastCGI? Some other alternative? (WSGI?) Does Mapserver install on Ubuntu by default to use FastCGI? How can I tell whether MapServer is running under FastCGI? How do I configure it to do so, if it's not already? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Mar 21 09:34:08 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 21 Mar 2011 13:34:08 -0300 Subject: [mapserver-users] Production mapserver In-Reply-To: References: Message-ID: <4D877E00.3000603@gatewaygeomatics.com> On 11-03-21 1:27 PM, Jeff Dege wrote: > > There are packages out there to help new users get mapserver up and > running in a development/playing-around-in mode, ms4w, etc. But these > are designed for ease of installation, not performance on a production > server. Quick comment: MS4W is in fact ready to use in a production environment, and it is definitely used for production purposes by thousands of organizations: take the time to review the steps to enable FastCGI, for example (http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#f-fastcgi). Long-time MS4W users might remember that the MS4W opening page used to state that it was not for production purposes; but that is no longer the case. Thanks. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jeff.dege at korterra.com Mon Mar 21 09:56:49 2011 From: jeff.dege at korterra.com (Jeff Dege) Date: Mon, 21 Mar 2011 11:56:49 -0500 Subject: [mapserver-users] Production mapserver In-Reply-To: <4D877E00.3000603@gatewaygeomatics.com> References: <4D877E00.3000603@gatewaygeomatics.com> Message-ID: Useful to know, but I don't want to let your comment distract from my original question. I listed MS4W only as an example of an easy-to-install MapServer configuration. What I'm actually trying to get working is MapServer on Linux. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Monday, March 21, 2011 11:34 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Production mapserver On 11-03-21 1:27 PM, Jeff Dege wrote: > > There are packages out there to help new users get mapserver up and > running in a development/playing-around-in mode, ms4w, etc. But these > are designed for ease of installation, not performance on a production > server. Quick comment: MS4W is in fact ready to use in a production environment, and it is definitely used for production purposes by thousands of organizations: take the time to review the steps to enable FastCGI, for example (http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#f-fastcgi). Long-time MS4W users might remember that the MS4W opening page used to state that it was not for production purposes; but that is no longer the case. Thanks. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From andy at squeakycode.net Mon Mar 21 10:28:10 2011 From: andy at squeakycode.net (Andy Colson) Date: Mon, 21 Mar 2011 12:28:10 -0500 Subject: [mapserver-users] Production mapserver In-Reply-To: References: Message-ID: <4D878AAA.7070406@squeakycode.net> On 3/21/2011 11:27 AM, Jeff Dege wrote: > What do we need to do to get Mapserver running in a production > configuration? I guess that's up to you. Do you need 100% uptime? Mirrors and backups and redundancy? You'll also need an ISP that lets you host data. Many residential plans forbid it. You'll need a commercial plan. Or are you renting a VSP, or something? Your question is a little vague. Do you mean internet connections? Hardware? Just mapserver? > > There are packages out there to help new users get mapserver up and > running in a development/playing-around-in mode, ms4w, etc. But these > are designed for ease of installation, not performance on a production > server. Do you know the level of performance you'll need? How many concurrent users? Have you put a load on it? Since you said the word "performance", I'd say go for FastCGI. If you need more performance than that, well, that's another ballgame. > > I have a set of shapefiles, and some mapfiles I?ve built to display > them. I have them running on a dev machine, just fine. > > So what do I need to do to go into production. I have a test box, and a live box... and I try to keep them as exact as possible. That way when you make changes, and do load tests, and what not, you know what to expect from the live site. Need to test something? The more identical your live and test boxes are, the more sure you can be about your testing. (Note, however, my live box is running off raid 5, where as my test is just a single HD. CPU's are close. Software wise, they are the same though) > > I have a dedicated Ubuntu 10.04 box, that will be doing nothing but > serving maps through WMS requests, using Mapserver. It currently has > both Apache and MapServer installed, using the current apt-get packages. > > Should I be using Apache? Or should I use Lighttpd? Use the one you are most comfortable with. Speed wise it wont matter. You'll be spending all your time in mapserver code, not apache/lighty code. (unless, of course, you have huge amounts of static files along with the maps... but those should all be marked as cacheable, so still, not gonna make a performance difference) Cant answer anything about Ubuntu, never used it, run Slackware myself. I prefer to build mapserver from source. I'm also using mapscript (with perl), so I build that as well. > > Standard CGI? FastCGI? Some other alternative? (WSGI?) > CGI is slow. FastCGI if you want performance. Never used WSGI. As background: I run on a dual core amd64 3800, 4 green HD's in software raid 5, 6 gig of ram, running Slackware64. I think the box cost me around $400 to build. I get 100K hits a day (about 2 requests a second), and the box sits 75% idle. I have about 350 gig of arial imagery, and 25 gig of shapefiles in PostGIS. It's run on apache/mapscript/mod_perl. -Andy From thomas.bonfort at gmail.com Mon Mar 21 10:33:22 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 21 Mar 2011 18:33:22 +0100 Subject: [mapserver-users] Production mapserver In-Reply-To: <4D878AAA.7070406@squeakycode.net> References: <4D878AAA.7070406@squeakycode.net> Message-ID: On Mon, Mar 21, 2011 at 18:28, Andy Colson wrote: > On 3/21/2011 11:27 AM, Jeff Dege wrote: >> >> What do we need to do to get Mapserver running in a production >> configuration? > > I guess that's up to you. ?Do you need 100% uptime? ?Mirrors and backups and > redundancy? ?You'll also need an ISP that lets you host data. ?Many > residential plans forbid it. ?You'll need a commercial plan. ?Or are you > renting a VSP, or something? ?Your question is a little vague. ?Do you mean > internet connections? ?Hardware? ?Just mapserver? > > >> >> There are packages out there to help new users get mapserver up and >> running in a development/playing-around-in mode, ms4w, etc. But these >> are designed for ease of installation, not performance on a production >> server. > > Do you know the level of performance you'll need? ?How many concurrent > users? ?Have you put a load on it? ?Since you said the word "performance", > I'd say go for FastCGI. ?If you need more performance than that, well, > that's another ballgame. > >> >> I have a set of shapefiles, and some mapfiles I?ve built to display >> them. I have them running on a dev machine, just fine. >> >> So what do I need to do to go into production. > > I have a test box, and a live box... and I try to keep them as exact as > possible. ?That way when you make changes, and do load tests, and what not, > you know what to expect from the live site. ?Need to test something? ?The > more identical your live and test boxes are, the more sure you can be about > your testing. > > (Note, however, my live box is running off raid 5, where as my test is just > a single HD. ?CPU's are close. ?Software wise, they are the same though) > >> >> I have a dedicated Ubuntu 10.04 box, that will be doing nothing but >> serving maps through WMS requests, using Mapserver. It currently has >> both Apache and MapServer installed, using the current apt-get packages. >> >> Should I be using Apache? Or should I use Lighttpd? > > Use the one you are most comfortable with. ?Speed wise it wont matter. > You'll be spending all your time in mapserver code, not apache/lighty code. > ?(unless, of course, you have huge amounts of static files along with the > maps... but those should all be marked as cacheable, so still, not gonna > make a performance difference) Note that mapserver as fastcgi has issues when running on lighty's fastcgi implementation, so until that is fixed I would stick with apache. > > Cant answer anything about Ubuntu, never used it, run Slackware myself. ?I > prefer to build mapserver from source. ?I'm also using mapscript (with > perl), so I build that as well. compiling stuff from source also leaves out all the parts of mapserver that can cause some marginal overhead. for example, if you are only serving shapefiles, you can leave out the gdal/ogr and postgis dependencies > >> >> Standard CGI? FastCGI? Some other alternative? (WSGI?) >> > > CGI is slow. ?FastCGI if you want performance. ?Never used WSGI. > > As background: ?I run on a dual core amd64 3800, 4 green HD's in software > raid 5, 6 gig of ram, running Slackware64. ?I think the box cost me around > $400 to build. ?I get 100K hits a day (about 2 requests a second), and the > box sits 75% idle. > > I have about 350 gig of arial imagery, and 25 gig of shapefiles in PostGIS. > > It's run on apache/mapscript/mod_perl. > > -Andy > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From andy at squeakycode.net Mon Mar 21 10:43:23 2011 From: andy at squeakycode.net (Andy Colson) Date: Mon, 21 Mar 2011 12:43:23 -0500 Subject: [mapserver-users] Production mapserver In-Reply-To: References: <4D878AAA.7070406@squeakycode.net> Message-ID: <4D878E3B.4070908@squeakycode.net> On 3/21/2011 12:33 PM, thomas bonfort wrote: > On Mon, Mar 21, 2011 at 18:28, Andy Colson wrote: >> Cant answer anything about Ubuntu, never used it, run Slackware myself. I >> prefer to build mapserver from source. I'm also using mapscript (with >> perl), so I build that as well. > compiling stuff from source also leaves out all the parts of mapserver > that can cause some marginal overhead. for example, if you are only > serving shapefiles, you can leave out the gdal/ogr and postgis > dependencies > Indeed. When I first started playing with mapserver, I went totally OCD trying to compile in every possible format it would support. Was really kinda fun. (Dont know what hdf5 is, never seen it, never needed it, cant say as I ever will... but I have support for it! Yeah!) Its amazing how many formats that mapserver/gdal/ogr support. (Dude! Its like Pokemon! Gotta get 'em all!) Huh.. I'm gonna need to lay off the crack again. :-) -Andy From michael.smith at usace.army.mil Mon Mar 21 10:52:48 2011 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Mon, 21 Mar 2011 13:52:48 -0400 Subject: [mapserver-users] Production mapserver In-Reply-To: <4D878E3B.4070908@squeakycode.net> Message-ID: In the benchmark testing we did last year, see http://wiki.osgeo.org/wiki/Benchmarking_2010, I tested MapServer with minimal formats (just PostGIS) compiled it vs MapServer with Oracle, PostGIS, GDAL/OGR. There was no difference affect on performance by having a minimal build. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 3/21/11 1:43 PM, "Andy Colson" wrote: > On 3/21/2011 12:33 PM, thomas bonfort wrote: >> On Mon, Mar 21, 2011 at 18:28, Andy Colson wrote: > >>> Cant answer anything about Ubuntu, never used it, run Slackware myself. I >>> prefer to build mapserver from source. I'm also using mapscript (with >>> perl), so I build that as well. >> compiling stuff from source also leaves out all the parts of mapserver >> that can cause some marginal overhead. for example, if you are only >> serving shapefiles, you can leave out the gdal/ogr and postgis >> dependencies >> > > Indeed. When I first started playing with mapserver, I went totally OCD > trying to compile in every possible format it would support. Was really > kinda fun. (Dont know what hdf5 is, never seen it, never needed it, > cant say as I ever will... but I have support for it! Yeah!) > > Its amazing how many formats that mapserver/gdal/ogr support. (Dude! > Its like Pokemon! Gotta get 'em all!) > > Huh.. I'm gonna need to lay off the crack again. :-) > > -Andy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Mon Mar 21 10:57:46 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 21 Mar 2011 13:57:46 -0400 Subject: [mapserver-users] Production mapserver In-Reply-To: References: Message-ID: <4D87919A.6050405@swoodbridge.com> On 3/21/2011 1:52 PM, Smith, Michael ERDC-CRREL-NH wrote: > In the benchmark testing we did last year, see > http://wiki.osgeo.org/wiki/Benchmarking_2010, I tested MapServer with > minimal formats (just PostGIS) compiled it vs MapServer with Oracle, > PostGIS, GDAL/OGR. There was no difference affect on performance by having a > minimal build. Mike, While this might be true, having a minimal built does potentially require less memory for the processes running which more available for file cache performance that might have an impact in a production environment, especially if you are trying to push a lot of map draws through the system. Another trick you can do on Linux, is to disable the swap partition if you do not need it, and if you are just serving mapserver requests you do not. This will improve performance by 1-2% on the system, because Linux is what is called a swappy OS, ie it has a how propensity to swap stuff to disk in anticipation that it might need the memory for something else. -Steve W From jeff.dege at korterra.com Mon Mar 21 12:30:43 2011 From: jeff.dege at korterra.com (Jeff Dege) Date: Mon, 21 Mar 2011 14:30:43 -0500 Subject: [mapserver-users] Production mapserver In-Reply-To: References: <4D878AAA.7070406@squeakycode.net> Message-ID: So, from what I'm hearing Apache vs. Lighttpd isn't going to make a significant difference. Cgi vs. FastCGI very definitely will. Great. So how do I get FastCGI working? There are docs at: http://mapserver.org/optimization/fastcgi.html They are only getting me part of the way there. 1. I'm seeing two packages, that are available for Apache, mod_fastcgi and mod_fcgi. Are these both needed? Only one needed? Are they replacements, alternatives, or entirely unrelated to each other? 2. In the Configuration section of the above doc, it says to modify http.conf to load the module, and to add a handler. The Ubuntu packages placed fastcgi.conf and fastcgi.load in /etc/apache2/mods-available. I expect that I simply need to create a link to these in /etcs/apache2/mods-enabled, the way the others are. 3. The Configuration section also says to add a FastCgiConfig command. Where should this be? I see nothing in that configuration that indicates that it's the mapserv executable I want to run via fastcgi. From thomas.bonfort at gmail.com Mon Mar 21 13:12:51 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 21 Mar 2011 21:12:51 +0100 Subject: [mapserver-users] Production mapserver In-Reply-To: References: <4D878AAA.7070406@squeakycode.net> Message-ID: Jeff, all the documentation is online, the folks producing the open source software you are intending to use have gone to some trouble to produce it. If that isn't sufficient, I highly doubt that the answers you'll get from a mailing list where people don't know your requirements will get you to what you are expecting. I would suggest you either invest some time in learning yourself how to make these projects work together, or contract someone from those communities to do it for you. Expecting folks to do the work for you for free on community mailing lists is, imho, a bit inappropriate. regards, thomas On Mon, Mar 21, 2011 at 20:30, Jeff Dege wrote: > So, from what I'm hearing Apache vs. Lighttpd isn't going to make a significant difference. > > Cgi vs. FastCGI very definitely will. > > Great. ?So how do I get FastCGI working? > > There are docs at: http://mapserver.org/optimization/fastcgi.html > > They are only getting me part of the way there. > > 1. I'm seeing two packages, that are available for Apache, mod_fastcgi and mod_fcgi. ?Are these both needed? ?Only one needed? ?Are they replacements, alternatives, or entirely unrelated to each other? > > 2. In the Configuration section of the above doc, it says to modify http.conf to load the module, and to add a handler. ?The Ubuntu packages placed fastcgi.conf and fastcgi.load in /etc/apache2/mods-available. ?I expect that I simply need to create a link to these in /etcs/apache2/mods-enabled, the way the others are. > > 3. The Configuration section also says to add a FastCgiConfig command. ?Where should this be? > > I see nothing in that configuration that indicates that it's the mapserv executable I want to run via fastcgi. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Jukka.Rahkonen at mmmtike.fi Mon Mar 21 13:22:26 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 21 Mar 2011 22:22:26 +0200 Subject: [mapserver-users] Production mapserver References: <4D878AAA.7070406@squeakycode.net> Message-ID: Hi, There can be much more important things to optimise before changing from CGI to FastCGI. I mean optimising the data. Take care of the indexes. Limit the numbers of features to be rendered, drawing more than a couple of thousands is usually unnecassary. Use simplified vector layers when you do not need all the zillions of vertices in the original top quality data, and so on. You said you are going to use shapefiles and some imagery. CGI can take something like 50 milliseconds more time for opening those than FastCGI. It can be even 100 milliseconds, but as long as the limits of CGI are not met your users can hardly feel the difference. Naturally the situation changes when you reach the limits of throughput from CGI. In our environment CGI can do 10 requests per second with aerial imagery while FastCGI takes 20 per second. However, we have seen that with multicore processors CGI is extremely reliable and till the 10 images per second the user experiance is good. When feeding some 50 million tiles into cache we actually switched from FastCGI back to CGI because FastCGI failed every now and then (once per 50000 or 100000 GetMaps). -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Jeff Dege L?hetetty: ma 21.3.2011 21:30 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: RE: [mapserver-users] Production mapserver So, from what I'm hearing Apache vs. Lighttpd isn't going to make a significant difference. Cgi vs. FastCGI very definitely will. Great. So how do I get FastCGI working? There are docs at: http://mapserver.org/optimization/fastcgi.html They are only getting me part of the way there. 1. I'm seeing two packages, that are available for Apache, mod_fastcgi and mod_fcgi. Are these both needed? Only one needed? Are they replacements, alternatives, or entirely unrelated to each other? 2. In the Configuration section of the above doc, it says to modify http.conf to load the module, and to add a handler. The Ubuntu packages placed fastcgi.conf and fastcgi.load in /etc/apache2/mods-available. I expect that I simply need to create a link to these in /etcs/apache2/mods-enabled, the way the others are. 3. The Configuration section also says to add a FastCgiConfig command. Where should this be? I see nothing in that configuration that indicates that it's the mapserv executable I want to run via fastcgi. From michael.smith at usace.army.mil Mon Mar 21 13:32:34 2011 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Mon, 21 Mar 2011 16:32:34 -0400 Subject: [mapserver-users] Production mapserver In-Reply-To: Message-ID: Jeff, For the WMS Benchmarking effort, we used the FastCGI library from http://www.fastcgi.com. It is the mapserv executable that you will call via fastcgi. We set up a separate fcgi-bin path for mapserver with fastcgi. That is not actually required. The URL here would be http://server/fcgi-bin/mapserv?map=XXX Our apache setup looked like this ScriptAlias /fcgi-bin/ "/opt/mapserver/fcgi-bin/" SetHandler fcgid-script Options +ExecCGI +FollowSymLinks # Customize the next two directives for your requirements. Order allow,deny Allow from all FcgidInitialEnv LD_LIBRARY_PATH /usr/lib64:/usr/lib:/usr/local/lib:/opt/mapserver/lib:/oracle/instantclient_ 11_2 FcgidMinProcessesPerClass 0 FcgidIdleScanInterval 1 FcgidProcessLifeTime 10 FcgidIOTimeout 100 FcgidMinProcessesPerClass 0 Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 3/21/11 3:30 PM, "Jeff Dege" wrote: > So, from what I'm hearing Apache vs. Lighttpd isn't going to make a > significant difference. > > Cgi vs. FastCGI very definitely will. > > Great. So how do I get FastCGI working? > > There are docs at: http://mapserver.org/optimization/fastcgi.html > > They are only getting me part of the way there. > > 1. I'm seeing two packages, that are available for Apache, mod_fastcgi and > mod_fcgi. Are these both needed? Only one needed? Are they replacements, > alternatives, or entirely unrelated to each other? > > 2. In the Configuration section of the above doc, it says to modify http.conf > to load the module, and to add a handler. The Ubuntu packages placed > fastcgi.conf and fastcgi.load in /etc/apache2/mods-available. I expect that I > simply need to create a link to these in /etcs/apache2/mods-enabled, the way > the others are. > > 3. The Configuration section also says to add a FastCgiConfig command. Where > should this be? > > I see nothing in that configuration that indicates that it's the mapserv > executable I want to run via fastcgi. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From taerwin at gmail.com Mon Mar 21 18:37:25 2011 From: taerwin at gmail.com (Tim Erwin) Date: Tue, 22 Mar 2011 12:37:25 +1100 Subject: [mapserver-users] WMS help with dataline issues Message-ID: I am using raster data from naturalearthdata which is in EPSG:4326 [-180 -90 180 90]. But when requesting data via openlayers with the map centred at 180E it only draws up to 180E. Below is one of the requests from openlayers: http://localhost/mapserv.cgi?map=naturalearth.map&LAYERS=NE1&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=165,-30,215,20&WIDTH=256&HEIGHT=256 How do I get mapserver to render past 180E (or other options)? Regards, Tim ######MAPFILE######## MAP NAME "NaturalEarth" IMAGETYPE PNG24 SIZE 800 600 SHAPEPATH "./data" EXTENT -180 -90 180 90 DEBUG 3 WEB METADATA "wms_title" "NaturalEarth WMS" "wms_srs" "EPSG:4326" END END PROJECTION "init=epsg:4326" END # # Start of layer definitions # LAYER NAME "NE1" DATA "NE1_HR_LC_SR_W_DR.tif" TYPE RASTER STATUS ON PROJECTION "init=epsg:4326" END END END #mapfile -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at pcreso.com Mon Mar 21 22:25:09 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Mon, 21 Mar 2011 22:25:09 -0700 (PDT) Subject: [mapserver-users] WMS help with dataline issues In-Reply-To: Message-ID: <768541.27290.qm@web33201.mail.mud.yahoo.com> A few possible approaches... for both vector & raster data Try this at the clent side: http://openlayers.org/dev/examples/wrapDateLine.html I have also (in PostGIS) replicated vector data in the western hemisphere so the global dataset extends from -180 to 360. Also, depending on whether or not you have polygons/linestrings crossing 180, I've used the Postgis shift_longitude() function to resolve this serverside. Also, take your +-180 raster map, with a tool like imagemagick, chop it in half at 180, & create an eastern hemisphere with an extent of 0-180, and two western hemispheres, one with an extent from -180-0 & one from 180-360. In your map file set all three to status default so they are always on, or make them members of the same group so they can be de/selected as a single layer. There are a few hacks around this, but not many definitive answers. --- On Tue, 3/22/11, Tim Erwin wrote: From: Tim Erwin Subject: [mapserver-users] WMS help with dataline issues To: mapserver-users at lists.osgeo.org Date: Tuesday, March 22, 2011, 2:37 PM I am using raster data from naturalearthdata which is in EPSG:4326 [-180 -90 180 90]. But when requesting data via openlayers with the map centred at 180E it only draws up to 180E. Below is one of the requests from openlayers: http://localhost/mapserv.cgi?map=naturalearth.map&LAYERS=NE1&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=165,-30,215,20&WIDTH=256&HEIGHT=256 How do I get mapserver to render past 180E (or other options)? Regards, Tim ######MAPFILE######## MAP ??? NAME "NaturalEarth" ??? IMAGETYPE????? PNG24 ??? SIZE?????????? 800 600 ??? SHAPEPATH????? "./data" ??? EXTENT -180 -90 180 90 ??? DEBUG 3 ??? WEB ??????? METADATA ??????????? "wms_title"????????????????? "NaturalEarth WMS" ??????????? "wms_srs"?????????????????? "EPSG:4326" ??????? END ??? END ??? PROJECTION ?????? "init=epsg:4326" ??? END ??? # ??? # Start of layer definitions ??? # ??? LAYER ??????? NAME "NE1" ??????? DATA "NE1_HR_LC_SR_W_DR.tif" ??????? TYPE RASTER ??????? STATUS ON ??????? PROJECTION ?????????? "init=epsg:4326" ??????? END ??? END END #mapfile -----Inline Attachment Follows----- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From g8a at email.com Tue Mar 22 06:49:30 2011 From: g8a at email.com (aznan) Date: Tue, 22 Mar 2011 06:49:30 -0700 (PDT) Subject: [mapserver-users] Re: Restrict WMS operations In-Reply-To: <4D877C29.9040709@gatewaygeomatics.com> References: <1300723263465-6192759.post@n2.nabble.com> <4D877C29.9040709@gatewaygeomatics.com> Message-ID: <8CDB69EE67C4A75-2178-5569@web-mmc-d05.sysops.aol.com> That's exactly what I was looking for. Thanks! /Matti -----Original Message----- From: Jeff McKenna [via OSGeo.org] To: aznan Sent: Mon, Mar 21, 2011 5:26 pm Subject: Re: Restrict WMS operations On 11-03-21 1:01 PM, aznan wrote: > Hi! > I'm a new Mapserver user and I'm trying to figure out how to make my WMS > server only accept GetCapabilities and GetMap requests. > > The documentation at http://mapserver.org/ogc/wms_server.html says that > GetLegendGraphic requires a LEGEND object in the map file. I've been looking > at the examples in the OGC workshop and I tried to remove LEGEND from > config.map but GetLegendGraphic still shows up in the capabilities response > and a request still returns the blue squiggly line and 'Rivers' image. I > don't even know where to begin restricting GetFeatureInfo and the other > operations. > > Please help! Hello, Regarding restricting WMS requests, take a look at the functionality that is upcoming in the MapServer 6.0 release: http://mapserver.org/development/rfc/ms-rfc-67.html You should be able to try this on your platform, as MapServer 6.0-beta2 was just released. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users If you reply to this email, your message will be added to the discussion below: http://osgeo-org.1803224.n2.nabble.com/Restrict-WMS-operations-tp6192759p6192878.html To unsubscribe from Restrict WMS operations, click here. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Restrict-WMS-operations-tp6192759p6196343.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bhudspeth at edac.unm.edu Tue Mar 22 13:19:03 2011 From: bhudspeth at edac.unm.edu (William Hudspeth) Date: Tue, 22 Mar 2011 14:19:03 -0600 Subject: [mapserver-users] Projection issues with cascading WMS requests Message-ID: <1300825143.1521.5.camel@wilbur-desktop> Hello, I am trying to cascade a NASA dataset into my local WMS server. Requests to the NASA dataset, as in the example below, require an CRS designation of &CRS=CRS:84 http://neowms.sci.gsfc.nasa.gov/wms/wms?version=1.3.0&service=WMS&request=GetMap&CRS=CRS:84&FORMAT=image/jpeg&STYLES=&BBox=-180.000,-90.000,180.000,90.000&Width=600&Height=300&Layers=MOD13A2_E_NDVI&TIME=2000-04-07 If I try to access the cascaded layer with the following WMS request: http://edacwms.unm.edu/cgi-bin/mapfiles/epht_environment/epht_enviro_wms?WMTVER=1.1.1&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/jpeg&STYLES=&SRS=EPSG:4326&BBOX=-90.0,-180.0,90,180.0&Width=600&Height=300&Layers=MODIS_16d_ndvi&TIME=2000-04-07 (also tried changing the order of BBOX params to --- &BBOX=-180.0,-90.0,180.0,90.0) I get an error: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. My layer is defined as: LAYER NAME 'MODIS_16d_ndvi' TYPE RASTER STATUS ON DEBUG OFF DUMP TRUE #TRANSPARENCY 50 #FILTER "" METADATA "ows_keywordlist" 'Terra/MODIS, Vegetation Index [NDVI],16 day ' #wms_keywordlist (Keywordlist) "ows_description" "Vegetation Index [NDVI] (16 day - Terra/MODIS)" "ows_name" "Vegetation Index [NDVI] (16 day - Terra/MODIS)" "ows_label" "Terra/MODIS 16 day NDVI" "ows_srs" "CRS:84" "ows_extent" "-180 -90 180 90" #[minx][miny][maxx][maxy] "ows_formats" "GEOTIFF" "ows_nativeformat" "8-bit GeoTIF" "ows_timeitem" "timezone" "wms_abstract" 'Vegetation Index [NDVI] (16 day - Terra/MODIS)' #wms_abstract(Abstract) "wms_opaque" '0' #wms_opaque(layer) "wms_title" "Vegetation Index [NDVI] (16 day - Terra/MODIS)" "ows_timeformat" "YYYY-MM-DD" "ows_timeextent" "2000-02-18/2011-02-02" "ows_timeitem" "timezone" "ows_timedefault" "2011-01-01" "wcs_resolution" "0:6 0:6" "wcs_bandcount" "1" #"wcs_size" "2700 319" layer_name "MODIS_16d_ndvi" END #METADATA PROJECTION "init=epsg:4326" #WGS84 Decimal Degrees END #PROJECTION END #LAYER Any help appreciated on how to get around the projection issues... Thanks, Bill From taerwin at gmail.com Tue Mar 22 16:35:22 2011 From: taerwin at gmail.com (Tim Erwin) Date: Wed, 23 Mar 2011 10:35:22 +1100 Subject: [mapserver-users] WMS help with dataline issues In-Reply-To: <768541.27290.qm@web33201.mail.mud.yahoo.com> References: <768541.27290.qm@web33201.mail.mud.yahoo.com> Message-ID: > > > Also, take your +-180 raster map, with a tool like imagemagick, chop it in > half at 180, & create an eastern hemisphere with an extent of 0-180, and two > western hemispheres, one with an extent from -180-0 & one from 180-360. In > your map file set all three to status default so they are always on, or make > them members of the same group so they can be de/selected as a single layer. > Thanks for the tip, I created a new raster from -180 to 360 using the gdal tools gdalwarp and gdal_merge.py Regards, Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: From toby.rahilly at gmail.com Wed Mar 23 01:53:07 2011 From: toby.rahilly at gmail.com (Toby Rahilly) Date: Wed, 23 Mar 2011 16:53:07 +0800 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! (OpenGL) Message-ID: Hi Andy, Thomas, Yes OpenGL requires a good video card to be worth while. A poor quality video card will not only result in bad performance, but low quality renderings. That said, it shouldn't be crashing, and I'll take a look at the dependency on X. Cheers, Toby On Fri, Mar 11, 2011 at 7:20 PM, thomas bonfort wrote: > Andy, > yes a (beefy) video card is needed or at least wanted, as you want to > offset the calculations to the GPU. If one isn't present, you're going > to fall back to a software opengl implementation which will be orders > of magnitude slower than what AGG is going to take. > > cc-ing Toby if he wants to comment further on this. > > regards, > thomas > > On Fri, Mar 11, 2011 at 03:02, Andy Colson wrote: >> On 03/10/2011 07:16 PM, Andy Colson wrote: >>> >>> On 03/09/2011 08:47 PM, Daniel Morissette wrote: >>>> >>>> The MapServer Team is pleased to announce the release of MapServer >>>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. >>>> >>> >>> I cannot seem to get opengl to work. >>> >>> a stacktrace of shp2img: >>> >>> Program received signal SIGSEGV, Segmentation fault. >>> 0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1 >>> (gdb) backtrace >>> #0 0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1 >>> #1 0x000000000047667f in OglRenderer::OglRenderer(unsigned int, unsigned >>> int, colorObj*) () >>> #2 0x0000000000474988 in msImageCreateOgl(int, int, outputFormatObj*, >>> colorObj*) () >>> #3 0x000000000044cd26 in msPrepareImage () >>> #4 0x000000000044ce75 in msDrawMap () >>> #5 0x0000000000415067 in main () >>> (gdb) >>> >>> >>> >>> MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >>> SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE >>> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR >>> INPUT=GDAL INPUT=SHAPEFILE >>> >>> I dont need special video card and/or drivers, do I? And I'm not running >>> X. Dont need to, do I? >>> >>> -Andy >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> To reply to myself, after some googling, it looks like yes, X is needed. >> >> Which kinda sucks. ?This is a webserver, it runs apache and postgresql. ?In >> a rack someplace. ?Doesn't even have a monitor attached. ?If I ever need to >> do something I ssh in. >> >> Its also has a crappy video card. ?Cuz its a server. ?Never thought I'd need >> good video. >> >> So here is my delima: do I buy a $80 video card, and run X, so I can get >> hardware accelerated maps? ?Is it worth it? ?Is it that much faster? >> >> How many concurrent maps can be drawn at once? ?If 10 people hit my website >> can all 10 images be rendered at once? ?Or will one run and the others error >> out? ?Is there an upper limit for the number of concurrent renderings? >> >> Any benchmarks? >> >> -Andy >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From baas at speerit.nl Wed Mar 23 03:33:21 2011 From: baas at speerit.nl (Jelmer Baas) Date: Wed, 23 Mar 2011 10:33:21 +0000 Subject: [mapserver-users] Pyhton mapscript and "styleitem auto" Message-ID: Hi all, I've managed to build my first Python project and use mapscript to open tab files and render an image. The styling still remains, though. Since I use OGR to open MapInfo TAB files, I'd like to use mapscript equivalent of styleitem "auto", if possible. Can someone please point me in the right direction? Regards, Jelmer Baas From jmckenna at gatewaygeomatics.com Wed Mar 23 05:19:32 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 23 Mar 2011 09:19:32 -0300 Subject: [mapserver-users] Pyhton mapscript and "styleitem auto" In-Reply-To: References: Message-ID: <4D89E554.6040205@gatewaygeomatics.com> On 11-03-23 7:33 AM, Jelmer Baas wrote: > Hi all, > > I've managed to build my first Python project and use mapscript to open tab files and render an image. > > The styling still remains, though. Since I use OGR to open MapInfo TAB files, I'd like to use mapscript equivalent of styleitem "auto", if possible. Can someone please point me in the right direction? > For the record, I just checked and the old demos of STYLEITEM AUTO with TAB files are still working, and their mapfiles are available: http://demo.mapserver.org/ -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From olt at omniscale.de Wed Mar 23 06:07:03 2011 From: olt at omniscale.de (Oliver Tonnhofer) Date: Wed, 23 Mar 2011 14:07:03 +0100 Subject: [mapserver-users] New documentation for labeling in tiled services Message-ID: <861A6D19-356E-4C41-8FF5-2B6BAC70B30E@omniscale.de> Hi there, we took the time to write about labeling problems in tiled services and how to work around them. It is now part of the MapProxy documentation and contains a section about MapServer configuration. http://mapproxy.org/docs/nightly/labeling.html We hope this will be helpful. Please let me know if you have any feedback. Regards, Oliver PS: The next release of MapProxy will directly support MapServer (without WMS). -- Oliver Tonnhofer | Omniscale GmbH & Co KG | http://omniscale.de http://mapproxy.org | https://bitbucket.org/olt From jmckenna at gatewaygeomatics.com Wed Mar 23 06:47:39 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 23 Mar 2011 10:47:39 -0300 Subject: [mapserver-users] New documentation for labeling in tiled services In-Reply-To: <861A6D19-356E-4C41-8FF5-2B6BAC70B30E@omniscale.de> References: <861A6D19-356E-4C41-8FF5-2B6BAC70B30E@omniscale.de> Message-ID: <4D89F9FB.2050308@gatewaygeomatics.com> On 11-03-23 10:07 AM, Oliver Tonnhofer wrote: > Hi there, > > we took the time to write about labeling problems in tiled services and how to work around them. It is now part of the MapProxy documentation and contains a section about MapServer configuration. > > http://mapproxy.org/docs/nightly/labeling.html > > We hope this will be helpful. Please let me know if you have any feedback. > > Regards, > Oliver > > PS: The next release of MapProxy will directly support MapServer (without WMS). > Beautiful document Olivier!! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From mfortesbesada at gmail.com Wed Mar 23 07:06:13 2011 From: mfortesbesada at gmail.com (manuel_fortes) Date: Wed, 23 Mar 2011 07:06:13 -0700 (PDT) Subject: [mapserver-users] php as template of Mapserver layer Message-ID: <1300889172999-6200363.post@n2.nabble.com> Hi, Is it possible to use a php file as template in a Mapserver layer? Thanks in advance, Manuel -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/php-as-template-of-Mapserver-layer-tp6200363p6200363.html Sent from the Mapserver - User mailing list archive at Nabble.com. From baas at speerit.nl Wed Mar 23 07:17:26 2011 From: baas at speerit.nl (Jelmer Baas) Date: Wed, 23 Mar 2011 14:17:26 +0000 Subject: [mapserver-users] Pyhton mapscript and "styleitem auto" In-Reply-To: <4D89E554.6040205@gatewaygeomatics.com> References: <4D89E554.6040205@gatewaygeomatics.com> Message-ID: Jeff, The URL you've given describes the usage of styleitem auto in a map file; I need the (Python) MapScript version of that ... Thanks, -- Jelmer > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > Sent: woensdag 23 maart 2011 13:20 > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Pyhton mapscript and "styleitem auto" > > On 11-03-23 7:33 AM, Jelmer Baas wrote: > > Hi all, > > > > I've managed to build my first Python project and use mapscript to open > tab files and render an image. > > > > The styling still remains, though. Since I use OGR to open MapInfo TAB files, > I'd like to use mapscript equivalent of styleitem "auto", if possible. Can > someone please point me in the right direction? > > > > For the record, I just checked and the old demos of STYLEITEM AUTO with > TAB files are still working, and their mapfiles are available: > http://demo.mapserver.org/ > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Wed Mar 23 11:05:19 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 23 Mar 2011 19:05:19 +0100 Subject: [mapserver-users] Pyhton mapscript and "styleitem auto" In-Reply-To: References: Message-ID: Hi, If you set the styleitem property of the layerObj to the string 'AUTO' that should be equivalent to the same setting in the mapfile. Best regards, Tamas 2011/3/23 Jelmer Baas > Hi all, > > I've managed to build my first Python project and use mapscript to open tab > files and render an image. > > The styling still remains, though. Since I use OGR to open MapInfo TAB > files, I'd like to use mapscript equivalent of styleitem "auto", if > possible. Can someone please point me in the right direction? > > Regards, > Jelmer Baas > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hildebrand at afsc.ca Wed Mar 23 13:37:33 2011 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Wed, 23 Mar 2011 14:37:33 -0600 Subject: [mapserver-users] WCS In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF690D7@lacex1.afsc.ads> References: <1296142978.2205.16.camel@tommaso-laptop><4D4193AE.4010004@ulb.ac.be>, <1296150918.2246.6.camel@tommaso-laptop>, <1296495379.29349.12.camel@tommaso-laptop> <9188AB5935664040805E01E348A2B81D1BF690D7@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF69135@lacex1.afsc.ads> I'm not sure if anyone remembers this post from a while ago or not but I discovered a solution. I am running MapServer 5.3-dev and testing WCS 1.0.0. I discovered that the RESPONSE_CRS parameter must be the same as the CRS parameter (or, more simply, not be used at all). If they are different an error is generated with respect to the bounding box of the request being outside the bounding box of the coverage. It doesn't seem to matter whether or not the coordinate system of the request is the same as the coordinate system of the source. The coordinate system of the response will be the same as the coordinate system of the request. The issue here is that the RESPONSE_CRS parameter does not seem to have been implemented correctly and, considering that the parameter is optional, perhaps it's not a big issue. Just something the user needs to be aware of. =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Hildebrand Sent: Tuesday, February 01, 2011 4:46 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WCS I am trying to develop a WCS layer (1.0.0) and I can successfully issue the GetCapabilities and DescribeCoverage requests. However, when I issue a GetCoverage request I get a bounding box error due to bad coordinates. The layer is also set up as a WMS layer (1.1.1) and a GetMap request works fine. The metadata ows_srs and ows_resolution parameters are being used in the map file and these work fine for WMS requests. Should I be using version 1.1.0? Any ideas? =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Wed Mar 23 14:45:22 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 23 Mar 2011 17:45:22 -0400 Subject: [mapserver-users] MapServer 6.0.0-beta3 release Message-ID: <4D8A69F2.9050904@mapgears.com> The MapServer Team is pleased to announce the release of MapServer 6.0.0-beta3. This is the latest beta on our way to a final 6.0 release. We realize that it comes only 5 days after beta2, but it also contains several important fixes and we encourage you to test it and continue to provide feedback. The 6.0 release introduces important changes in key components of the MapServer core (rendering, query and expressions), and for this reason we count on you, MapServer power users, to help test the release in your respective environments and provide feedback (through the users list or Trac tickets). This is the third of four planned beta releases and if all goes well a final release should occur around the end of April. The full release plan which also includes the list of new features and changes in this release is available at: http://mapserver.org/trunk/development/release/release-plan-6.0.html The list of fixes since beta1 is attached at the end of this message. For a complete list see the HISTORY.TXT file at: http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta3/mapserver/HISTORY.TXT We have started working on a 5.6 -> 6.0 migration guide. This document contains important notes on backwards incompatibilities or other changes required when upgrading to 6.0. It is not complete yet but we strongly recommend that you review the latest version online at: http://mapserver.org/trunk/MIGRATION_GUIDE.html The source for this release can be downloaded at: http://mapserver.org/download.html or http://download.osgeo.org/mapserver/mapserver-6.0.0-beta3.tar.gz The binary distributions listed in the download page should be updated with binaries for the new beta release in the next day or so. Once again we need your help to ensure a high quality product, so please help out by testing your applications with this new code base. Thanks! - The MapServer Team Version 6.0.0-beta3 (2011-03-23) -------------------------------- - apply min/max size/width style values to polygon spacing (vaguely related to #3132) - assure that a created tile has a non-zero width and height (#3370) - use png_sig_cmp instead of png_check_sig (#3762) - Rendering: scale style OFFSET and GAP the same way we scale other style attributes. Beforehand, we scaled them proportionaly to the computed width. - KML: fix rounding problem for point feautres (#3767) - KML: update code to reflect output changes. Fix true type symbols. (#3766) - SLD: Text Symbolizer now uses the new expression syntax (#3757) - WFS: correct bbox values for GetFeature with featureid request (#3761) - Mapscript Seg Fault on mapObj->getMetaData (#3738) - Correct double free in msCleanup(). - Initialize default formats in WCS. - Fix csharp Makefile.in (#3758) - Allow run-time subs in class->text (makes sense if you allow it in class->expression). - Fix build problem when --enable-cgi-cl-debug-args is enabled (#2853) From gcpp.kalxas at gmail.com Wed Mar 23 15:48:06 2011 From: gcpp.kalxas at gmail.com (Angelos Tzotsos) Date: Thu, 24 Mar 2011 00:48:06 +0200 Subject: [mapserver-users] MapServer 6.0.0-beta3 release In-Reply-To: <4D8A69F2.9050904@mapgears.com> References: <4D8A69F2.9050904@mapgears.com> Message-ID: <4D8A78A6.8060200@gmail.com> Hi all, Packages of beta 3 for openSUSE are up: http://software.opensuse.org/search?q=mapserver&baseproject=openSUSE%3A11.4&lang=en&include_home=true&exclude_debug=true Regards, Angelos On 03/23/2011 11:45 PM, Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta3. This is the latest beta on our way to a final 6.0 > release. We realize that it comes only 5 days after beta2, but it also > contains several important fixes and we encourage you to test it and > continue to provide feedback. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in > your respective environments and provide feedback (through the users > list or Trac tickets). > > This is the third of four planned beta releases and if all goes well a > final release should occur around the end of April. The full release > plan which also includes the list of new features and changes in this > release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since beta1 is attached at the end of this message. > For a complete list see the HISTORY.TXT file at: > > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta3/mapserver/HISTORY.TXT > > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other > changes required when upgrading to 6.0. It is not complete yet but we > strongly recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta3.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so > please help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > Version 6.0.0-beta3 (2011-03-23) > -------------------------------- > > - apply min/max size/width style values to polygon spacing (vaguely > related > to #3132) > > - assure that a created tile has a non-zero width and height (#3370) > > - use png_sig_cmp instead of png_check_sig (#3762) > > - Rendering: scale style OFFSET and GAP the same way we scale other style > attributes. Beforehand, we scaled them proportionaly to the computed > width. > > - KML: fix rounding problem for point feautres (#3767) > > - KML: update code to reflect output changes. Fix true type symbols. > (#3766) > > - SLD: Text Symbolizer now uses the new expression syntax (#3757) > > - WFS: correct bbox values for GetFeature with featureid request (#3761) > > - Mapscript Seg Fault on mapObj->getMetaData (#3738) > > - Correct double free in msCleanup(). > > - Initialize default formats in WCS. > > - Fix csharp Makefile.in (#3758) > > - Allow run-time subs in class->text (makes sense if you allow it in > class->expression). > > - Fix build problem when --enable-cgi-cl-debug-args is enabled (#2853) > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Angelos Tzotsos Remote Sensing Laboratory National Technical University of Athens http://users.ntua.gr/tzotsos From peter.hopfgartner at r3-gis.com Thu Mar 24 01:05:14 2011 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Thu, 24 Mar 2011 09:05:14 +0100 (CET) Subject: [mapserver-users] MapServer 6.0.0-beta3 release Message-ID: <20110324080514.5EE98167821F@mail.r3-gis.com> Packages for RHEL/CentOS/Scientific Linux 5 and as src.rpm: http://www.r3-gis.com/upload/mapserver-6.0.0beta3-1.0.el5.src.rpm http://www.r3-gis.com/upload/mapserver-6.0.0beta3-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/php-mapserver-6.0.0beta3-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/php-mapserver-proj-6.0.0beta3-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-perl-6.0.0beta3-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-python-6.0.0beta3-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-java-6.0.0beta3-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-debuginfo-6.0.0beta3-1.0.el5.x86_64.rpm These packages depend on http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS and on the php53* packages, which might be found in http://dev.centos.org/centos/5/testing/x86_64/RPMS/php53/ , until CentOS 5.6 is out. Peter R3 GIS Srl - GmbH http://www.r3-gis.com --------Daniel Morissette wrote-------- Subject: [mapserver-users] MapServer 6.0.0-beta3 release Date: 23.03.2011 22:45 >The MapServer Team is pleased to announce the release of MapServer >6.0.0-beta3. This is the latest beta on our way to a final 6.0 release. >We realize that it comes only 5 days after beta2, but it also contains >several important fixes and we encourage you to test it and continue to >provide feedback. > >The 6.0 release introduces important changes in key components of the >MapServer core (rendering, query and expressions), and for this reason >we count on you, MapServer power users, to help test the release in your >respective environments and provide feedback (through the users list or >Trac tickets). > >This is the third of four planned beta releases and if all goes well a >final release should occur around the end of April. The full release >plan which also includes the list of new features and changes in this >release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > >The list of fixes since beta1 is attached at the end of this message. >For a complete list see the HISTORY.TXT file at: > > >http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta3/mapserver/HISTORY.TXT > >We have started working on a 5.6 -> 6.0 migration guide. This document >contains important notes on backwards incompatibilities or other changes >required when upgrading to 6.0. It is not complete yet but we strongly >recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > >The source for this release can be downloaded at: > > http://mapserver.org/download.html >or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta3.tar.gz > >The binary distributions listed in the download page should be updated >with binaries for the new beta release in the next day or so. > >Once again we need your help to ensure a high quality product, so please >help out by testing your applications with this new code base. > >Thanks! - The MapServer Team > > >Version 6.0.0-beta3 (2011-03-23) >-------------------------------- > >- apply min/max size/width style values to polygon spacing (vaguely >related > to #3132) > >- assure that a created tile has a non-zero width and height (#3370) > >- use png_sig_cmp instead of png_check_sig (#3762) > >- Rendering: scale style OFFSET and GAP the same way we scale other style > attributes. Beforehand, we scaled them proportionaly to the computed >width. > >- KML: fix rounding problem for point feautres (#3767) > >- KML: update code to reflect output changes. Fix true type symbols. >(#3766) > >- SLD: Text Symbolizer now uses the new expression syntax (#3757) > >- WFS: correct bbox values for GetFeature with featureid request (#3761) > >- Mapscript Seg Fault on mapObj->getMetaData (#3738) > >- Correct double free in msCleanup(). > >- Initialize default formats in WCS. > >- Fix csharp Makefile.in (#3758) > >- Allow run-time subs in class->text (makes sense if you allow it in > class->expression). > >- Fix build problem when --enable-cgi-cl-debug-args is enabled (#2853) > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Clement.MONIER at v-trafic.com Thu Mar 17 07:28:42 2011 From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=) Date: Thu, 17 Mar 2011 15:28:42 +0100 Subject: [mapserver-users] showing line direction (without font) Message-ID: <0B6D7F516315594DBEFE58178D91BD3201C1BCAA6746@exchangemm.mm.fr> Hi, Is it possible to display a layer of lines with direction's marks using MapServer ? With no "font trick" (i.e a char symbol like '>',...) See picture attached showing a nice sample Thanks & Regards Clement -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: arrow_nice_sample.png Type: image/png Size: 37685 bytes Desc: arrow_nice_sample.png URL: From thomas.bonfort at gmail.com Thu Mar 24 05:12:51 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 24 Mar 2011 13:12:51 +0100 Subject: [mapserver-users] showing line direction (without font) In-Reply-To: <0B6D7F516315594DBEFE58178D91BD3201C1BCAA6746@exchangemm.mm.fr> References: <0B6D7F516315594DBEFE58178D91BD3201C1BCAA6746@exchangemm.mm.fr> Message-ID: clement, GEOMTRANSFORM END SYMBOL "arrowhead" ANGLE AUTO does what you want, with the arrowhead symbol being a truetype symbol with character '>'. you can also define arrowhead as a vector symbol with the points forming an arrowhead. -- thomas On Thu, Mar 17, 2011 at 15:28, Cl?ment MONIER wrote: > Hi, > > > > Is it possible to display a layer of lines with direction?s marks using > MapServer?? > > With no ?font trick? (i.e a char symbol like ?>?,?) > > > > See picture attached showing a nice sample > > > > Thanks & Regards > > > > Clement > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From aboudreault at mapgears.com Thu Mar 24 06:57:14 2011 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 24 Mar 2011 09:57:14 -0400 Subject: [mapserver-users] MapServer 6.0.0-beta3 release In-Reply-To: <4D8A69F2.9050904@mapgears.com> References: <4D8A69F2.9050904@mapgears.com> Message-ID: <201103240957.14755.aboudreault@mapgears.com> UbuntuGIS MapServer packages have been updated for the beta3 release: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On March 23, 2011 05:45:22 pm Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta3. This is the latest beta on our way to a final 6.0 release. > We realize that it comes only 5 days after beta2, but it also contains > several important fixes and we encourage you to test it and continue to > provide feedback. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > This is the third of four planned beta releases and if all goes well a > final release should occur around the end of April. The full release > plan which also includes the list of new features and changes in this > release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since beta1 is attached at the end of this message. > For a complete list see the HISTORY.TXT file at: > > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta3/mapserver/HIST > ORY.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. It is not complete yet but we strongly > recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta3.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > Version 6.0.0-beta3 (2011-03-23) > -------------------------------- > > - apply min/max size/width style values to polygon spacing (vaguely related > to #3132) > > - assure that a created tile has a non-zero width and height (#3370) > > - use png_sig_cmp instead of png_check_sig (#3762) > > - Rendering: scale style OFFSET and GAP the same way we scale other style > attributes. Beforehand, we scaled them proportionaly to the computed > width. > > - KML: fix rounding problem for point feautres (#3767) > > - KML: update code to reflect output changes. Fix true type symbols. > (#3766) > > - SLD: Text Symbolizer now uses the new expression syntax (#3757) > > - WFS: correct bbox values for GetFeature with featureid request (#3761) > > - Mapscript Seg Fault on mapObj->getMetaData (#3738) > > - Correct double free in msCleanup(). > > - Initialize default formats in WCS. > > - Fix csharp Makefile.in (#3758) > > - Allow run-time subs in class->text (makes sense if you allow it in > class->expression). > > - Fix build problem when --enable-cgi-cl-debug-args is enabled (#2853) > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com From bhudspeth at edac.unm.edu Thu Mar 24 10:49:44 2011 From: bhudspeth at edac.unm.edu (William Hudspeth) Date: Thu, 24 Mar 2011 11:49:44 -0600 Subject: [mapserver-users] Problem with cascading WMS reprojection Message-ID: <1300988984.1471.18.camel@wilbur-desktop> Hello, I am trying to reproject a cascaded NASA MODIS NDVI raster. The original raster is served as epsg:4326 from the NASA servers. It is using version=1.3.0 and CRS-CRS:84. I am cascading it through my own mapserver client/server and trying to reproject as epsg:26913 (utm zone13), where the MAP projection and extents are in 26913. My MAP projection looks like this: MAP ..... EXTENT 93549 3464749 694099 4065299 UNITS METERS ..... END #END MAP OBJECT PROJECTION "init=epsg:26913" #UTM-Zone 13N END #END MAP PROJECTION OBJECT and, my LAYER definition looks like this: LAYER NAME "MOD13A2_E_NDVI" TYPE RASTER CONNECTION "http://neowms.sci.gsfc.nasa.gov/wms/wms?" CONNECTIONTYPE WMS STATUS ON METADATA "wms_name" "MOD13A2_E_NDVI" "wms_server_version" "1.1.1" "wms_srs" "EPSG:4326" "wms_format" "image/jpeg" "wms_latlonboundingbox" "-180 -90 180 90" "wms_transparent" "FALSE" END #METADATA PROJECTION "init=epsg:4326" #WGS84 Decimal Degrees END #PROJECTION END #LAYER Interestingly, even though the MAP projection is NOT set to EPSG:4326, I can make a successful request using epsg:4326. In all cases, the LAYER metadata uses EPSG:4326. So, while this request is successful: http://edacwms.unm.edu/cgi-bin/mapfiles/epht_environment/epht_enviro_wms?version=1.1.1&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/jpeg&STYLES=&SRS=EPSG:4326&BBOX=-120.000,26.000,-97.000,44.000&Width=600&Height=470&Layers=MOD13A2_E_NDVI This one is NOT successful: http://edacwms.unm.edu/cgi-bin/mapfiles/epht_environment/epht_enviro_wms?version=1.1.1&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/jpeg&STYLES=&SRS=EPSG:26913&BBOX=93549,3464749,694099,4065299&Width=600&Height=470&Layers=MOD13A2_E_NDVI where I get an error: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Any insight would be greatly appreciated... Bill From Jukka.Rahkonen at mmmtike.fi Thu Mar 24 11:46:07 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 24 Mar 2011 20:46:07 +0200 Subject: VS: [mapserver-users] Problem with cascading WMS reprojection In-Reply-To: <1300988984.1471.18.camel@wilbur-desktop> References: <1300988984.1471.18.camel@wilbur-desktop> Message-ID: Hi, I would try what happens if the whole PROJECTION block is removed from the LAYER. And I believe it would be good to add "wms_srs" with a list of projections you would like to support into MAP level METADATA object. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta William Hudspeth L?hetetty: 24. maaliskuuta 2011 19:50 Vastaanottaja: mapserver-users at lists.osgeo.org Kopio: wbhk at unm.edu Aihe: [mapserver-users] Problem with cascading WMS reprojection Hello, I am trying to reproject a cascaded NASA MODIS NDVI raster. The original raster is served as epsg:4326 from the NASA servers. It is using version=1.3.0 and CRS-CRS:84. I am cascading it through my own mapserver client/server and trying to reproject as epsg:26913 (utm zone13), where the MAP projection and extents are in 26913. My MAP projection looks like this: MAP ..... EXTENT 93549 3464749 694099 4065299 UNITS METERS ..... END #END MAP OBJECT PROJECTION "init=epsg:26913" #UTM-Zone 13N END #END MAP PROJECTION OBJECT and, my LAYER definition looks like this: LAYER NAME "MOD13A2_E_NDVI" TYPE RASTER CONNECTION "http://neowms.sci.gsfc.nasa.gov/wms/wms?" CONNECTIONTYPE WMS STATUS ON METADATA "wms_name" "MOD13A2_E_NDVI" "wms_server_version" "1.1.1" "wms_srs" "EPSG:4326" "wms_format" "image/jpeg" "wms_latlonboundingbox" "-180 -90 180 90" "wms_transparent" "FALSE" END #METADATA PROJECTION "init=epsg:4326" #WGS84 Decimal Degrees END #PROJECTION END #LAYER Interestingly, even though the MAP projection is NOT set to EPSG:4326, I can make a successful request using epsg:4326. In all cases, the LAYER metadata uses EPSG:4326. So, while this request is successful: http://edacwms.unm.edu/cgi-bin/mapfiles/epht_environment/epht_enviro_wms?version=1.1.1&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/jpeg&STYLES=&SRS=EPSG:4326&BBOX=-120.000,26.000,-97.000,44.000&Width=600&Height=470&Layers=MOD13A2_E_NDVI This one is NOT successful: http://edacwms.unm.edu/cgi-bin/mapfiles/epht_environment/epht_enviro_wms?version=1.1.1&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/jpeg&STYLES=&SRS=EPSG:26913&BBOX=93549,3464749,694099,4065299&Width=600&Height=470&Layers=MOD13A2_E_NDVI where I get an error: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Any insight would be greatly appreciated... Bill _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From david.fawcett at state.mn.us Thu Mar 24 12:07:05 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 24 Mar 2011 14:07:05 -0500 Subject: [mapserver-users] Problem with cascading WMS reprojection In-Reply-To: <1300988984.1471.18.camel@wilbur-desktop> References: <1300988984.1471.18.camel@wilbur-desktop> Message-ID: Should the MAP PROJECTION block be in the MAP object? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of William Hudspeth Sent: Thursday, March 24, 2011 12:50 PM To: mapserver-users at lists.osgeo.org Cc: wbhk at unm.edu Subject: [mapserver-users] Problem with cascading WMS reprojection Hello, I am trying to reproject a cascaded NASA MODIS NDVI raster. The original raster is served as epsg:4326 from the NASA servers. It is using version=1.3.0 and CRS-CRS:84. I am cascading it through my own mapserver client/server and trying to reproject as epsg:26913 (utm zone13), where the MAP projection and extents are in 26913. My MAP projection looks like this: MAP ..... EXTENT 93549 3464749 694099 4065299 UNITS METERS ..... END #END MAP OBJECT PROJECTION "init=epsg:26913" #UTM-Zone 13N END #END MAP PROJECTION OBJECT and, my LAYER definition looks like this: LAYER NAME "MOD13A2_E_NDVI" TYPE RASTER CONNECTION "http://neowms.sci.gsfc.nasa.gov/wms/wms?" CONNECTIONTYPE WMS STATUS ON METADATA "wms_name" "MOD13A2_E_NDVI" "wms_server_version" "1.1.1" "wms_srs" "EPSG:4326" "wms_format" "image/jpeg" "wms_latlonboundingbox" "-180 -90 180 90" "wms_transparent" "FALSE" END #METADATA PROJECTION "init=epsg:4326" #WGS84 Decimal Degrees END #PROJECTION END #LAYER Interestingly, even though the MAP projection is NOT set to EPSG:4326, I can make a successful request using epsg:4326. In all cases, the LAYER metadata uses EPSG:4326. So, while this request is successful: http://edacwms.unm.edu/cgi-bin/mapfiles/epht_environment/epht_enviro_wms?version=1.1.1&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/jpeg&STYLES=&SRS=EPSG:4326&BBOX=-120.000,26.000,-97.000,44.000&Width=600&Height=470&Layers=MOD13A2_E_NDVI This one is NOT successful: http://edacwms.unm.edu/cgi-bin/mapfiles/epht_environment/epht_enviro_wms?version=1.1.1&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/jpeg&STYLES=&SRS=EPSG:26913&BBOX=93549,3464749,694099,4065299&Width=600&Height=470&Layers=MOD13A2_E_NDVI where I get an error: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Any insight would be greatly appreciated... Bill _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bhudspeth at edac.unm.edu Thu Mar 24 12:30:17 2011 From: bhudspeth at edac.unm.edu (William Hudspeth) Date: Thu, 24 Mar 2011 13:30:17 -0600 Subject: VS: [mapserver-users] Problem with cascading WMS reprojection In-Reply-To: 1300988984.1471.18.camel@wilbur-desktop Message-ID: <1300995017.1471.34.camel@wilbur-desktop> Thank you Jukka, Your solution worked! From bhudspeth at edac.unm.edu Thu Mar 24 12:31:56 2011 From: bhudspeth at edac.unm.edu (William Hudspeth) Date: Thu, 24 Mar 2011 13:31:56 -0600 Subject: [mapserver-users] Problems with time-enabled WMS (WMS-T) in a cascaded layer Message-ID: <1300995116.1471.35.camel@wilbur-desktop> Hello, I am trying to make time-enabled WMS-T requests to a cascaded layer that originates from the NASA MODIS services. I can successfully make calls to directly to the NASA service as below: http://neowms.sci.gsfc.nasa.gov/wms/wms?version=1.1.1&service=WMS&request=GetMap&SRS=EPSG:4326&FORMAT=image/jpeg&STYLES=&BBox=-120.000,26.000,-97.000,44.000&Width=600&Height=470&Layers=MOD13A2_E_NDVI&TIME=2000-02-18 ...other applicable dates include 2000-05-09, 2000-03-22, and 2011-02-02... The NASA getCapabilities URL for this layer is: http://neo.sci.gsfc.nasa.gov/FGDCMetadata?datasetId=MOD13A2_E_NDVI and the NASA getCapabilites URL for the entire WMS service is: http://neowms.sci.gsfc.nasa.gov/wms/wms?version=1.3.0&service=WMS&request=GetCapabilities When I try to pass a &TIME argument to the cascaded layer, I only get the image for the default time as specified in the NASA getCapabilities call to the WMS service.... My cascaded URL looks like this: http://edacwms.unm.edu/cgi-bin/mapfiles/epht_environment/epht_enviro_wms?version=1.1.1&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/jpeg&STYLES=&SRS=EPSG:26913&BBOX=-1011825.41,2963772.82,1141463.33,4903085.27&Width=600&Height=470&Layers=MOD13A2_E_NDVI&TIME=2000-05-09 and the LAYER definition looks like this: LAYER NAME "MOD13A2_E_NDVI" TYPE RASTER CONNECTION "http://neowms.sci.gsfc.nasa.gov/wms/wms?" CONNECTIONTYPE WMS STATUS ON METADATA "wms_name" "MOD13A2_E_NDVI" "wms_server_version" "1.1.1" "wms_srs" "EPSG:4326" "wms_abstract" "Vegetation Index NDVI 16 day - Terra/MODIS" "wms_title" "Vegetation Index NDVI 16 day - Terra/MODIS" #"wms_time" "2011-02-02" "wms_format" "image/jpeg" "wms_connectiontimeout" "60" "wms_latlonboundingbox" "-180 -90 180 90" "wms_transparent" "FALSE" "wms_timeextent" "2000-02-18,2000-03-06,2000-03-22,2000-04-07,2000-04-23,2000-05-09,2000-05-25,2000-06-10,2000-06-26,2000-07-12,2000-07-28,2000-08-13,2000-08-29,2000-09-14,2000-09-30,2000-10-16,2000-11-01,2000-11-17,2000-12-03,2000-12-19,2001-01-01,2001-01-17,2001-02-02,2001-02-18,2001-03-06,2001-03-22,2001-04-07,2001-04-23,2001-05-09,2001-05-25,2001-06-10,2001-06-26,2001-07-12,2001-07-28,2001-08-13,2001-08-29,2001-09-14,2001-09-30,2001-10-16,2001-11-01,2001-11-17,2001-12-03,2001-12-19,2002-01-01,2002-01-17,2002-02-02,2002-02-18,2002-03-06,2002-03-22,2002-04-07,2002-04-23,2002-05-09,2002-05-25,2002-06-10,2002-06-26,2002-07-12,2002-07-28,2002-08-13,2002-08-29,2002-09-14,2002-09-30,2002-10-16,2002-11-01,2002-11-17,2002-12-03,2002-12-19,2003-01-01,2003-01-17,2003-02-02,2003-02-18,2003-03-06,2003-03-22,2003-04-07,2003-04-23,2003-05-09,2003-05-25,2003-06-10,2003-06-26,2003-07-12,2003-07-28,2003-08-13,2003-08-29,2003-09-14,2003-09-30,2003-10-16,2003-11-01,2003-11-17,2003-12-03,2003-12-19,2004-01-01,2004-01-17,2004-02-02,2004-02-18,2004-03-06,2004-03-22,2004-04-07,2004-04-23,2004-05-09,2004-05-25,2004-06-10,2004-06-26,2004-07-12,2004-07-28,2004-08-13,2004-08-29,2004-09-14,2004-09-30,2004-10-16,2004-11-01,2004-11-17,2004-12-03,2004-12-19,2005-01-01,2005-01-17,2005-02-02,2005-02-18,2005-03-06,2005-03-22,2005-04-07,2005-04-23,2005-05-09,2005-05-25,2005-06-10,2005-06-26,2005-07-12,2005-07-28,2005-08-13,2005-08-29,2005-09-14,2005-09-30,2005-10-16,2005-11-01,2005-11-17,2005-12-03,2005-12-19,2006-01-01,2006-01-17,2006-02-02,2006-02-18,2006-03-06,2006-03-22,2006-04-07,2006-04-23,2006-05-09,2006-05-25,2006-06-10,2006-06-26,2006-07-12,2006-07-28,2006-08-13,2006-08-29,2006-09-14,2006-09-30,2006-10-16,2006-11-01,2006-11-17,2006-12-03,2006-12-19,2007-01-01,2007-01-17,2007-02-02,2007-02-18,2007-03-06,2007-03-22,2007-04-07,2007-04-23,2007-05-09,2007-05-25,2007-06-10,2007-06-26,2007-07-12,2007-07-28,2007-08-13,2007-08-29,2007-09-14,2007-09-30,2007-10-16,2007-11-01,2007-11-17,2007-12-03,2007-12-19,2008-01-01,2008-01-17,2008-02-02,2008-02-18,2008-03-06,2008-03-22,2008-04-07,2008-04-23,2008-05-09,2008-05-25,2008-06-10,2008-06-26,2008-07-12,2008-07-28,2008-08-13,2008-08-29,2008-09-14,2008-09-30,2008-10-16,2008-11-01,2008-11-17,2008-12-03,2008-12-19,2009-01-01,2009-01-17,2009-02-02,2009-02-18,2009-03-06,2009-03-22,2009-04-07,2009-04-23,2009-05-09,2009-05-25,2009-06-10,2009-06-26,2009-07-12,2009-07-28,2009-08-13,2009-08-29,2009-09-14,2009-09-30,2009-10-16,2009-11-01,2009-11-17,2009-12-03,2009-12-19,2010-01-01,2010-01-17,2010-02-02,2010-02-18,2010-03-06,2010-03-22,2010-04-07,2010-04-23,2010-05-09,2010-05-25,2010-06-10,2010-06-26,2010-07-12,2010-07-28,2010-08-13,2010-08-29,2010-09-14,2010-09-30,2010-10-16,2010-11-01,2010-11-17,2010-12-03,2010-12-19,2011-01-01,2011-01-17,2011-02-02" #"wms_timeextent" "2000-02-18,2000-03-06/2000-12-19/P16D,2001-01-01/2001-12-19/P16D,2002-01-01/2002-12-19/P16D,2003-01-01/2003-12-19/P16D,2004-01-01/2004-02-18/P16D,2004-03-06/2004-12-19/P16D,2005-01-01/2005-12-19/P16D,2006-01-01/2006-12-19/P16D,2007-01-01/2007-12-19/P16D,2008-01-01/2008-02-18/P16D,2008-03-06/2008-12-19/P16D,2009-01-01/2009-12-19/P16D,2010-01-01/2010-12-19/P16D,2011-01-01/2011-02-02/P16D" "wms_timeitem" "TIME" "wms_timedefault" "2011-02-02" "wms_timeformat" "YYYY-MM-DD" #"wcs_resolution" "0:6 0:6" #"wcs_bandcount" "1" #"wcs_size" "2700 319" END #METADATA END #LAYER Any help greatly appreciated... Bill From baas at speerit.nl Fri Mar 25 04:51:02 2011 From: baas at speerit.nl (Jelmer Baas) Date: Fri, 25 Mar 2011 11:51:02 +0000 Subject: [mapserver-users] Pyhton mapscript and "styleitem auto" In-Reply-To: References: Message-ID: Tamas, Thanks for the reply. This setting does indeed work, however: you still need to define a (empty) class for the layer, otherwise it?s simply invisible. Might I suggest documenting this? Thanks again, Regards, Jelmer From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: woensdag 23 maart 2011 19:05 To: Jelmer Baas Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Pyhton mapscript and "styleitem auto" Hi, If you set the styleitem property of the layerObj to the string 'AUTO' that should be equivalent to the same setting in the mapfile. Best regards, Tamas 2011/3/23 Jelmer Baas > Hi all, I've managed to build my first Python project and use mapscript to open tab files and render an image. The styling still remains, though. Since I use OGR to open MapInfo TAB files, I'd like to use mapscript equivalent of styleitem "auto", if possible. Can someone please point me in the right direction? Regards, Jelmer Baas _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From aborruso at tin.it Sun Mar 27 01:56:11 2011 From: aborruso at tin.it (iomeneandrei) Date: Sun, 27 Mar 2011 01:56:11 -0700 (PDT) Subject: [mapserver-users] MapServer CGI Controls doc web page Message-ID: <1301216171651-6211951.post@n2.nabble.com> Dear all, today I tried a CGI itemquery command and I have had qstring_validation_pattern error. I have solved searching in this mailing list (thank you), but I found nothing about it in CGI documentation. I think that the sentence you have in MapServer 4.10 to 5.0 Migration doc web page - "the qstring_validation_pattern layer-level metadata is required for qstring queries to work" - should be included in MapServer CGI Controls doc web page. It would be fantastic to have also some qstring_validation_pattern example. Once again thank you and best regards, Andrea ----- Andrea Borruso ---------------------------------------------------- email: aborruso at tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://feeds2.feedburner.com/Tanto 38? 7' 48" N, 13? 21' 9" E ---------------------------------------------------- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapServer-CGI-Controls-doc-web-page-tp6211951p6211951.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aborruso at tin.it Sun Mar 27 03:56:03 2011 From: aborruso at tin.it (iomeneandrei) Date: Sun, 27 Mar 2011 03:56:03 -0700 (PDT) Subject: [mapserver-users] Help about MapServer Join ONE-TO-MANY Message-ID: <1301223363661-6212126.post@n2.nabble.com> Dear all, I'm not able to use templates with MapServer Join ONE-TO-MANY and ITEMQUERY. I have this kind of CGI query: http://localhost/cgi-bin/mapserv.exe?map=/servr/map.map&mode=ITEMQUERY&QLAYER=Test&QITEM=COD_PUNTO&QSTRING=COD_3142 This query runs ok and I have the right result. Then I added a JOIN ONE-TO-ONE to my "Test" layer, and I'm able to query again the layer and retrieve values from the joined table and render them in my tamplate. I have used [joinname_columnname] syntax. I'm not able to have any result if I change the relations to ONE-TO-MANY. I must use this kind of relation because this is the right one for my data. I have read that I must define another template when I define a ONE-TO-MANY, and this - I think - will render the many results of the join (something usefull to collect a loop of results). Is it right? What's the relations between these two templates? Is it automatic, and the ONE-TO-MANY template is processed and rendered after the layer template? This is definition of my layer: LAYER NAME 'Test' TYPE POINT TEMPLATE "test_t.html" DATA './test_quad.shp' METADATA 'qstring_validation_pattern' '.' END STATUS OFF JOIN NAME "test" TEMPLATE "./loop.html" TABLE "./DB_QUADO.dbf" FROM "ID" TO "IDUTE" TYPE ONE-TO-MANY END END This is my Layer: ID: Real (18.0) COD_PUNTO: String (50.0) This is my joined table: IDUTE: Real (18.0) VAL: String (254.0) I would like to have as itemquery result all the records of the joined table related to my layer table. This is my layer template: ID: [ID] VAL: [test_VAL] This is my ONE-TO-MANY template: [test_VAL] As you see I do not know wher I must insert the call to joined column, and I have inserted it in both template. Anyway I'm not able to retrieve the value of VAL column of joined table. What's wrong in my configuration? What's wrong in my understandig of ONE-TO-MANY relation? I'm using MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thank you very much, Andrea ----- Andrea Borruso ---------------------------------------------------- email: aborruso at tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://feeds2.feedburner.com/Tanto 38? 7' 48" N, 13? 21' 9" E ---------------------------------------------------- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Help-about-MapServer-Join-ONE-TO-MANY-tp6212126p6212126.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aborruso at tin.it Sun Mar 27 04:11:37 2011 From: aborruso at tin.it (iomeneandrei) Date: Sun, 27 Mar 2011 04:11:37 -0700 (PDT) Subject: [mapserver-users] Re: Help about MapServer Join ONE-TO-MANY [SOLVED] In-Reply-To: <1301223363661-6212126.post@n2.nabble.com> References: <1301223363661-6212126.post@n2.nabble.com> Message-ID: <1301224297754-6212148.post@n2.nabble.com> Hi all, I have found the reply in this great message: http://tinyurl.com/5uanceu I think that this sentence "LAYER template functions only to redirect to the JOIN template. The redirect is done with a template tag of the format: [join_joinname] (literal word join followed by underscore then the JOIN object name). " should be present in the join doc webpage (http://mapserver.org/mapfile/join.html). Best regards and thank you, Andrea ----- Andrea Borruso ---------------------------------------------------- email: aborruso at tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://feeds2.feedburner.com/Tanto 38? 7' 48" N, 13? 21' 9" E ---------------------------------------------------- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Help-about-MapServer-Join-ONE-TO-MANY-tp6212126p6212148.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aborruso at tin.it Mon Mar 28 04:52:27 2011 From: aborruso at tin.it (iomeneandrei) Date: Mon, 28 Mar 2011 04:52:27 -0700 (PDT) Subject: [mapserver-users] template item formatting options and joined table Message-ID: <1301313147549-6214589.post@n2.nabble.com> Dear all, I have an ITEMQUERY on a layer with a join object inside (ONE-TO-MANY). I would like to format the results using template item formatting options. Is it possible to use them with the items of joined table? I have applied it using this kind of syntax [item name="relationname_field" precision="2" commify="2"], but I have this error message: "Content-type: text/html processItemTag(): Web application error. Item name (relate_ULM) not found in layer item list. " "relate_ULM" is the real name of my joined field. If I insert simply [relate_ULM] in my template I have no error, and I have the list of results. Thank you, Andrea ----- Andrea Borruso ---------------------------------------------------- email: aborruso at tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://feeds2.feedburner.com/Tanto 38? 7' 48" N, 13? 21' 9" E ---------------------------------------------------- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/template-item-formatting-options-and-joined-table-tp6214589p6214589.html Sent from the Mapserver - User mailing list archive at Nabble.com. From steve.lime at state.mn.us Mon Mar 28 07:44:34 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 28 Mar 2011 09:44:34 -0500 Subject: [mapserver-users] template item formatting options and joined table In-Reply-To: <1301313147549-6214589.post@n2.nabble.com> References: <1301313147549-6214589.post@n2.nabble.com> Message-ID: It's not possible yet. Joined items aren't handled in the same fashion as regular items. This is an oversight on my part. There is a need to add a new one-to-many template block but it slipped off my radar. If you'd file a ticket and assign to me I'll get it added. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of iomeneandrei Sent: Monday, March 28, 2011 6:52 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] template item formatting options and joined table Dear all, I have an ITEMQUERY on a layer with a join object inside (ONE-TO-MANY). I would like to format the results using template item formatting options. Is it possible to use them with the items of joined table? I have applied it using this kind of syntax [item name="relationname_field" precision="2" commify="2"], but I have this error message: "Content-type: text/html processItemTag(): Web application error. Item name (relate_ULM) not found in layer item list. " "relate_ULM" is the real name of my joined field. If I insert simply [relate_ULM] in my template I have no error, and I have the list of results. Thank you, Andrea ----- Andrea Borruso ---------------------------------------------------- email: aborruso at tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://feeds2.feedburner.com/Tanto 38? 7' 48" N, 13? 21' 9" E ---------------------------------------------------- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/template-item-formatting-options-and-joined-table-tp6214589p6214589.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Mon Mar 28 07:44:58 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 28 Mar 2011 10:44:58 -0400 Subject: [mapserver-users] MapServer CGI Controls doc web page In-Reply-To: <1301216171651-6211951.post@n2.nabble.com> References: <1301216171651-6211951.post@n2.nabble.com> Message-ID: <4D909EEA.6050204@mapgears.com> On 11-03-27 04:56 AM, iomeneandrei wrote: > > I think that the sentence you have in MapServer 4.10 to 5.0 Migration doc > web page - "the qstring_validation_pattern layer-level metadata is required > for qstring queries to work" - should be included in MapServer CGI Controls > doc web page. > It would be fantastic to have also some qstring_validation_pattern example. > Hi Andrea, Thank you for reporting this. Could you please file tickets under the Documentation component in Trac (http://trac.osgeo.org/mapserver/) for this and the other issue(s) that you have found in the docs? This way we'll make sure that this information does not get lost and that the docs maintainers include those fixes as they review the docs for the next release. Thanks Daniel -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From steve.lime at state.mn.us Mon Mar 28 10:30:10 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 28 Mar 2011 12:30:10 -0500 Subject: [mapserver-users] MapServer CGI Controls doc web page In-Reply-To: <1301216171651-6211951.post@n2.nabble.com> References: <1301216171651-6211951.post@n2.nabble.com> Message-ID: Hi Andrea: I believe Daniel already commented on the documentation side of things. In terms of an example it's pretty straight forward. The validation pattern is given as a regex like so: LAYER ... METADATA 'qstring_validation_pattern' '.' # would allow any value 'qstring_validation_pattern' '^[a-z]{1,16}$' # would allow a string up to 16 characters in length consisting of lower-case alpha only 'qstring_validation_pattern' '^[0-9]{1,2}$' # one or two digit number only END END Hope this helps- Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of iomeneandrei Sent: Sunday, March 27, 2011 3:56 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer CGI Controls doc web page Dear all, today I tried a CGI itemquery command and I have had qstring_validation_pattern error. I have solved searching in this mailing list (thank you), but I found nothing about it in CGI documentation. I think that the sentence you have in MapServer 4.10 to 5.0 Migration doc web page - "the qstring_validation_pattern layer-level metadata is required for qstring queries to work" - should be included in MapServer CGI Controls doc web page. It would be fantastic to have also some qstring_validation_pattern example. Once again thank you and best regards, Andrea ----- Andrea Borruso ---------------------------------------------------- email: aborruso at tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://feeds2.feedburner.com/Tanto 38? 7' 48" N, 13? 21' 9" E ---------------------------------------------------- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapServer-CGI-Controls-doc-web-page-tp6211951p6211951.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Mon Mar 28 12:00:00 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 28 Mar 2011 22:00:00 +0300 Subject: [mapserver-users] MapServer CGI Controls doc web page References: <1301216171651-6211951.post@n2.nabble.com> Message-ID: Hi, How straight forward it is to validate non-ASCII characters like ??? (äåö)? -Jukka Rahkonen Lime, Steve D wrote: > Hi Andrea: I believe Daniel already commented on the documentation side of things. In terms of an > example it's pretty straight forward. The validation pattern is given as a regex like so: > LAYER ... > METADATA > 'qstring_validation_pattern' '.' # would allow any value > 'qstring_validation_pattern' '^[a-z]{1,16}$' # would allow a string up to 16 characters in length consisting of > lower-case alpha only > 'qstring_validation_pattern' '^[0-9]{1,2}$' # one or two digit number only > END > END > Hope this helps- Steve >-----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of iomeneandrei Sent: Sunday, March 27, 2011 3:56 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer CGI Controls doc web page > Dear all, > today I tried a CGI itemquery command and I have had > qstring_validation_pattern error. > I have solved searching in this mailing list (thank you), but I found > nothing about it in CGI documentation. > I think that the sentence you have in MapServer 4.10 to 5.0 Migration doc > web page - "the qstring_validation_pattern layer-level metadata is required > for qstring queries to work" - should be included in MapServer CGI Controls > doc web page. > It would be fantastic to have also some qstring_validation_pattern example. > Once again thank you and best regards, > Andrea > ----- > Andrea Borruso ---------------------------------------------------- email: aborruso at tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://feeds2.feedburner.com/Tanto 38? 7' 48" N, 13? 21' 9" E ---------------------------------------------------- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapServer-CGI-Controls-doc-web-page-tp6211951p6211951.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From aborruso at tin.it Mon Mar 28 13:03:41 2011 From: aborruso at tin.it (iomeneandrei) Date: Mon, 28 Mar 2011 13:03:41 -0700 (PDT) Subject: [mapserver-users] RE: template item formatting options and joined table In-Reply-To: References: <1301313147549-6214589.post@n2.nabble.com> Message-ID: <1301342621232-6216581.post@n2.nabble.com> Dear Steve, Lime, Steve D (DNR) wrote: > > It's not possible yet. Joined items aren't handled in the same fashion as > regular items. This is an oversight on my part. There is a need to add a > new one-to-many template block but it slipped off my radar. If you'd file > a ticket and assign to me I'll get it added. > thank you very much I made it. It's always a great pleasure to be in this list. Best regards, a ----- Andrea Borruso ---------------------------------------------------- email: aborruso at tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://feeds2.feedburner.com/Tanto 38? 7' 48" N, 13? 21' 9" E ---------------------------------------------------- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/template-item-formatting-options-and-joined-table-tp6214589p6216581.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aborruso at tin.it Mon Mar 28 13:05:09 2011 From: aborruso at tin.it (iomeneandrei) Date: Mon, 28 Mar 2011 13:05:09 -0700 (PDT) Subject: [mapserver-users] RE: MapServer CGI Controls doc web page In-Reply-To: References: <1301216171651-6211951.post@n2.nabble.com> Message-ID: <1301342709613-6216591.post@n2.nabble.com> Once again thank to you both. Best regards, Andrea ----- Andrea Borruso ---------------------------------------------------- email: aborruso at tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://feeds2.feedburner.com/Tanto 38? 7' 48" N, 13? 21' 9" E ---------------------------------------------------- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapServer-CGI-Controls-doc-web-page-tp6211951p6216591.html Sent from the Mapserver - User mailing list archive at Nabble.com. From lee.meilleur at gis.leg.mn Mon Mar 28 14:05:07 2011 From: lee.meilleur at gis.leg.mn (Lee Meilleur) Date: Mon, 28 Mar 2011 16:05:07 -0500 Subject: [mapserver-users] Too many open files... Message-ID: Hello, Has anyone run into the error: "Too many open files: couldn't set child process attributes: /var/www/cgi-bin/mapserv"? This error shows up in an Apache error_log. A broken image now shows up for MapServer layers since this started. I've tried changing the ulimits or the MaxRequestsPerChild for Apache with no luck. Any other ideas? Thanks, Lee -------------- next part -------------- An HTML attachment was scrubbed... URL: From fruitwerks at gmail.com Mon Mar 28 14:21:24 2011 From: fruitwerks at gmail.com (fruitwerks) Date: Mon, 28 Mar 2011 14:21:24 -0700 Subject: [mapserver-users] Too many open files... In-Reply-To: References: Message-ID: Hey Lee, Look into a little thing called ulimit best of luck, Corey On Mon, Mar 28, 2011 at 2:05 PM, Lee Meilleur wrote: > Hello, > > > > Has anyone run into the error: ?Too many open files: couldn?t set child > process attributes: /var/www/cgi-bin/mapserv??? This error shows up in an > Apache error_log.? A broken image now shows up for MapServer layers since > this started. ?I?ve tried changing the ulimits or the MaxRequestsPerChild > for Apache with no luck.? Any other ideas? > > > > Thanks, > > > > Lee > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- _______________________________________________________________________________ Any use, dissemination, distribution, posting on Internet bulletin boards, disclosure or copying of this e-mail or any information contained herein by or to anyone other than the intended recipient(s) is strictly prohibited. Use of this content for any other purpose is a violation of International Copyright Laws. From lee.meilleur at gis.leg.mn Mon Mar 28 14:23:56 2011 From: lee.meilleur at gis.leg.mn (Lee Meilleur) Date: Mon, 28 Mar 2011 16:23:56 -0500 Subject: [mapserver-users] Too many open files... In-Reply-To: References: Message-ID: Thanks Corey, the ulimit was set to unlimited already. Lee -----Original Message----- From: fruitwerks [mailto:fruitwerks at gmail.com] Sent: Monday, March 28, 2011 4:21 PM To: Lee Meilleur Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Too many open files... Hey Lee, Look into a little thing called ulimit best of luck, Corey On Mon, Mar 28, 2011 at 2:05 PM, Lee Meilleur wrote: > Hello, > > > > Has anyone run into the error: "Too many open files: couldn't set > child process attributes: /var/www/cgi-bin/mapserv"?? This error shows > up in an Apache error_log.? A broken image now shows up for MapServer > layers since this started. ?I've tried changing the ulimits or the > MaxRequestsPerChild for Apache with no luck.? Any other ideas? > > > > Thanks, > > > > Lee > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- _______________________________________________________________________________ Any use, dissemination, distribution, posting on Internet bulletin boards, disclosure or copying of this e-mail or any information contained herein by or to anyone other than the intended recipient(s) is strictly prohibited. Use of this content for any other purpose is a violation of International Copyright Laws. From woodbri at swoodbridge.com Mon Mar 28 14:29:22 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 28 Mar 2011 17:29:22 -0400 Subject: [mapserver-users] Too many open files... In-Reply-To: References: Message-ID: <4D90FDB2.3090106@swoodbridge.com> On 3/28/2011 5:05 PM, Lee Meilleur wrote: > Hello, > > Has anyone run into the error: ?Too many open files: couldn?t set child > process attributes: /var/www/cgi-bin/mapserv?? This error shows up in an > Apache error_log. A broken image now shows up for MapServer layers since > this started. I?ve tried changing the ulimits or the MaxRequestsPerChild > for Apache with no luck. Any other ideas? You probably need to give us more information like: Which OS? Which Apache version? Which Apache MPM module are you using? /var/www/cgi-bin/mapserv -v output? Does this happen when you run shp2img? What are you serving via mapserver? vectors, imagery, database, etc? -Steve W From lee.meilleur at gis.leg.mn Mon Mar 28 14:45:55 2011 From: lee.meilleur at gis.leg.mn (Lee Meilleur) Date: Mon, 28 Mar 2011 16:45:55 -0500 Subject: [mapserver-users] Too many open files... In-Reply-To: <4D90FDB2.3090106@swoodbridge.com> References: <4D90FDB2.3090106@swoodbridge.com> Message-ID: Fedora 12 Apache 2.2.14 Prefork MPM ./shp2img: error while loading shared libraries: librx.so.0: cannot open shared object file: No such file or directory (this was news to me) Serving shapefiles only. MapServer version 5.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Monday, March 28, 2011 4:29 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Too many open files... On 3/28/2011 5:05 PM, Lee Meilleur wrote: > Hello, > > Has anyone run into the error: "Too many open files: couldn't set > child process attributes: /var/www/cgi-bin/mapserv"? This error shows > up in an Apache error_log. A broken image now shows up for MapServer > layers since this started. I've tried changing the ulimits or the > MaxRequestsPerChild for Apache with no luck. Any other ideas? You probably need to give us more information like: Which OS? Which Apache version? Which Apache MPM module are you using? /var/www/cgi-bin/mapserv -v output? Does this happen when you run shp2img? What are you serving via mapserver? vectors, imagery, database, etc? -Steve W _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From klassen.js at gmail.com Mon Mar 28 14:57:59 2011 From: klassen.js at gmail.com (Jim Klassen) Date: Mon, 28 Mar 2011 16:57:59 -0500 Subject: [mapserver-users] Too many open files... In-Reply-To: References: <4D90FDB2.3090106@swoodbridge.com> Message-ID: <8FB61219-9667-45FF-9F6D-0060D42689F4@gmail.com> Are you running anything else significant on the machine? It would generally be very difficult for MapServer, running in CGI mode, to use up all the open files. The only cases I can think of that could be related to MapServer serving shapefiles would be (1) FastCGI and a bug that isn't closing files. If this is the case, the issue should go away for awhile after you restart apache. (2) if you have some sort of tileindex with a huge number of items in it or a tileindex that points back to itself. Otherwise, I could see this if something else on the machine is using up all the file handles (globally or per user). Another random thought... is there some interaction with SELinux (assuming you have SELinux enforcing)? I think you said this behavior was new... if so, has anything changed on the machine lately? Sorry I can't be more helpful. Jim K On Mar 28, 2011, at 4:45 PM, Lee Meilleur wrote: > Fedora 12 > Apache 2.2.14 > Prefork MPM > > ./shp2img: error while loading shared libraries: librx.so.0: cannot open shared object file: No such file or directory (this was news to me) > > Serving shapefiles only. > > MapServer version 5.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Thanks > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge > Sent: Monday, March 28, 2011 4:29 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Too many open files... > > On 3/28/2011 5:05 PM, Lee Meilleur wrote: >> Hello, >> >> Has anyone run into the error: "Too many open files: couldn't set >> child process attributes: /var/www/cgi-bin/mapserv"? This error shows >> up in an Apache error_log. A broken image now shows up for MapServer >> layers since this started. I've tried changing the ulimits or the >> MaxRequestsPerChild for Apache with no luck. Any other ideas? > > You probably need to give us more information like: > > Which OS? > Which Apache version? > Which Apache MPM module are you using? > /var/www/cgi-bin/mapserv -v output? > > Does this happen when you run shp2img? > What are you serving via mapserver? vectors, imagery, database, etc? > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Mon Mar 28 15:05:00 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 28 Mar 2011 18:05:00 -0400 Subject: [mapserver-users] Too many open files... In-Reply-To: <8FB61219-9667-45FF-9F6D-0060D42689F4@gmail.com> References: <4D90FDB2.3090106@swoodbridge.com> <8FB61219-9667-45FF-9F6D-0060D42689F4@gmail.com> Message-ID: <4D91060C.80205@swoodbridge.com> Lee, I think I have run into this before. Turn off SELinux if it is running and I bet that is it. Otherwise, try building mapserver from source, maybe you ahve a library or rpm packaging issue. -Steve W On 3/28/2011 5:57 PM, Jim Klassen wrote: > > Are you running anything else significant on the machine? > > It would generally be very difficult for MapServer, running in CGI > mode, to use up all the open files. > > The only cases I can think of that could be related to MapServer > serving shapefiles would be (1) FastCGI and a bug that isn't closing > files. If this is the case, the issue should go away for awhile > after you restart apache. (2) if you have some sort of tileindex > with a huge number of items in it or a tileindex that points back to > itself. > > Otherwise, I could see this if something else on the machine is using > up all the file handles (globally or per user). > > Another random thought... is there some interaction with SELinux > (assuming you have SELinux enforcing)? > > I think you said this behavior was new... if so, has anything changed > on the machine lately? > > Sorry I can't be more helpful. > > Jim K > > On Mar 28, 2011, at 4:45 PM, Lee Meilleur wrote: > >> Fedora 12 Apache 2.2.14 Prefork MPM >> >> ./shp2img: error while loading shared libraries: librx.so.0: cannot >> open shared object file: No such file or directory (this was news >> to me) >> >> Serving shapefiles only. >> >> MapServer version 5.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >> OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER >> SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR >> INPUT=GDAL INPUT=SHAPEFILE >> >> Thanks >> >> -----Original Message----- From: >> mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Stephen Woodbridge Sent: Monday, March 28, 2011 4:29 PM To: >> mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Too >> many open files... >> >> On 3/28/2011 5:05 PM, Lee Meilleur wrote: >>> Hello, >>> >>> Has anyone run into the error: "Too many open files: couldn't >>> set child process attributes: /var/www/cgi-bin/mapserv"? This >>> error shows up in an Apache error_log. A broken image now shows >>> up for MapServer layers since this started. I've tried changing >>> the ulimits or the MaxRequestsPerChild for Apache with no luck. >>> Any other ideas? >> >> You probably need to give us more information like: >> >> Which OS? Which Apache version? Which Apache MPM module are you >> using? /var/www/cgi-bin/mapserv -v output? >> >> Does this happen when you run shp2img? What are you serving via >> mapserver? vectors, imagery, database, etc? >> >> -Steve W _______________________________________________ >> mapserver-users mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ mapserver-users >> mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Sebastien.Favre at spotimage.fr Mon Mar 28 15:17:05 2011 From: Sebastien.Favre at spotimage.fr (Favre, Sebastien) Date: Mon, 28 Mar 2011 22:17:05 +0000 Subject: [mapserver-users] GetCapabilities error Message-ID: Hello to all, I have the following error when I make a WMS GetCapabilties request : msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation failed. msEvalRegex(): Regular expression error. String failed expression test. Do you have an idea of what could be wrong ? Here is my map file : MAP EXTENT -180 -90 180 90 IMAGECOLOR 128 128 255 IMAGETYPE gif SIZE 800 400 STATUS ON UNITS METERS NAME "sample" PROJECTION "init=epsg:4326" END WEB METADATA "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/webmapping/data/mapserver/mapfile_test.map&" "wms_title" "WMS Server" "wms_srs" "EPSG:4326" END END LAYER DEBUG 5 DATA "C:/ms4w/Apache/htdocs/webmapping/data/mapserver/land.shp" DUMP TRUE METADATA "wms_title" "World countries" END NAME "land" STATUS ON TYPE POLYGON UNITS METERS CLASS NAME 'World Continents' STYLE COLOR 255 128 128 OUTLINECOLOR 96 96 96 END END END END And my request : http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/webmapping/data/mapserver/mapfile.map?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1 Thank you. S?bastien -------------- next part -------------- Ce courrier ?lectronique et toutes les pi?ces ?ventuellement jointes qu?il contient sont CONFIDENTIELS et destin?s exclusivement ? l?usage de leur destinataire. Si une erreur de transmission ou une adresse erron?e a mal dirig?e ce courrier, merci d?en informer l?exp?diteur en lui faisant une r?ponse par courrier ?lectronique d?s r?ception. Si vous n??tes pas le destinataire de ce courrier, vous ne devez pas l?utiliser, le conserver, en faire ?tat, le distribuer, le copier, l?imprimer ou en r?v?ler le contenu ? une tierce partie. Ce courrier ?lectronique est ? usage strictement informatif et ne saurait engager de quelque mani?re que ce soit SPOT IMAGE SA, ni ses filiales. This e-mail and any attachments hereto are CONFIDENTIAL and intended solely for the use of the addressee. If you have received this e-mail in error please send it back to the person that sent it to you. If you have received it in error, please notify the sender by return email. If you are not the addressee of this email, you must not use, keep, disseminate, copy, print or otherwise deal with it. This email is for information only and will not bind SPOT IMAGE SA in any contract or obligation, nor its subsidiaries. From geographika at gmail.com Mon Mar 28 15:31:41 2011 From: geographika at gmail.com (geographika) Date: Tue, 29 Mar 2011 00:31:41 +0200 Subject: [mapserver-users] USING UNIQUE with multiple fields In-Reply-To: References: <1301216171651-6211951.post@n2.nabble.com> Message-ID: <4D910C4D.5060903@gmail.com> Hi I have a feature table which I'm serving out as a WFS. It has a two column unique index - is there support for this in a LAYER definition in a mapfile? E.g. DATA "GEOM from mytable USING SRID=29902 USING UNIQUE Field1,Field2 I presume not as I've tried a few combinations with no success, but just wondered if this is possible. I'm using a SQL Server 2008 connection. Thanks for any help, Seth -- web:http://geographika.co.uk twitter: @geographika -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Mar 28 18:38:40 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 28 Mar 2011 21:38:40 -0400 Subject: [mapserver-users] GetCapabilities error In-Reply-To: References: Message-ID: <4D913820.5080905@swoodbridge.com> Try this? http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/webmapping/data/mapserver/mapfile.map&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1 You had two '?' in your request. On 3/28/2011 6:17 PM, Favre, Sebastien wrote: > Hello to all, > > I have the following error when I make a WMS GetCapabilties request : > > msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation failed. msEvalRegex(): Regular expression error. String failed expression test. > Do you have an idea of what could be wrong ? > > Here is my map file : > > MAP > > EXTENT -180 -90 180 90 > IMAGECOLOR 128 128 255 > IMAGETYPE gif > SIZE 800 400 > STATUS ON > UNITS METERS > NAME "sample" > > PROJECTION > "init=epsg:4326" > END > > WEB > METADATA > "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/webmapping/data/mapserver/mapfile_test.map&" > "wms_title" "WMS Server" > "wms_srs" "EPSG:4326" > END > END > > LAYER > DEBUG 5 > DATA "C:/ms4w/Apache/htdocs/webmapping/data/mapserver/land.shp" > DUMP TRUE > METADATA > "wms_title" "World countries" > END > NAME "land" > STATUS ON > TYPE POLYGON > UNITS METERS > CLASS > NAME 'World Continents' > STYLE > COLOR 255 128 128 > OUTLINECOLOR 96 96 96 > END > END > END > > END > > And my request : > > http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/webmapping/data/mapserver/mapfile.map?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1 > > Thank you. > > S?bastien > > > > > Ce courrier ?lectronique et toutes les pi?ces ?ventuellement jointes qu?il contient sont CONFIDENTIELS et destin?s exclusivement ? l?usage de leur destinataire. Si une erreur de transmission ou une adresse erron?e a mal dirig?e ce courrier, merci d?en informer l?exp?diteur en lui faisant une r?ponse par courrier ?lectronique d?s r?ception. Si vous n??tes pas le destinataire de ce courrier, vous ne devez pas l?utiliser, le conserver, en faire ?tat, le distribuer, le copier, l?imprimer ou en r?v?ler le contenu ? une tierce partie. > Ce courrier ?lectronique est ? usage strictement informatif et ne saurait engager de quelque mani?re que ce soit SPOT IMAGE SA, ni ses filiales. > > This e-mail and any attachments hereto are CONFIDENTIAL and intended solely for the use of the addressee. If you have received this e-mail in error please send it back to the person that sent it to you. > If you have received it in error, please notify the sender by return email. If you are not the addressee of this email, you must not use, keep, disseminate, copy, print or otherwise deal with it. > This email is for information only and will not bind SPOT IMAGE SA in any contract or obligation, nor its subsidiaries. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From geographika at gmail.com Tue Mar 29 03:01:13 2011 From: geographika at gmail.com (geographika) Date: Tue, 29 Mar 2011 12:01:13 +0200 Subject: [mapserver-users] USING UNIQUE with multiple fields Message-ID: <4D91ADE9.5090200@gmail.com> Hi /[Message resent as it got added to a previous discussion - thanks ThunderBird..]/ I have a feature table which I'm serving out as a WFS. It has a two column unique index - is there support for this in a LAYER definition in a mapfile? E.g. DATA "GEOM from mytable USING SRID=29902 USING UNIQUE Field1,Field2 I presume not as I've tried a few combinations with no success, but just wondered if this is possible. I'm using a SQL Server 2008 connection. Thanks for any help, Seth -- web:http://geographika.co.uk twitter: @geographika -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Mar 29 03:35:03 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 29 Mar 2011 13:35:03 +0300 Subject: [mapserver-users] USING UNIQUE with multiple fields In-Reply-To: <4D91ADE9.5090200@gmail.com> References: <4D91ADE9.5090200@gmail.com> Message-ID: Hi, If you won't get any better advice, try a workaround by combining the primary key columns into single one be creating a view. -Jukka Rahkonen- ________________________________ geographika wrote: Hi [Message resent as it got added to a previous discussion - thanks ThunderBird..] I have a feature table which I'm serving out as a WFS. It has a two column unique index - is there support for this in a LAYER definition in a mapfile? E.g. DATA "GEOM from mytable USING SRID=29902 USING UNIQUE Field1,Field2 I presume not as I've tried a few combinations with no success, but just wondered if this is possible. I'm using a SQL Server 2008 connection. Thanks for any help, Seth -- web: http://geographika.co.uk twitter: @geographika -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue Mar 29 03:39:13 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 29 Mar 2011 12:39:13 +0200 Subject: [mapserver-users] USING UNIQUE with multiple fields In-Reply-To: <4D910C4D.5060903@gmail.com> References: <1301216171651-6211951.post@n2.nabble.com> <4D910C4D.5060903@gmail.com> Message-ID: Hi, That is not possible, the feature ID must be an integer field with the current implementation. Best regards, Tamas 2011/3/29 geographika > Hi > > I have a feature table which I'm serving out as a WFS. It has a two column > unique index - is there support for this in a LAYER definition in a mapfile? > > E.g. DATA "GEOM from mytable USING SRID=29902 USING UNIQUE Field1,Field2 > > I presume not as I've tried a few combinations with no success, but just > wondered if this is possible. I'm using a SQL Server 2008 connection. > Thanks for any help, > > Seth > > -- > web: http://geographika.co.uk > twitter: @geographika > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Tue Mar 29 06:15:29 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 29 Mar 2011 08:15:29 -0500 Subject: [mapserver-users] MapServer CGI Controls doc web page In-Reply-To: References: <1301216171651-6211951.post@n2.nabble.com> , Message-ID: I really don't know. Perhaps other devs with experience with extended character sets might have some thoughts... Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] Sent: Monday, March 28, 2011 2:00 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer CGI Controls doc web page Hi, How straight forward it is to validate non-ASCII characters like ??? (äåö)? -Jukka Rahkonen Lime, Steve D wrote: > Hi Andrea: I believe Daniel already commented on the documentation side of things. In terms of an > example it's pretty straight forward. The validation pattern is given as a regex like so: > LAYER ... > METADATA > 'qstring_validation_pattern' '.' # would allow any value > 'qstring_validation_pattern' '^[a-z]{1,16}$' # would allow a string up to 16 characters in length consisting of > lower-case alpha only > 'qstring_validation_pattern' '^[0-9]{1,2}$' # one or two digit number only > END > END > Hope this helps- Steve >-----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of iomeneandrei Sent: Sunday, March 27, 2011 3:56 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer CGI Controls doc web page > Dear all, > today I tried a CGI itemquery command and I have had > qstring_validation_pattern error. > I have solved searching in this mailing list (thank you), but I found > nothing about it in CGI documentation. > I think that the sentence you have in MapServer 4.10 to 5.0 Migration doc > web page - "the qstring_validation_pattern layer-level metadata is required > for qstring queries to work" - should be included in MapServer CGI Controls > doc web page. > It would be fantastic to have also some qstring_validation_pattern example. > Once again thank you and best regards, > Andrea > ----- > Andrea Borruso ---------------------------------------------------- email: aborruso at tin.it website: http://blog.spaziogis.it my 2.0 life: http://aborruso.spaziogis.it feed: http://feeds2.feedburner.com/Tanto 38? 7' 48" N, 13? 21' 9" E ---------------------------------------------------- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapServer-CGI-Controls-doc-web-page-tp6211951p6211951.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Tue Mar 29 06:40:07 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 29 Mar 2011 09:40:07 -0400 Subject: [mapserver-users] MapServer CGI Controls doc web page In-Reply-To: References: <1301216171651-6211951.post@n2.nabble.com> , Message-ID: <4D91E137.4070107@swoodbridge.com> Steve L, I'm not sure but my guess is that we would need to look at: 1. What support pcre or re has for extended character or UTF8 support 2. Make sure the the parser can collect those characters 3. maybe decide if we want to optionally support äåö sequences in the mapfile/CGI and convert appropriately So unless someone thought about this, given all the pieces above that would need to work together, I would suspect that you will have problems. But again - I do not know for sure. For 1. above, Google says: pcre specification Aug 9, 2007 ... In order process UTF-8 strings, you must build PCRE to include UTF-8 support in the code, and, in addition, you must call pcre_compile() ... regexkit.sourceforge.net/Documentation/pcre/pcre.html - Cached - Similar So this indicates that it is possible to get pcre with utf8 support. So this might be a starting place. And from the Debian Lenny man page: > The current implementation of PCRE (release 7.x) corresponds approxi? > mately with Perl 5.10, including support for UTF-8 encoded strings and > Unicode general category properties. However, UTF-8 and Unicode support > has to be explicitly enabled; it is not the default. The Unicode tables > correspond to Unicode release 5.0.0. -Steve W On 3/29/2011 9:15 AM, Lime, Steve D (DNR) wrote: > I really don't know. Perhaps other devs with experience with extended > character sets might have some thoughts... Steve > ________________________________________ From: > mapserver-users-bounces at lists.osgeo.org > [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka > [Jukka.Rahkonen at mmmtike.fi] Sent: Monday, March 28, 2011 2:00 PM To: > mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] > MapServer CGI Controls doc web page > > Hi, > > How straight forward it is to validate non-ASCII characters like ??? > (äåö)? > > -Jukka Rahkonen > > > Lime, Steve D wrote: > >> Hi Andrea: I believe Daniel already commented on the documentation >> side of things. In terms of an example it's pretty straight >> forward. The validation pattern is given as a regex like so: > >> LAYER > ... >> METADATA 'qstring_validation_pattern' '.' # would allow any value >> 'qstring_validation_pattern' '^[a-z]{1,16}$' # would allow a string >> up to 16 characters in length consisting of lower-case alpha only >> 'qstring_validation_pattern' '^[0-9]{1,2}$' # one or two digit >> number only END END > >> Hope this helps- Steve > > >> -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > iomeneandrei Sent: Sunday, March 27, 2011 3:56 AM To: > mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer > CGI Controls doc web page > >> Dear all, today I tried a CGI itemquery command and I have had >> qstring_validation_pattern error. > >> I have solved searching in this mailing list (thank you), but I >> found nothing about it in CGI documentation. > >> I think that the sentence you have in MapServer 4.10 to 5.0 >> Migration doc web page - "the qstring_validation_pattern >> layer-level metadata is required for qstring queries to work" - >> should be included in MapServer CGI Controls doc web page. It would >> be fantastic to have also some qstring_validation_pattern example. > >> Once again thank you and best regards, > >> Andrea > >> ----- Andrea Borruso > > ---------------------------------------------------- email: > aborruso at tin.it website: http://blog.spaziogis.it my 2.0 life: > http://aborruso.spaziogis.it feed: > http://feeds2.feedburner.com/Tanto 38? 7' 48" N, 13? 21' 9" E > ---------------------------------------------------- -- View this > message in context: > http://osgeo-org.1803224.n2.nabble.com/MapServer-CGI-Controls-doc-web-page-tp6211951p6211951.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From g8a at email.com Tue Mar 29 07:51:08 2011 From: g8a at email.com (aznan) Date: Tue, 29 Mar 2011 07:51:08 -0700 (PDT) Subject: [mapserver-users] Re: Restrict WMS operations In-Reply-To: <8CDB69EE67C4A75-2178-5569@web-mmc-d05.sysops.aol.com> References: <1300723263465-6192759.post@n2.nabble.com> <4D877C29.9040709@gatewaygeomatics.com> <8CDB69EE67C4A75-2178-5569@web-mmc-d05.sysops.aol.com> Message-ID: <1301410268699-6219494.post@n2.nabble.com> Hi! I finally got around to trying out Mapserver 6 beta 3. When adding this line to the map file: "wms_enable_request" "GetCapabilities GetMap" requests other than the two mentioned return a ServiceException, which is great, but the other operations still show up in the GetCapabilities response. Is there something I'm missing? Thanks! /Matti -----Original Message----- From: Jeff McKenna [via OSGeo.org] <ml-node+6192878-452004863-270550 at n2.nabble.com> To: aznan <g8a at email.com> Sent: Mon, Mar 21, 2011 5:26 pm Subject: Re: Restrict WMS operations On 11-03-21 1:01 PM, aznan wrote: > Hi! > I'm a new Mapserver user and I'm trying to figure out how to make my WMS > server only accept GetCapabilities and GetMap requests. > > The documentation at http://mapserver.org/ogc/wms_server.html says that > GetLegendGraphic requires a LEGEND object in the map file. I've been looking > at the examples in the OGC workshop and I tried to remove LEGEND from > config.map but GetLegendGraphic still shows up in the capabilities response > and a request still returns the blue squiggly line and 'Rivers' image. I > don't even know where to begin restricting GetFeatureInfo and the other > operations. > > Please help! Hello, Regarding restricting WMS requests, take a look at the functionality that is upcoming in the MapServer 6.0 release: http://mapserver.org/development/rfc/ms-rfc-67.html You should be able to try this on your platform, as MapServer 6.0-beta2 was just released. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users If you reply to this email, your message will be added to the discussion below: http://osgeo-org.1803224.n2.nabble.com/Restrict-WMS-operations-tp6192759p6192878.html To unsubscribe from Restrict WMS operations, click here. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Restrict-WMS-operations-tp6192759p6219494.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aboudreault at mapgears.com Tue Mar 29 08:45:07 2011 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 29 Mar 2011 11:45:07 -0400 Subject: [mapserver-users] Re: Restrict WMS operations In-Reply-To: <1301410268699-6219494.post@n2.nabble.com> References: <1300723263465-6192759.post@n2.nabble.com> <8CDB69EE67C4A75-2178-5569@web-mmc-d05.sysops.aol.com> <1301410268699-6219494.post@n2.nabble.com> Message-ID: <201103291145.07949.aboudreault@mapgears.com> Hi aznan, This modification has been added last week. It will be in the beta 4 release. Thanks, Alan On March 29, 2011 10:51:08 am aznan wrote: > Hi! > I finally got around to trying out Mapserver 6 beta 3. When adding this > line to the map file: > > "wms_enable_request" "GetCapabilities GetMap" > > requests other than the two mentioned return a ServiceException, which is > great, but the other operations still show up in the GetCapabilities > response. Is there something I'm missing? > > Thanks! > /Matti > > > -----Original Message----- > From: Jeff McKenna [via OSGeo.org] > <ml-node+6192878-452004863-270550 at n2.nabble.com> > To: aznan <g8a at email.com> > Sent: Mon, Mar 21, 2011 5:26 pm > Subject: Re: Restrict WMS operations > > > On 11-03-21 1:01 PM, aznan wrote: > > > Hi! > > I'm a new Mapserver user and I'm trying to figure out how to make my > WMS > > server only accept GetCapabilities and GetMap requests. > > > > The documentation at http://mapserver.org/ogc/wms_server.html says > that > GetLegendGraphic requires a LEGEND object in the map file. I've > been looking > > at the examples in the OGC workshop and I tried to remove LEGEND from > > config.map but GetLegendGraphic still shows up in the capabilities > response > > and a request still returns the blue squiggly line and 'Rivers' image. > I > > don't even know where to begin restricting GetFeatureInfo and the > other > operations. > > > > Please help! > > Hello, > > Regarding restricting WMS requests, take a look at the functionality > that is upcoming in the MapServer 6.0 release: > http://mapserver.org/development/rfc/ms-rfc-67.html You should be able > to try this on your platform, as MapServer 6.0-beta2 was just released. > > -jeff -- Alan Boudreault Mapgears http://www.mapgears.com From Asad.Ullah at sigmaspace.com Tue Mar 29 08:42:57 2011 From: Asad.Ullah at sigmaspace.com (Asad Ullah) Date: Tue, 29 Mar 2011 15:42:57 +0000 Subject: [mapserver-users] Overriding MapServer Map File "DATA" parameter Message-ID: <05CB785138CBDC42B993061A0161A57E04A54704@stimpy.sigmaspace.local> List, I am trying to override virtual raster (.vrt) file defined in mapfile with a different one from a list of vrt files. I am using Opnelayers and Mapserver 5.6.6 to create map. In Openlayers, I have tried: var Terra250tif = new OpenLayers.Layer.MapServer( "Terra250m_bands1-4-3", "http://192.225.64.118/cgi-bin/mapserv?", { layers:"Terra250tif","map.layer[Terra250tif]":"DATA terr_ndvi.vrt", map: '/usr/local/apache/htdocs/mapfiles/rrglobal_terra_250m_2011052jpg.map' }, {singleTile:false}); The relevant part of the mapfile is: LAYER NAME "Terra250_367jpg" TYPE RASTER STATUS DEFAULT OFFSITE 0 0 0 PROJECTION "init=epsg:4326" END DATA "terr_250m_2011052jpg.vrt" CLASS STYLE BACKGROUNDCOLOR 255 255 255 END END END I looked at "mapserver.osgeo.org/cgi/controls.html....." but that did not helped. So, could anyone help with this. Thanks, Asad -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Tue Mar 29 09:24:26 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 29 Mar 2011 11:24:26 -0500 Subject: [mapserver-users] RE: Overriding MapServer Map File "DATA" parameter In-Reply-To: <05CB785138CBDC42B993061A0161A57E04A54704@stimpy.sigmaspace.local> References: <05CB785138CBDC42B993061A0161A57E04A54704@stimpy.sigmaspace.local> Message-ID: You need to set a validation pattern to muck with the DATA attribute. You'd add something like this to your layer definition: VALIDATION 'data' '^terr_.*\.vrt$' END Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Asad Ullah Sent: Tuesday, March 29, 2011 10:43 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Overriding MapServer Map File "DATA" parameter List, I am trying to override virtual raster (.vrt) file defined in mapfile with a different one from a list of vrt files. I am using Opnelayers and Mapserver 5.6.6 to create map. In Openlayers, I have tried: var Terra250tif = new OpenLayers.Layer.MapServer( "Terra250m_bands1-4-3", "http://192.225.64.118/cgi-bin/mapserv?", { layers:"Terra250tif","map.layer[Terra250tif]":"DATA terr_ndvi.vrt", map: '/usr/local/apache/htdocs/mapfiles/rrglobal_terra_250m_2011052jpg.map' }, {singleTile:false}); The relevant part of the mapfile is: LAYER NAME "Terra250_367jpg" TYPE RASTER STATUS DEFAULT OFFSITE 0 0 0 PROJECTION "init=epsg:4326" END DATA "terr_250m_2011052jpg.vrt" CLASS STYLE BACKGROUNDCOLOR 255 255 255 END END END I looked at "mapserver.osgeo.org/cgi/controls.html....." but that did not helped. So, could anyone help with this. Thanks, Asad -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Tue Mar 29 09:26:58 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 29 Mar 2011 11:26:58 -0500 Subject: [mapserver-users] FOSS4G 2011 call for papers reminder Message-ID: >From the FOSS4G conference folks... Steve Hello everyone, This is just a friendly reminder that the call for papers for FOSS4G 2011 in Denver closes on April 15, so you have a little over two weeks to get abstracts in. The call for presentations is at http://2011.foss4g.org/presentations/. In case you haven't seen them yet, we already have a great lineup of workshops and tutorials scheduled, for more information see http://2011.foss4g.org/workshops/. Cheers, Peter. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ATT00001..txt URL: From lee.meilleur at gis.leg.mn Tue Mar 29 09:37:15 2011 From: lee.meilleur at gis.leg.mn (Lee Meilleur) Date: Tue, 29 Mar 2011 11:37:15 -0500 Subject: [mapserver-users] Too many open files... In-Reply-To: <4D91060C.80205@swoodbridge.com> References: <4D90FDB2.3090106@swoodbridge.com> <8FB61219-9667-45FF-9F6D-0060D42689F4@gmail.com> <4D91060C.80205@swoodbridge.com> Message-ID: The problem ended up being an issue with ulimit, the parameters I entered were not taking. I found the page below which seems to have resolved the issue. Thanks again for all of the suggestions. http://www.xenoclast.org/doc/benchmark/HTTP-benchmarking-HOWTO/node7.html Lee -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Monday, March 28, 2011 5:05 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Too many open files... Lee, I think I have run into this before. Turn off SELinux if it is running and I bet that is it. Otherwise, try building mapserver from source, maybe you ahve a library or rpm packaging issue. -Steve W On 3/28/2011 5:57 PM, Jim Klassen wrote: > > Are you running anything else significant on the machine? > > It would generally be very difficult for MapServer, running in CGI > mode, to use up all the open files. > > The only cases I can think of that could be related to MapServer > serving shapefiles would be (1) FastCGI and a bug that isn't closing > files. If this is the case, the issue should go away for awhile after > you restart apache. (2) if you have some sort of tileindex with a > huge number of items in it or a tileindex that points back to itself. > > Otherwise, I could see this if something else on the machine is using > up all the file handles (globally or per user). > > Another random thought... is there some interaction with SELinux > (assuming you have SELinux enforcing)? > > I think you said this behavior was new... if so, has anything changed > on the machine lately? > > Sorry I can't be more helpful. > > Jim K > > On Mar 28, 2011, at 4:45 PM, Lee Meilleur wrote: > >> Fedora 12 Apache 2.2.14 Prefork MPM >> >> ./shp2img: error while loading shared libraries: librx.so.0: cannot >> open shared object file: No such file or directory (this was news to >> me) >> >> Serving shapefiles only. >> >> MapServer version 5.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER >> SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR >> INPUT=GDAL INPUT=SHAPEFILE >> >> Thanks >> >> -----Original Message----- From: >> mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen >> Woodbridge Sent: Monday, March 28, 2011 4:29 PM To: >> mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Too >> many open files... >> >> On 3/28/2011 5:05 PM, Lee Meilleur wrote: >>> Hello, >>> >>> Has anyone run into the error: "Too many open files: couldn't set >>> child process attributes: /var/www/cgi-bin/mapserv"? This error >>> shows up in an Apache error_log. A broken image now shows up for >>> MapServer layers since this started. I've tried changing the ulimits >>> or the MaxRequestsPerChild for Apache with no luck. >>> Any other ideas? >> >> You probably need to give us more information like: >> >> Which OS? Which Apache version? Which Apache MPM module are you >> using? /var/www/cgi-bin/mapserv -v output? >> >> Does this happen when you run shp2img? What are you serving via >> mapserver? vectors, imagery, database, etc? >> >> -Steve W _______________________________________________ >> mapserver-users mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ mapserver-users >> mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jrguerra at gmv.com Tue Mar 29 10:18:55 2011 From: jrguerra at gmv.com (=?iso-8859-1?Q?Joaqu=EDn_Rodriguez-Guerra_Urcelay?=) Date: Tue, 29 Mar 2011 19:18:55 +0200 Subject: [mapserver-users] WFS Intersect with gml:box Message-ID: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> Hello list, I am using a desktop GIS applicatin (uDig) to connect mapserver and display some wfs layers and I am having some trouble when uDig tries to filter features by bounding box. uDig sends a intersects spatial filter to obtain features in a bounding box: http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point -100.0,-45.0 100.0,45.0 But it is not working :( msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature : point-100.0,-45.0 100.0,45.0 I have checked that the BBOX filter works perfectly ( I just replaced Intersects with BBOX in the above url) http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point -100.0,-45.0 100.0,45.0 But I cant make the INTERSECTS operation work. I would really appreciate if someone could point me to any examples of the INTERSECT operation used together with gml:box or Box. I have seen some examples of intersects used with gml:polygon, but it should work too with box, right?? Thanks for reading! Joaqu?n ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ From Jukka.Rahkonen at mmmtike.fi Tue Mar 29 10:35:27 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 29 Mar 2011 20:35:27 +0300 Subject: [mapserver-users] WFS Intersect with gml:box References: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> Message-ID: Hi, Have you copied the uDig request right? I suppose the filter is . At leas my Geoserver sends that in the GetCapabilities. For information, wile using "box" is OK with WFS 1.0.0, some old deegree based WFS clients (OpenJUMP WFS plugin at least) are offering the "box" also with WFS 1.1.0 requests, but GML3 does not support box and those requests are invalid. Should use anvelope of something else instead. -Jukka Rahkonen- Joaqu?n Rodriguez-Guerra Urcelay wrote: > Hello list, > I am using a desktop GIS applicatin (uDig) to connect mapserver and display some wfs layers and I am having some trouble when uDig tries to filter features by bounding box. > uDig sends a intersects spatial filter to obtain features in a bounding box: > http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point -100.0,-45.0 100.0,45.0 > But it is not working :( > msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature : point-100.0,-45.0 100.0,45.0 > I have checked that the BBOX filter works perfectly ( I just replaced Intersects with BBOX in the above url) > http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point -100.0,-45.0 100.0,45.0 > But I cant make the INTERSECTS operation work. I would really appreciate if someone could point me to any examples of the INTERSECT operation used together with gml:box or Box. I have seen some examples of intersects used with gml:polygon, but it should work too with box, right?? Thanks for reading! Joaqu?n ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jrguerra at gmv.com Tue Mar 29 11:07:01 2011 From: jrguerra at gmv.com (=?iso-8859-1?Q?Joaqu=EDn_Rodriguez-Guerra_Urcelay?=) Date: Tue, 29 Mar 2011 20:07:01 +0200 Subject: [mapserver-users] WFS Intersect with gml:box In-Reply-To: References: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es>, Message-ID: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE3@GMVMAIL5.gmv.es> Hi Jukka, My mapserver's GetCapabilities also sends ogc:Intersect, but somehow it is also accepting Intersects ( I dont know which one is the standar, but it seems like geotools uses intersects) http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities .... ... I copied the filter directly from debugging: 29-mar-2011 19:59:21 org.geotools.xml.XMLSAXHandler processException GRAVE: msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature : point -100.0,-45.0 100.0,45.0 org.geotools.xml.filter.FilterComplexTypes$ServiceExceptionType.getValue(FilterComplexTypes.java:1667) org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElementHandler.java:157) org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:262) org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) org.apache.xerces.parsers.XMLParser.parse(Unknown Source) org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) javax.xml.parsers.SAXParser.parse(Unknown Source) javax.xml.parsers.SAXParser.parse(Unknown Source) org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:132) org.geotools.data.wfs.v1_0_0.WFSFeatureReader.run(WFSFeatureReader.java:122) I installed mapserver with fgs-mapserver_basic_5.6.3-fgs_9.5-linux-i386.bin It is weird that the BBOX filter works, and the Intersects doesnt, with the same data. I can give you the ip address of the server is you want to try anything Thank you for your help! Joaqu?n ________________________________________ De: Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] Enviado el: martes, 29 de marzo de 2011 19:35 Para: Joaqu?n Rodriguez-Guerra Urcelay; mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] WFS Intersect with gml:box Hi, Have you copied the uDig request right? I suppose the filter is . At leas my Geoserver sends that in the GetCapabilities. For information, wile using "box" is OK with WFS 1.0.0, some old deegree based WFS clients (OpenJUMP WFS plugin at least) are offering the "box" also with WFS 1.1.0 requests, but GML3 does not support box and those requests are invalid. Should use anvelope of something else instead. -Jukka Rahkonen- Joaqu?n Rodriguez-Guerra Urcelay wrote: > Hello list, > I am using a desktop GIS applicatin (uDig) to connect mapserver and display some wfs layers and I am having some trouble when uDig tries to filter features by bounding box. > uDig sends a intersects spatial filter to obtain features in a bounding box: > http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point -100.0,-45.0 100.0,45.0 > But it is not working :( > msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature : point-100.0,-45.0 100.0,45.0 > I have checked that the BBOX filter works perfectly ( I just replaced Intersects with BBOX in the above url) > http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point -100.0,-45.0 100.0,45.0 > But I cant make the INTERSECTS operation work. I would really appreciate if someone could point me to any examples of the INTERSECT operation used together with gml:box or Box. I have seen some examples of intersects used with gml:polygon, but it should work too with box, right?? Thanks for reading! Joaqu?n ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ From juanzito at univali.br Tue Mar 29 11:52:27 2011 From: juanzito at univali.br (Juan Carlos Monestel) Date: Tue, 29 Mar 2011 15:52:27 -0300 Subject: [mapserver-users] how to create symbol on the START and END of a line Message-ID: <164EB4B8A51B054CA831E54324F468B735D7B4@siaimail06.univali.br> Hello everyone, I'm trying to put/create a symbol on the START and END of a line. Making some research I found the STYLE GEOMTRANSFORM "start|end" that represent exactly what i want but there is a problem I'm using Mapserver 4.x and it only works for versions over 5.4. I was trying to draw something like A-----------------------B Where "A" or some kind of symbol represents the START of the line and "B" or some kind of symbol represents the END of the line Does anybody know a soluction? Thx Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Mar 29 12:04:17 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 29 Mar 2011 22:04:17 +0300 Subject: [mapserver-users] how to create symbol on the START and END of aline References: <164EB4B8A51B054CA831E54324F468B735D7B4@siaimail06.univali.br> Message-ID: Hi, You may not like this, but anyway... Have you considered updating? Mapserver 6.0 is in beta phase and I fear you are all alone with 4.x even now. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Juan Carlos Monestel L?hetetty: ti 29.3.2011 21:52 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] how to create symbol on the START and END of aline Hello everyone, I'm trying to put/create a symbol on the START and END of a line. Making some research I found the STYLE GEOMTRANSFORM "start|end" that represent exactly what i want but there is a problem I'm using Mapserver 4.x and it only works for versions over 5.4. I was trying to draw something like A-----------------------B Where "A" or some kind of symbol represents the START of the line and "B" or some kind of symbol represents the END of the line Does anybody know a soluction? Thx Juan From juanzito at univali.br Tue Mar 29 12:17:22 2011 From: juanzito at univali.br (Juan Carlos Monestel) Date: Tue, 29 Mar 2011 16:17:22 -0300 Subject: [mapserver-users] how to create symbol on the START and END of aline References: <164EB4B8A51B054CA831E54324F468B735D7B4@siaimail06.univali.br> Message-ID: <164EB4B8A51B054CA831E54324F468B735D7B7@siaimail06.univali.br> Hi Jukka Rahkonen I can't consider to update the version right now because there is an application running on it... Does anybody body have another idea or solution for version 4.x? -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Tue 3/29/2011 4:04 PM To: Juan Carlos Monestel; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] how to create symbol on the START and END of aline Hi, You may not like this, but anyway... Have you considered updating? Mapserver 6.0 is in beta phase and I fear you are all alone with 4.x even now. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Juan Carlos Monestel L?hetetty: ti 29.3.2011 21:52 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] how to create symbol on the START and END of aline Hello everyone, I'm trying to put/create a symbol on the START and END of a line. Making some research I found the STYLE GEOMTRANSFORM "start|end" that represent exactly what i want but there is a problem I'm using Mapserver 4.x and it only works for versions over 5.4. I was trying to draw something like A-----------------------B Where "A" or some kind of symbol represents the START of the line and "B" or some kind of symbol represents the END of the line Does anybody know a soluction? Thx Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Asad.Ullah at sigmaspace.com Tue Mar 29 12:28:16 2011 From: Asad.Ullah at sigmaspace.com (Asad Ullah) Date: Tue, 29 Mar 2011 19:28:16 +0000 Subject: [mapserver-users] . RE: Overriding MapServer Map File "DATA" parameter In-Reply-To: <20110329163754.7200BE021CC@lists.osgeo.org> References: <20110329163754.7200BE021CC@lists.osgeo.org> Message-ID: <05CB785138CBDC42B993061A0161A57E04A5479C@stimpy.sigmaspace.local> Tried the solution below #1 but did not work. More suggestion please! Asad -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of mapserver-users-request at lists.osgeo.org Sent: Tuesday, March 29, 2011 12:38 PM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 38, Issue 57 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. RE: Overriding MapServer Map File "DATA" parameter (Lime, Steve D (DNR)) 2. FOSS4G 2011 call for papers reminder (Lime, Steve D (DNR)) 3. RE: Too many open files... (Lee Meilleur) ---------------------------------------------------------------------- Message: 1 Date: Tue, 29 Mar 2011 11:24:26 -0500 From: "Lime, Steve D (DNR)" Subject: [mapserver-users] RE: Overriding MapServer Map File "DATA" parameter To: Asad Ullah , "mapserver-users at lists.osgeo.org" Message-ID: Content-Type: text/plain; charset="us-ascii" You need to set a validation pattern to muck with the DATA attribute. You'd add something like this to your layer definition: VALIDATION 'data' '^terr_.*\.vrt$' END Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Asad Ullah Sent: Tuesday, March 29, 2011 10:43 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Overriding MapServer Map File "DATA" parameter List, I am trying to override virtual raster (.vrt) file defined in mapfile with a different one from a list of vrt files. I am using Opnelayers and Mapserver 5.6.6 to create map. In Openlayers, I have tried: var Terra250tif = new OpenLayers.Layer.MapServer( "Terra250m_bands1-4-3", "http://192.225.64.118/cgi-bin/mapserv?", { layers:"Terra250tif","map.layer[Terra250tif]":"DATA terr_ndvi.vrt", map: '/usr/local/apache/htdocs/mapfiles/rrglobal_terra_250m_2011052jpg.map' }, {singleTile:false}); The relevant part of the mapfile is: LAYER NAME "Terra250_367jpg" TYPE RASTER STATUS DEFAULT OFFSITE 0 0 0 PROJECTION "init=epsg:4326" END DATA "terr_250m_2011052jpg.vrt" CLASS STYLE BACKGROUNDCOLOR 255 255 255 END END END I looked at "mapserver.osgeo.org/cgi/controls.html....." but that did not helped. So, could anyone help with this. Thanks, Asad -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110329/14284c61/attachment-0001.html ------------------------------ Message: 2 Date: Tue, 29 Mar 2011 11:26:58 -0500 From: "Lime, Steve D (DNR)" Subject: [mapserver-users] FOSS4G 2011 call for papers reminder To: "mapserver-users at lists.osgeo.org" Message-ID: Content-Type: text/plain; charset="us-ascii" Skipped content of type multipart/alternative-------------- next part -------------- _______________________________________________ Discuss mailing list Discuss at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss ------------------------------ Message: 3 Date: Tue, 29 Mar 2011 11:37:15 -0500 From: Lee Meilleur Subject: RE: [mapserver-users] Too many open files... To: Stephen Woodbridge , "mapserver-users at lists.osgeo.org" Message-ID: Content-Type: text/plain; charset="us-ascii" The problem ended up being an issue with ulimit, the parameters I entered were not taking. I found the page below which seems to have resolved the issue. Thanks again for all of the suggestions. http://www.xenoclast.org/doc/benchmark/HTTP-benchmarking-HOWTO/node7.html Lee -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Monday, March 28, 2011 5:05 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Too many open files... Lee, I think I have run into this before. Turn off SELinux if it is running and I bet that is it. Otherwise, try building mapserver from source, maybe you ahve a library or rpm packaging issue. -Steve W On 3/28/2011 5:57 PM, Jim Klassen wrote: > > Are you running anything else significant on the machine? > > It would generally be very difficult for MapServer, running in CGI > mode, to use up all the open files. > > The only cases I can think of that could be related to MapServer > serving shapefiles would be (1) FastCGI and a bug that isn't closing > files. If this is the case, the issue should go away for awhile after > you restart apache. (2) if you have some sort of tileindex with a > huge number of items in it or a tileindex that points back to itself. > > Otherwise, I could see this if something else on the machine is using > up all the file handles (globally or per user). > > Another random thought... is there some interaction with SELinux > (assuming you have SELinux enforcing)? > > I think you said this behavior was new... if so, has anything changed > on the machine lately? > > Sorry I can't be more helpful. > > Jim K > > On Mar 28, 2011, at 4:45 PM, Lee Meilleur wrote: > >> Fedora 12 Apache 2.2.14 Prefork MPM >> >> ./shp2img: error while loading shared libraries: librx.so.0: cannot >> open shared object file: No such file or directory (this was news to >> me) >> >> Serving shapefiles only. >> >> MapServer version 5.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER >> SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR >> INPUT=GDAL INPUT=SHAPEFILE >> >> Thanks >> >> -----Original Message----- From: >> mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen >> Woodbridge Sent: Monday, March 28, 2011 4:29 PM To: >> mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Too >> many open files... >> >> On 3/28/2011 5:05 PM, Lee Meilleur wrote: >>> Hello, >>> >>> Has anyone run into the error: "Too many open files: couldn't set >>> child process attributes: /var/www/cgi-bin/mapserv"? This error >>> shows up in an Apache error_log. A broken image now shows up for >>> MapServer layers since this started. I've tried changing the ulimits >>> or the MaxRequestsPerChild for Apache with no luck. >>> Any other ideas? >> >> You probably need to give us more information like: >> >> Which OS? Which Apache version? Which Apache MPM module are you >> using? /var/www/cgi-bin/mapserv -v output? >> >> Does this happen when you run shp2img? What are you serving via >> mapserver? vectors, imagery, database, etc? >> >> -Steve W _______________________________________________ >> mapserver-users mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ mapserver-users >> mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 38, Issue 57 *********************************************** From ludwig at kni-online.de Tue Mar 29 12:57:12 2011 From: ludwig at kni-online.de (Ludwig Kniprath) Date: Tue, 29 Mar 2011 21:57:12 +0200 Subject: [mapserver-users] how to create symbol on the START and END of aline In-Reply-To: <20110329192209.9DE1CE0215D@lists.osgeo.org> References: <20110329192209.9DE1CE0215D@lists.osgeo.org> Message-ID: <4D923998.20302@kni-online.de> Hi, perhaps a workaround for your problem: If you use database-driven-layers, f. e. postgis, you can create two spatial queries that return the start- end endpoints of your lines (postgis-functions ST_StartPoint and ST_EndPoint), each of them for a new point-layer for start and end-symbolization. hth Ludwig From yassefa at dmsolutions.ca Tue Mar 29 13:33:08 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 29 Mar 2011 16:33:08 -0400 Subject: [mapserver-users] WFS Intersect with gml:box In-Reply-To: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> References: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> Message-ID: <4D924204.4090401@dmsolutions.ca> Hi, I did check that and It was not working for me either. It is now fixed in trunk and also in the 5.6.x branch. I have added a bug [1] on it, so if you have the chance to build from source, please give it a try and update the bug. best regards, [1]: http://trac.osgeo.org/mapserver/ticket/3789 On 29/03/2011 1:18 PM, Joaqu?n Rodriguez-Guerra Urcelay wrote: > Hello list, > > I am using a desktop GIS applicatin (uDig) to connect mapserver and display some wfs layers and I am having some trouble when uDig tries to filter features by bounding box. > > uDig sends a intersects spatial filter to obtain features in a bounding box: > > http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= > point > -100.0,-45.0 100.0,45.0 > > > > > But it is not working :( > > > > msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature :point-100.0,-45.0 100.0,45.0 > > > > I have checked that the BBOX filter works perfectly ( I just replaced Intersects with BBOX in the above url) > > http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= > point > -100.0,-45.0 100.0,45.0 > > > > > But I cant make the INTERSECTS operation work. I would really appreciate if someone could point me to any examples of the INTERSECT operation used together with gml:box or Box. > I have seen some examples of intersects used with gml:polygon, but it should work too with box, right?? > > Thanks for reading! > > Joaqu?n > ______________________ > This message including any attachments may contain confidential > information, according to our Information Security Management System, > and intended solely for a specific individual to whom they are addressed. > Any unauthorised copy, disclosure or distribution of this message > is strictly forbidden. If you have received this transmission in error, > please notify the sender immediately and delete it. > > ______________________ > Este mensaje, y en su caso, cualquier fichero anexo al mismo, > puede contener informacion clasificada por su emisor como confidencial > en el marco de su Sistema de Gestion de Seguridad de la > Informacion siendo para uso exclusivo del destinatario, quedando > prohibida su divulgacion copia o distribucion a terceros sin la > autorizacion expresa del remitente. Si Vd. ha recibido este mensaje > erroneamente, se ruega lo notifique al remitente y proceda a su borrado. > Gracias por su colaboracion. > > ______________________ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From geographika at gmail.com Tue Mar 29 13:38:30 2011 From: geographika at gmail.com (geographika) Date: Tue, 29 Mar 2011 22:38:30 +0200 Subject: [mapserver-users] USING UNIQUE with multiple fields In-Reply-To: References: <1301216171651-6211951.post@n2.nabble.com> <4D910C4D.5060903@gmail.com> Message-ID: <4D924346.9050507@gmail.com> Thanks Tamas and Jukka for you replies. I'll be able to work around it with a view as suggested. It would be good to clarify the USING UNIQUE clause somewhere in the docs. -- web:http://geographika.co.uk twitter: @geographika On 29/03/2011 12:39, Tamas Szekeres wrote: > Hi, > > That is not possible, the feature ID must be an integer field with the > current implementation. > > Best regards, > > Tamas > > > > 2011/3/29 geographika > > > Hi > > I have a feature table which I'm serving out as a WFS. It has a > two column unique index - is there support for this in a LAYER > definition in a mapfile? > > E.g. DATA "GEOM from mytable USING SRID=29902 USING UNIQUE > Field1,Field2 > > I presume not as I've tried a few combinations with no success, > but just wondered if this is possible. I'm using a SQL Server 2008 > connection. > Thanks for any help, > > Seth > > -- > web:http://geographika.co.uk > twitter: @geographika > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Tue Mar 29 14:37:37 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 29 Mar 2011 16:37:37 -0500 Subject: [mapserver-users] RE: Overriding MapServer Map File "DATA" parameter In-Reply-To: <05CB785138CBDC42B993061A0161A57E04A54762@stimpy.sigmaspace.local> References: <05CB785138CBDC42B993061A0161A57E04A54704@stimpy.sigmaspace.local>, <05CB785138CBDC42B993061A0161A57E04A54762@stimpy.sigmaspace.local> Message-ID: Try things outside of OpenLayers first, easier to debug that way. I'll try and whip up a test case in the meantime on my end to verify the syntax. Steve From: Asad Ullah [mailto:Asad.Ullah at sigmaspace.com] Sent: Tuesday, March 29, 2011 1:20 PM To: Lime, Steve D (DNR) Subject: RE: Overriding MapServer Map File "DATA" parameter Steve, Thanks very much for your quick response. I added validation to my mapfile layer object but still it is not working. anyother suggestion? I am wondering if the syntex "map.layer[Terra250tif]":"DATA terr_ndvi.vrt" I use in openlayer is correct. Thanks, Asad ________________________________ From: Lime, Steve D (DNR) [steve.lime at state.mn.us] Sent: Tuesday, March 29, 2011 12:24 PM To: Asad Ullah; mapserver-users at lists.osgeo.org Subject: RE: Overriding MapServer Map File "DATA" parameter You need to set a validation pattern to muck with the DATA attribute. You'd add something like this to your layer definition: VALIDATION 'data' '^terr_.*\.vrt$' END Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Asad Ullah Sent: Tuesday, March 29, 2011 10:43 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Overriding MapServer Map File "DATA" parameter List, I am trying to override virtual raster (.vrt) file defined in mapfile with a different one from a list of vrt files. I am using Opnelayers and Mapserver 5.6.6 to create map. In Openlayers, I have tried: var Terra250tif = new OpenLayers.Layer.MapServer( "Terra250m_bands1-4-3", "http://192.225.64.118/cgi-bin/mapserv?", { layers:"Terra250tif","map.layer[Terra250tif]":"DATA terr_ndvi.vrt", map: '/usr/local/apache/htdocs/mapfiles/rrglobal_terra_250m_2011052jpg.map' }, {singleTile:false}); The relevant part of the mapfile is: LAYER NAME "Terra250_367jpg" TYPE RASTER STATUS DEFAULT OFFSITE 0 0 0 PROJECTION "init=epsg:4326" END DATA "terr_250m_2011052jpg.vrt" CLASS STYLE BACKGROUNDCOLOR 255 255 255 END END END I looked at "mapserver.osgeo.org/cgi/controls.html....." but that did not helped. So, could anyone help with this. Thanks, Asad -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrguerra at gmv.com Wed Mar 30 00:29:42 2011 From: jrguerra at gmv.com (=?iso-8859-1?Q?Joaqu=EDn_Rodriguez-Guerra_Urcelay?=) Date: Wed, 30 Mar 2011 09:29:42 +0200 Subject: [mapserver-users] WFS Intersect with gml:box In-Reply-To: <4D924204.4090401@dmsolutions.ca> References: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> <4D924204.4090401@dmsolutions.ca> Message-ID: <4E70D1E8680D584198DDB55BD65220B3A32D98AD5A@GMVMAIL5.gmv.es> Thanks Yewondwossen, I am going to try to build from source (I have never donde it before) and update the bug :) Best regards, Joaqu?n De: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] Enviado el: martes, 29 de marzo de 2011 22:33 Para: Joaqu?n Rodriguez-Guerra Urcelay CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] WFS Intersect with gml:box Hi, I did check that and It was not working for me either. It is now fixed in trunk and also in the 5.6.x branch. I have added a bug [1] on it, so if you have the chance to build from source, please give it a try and update the bug. best regards, [1]: http://trac.osgeo.org/mapserver/ticket/3789 On 29/03/2011 1:18 PM, Joaqu?n Rodriguez-Guerra Urcelay wrote: Hello list, I am using a desktop GIS applicatin (uDig) to connect mapserver and display some wfs layers and I am having some trouble when uDig tries to filter features by bounding box. uDig sends a intersects spatial filter to obtain features in a bounding box: http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= xmlns:gml="http://www.opengis.net/gml">point -100.0,-45.0 100.0,45.0 But it is not working :( > msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature : xmlns:gml="http://www.opengis.net/gml">point-100.0,-45.0 100.0,45.0 I have checked that the BBOX filter works perfectly ( I just replaced Intersects with BBOX in the above url) http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= xmlns:gml="http://www.opengis.net/gml">point -100.0,-45.0 100.0,45.0 But I cant make the INTERSECTS operation work. I would really appreciate if someone could point me to any examples of the INTERSECT operation used together with gml:box or Box. I have seen some examples of intersects used with gml:polygon, but it should work too with box, right?? Thanks for reading! Joaqu?n ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.frances at cesefor.com Wed Mar 30 00:43:00 2011 From: david.frances at cesefor.com (=?iso-8859-1?Q?David_Franc=E9s?=) Date: Wed, 30 Mar 2011 09:43:00 +0200 Subject: [mapserver-users] create symbols and random format Message-ID: <98CB20377E72ED4CB23EC4AF53EE57190110084D@correo.cesefor.com> Good morning, How is a symbolism of a polygon vector layer type consisting of random points along its surface?, is like making a orthogonal grid, what interests me is to move the rack to random points. Does anyone know how? Thank you very much Greetings -------------- next part -------------- An HTML attachment was scrubbed... URL: From geographika at gmail.com Wed Mar 30 01:35:06 2011 From: geographika at gmail.com (geographika) Date: Wed, 30 Mar 2011 10:35:06 +0200 Subject: [mapserver-users] WMS layer with FILTER and TIME parameter Message-ID: <4D92EB3A.1020708@gmail.com> Hi, I am calling a MapServer WMS layer from OpenLayers with a time paramter such as TIME=2005%2F2020 My WMS layer in the MapFile has the following parameters: DATA "GEOM from table USING UNIQUE FID USING SRID=29902" FILTER "MyVal = 2" However the filter is ignored whenever TIME is used. Is this expected behaviour that any previous filters are overwritten rather than appended to? I'm using MapServer 5.6 and the MS SQL plugin. Regards, Seth -- web:http://geographika.co.uk twitter: @geographika -------------- next part -------------- An HTML attachment was scrubbed... URL: From juanzito at univali.br Wed Mar 30 05:23:53 2011 From: juanzito at univali.br (Juan Carlos Monestel) Date: Wed, 30 Mar 2011 09:23:53 -0300 Subject: [mapserver-users] how to create symbol on the START and END of aline References: <20110329192209.9DE1CE0215D@lists.osgeo.org> <4D923998.20302@kni-online.de> Message-ID: <164EB4B8A51B054CA831E54324F468B735D7B8@siaimail06.univali.br> Hi Ludwig Today I do this, I create a layer with the line and then create another layer with the points (start and end) using SQL. But I would do this without need to create 2 layers using the same SQL causing decrease the rendering time. Any other Idea? Thx Juan -----Original Message----- From: Ludwig Kniprath [mailto:ludwig at kni-online.de] Sent: Tue 3/29/2011 4:57 PM To: mapserver-users at lists.osgeo.org Cc: mapserver-users-request at lists.osgeo.org; Juan Carlos Monestel Subject: Re: [mapserver-users] how to create symbol on the START and END of aline Hi, perhaps a workaround for your problem: If you use database-driven-layers, f. e. postgis, you can create two spatial queries that return the start- end endpoints of your lines (postgis-functions ST_StartPoint and ST_EndPoint), each of them for a new point-layer for start and end-symbolization. hth Ludwig -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Mar 30 05:34:11 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 30 Mar 2011 14:34:11 +0200 Subject: [mapserver-users] how to create symbol on the START and END of aline In-Reply-To: <164EB4B8A51B054CA831E54324F468B735D7B8@siaimail06.univali.br> References: <20110329192209.9DE1CE0215D@lists.osgeo.org> <4D923998.20302@kni-online.de> <164EB4B8A51B054CA831E54324F468B735D7B8@siaimail06.univali.br> Message-ID: Juan, If there was a simple and efficient way of rendering start and end points before version 5.4, we probably would not have gone to the trouble of implementing the GEOTRANSFORM stuff. So no, there no other way aside from upgrading or creating a second layer. -- thomas On Wed, Mar 30, 2011 at 14:23, Juan Carlos Monestel wrote: > Hi Ludwig > Today I do this, I create a layer with the line and then create another > layer with the points (start and end) using SQL. > But I would do this without need to create 2 layers using the same SQL > causing decrease the rendering time. > > > Any other Idea? > > > Thx > Juan > > -----Original Message----- > From: Ludwig Kniprath [mailto:ludwig at kni-online.de] > Sent: Tue 3/29/2011 4:57 PM > To: mapserver-users at lists.osgeo.org > Cc: mapserver-users-request at lists.osgeo.org; Juan Carlos Monestel > Subject: Re: [mapserver-users] how to create symbol on the START and END of > aline > > Hi, > perhaps a workaround for your problem: > If you use database-driven-layers, f. e. postgis, you can create two > spatial queries that return the start- end endpoints of your lines > (postgis-functions ST_StartPoint and ST_EndPoint), each of them for a > new point-layer for start and end-symbolization. > > hth > Ludwig > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From pomiarowiec10 at poczta.onet.pl Wed Mar 30 06:10:11 2011 From: pomiarowiec10 at poczta.onet.pl (=?UTF-8?B?QmFydMWCb21pZWogQnVya290?=) Date: Wed, 30 Mar 2011 15:10:11 +0200 Subject: [mapserver-users] Negative GAP parameter to rotate vector symbols along line In-Reply-To: <4D92EB3A.1020708@gmail.com> References: <4D92EB3A.1020708@gmail.com> Message-ID: <4D932BB3.9010103@poczta.onet.pl> Hi Users I would like to render a vector symbol along the line in a layer. This vector symbol should be rotated according to orientation of linesegments (for example a arrow along one way street). When I use negative GAP with truetype symbol it work perfectly but I have probelms with vector symbols to rotate them. I use this definition of Symbol but it doesn't work: SYMBOL NAME "testsymbol" TYPE VECTOR POINTS 5 0 2 1 0 2.5 2 4 5 5 5 5 2 6 0 7.5 2 9 5 10 END STYLE 1 8 1 18 END GAP -99 # doesn't work END I read in docu http://mapserver.org/mapfile/symbol.html that: "When drawing the symbol along a line segment, a negative GAP will will add 180 degress to the angle. The TrueType and PixMap symbols are always oriented along the line." My layer definiton is: LAYER NAME testtest STATUS on TYPE line TRANSFORM false FEATURE WKT "LINESTRING (0 0, 100 100, 0 100)" END CLASS STYLE #ANGLE AUTO SYMBOL "testsymbol" COLOR 0 255 0 #SIZE 8 END END END Does vectorsymbol play with negative GAP parameter? Bartek -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Mar 30 08:00:59 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 30 Mar 2011 17:00:59 +0200 Subject: [mapserver-users] Negative GAP parameter to rotate vector symbols along line In-Reply-To: <4D932BB3.9010103@poczta.onet.pl> References: <4D92EB3A.1020708@gmail.com> <4D932BB3.9010103@poczta.onet.pl> Message-ID: what mapserver version? what outputformat/renderer? -- thomas On Wed, Mar 30, 2011 at 15:10, Bart?omiej Burkot wrote: > Hi Users > > I would like to render a vector symbol along the line in a layer. This > vector symbol should be rotated according to orientation of linesegments > (for example a arrow along one way street). When I use negative GAP with > truetype symbol it work perfectly but I have probelms with vector symbols to > rotate them. > > I use this definition of Symbol but it doesn't work: > > SYMBOL > ??? NAME "testsymbol" > ?? TYPE VECTOR > ? POINTS > ??? 5 0 > ??? 2 1 > ??? 0 2.5 > ??? 2 4 > ??? 5 5 > ??? 5 5 > ??? 2 6 > ??? 0 7.5 > ??? 2 9 > ??? 5 10 > ? END > ??? STYLE 1 8 1 18 END > ??? GAP -99 # doesn't work > END > > I read in docu http://mapserver.org/mapfile/symbol.html that: > > "When drawing the symbol along a line segment, a negative GAP will will add > 180 degress to the angle. The TrueType and PixMap symbols are always > oriented along the line." > > My layer definiton is: > > LAYER > ? NAME testtest > ? STATUS on > ? TYPE line > ? TRANSFORM false > ? FEATURE > ??? WKT "LINESTRING (0 0, 100 100, 0 100)" > ? END > ? CLASS > > ??? STYLE > ??? ??? #ANGLE AUTO > ??? ??? SYMBOL "testsymbol" > ??? ??? COLOR 0 255 0 > ??? ??? #SIZE??? 8 > ??? END > ? END > END > > Does vectorsymbol play with negative GAP parameter? > Bartek > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Phil.Anzel at ftc.usda.gov Wed Mar 30 08:28:18 2011 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO) Date: Wed, 30 Mar 2011 10:28:18 -0500 Subject: [mapserver-users] Build/download site unavailable Message-ID: <809503517A1B0347AF9A161507E6B29924A084B731@mokansasc7s304.agent.one.usda.gov> Hi, All, Is the MapServer binary download site site http://vbkto.dyndns.org/sdk/ offline? I'm seeing timeouts when attempting to connect. Thanks. - Phil Anzel Web Soil Survey developer Vistronix Inc. for USDA/NRCS/ITC From pomiarowiec10 at poczta.onet.pl Wed Mar 30 08:33:55 2011 From: pomiarowiec10 at poczta.onet.pl (=?UTF-8?B?QmFydMWCb21pZWogQnVya290?=) Date: Wed, 30 Mar 2011 17:33:55 +0200 Subject: [mapserver-users] Negative GAP parameter to rotate vector symbols along line In-Reply-To: References: <4D92EB3A.1020708@gmail.com> <4D932BB3.9010103@poczta.onet.pl> Message-ID: <4D934D63.2000708@poczta.onet.pl> Hi thomas > what mapserver version? > what outputformat/renderer? MapServer version 5.6.5 OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END Bartek > -- > thomas > > On Wed, Mar 30, 2011 at 15:10, Bart?omiej Burkot > wrote: >> Hi Users >> >> I would like to render a vector symbol along the line in a layer. This >> vector symbol should be rotated according to orientation of linesegments >> (for example a arrow along one way street). When I use negative GAP with >> truetype symbol it work perfectly but I have probelms with vector symbols to >> rotate them. >> >> I use this definition of Symbol but it doesn't work: >> >> SYMBOL >> NAME "testsymbol" >> TYPE VECTOR >> POINTS >> 5 0 >> 2 1 >> 0 2.5 >> 2 4 >> 5 5 >> 5 5 >> 2 6 >> 0 7.5 >> 2 9 >> 5 10 >> END >> STYLE 1 8 1 18 END >> GAP -99 # doesn't work >> END >> >> I read in docu http://mapserver.org/mapfile/symbol.html that: >> >> "When drawing the symbol along a line segment, a negative GAP will will add >> 180 degress to the angle. The TrueType and PixMap symbols are always >> oriented along the line." >> >> My layer definiton is: >> >> LAYER >> NAME testtest >> STATUS on >> TYPE line >> TRANSFORM false >> FEATURE >> WKT "LINESTRING (0 0, 100 100, 0 100)" >> END >> CLASS >> >> STYLE >> #ANGLE AUTO >> SYMBOL "testsymbol" >> COLOR 0 255 0 >> #SIZE 8 >> END >> END >> END >> >> Does vectorsymbol play with negative GAP parameter? >> Bartek >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> From jrguerra at gmv.com Wed Mar 30 10:14:37 2011 From: jrguerra at gmv.com (=?utf-8?B?Sm9hcXXDrW4gUm9kcmlndWV6LUd1ZXJyYSBVcmNlbGF5?=) Date: Wed, 30 Mar 2011 19:14:37 +0200 Subject: [mapserver-users] WFS Intersect with gml:box In-Reply-To: <789E82AF6874CF4CB8F27BE0B3C6435CA13B8B@GMVMAIL5.gmv.es> References: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> <4D924204.4090401@dmsolutions.ca>, <789E82AF6874CF4CB8F27BE0B3C6435CA13B8B@GMVMAIL5.gmv.es> Message-ID: <4E70D1E8680D584198DDB55BD65220B3A32D98DCEB@GMVMAIL5.gmv.es> Hi Yewondwossen, Are you planning to include this fix in mapserver 6?? I am still fighting with the sources, stuck in the error: ld: cannot find -ltermcap Hopefully fgs will create a new self-installer for mapserver 6 in a couple of months, or I should not expect that? Thanks, Joaqu?n ________________________________________ De: Joaqu?n Rodriguez-Guerra Urcelay Enviado el: mi?rcoles, 30 de marzo de 2011 9:29 Para: Yewondwossen Assefa CC: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] WFS Intersect with gml:box Thanks Yewondwossen, I am going to try to build from source (I have never donde it before) and update the bug ? Best regards, Joaqu?n De: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] Enviado el: martes, 29 de marzo de 2011 22:33 Para: Joaqu?n Rodriguez-Guerra Urcelay CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] WFS Intersect with gml:box Hi, I did check that and It was not working for me either. It is now fixed in trunk and also in the 5.6.x branch. I have added a bug [1] on it, so if you have the chance to build from source, please give it a try and update the bug. best regards, [1]: http://trac.osgeo.org/mapserver/ticket/3789 On 29/03/2011 1:18 PM, Joaqu?n Rodriguez-Guerra Urcelay wrote: Hello list, I am using a desktop GIS applicatin (uDig) to connect mapserver and display some wfs layers and I am having some trouble when uDig tries to filter features by bounding box. uDig sends a intersects spatial filter to obtain features in a bounding box: http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= xmlns:gml="http://www.opengis.net/gml">point -100.0,-45.0 100.0,45.0 But it is not working :( > msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature : xmlns:gml="http://www.opengis.net/gml">point-100.0,-45.0 100.0,45.0 I have checked that the BBOX filter works perfectly ( I just replaced Intersects with BBOX in the above url) http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= xmlns:gml="http://www.opengis.net/gml">point -100.0,-45.0 100.0,45.0 But I cant make the INTERSECTS operation work. I would really appreciate if someone could point me to any examples of the INTERSECT operation used together with gml:box or Box. I have seen some examples of intersects used with gml:polygon, but it should work too with box, right?? Thanks for reading! Joaqu?n ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ From jrguerra at gmv.com Wed Mar 30 09:30:53 2011 From: jrguerra at gmv.com (=?utf-8?B?Sm9hcXXDrW4gUm9kcmlndWV6LUd1ZXJyYSBVcmNlbGF5?=) Date: Wed, 30 Mar 2011 18:30:53 +0200 Subject: [mapserver-users] WFS Intersect with gml:box In-Reply-To: <789E82AF6874CF4CB8F27BE0B3C6435CA13B8B@GMVMAIL5.gmv.es> References: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> <4D924204.4090401@dmsolutions.ca>, <789E82AF6874CF4CB8F27BE0B3C6435CA13B8B@GMVMAIL5.gmv.es> Message-ID: <4E70D1E8680D584198DDB55BD65220B3A32D98DCEA@GMVMAIL5.gmv.es> Hi Yewondwossen, Are you planning to include this fix in mapserver 6?? I am still fighting with the sources, stuck in the error: ld: cannot find -ltermcap Hopefully fgs will create a new self-installer for mapserver 6 in a couple of months, or I should not expect that? Thanks, Joaqu?n ________________________________________ De: Joaqu?n Rodriguez-Guerra Urcelay Enviado el: mi?rcoles, 30 de marzo de 2011 9:29 Para: Yewondwossen Assefa CC: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] WFS Intersect with gml:box Thanks Yewondwossen, I am going to try to build from source (I have never donde it before) and update the bug ? Best regards, Joaqu?n De: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] Enviado el: martes, 29 de marzo de 2011 22:33 Para: Joaqu?n Rodriguez-Guerra Urcelay CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] WFS Intersect with gml:box Hi, I did check that and It was not working for me either. It is now fixed in trunk and also in the 5.6.x branch. I have added a bug [1] on it, so if you have the chance to build from source, please give it a try and update the bug. best regards, [1]: http://trac.osgeo.org/mapserver/ticket/3789 On 29/03/2011 1:18 PM, Joaqu?n Rodriguez-Guerra Urcelay wrote: Hello list, I am using a desktop GIS applicatin (uDig) to connect mapserver and display some wfs layers and I am having some trouble when uDig tries to filter features by bounding box. uDig sends a intersects spatial filter to obtain features in a bounding box: http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= xmlns:gml="http://www.opengis.net/gml">point -100.0,-45.0 100.0,45.0 But it is not working :( > msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature : xmlns:gml="http://www.opengis.net/gml">point-100.0,-45.0 100.0,45.0 I have checked that the BBOX filter works perfectly ( I just replaced Intersects with BBOX in the above url) http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= xmlns:gml="http://www.opengis.net/gml">point -100.0,-45.0 100.0,45.0 But I cant make the INTERSECTS operation work. I would really appreciate if someone could point me to any examples of the INTERSECT operation used together with gml:box or Box. I have seen some examples of intersects used with gml:polygon, but it should work too with box, right?? Thanks for reading! Joaqu?n ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ From yassefa at dmsolutions.ca Wed Mar 30 10:44:40 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 30 Mar 2011 13:44:40 -0400 Subject: [mapserver-users] WFS Intersect with gml:box In-Reply-To: <4E70D1E8680D584198DDB55BD65220B3A32D98DCEB@GMVMAIL5.gmv.es> References: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> <4D924204.4090401@dmsolutions.ca>, <789E82AF6874CF4CB8F27BE0B3C6435CA13B8B@GMVMAIL5.gmv.es> <4E70D1E8680D584198DDB55BD65220B3A32D98DCEB@GMVMAIL5.gmv.es> Message-ID: <4D936C08.4090303@dmsolutions.ca> On 30/03/2011 1:14 PM, Joaqu?n Rodriguez-Guerra Urcelay wrote: > Hi Yewondwossen, > > Are you planning to include this fix in mapserver 6?? This was committed yesterday and should be available for 6.0 (and 5.6.8 if released). I forgot to update the bug on that. It is done now. > I am still fighting with the sources, stuck in the error: ld: cannot find -ltermcap > Hopefully fgs will create a new self-installer for mapserver 6 in a couple of months, or I should not expect that? > I can not say one way or the other about fgs installer. You can ask on the fgs mailing list or someone cam comment here. best regards, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From dmorissette at mapgears.com Wed Mar 30 10:57:37 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 30 Mar 2011 13:57:37 -0400 Subject: [mapserver-users] WFS Intersect with gml:box In-Reply-To: <4D936C08.4090303@dmsolutions.ca> References: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> <4D924204.4090401@dmsolutions.ca>, <789E82AF6874CF4CB8F27BE0B3C6435CA13B8B@GMVMAIL5.gmv.es> <4E70D1E8680D584198DDB55BD65220B3A32D98DCEB@GMVMAIL5.gmv.es> <4D936C08.4090303@dmsolutions.ca> Message-ID: <4D936F11.1060500@mapgears.com> On 11-03-30 01:44 PM, Yewondwossen Assefa wrote: >> > I can not say one way or the other about fgs installer. You can ask on > the fgs mailing list or someone cam comment here. > Unfortunately FGS has fallen down the list of priorities in the last year or so. One of the reasons is that we put more efforts in native packages (e.g. UbuntuGIS, DebianGIS, etc.) and also the fact that we no longer have clients using it and supporting its maintenance. I think there is still a need for FGS in some cases, and we still use it internally for development, but we'd need a new champion to take care of official releases. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From jrguerra at gmv.com Wed Mar 30 11:30:18 2011 From: jrguerra at gmv.com (=?iso-8859-1?Q?Joaqu=EDn_Rodriguez-Guerra_Urcelay?=) Date: Wed, 30 Mar 2011 20:30:18 +0200 Subject: [mapserver-users] WFS Intersect with gml:box In-Reply-To: <4D936F11.1060500@mapgears.com> References: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> <4D924204.4090401@dmsolutions.ca>, <789E82AF6874CF4CB8F27BE0B3C6435CA13B8B@GMVMAIL5.gmv.es> <4E70D1E8680D584198DDB55BD65220B3A32D98DCEB@GMVMAIL5.gmv.es> <4D936C08.4090303@dmsolutions.ca>,<4D936F11.1060500@mapgears.com> Message-ID: <4E70D1E8680D584198DDB55BD65220B3A32D98DCED@GMVMAIL5.gmv.es> Hello, I was finally able to build the source code, and I am not getting the error anymore :D (with Latest Release Branch, with trunk wfs was not working for me) But I am not getting the result I was expecting. Maybe I am wrong, but I thought that bbox operation would return all geometries contained in the box, and intersect would return all geometries contained in the box and also those who are not contained completely, but a part of them. Is this right?? In the following example I have a point in (10,10), and bbox filter in (-11,-11, -9,-9) returns the point :) http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point -11,-11 -9,-9 -10.000000,-10.000000 -10.000000,-10.000000 -10.000000,-10.000000 -10.000000,-10.000000 -10.000000,-10.000000 1 If I try the same query using intersect operation, I would expect the same result, but I obtain none http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point -11,-11 -9,-9 -1.000000,-1.000000 -1.000000,-1.000000 Forgive me if the results are right, and I just did not understand the operators, I am kind of new Thank you for your help!! PD: It is a shame FGS self-extract installer may not be available anymore, it was fantastic! Joaqu?n ________________________________________ De: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] En nombre de Daniel Morissette [dmorissette at mapgears.com] Enviado el: mi?rcoles, 30 de marzo de 2011 19:57 Para: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] WFS Intersect with gml:box On 11-03-30 01:44 PM, Yewondwossen Assefa wrote: >> > I can not say one way or the other about fgs installer. You can ask on > the fgs mailing list or someone cam comment here. > Unfortunately FGS has fallen down the list of priorities in the last year or so. One of the reasons is that we put more efforts in native packages (e.g. UbuntuGIS, DebianGIS, etc.) and also the fact that we no longer have clients using it and supporting its maintenance. I think there is still a need for FGS in some cases, and we still use it internally for development, but we'd need a new champion to take care of official releases. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ From yassefa at dmsolutions.ca Wed Mar 30 12:34:39 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 30 Mar 2011 15:34:39 -0400 Subject: [mapserver-users] WFS Intersect with gml:box In-Reply-To: <4E70D1E8680D584198DDB55BD65220B3A32D98DCED@GMVMAIL5.gmv.es> References: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> <4D924204.4090401@dmsolutions.ca>, <789E82AF6874CF4CB8F27BE0B3C6435CA13B8B@GMVMAIL5.gmv.es> <4E70D1E8680D584198DDB55BD65220B3A32D98DCEB@GMVMAIL5.gmv.es> <4D936C08.4090303@dmsolutions.ca>, <4D936F11.1060500@mapgears.com> <4E70D1E8680D584198DDB55BD65220B3A32D98DCED@GMVMAIL5.gmv.es> Message-ID: <4D9385CF.2020305@dmsolutions.ca> On 30/03/2011 2:30 PM, Joaqu?n Rodriguez-Guerra Urcelay wrote: > Hello, > > I was finally able to build the source code, and I am not getting the error anymore :D (with Latest Release Branch, with trunk wfs was not working for me) > > But I am not getting the result I was expecting. Maybe I am wrong, but I thought that bbox operation would return all geometries contained in the box, and intersect would return all geometries contained in the box and also those who are not contained completely, but a part of them. Is this right?? I think intersects in this case really returns only those features that intersect and not all that are completely contained. Assefa -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From otesta at gmail.com Wed Mar 30 13:09:37 2011 From: otesta at gmail.com (Oscar Testa) Date: Wed, 30 Mar 2011 17:09:37 -0300 Subject: [mapserver-users] DrawQuery problem Message-ID: <4D938E01.7040403@gmail.com> An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Mar 30 13:16:56 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 30 Mar 2011 23:16:56 +0300 Subject: [mapserver-users] WFS Intersect with gml:box References: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> <4D924204.4090401@dmsolutions.ca>, <789E82AF6874CF4CB8F27BE0B3C6435CA13B8B@GMVMAIL5.gmv.es> <4E70D1E8680D584198DDB55BD65220B3A32D98DCEB@GMVMAIL5.gmv.es> <4D936C08.4090303@dmsolutions.ca>, <4D936F11.1060500@mapgears.com> <4E70D1E8680D584198DDB55BD65220B3A32D98DCED@GMVMAIL5.gmv.es> <4D9385CF.2020305@dmsolutions.ca> Message-ID: Hi, "Intersect" means the same as "not disjoint", that the two geometries have at least one point in common. Thus WFS Intersects should select the point that is inside the "box" in the query. I made a quick test with OpenJUMP which is using JTS and it really does select such a point with a apatial query Intersects. When it comes to Intersects and BBOX, I am remembering that the specs say that they are synonyms. I know that Geoserver has differentiated them in such a way that Intersects is doing a real comparison of geometries which gives topologically correct result but which may be slow. BBOX is doing the comparison by using the bounding boxes of the geometries which can be much faster but it may select features which are actually disjoint. Two parallel lines is one example. Therefore BBOX with Geoserver always gives at least as many features as Intersects. I made a quick search and this seems to be good reading: http://gis.hsr.ch/wiki/images/3/3d/9dem_springer.pdf -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Yewondwossen Assefa L?hetetty: ke 30.3.2011 22:34 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] WFS Intersect with gml:box On 30/03/2011 2:30 PM, Joaqu?n Rodriguez-Guerra Urcelay wrote: > Hello, > > I was finally able to build the source code, and I am not getting the error anymore :D (with Latest Release Branch, with trunk wfs was not working for me) > > But I am not getting the result I was expecting. Maybe I am wrong, but I thought that bbox operation would return all geometries contained in the box, and intersect would return all geometries contained in the box and also those who are not contained completely, but a part of them. Is this right?? I think intersects in this case really returns only those features that intersect and not all that are completely contained. Assefa -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Wed Mar 30 13:25:26 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 30 Mar 2011 22:25:26 +0200 Subject: [mapserver-users] Build/download site unavailable In-Reply-To: <809503517A1B0347AF9A161507E6B29924A084B731@mokansasc7s304.agent.one.usda.gov> References: <809503517A1B0347AF9A161507E6B29924A084B731@mokansasc7s304.agent.one.usda.gov> Message-ID: Works for me, currently. Best regards, Tamas 2011/3/30 Anzel, Phil - Fort Collins, CO > Hi, All, > > Is the MapServer binary download site site http://vbkto.dyndns.org/sdk/offline? I'm seeing timeouts when attempting to connect. > > Thanks. > > - Phil Anzel > Web Soil Survey developer > Vistronix Inc. for USDA/NRCS/ITC > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Phil.Anzel at ftc.usda.gov Wed Mar 30 13:28:24 2011 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO) Date: Wed, 30 Mar 2011 15:28:24 -0500 Subject: [mapserver-users] Build/download site unavailable In-Reply-To: References: <809503517A1B0347AF9A161507E6B29924A084B731@mokansasc7s304.agent.one.usda.gov> Message-ID: <809503517A1B0347AF9A161507E6B29924A091A520@mokansasc7s304.agent.one.usda.gov> Thanks for checking, Tamas. I?ll look at our internal network. - Phil From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Wednesday, March 30, 2011 2:25 PM To: Anzel, Phil - Fort Collins, CO Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Build/download site unavailable Works for me, currently. Best regards, Tamas 2011/3/30 Anzel, Phil - Fort Collins, CO > Hi, All, Is the MapServer binary download site site http://vbkto.dyndns.org/sdk/ offline? I'm seeing timeouts when attempting to connect. Thanks. - Phil Anzel Web Soil Survey developer Vistronix Inc. for USDA/NRCS/ITC _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Wed Mar 30 13:48:08 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 30 Mar 2011 16:48:08 -0400 Subject: [mapserver-users] WFS Intersect with gml:box In-Reply-To: References: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> <4D924204.4090401@dmsolutions.ca>, <789E82AF6874CF4CB8F27BE0B3C6435CA13B8B@GMVMAIL5.gmv.es> <4E70D1E8680D584198DDB55BD65220B3A32D98DCEB@GMVMAIL5.gmv.es> <4D936C08.4090303@dmsolutions.ca>, <4D936F11.1060500@mapgears.com> <4E70D1E8680D584198DDB55BD65220B3A32D98DCED@GMVMAIL5.gmv.es> <4D9385CF.2020305@dmsolutions.ca> Message-ID: <4D939708.40903@dmsolutions.ca> On 30/03/2011 4:16 PM, Rahkonen Jukka wrote: > Hi, > > "Intersect" means the same as "not disjoint", that the two geometries have at least one point in common. Thus WFS Intersects should select the point that is inside the "box" in the query. I made a quick test with OpenJUMP which is using JTS and it really does select such a point with a apatial query Intersects. > Geos lib used by MapServer should act the same as JTS I beleive. Joaqu?n, you can maybe attach your simple map/data/url to the bug and I will check it using MapServer trunk. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From dmorissette at mapgears.com Wed Mar 30 18:35:44 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 30 Mar 2011 21:35:44 -0400 Subject: [mapserver-users] MapServer 6.0.0-beta4 release Message-ID: <4D93DA70.2030701@mapgears.com> The MapServer Team is pleased to announce the release of MapServer 6.0.0-beta4. This is the latest beta on our way to a final 6.0 release. Once again this beta contains several important fixes and we encourage you to test it and continue to provide feedback. The 6.0 release introduces important changes in key components of the MapServer core (rendering, query and expressions), and for this reason we count on you, MapServer power users, to help test the release in your respective environments and provide feedback (through the users list or Trac tickets). If all goes well, the plan is to have a final 6.0 release around the end of April. The full release plan which also includes the list of new features and changes in this release is available at: http://mapserver.org/trunk/development/release/release-plan-6.0.html The list of fixes since beta1 is attached at the end of this message. For a complete list see the HISTORY.TXT file at: http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta4/mapserver/HISTORY.TXT We have started working on a 5.6 -> 6.0 migration guide. This document contains important notes on backwards incompatibilities or other changes required when upgrading to 6.0. It is not complete yet but we strongly recommend that you review the latest version online at: http://mapserver.org/trunk/MIGRATION_GUIDE.html The source for this release can be downloaded at: http://mapserver.org/download.html or http://download.osgeo.org/mapserver/mapserver-6.0.0-beta4.tar.gz The binary distributions listed in the download page should be updated with binaries for the new beta release in the next day or so. Once again we need your help to ensure a high quality product, so please help out by testing your applications with this new code base. Thanks! - The MapServer Team Version 6.0.0-beta4 (2011-03-30) -------------------------------- - Fix shp2img's -i flag to honour map level transparent, image quality and interlace settings. - Make sure command-line programs use an exit status other than 0 when an error is encountered. (#3753) - Applied patch to filter unwanted fribidi characters (#3763) - Fixed lexer to set the proper state on URL variable substitutions - Fixed Memory leak in PostGIS driver (#3768) - Fixed PHP/MapScript symbol property setter method - fix memory leak in bar charts - fix some valgrind errors on agg rotated pixmap symbols - WCS 2.0: Adjusted definition of NilValues. - Fixed handling of PROJ_LIB value relative to mapfile path (#3094) - Fixed compilation error with opengl support (#3769) - add support for gml:Box for spatial filters (#3789) - fix query map generation error introduced in beta2 when output format initialized was made as needed. - fix incorrect PATTERN behavior on agg lines (#3787) - report SOS DescribeObservationType in Capabilities (#3777) - Updated lexer to detect time attribute bindings (e.g. `[item]`) in logical expressions - Fixed layer context expressions (REQUIRES/LABELREQUIRES) (#3737) - KML: Output ExtendedData (#3728) - Fixed OWS usage of multiple layers with same name (#3778) - WCS implementation should not lookup wms_* metadata (#3779) - WCS 2.0: Adjusted definition of rangeType. - Fixed OWS GetCapabilities to report only requests/operations that are enabled. - WCS 2.0: Report only bands in the range subset. - OWS requests should be completely blocked by default (#3755) - SLD: check for limit on dash arrays (#3772) - WMS: Apply sld after bbox and srs have been parsed (#3765) From pomiarowiec10 at poczta.onet.pl Wed Mar 30 23:53:13 2011 From: pomiarowiec10 at poczta.onet.pl (=?UTF-8?B?QmFydMWCb21pZWogQnVya290?=) Date: Thu, 31 Mar 2011 08:53:13 +0200 Subject: [mapserver-users] Negative GAP parameter to rotate vector symbols along line In-Reply-To: <4D934D63.2000708@poczta.onet.pl> References: <4D92EB3A.1020708@gmail.com> <4D932BB3.9010103@poczta.onet.pl> <4D934D63.2000708@poczta.onet.pl> Message-ID: <4D9424D9.4000504@poczta.onet.pl> Any idea why it doesn't work? > Hi thomas >> what mapserver version? >> what outputformat/renderer? > MapServer version 5.6.5 > > OUTPUTFORMAT > NAME gif > DRIVER "GD/GIF" > MIMETYPE "image/gif" > IMAGEMODE PC256 > EXTENSION "gif" > END > > Bartek > >> -- >> thomas >> >> On Wed, Mar 30, 2011 at 15:10, Bart?omiej Burkot >> wrote: >>> Hi Users >>> >>> I would like to render a vector symbol along the line in a layer. This >>> vector symbol should be rotated according to orientation of >>> linesegments >>> (for example a arrow along one way street). When I use negative GAP >>> with >>> truetype symbol it work perfectly but I have probelms with vector >>> symbols to >>> rotate them. >>> >>> I use this definition of Symbol but it doesn't work: >>> >>> SYMBOL >>> NAME "testsymbol" >>> TYPE VECTOR >>> POINTS >>> 5 0 >>> 2 1 >>> 0 2.5 >>> 2 4 >>> 5 5 >>> 5 5 >>> 2 6 >>> 0 7.5 >>> 2 9 >>> 5 10 >>> END >>> STYLE 1 8 1 18 END >>> GAP -99 # doesn't work >>> END >>> >>> I read in docu http://mapserver.org/mapfile/symbol.html that: >>> >>> "When drawing the symbol along a line segment, a negative GAP will >>> will add >>> 180 degress to the angle. The TrueType and PixMap symbols are always >>> oriented along the line." >>> >>> My layer definiton is: >>> >>> LAYER >>> NAME testtest >>> STATUS on >>> TYPE line >>> TRANSFORM false >>> FEATURE >>> WKT "LINESTRING (0 0, 100 100, 0 100)" >>> END >>> CLASS >>> >>> STYLE >>> #ANGLE AUTO >>> SYMBOL "testsymbol" >>> COLOR 0 255 0 >>> #SIZE 8 >>> END >>> END >>> END >>> >>> Does vectorsymbol play with negative GAP parameter? >>> Bartek >>> >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Wed Mar 30 23:59:45 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 31 Mar 2011 08:59:45 +0200 Subject: [mapserver-users] Negative GAP parameter to rotate vector symbols along line In-Reply-To: <4D9424D9.4000504@poczta.onet.pl> References: <4D92EB3A.1020708@gmail.com> <4D932BB3.9010103@poczta.onet.pl> <4D934D63.2000708@poczta.onet.pl> <4D9424D9.4000504@poczta.onet.pl> Message-ID: It's supposed to work. If not, you might want to file a bugreport with a screenshot of what you're getting, but in any case the GD driver in the 5.x brach won't be getting much attention. I'd highly suggest using AGG/PNG for any vector symbology rendering. regards, thomas On Thu, Mar 31, 2011 at 08:53, Bart?omiej Burkot wrote: > Any idea why it doesn't work? > >> Hi thomas >>> >>> what mapserver version? >>> what outputformat/renderer? >> >> MapServer version 5.6.5 >> >> OUTPUTFORMAT >> ? ? ?NAME gif >> ? ? ?DRIVER "GD/GIF" >> ? ? ?MIMETYPE "image/gif" >> ? ? ?IMAGEMODE PC256 >> ? ? ?EXTENSION "gif" >> ? ?END >> >> Bartek >> >>> -- >>> thomas >>> >>> On Wed, Mar 30, 2011 at 15:10, Bart?omiej Burkot >>> ?wrote: >>>> >>>> Hi Users >>>> >>>> I would like to render a vector symbol along the line in a layer. This >>>> vector symbol should be rotated according to orientation of linesegments >>>> (for example a arrow along one way street). When I use negative GAP with >>>> truetype symbol it work perfectly but I have probelms with vector >>>> symbols to >>>> rotate them. >>>> >>>> I use this definition of Symbol but it doesn't work: >>>> >>>> SYMBOL >>>> ? ? NAME "testsymbol" >>>> ? ?TYPE VECTOR >>>> ? POINTS >>>> ? ? 5 0 >>>> ? ? 2 1 >>>> ? ? 0 2.5 >>>> ? ? 2 4 >>>> ? ? 5 5 >>>> ? ? 5 5 >>>> ? ? 2 6 >>>> ? ? 0 7.5 >>>> ? ? 2 9 >>>> ? ? 5 10 >>>> ? END >>>> ? ? STYLE 1 8 1 18 END >>>> ? ? GAP -99 # doesn't work >>>> END >>>> >>>> I read in docu http://mapserver.org/mapfile/symbol.html that: >>>> >>>> "When drawing the symbol along a line segment, a negative GAP will will >>>> add >>>> 180 degress to the angle. The TrueType and PixMap symbols are always >>>> oriented along the line." >>>> >>>> My layer definiton is: >>>> >>>> LAYER >>>> ? NAME testtest >>>> ? STATUS on >>>> ? TYPE line >>>> ? TRANSFORM false >>>> ? FEATURE >>>> ? ? WKT "LINESTRING (0 0, 100 100, 0 100)" >>>> ? END >>>> ? CLASS >>>> >>>> ? ? STYLE >>>> ? ? ? ? #ANGLE AUTO >>>> ? ? ? ? SYMBOL "testsymbol" >>>> ? ? ? ? COLOR 0 255 0 >>>> ? ? ? ? #SIZE ? ?8 >>>> ? ? END >>>> ? END >>>> END >>>> >>>> Does vectorsymbol play with negative GAP parameter? >>>> Bartek >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From peter.hopfgartner at r3-gis.com Thu Mar 31 01:38:04 2011 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Thu, 31 Mar 2011 10:38:04 +0200 (CEST) Subject: [mapserver-users] MapServer 6.0.0-beta4 release Message-ID: <20110331083804.E0F2D1678238@mail.r3-gis.com> I'm trying to build MapServer --with-xslt on CentOS 5, 64 bit and I'm not able to get the right argument for --with-xslt= Looking at ./configure, around line 12710, the tests look like: test -f $XSLT_DIR/include/libxslt/xslt.h && XSLT_INCDIR="$XSLT_DIR/include" test -f $XSLT_DIR/lib/libxslt.so && XSLT_LIBDIR="$XSLT_DIR/lib" Anyway, on a pure 64 bit machine, there won't be any lib/libxslt.so, but a lib64/libxslt.so. Indeed, changing this to lib64 it configures fine on my machine. Peter R3 GIS Srl - GmbH http://www.r3-gis.com --------Daniel Morissette wrote-------- Subject: [mapserver-users] MapServer 6.0.0-beta4 release Date: 31.03.2011 03:36 >The MapServer Team is pleased to announce the release of MapServer >6.0.0-beta4. This is the latest beta on our way to a final 6.0 release. >Once again this beta contains several important fixes and we encourage >you to test it and continue to provide feedback. > >The 6.0 release introduces important changes in key components of the >MapServer core (rendering, query and expressions), and for this reason >we count on you, MapServer power users, to help test the release in your >respective environments and provide feedback (through the users list or >Trac tickets). > >If all goes well, the plan is to have a final 6.0 release around the end >of April. The full release plan which also includes the list of new >features and changes in this release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > >The list of fixes since beta1 is attached at the end of this message. >For a complete list see the HISTORY.TXT file at: > > >http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta4/mapserver/HISTORY.TXT > >We have started working on a 5.6 -> 6.0 migration guide. This document >contains important notes on backwards incompatibilities or other changes >required when upgrading to 6.0. It is not complete yet but we strongly >recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > >The source for this release can be downloaded at: > > http://mapserver.org/download.html >or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta4.tar.gz > >The binary distributions listed in the download page should be updated >with binaries for the new beta release in the next day or so. > >Once again we need your help to ensure a high quality product, so please >help out by testing your applications with this new code base. > >Thanks! - The MapServer Team > > >Version 6.0.0-beta4 (2011-03-30) >-------------------------------- > >- Fix shp2img's -i flag to honour map level transparent, image quality >and > interlace settings. > >- Make sure command-line programs use an exit status other than 0 > when an error is encountered. (#3753) > >- Applied patch to filter unwanted fribidi characters (#3763) > >- Fixed lexer to set the proper state on URL variable substitutions > >- Fixed Memory leak in PostGIS driver (#3768) > >- Fixed PHP/MapScript symbol property setter method > >- fix memory leak in bar charts > >- fix some valgrind errors on agg rotated pixmap symbols > >- WCS 2.0: Adjusted definition of NilValues. > >- Fixed handling of PROJ_LIB value relative to mapfile path (#3094) > >- Fixed compilation error with opengl support (#3769) > >- add support for gml:Box for spatial filters (#3789) > >- fix query map generation error introduced in beta2 when output format > initialized was made as needed. > >- fix incorrect PATTERN behavior on agg lines (#3787) > >- report SOS DescribeObservationType in Capabilities (#3777) > >- Updated lexer to detect time attribute bindings (e.g. `[item]`) in >logical > expressions > >- Fixed layer context expressions (REQUIRES/LABELREQUIRES) (#3737) > >- KML: Output ExtendedData (#3728) > >- Fixed OWS usage of multiple layers with same name (#3778) > >- WCS implementation should not lookup wms_* metadata (#3779) > >- WCS 2.0: Adjusted definition of rangeType. > >- Fixed OWS GetCapabilities to report only requests/operations that are > enabled. > >- WCS 2.0: Report only bands in the range subset. > >- OWS requests should be completely blocked by default (#3755) > >- SLD: check for limit on dash arrays (#3772) > >- WMS: Apply sld after bbox and srs have been parsed (#3765) > > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > From peter.hopfgartner at r3-gis.com Thu Mar 31 01:58:10 2011 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Thu, 31 Mar 2011 10:58:10 +0200 (CEST) Subject: [mapserver-users] MapServer 6.0.0-beta4 release Message-ID: <20110331085810.972FE167823B@mail.r3-gis.com> Packages for RHEL/CentOS/Scientific Linux 5 and as src.rpm: http://www.r3-gis.com/upload/mapserver-6.0.0beta4-1.0.el5.src.rpm http://www.r3-gis.com/upload/mapserver-6.0.0beta4-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/php-mapserver-6.0.0beta4-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/php-mapserver-proj-6.0.0beta4-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-perl-6.0.0beta4-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-python-6.0.0beta4-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-java-6.0.0beta4-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-debuginfo-6.0.0beta4-1.0.el5.x86_64.rpm These packages depend on http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS and on the php53* packages, which might be found in http://dev.centos.org/centos/5/testing/x86_64/RPMS/php53/ , until CentOS 5.6 is out. In addition to the beta3 packages, KML support is enabled. beta3 packages were removed. Peter R3 GIS Srl - GmbH http://www.r3-gis.com --------Daniel Morissette wrote-------- Subject: [mapserver-users] MapServer 6.0.0-beta4 release Date: 31.03.2011 03:36 >The MapServer Team is pleased to announce the release of MapServer >6.0.0-beta4. This is the latest beta on our way to a final 6.0 release. >Once again this beta contains several important fixes and we encourage >you to test it and continue to provide feedback. > >The 6.0 release introduces important changes in key components of the >MapServer core (rendering, query and expressions), and for this reason >we count on you, MapServer power users, to help test the release in your >respective environments and provide feedback (through the users list or >Trac tickets). > >If all goes well, the plan is to have a final 6.0 release around the end >of April. The full release plan which also includes the list of new >features and changes in this release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > >The list of fixes since beta1 is attached at the end of this message. >For a complete list see the HISTORY.TXT file at: > > >http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta4/mapserver/HISTORY.TXT > >We have started working on a 5.6 -> 6.0 migration guide. This document >contains important notes on backwards incompatibilities or other changes >required when upgrading to 6.0. It is not complete yet but we strongly >recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > >The source for this release can be downloaded at: > > http://mapserver.org/download.html >or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta4.tar.gz > >The binary distributions listed in the download page should be updated >with binaries for the new beta release in the next day or so. > >Once again we need your help to ensure a high quality product, so please >help out by testing your applications with this new code base. > >Thanks! - The MapServer Team > > >Version 6.0.0-beta4 (2011-03-30) >-------------------------------- > >- Fix shp2img's -i flag to honour map level transparent, image quality >and > interlace settings. > >- Make sure command-line programs use an exit status other than 0 > when an error is encountered. (#3753) > >- Applied patch to filter unwanted fribidi characters (#3763) > >- Fixed lexer to set the proper state on URL variable substitutions > >- Fixed Memory leak in PostGIS driver (#3768) > >- Fixed PHP/MapScript symbol property setter method > >- fix memory leak in bar charts > >- fix some valgrind errors on agg rotated pixmap symbols > >- WCS 2.0: Adjusted definition of NilValues. > >- Fixed handling of PROJ_LIB value relative to mapfile path (#3094) > >- Fixed compilation error with opengl support (#3769) > >- add support for gml:Box for spatial filters (#3789) > >- fix query map generation error introduced in beta2 when output format > initialized was made as needed. > >- fix incorrect PATTERN behavior on agg lines (#3787) > >- report SOS DescribeObservationType in Capabilities (#3777) > >- Updated lexer to detect time attribute bindings (e.g. `[item]`) in >logical > expressions > >- Fixed layer context expressions (REQUIRES/LABELREQUIRES) (#3737) > >- KML: Output ExtendedData (#3728) > >- Fixed OWS usage of multiple layers with same name (#3778) > >- WCS implementation should not lookup wms_* metadata (#3779) > >- WCS 2.0: Adjusted definition of rangeType. > >- Fixed OWS GetCapabilities to report only requests/operations that are > enabled. > >- WCS 2.0: Report only bands in the range subset. > >- OWS requests should be completely blocked by default (#3755) > >- SLD: check for limit on dash arrays (#3772) > >- WMS: Apply sld after bbox and srs have been parsed (#3765) > > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jrguerra at gmv.com Thu Mar 31 02:31:17 2011 From: jrguerra at gmv.com (=?iso-8859-1?Q?Joaqu=EDn_Rodriguez-Guerra_Urcelay?=) Date: Thu, 31 Mar 2011 11:31:17 +0200 Subject: [mapserver-users] WFS Intersect with gml:box In-Reply-To: <4D939708.40903@dmsolutions.ca> References: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> <4D924204.4090401@dmsolutions.ca>, <789E82AF6874CF4CB8F27BE0B3C6435CA13B8B@GMVMAIL5.gmv.es> <4E70D1E8680D584198DDB55BD65220B3A32D98DCEB@GMVMAIL5.gmv.es> <4D936C08.4090303@dmsolutions.ca>, <4D936F11.1060500@mapgears.com> <4E70D1E8680D584198DDB55BD65220B3A32D98DCED@GMVMAIL5.gmv.es> <4D9385CF.2020305@dmsolutions.ca> , <4D939708.40903@dmsolutions.ca> Message-ID: <4E70D1E8680D584198DDB55BD65220B3A32D98DCEE@GMVMAIL5.gmv.es> Hi, Thank you both for your help, the filter is finally working :D The bug is fixed, gml:box works now with intersect. I wanted to confirm this in the bug report, but I havent found they way to write anything there (is it because the bug is now closed?) Yesterday I was not getting the results I expected because I think my connection to the mysql database had some problem. I tried with a shapefile and it was working perfectly, so I then played a bit with the mysql connection and now it is working :) Joaqu?n ________________________________________ De: Yewondwossen Assefa [yassefa at dmsolutions.ca] Enviado el: mi?rcoles, 30 de marzo de 2011 22:48 Para: Rahkonen Jukka CC: mapserver-users at lists.osgeo.org; Joaqu?n Rodriguez-Guerra Urcelay Asunto: Re: [mapserver-users] WFS Intersect with gml:box On 30/03/2011 4:16 PM, Rahkonen Jukka wrote: > Hi, > > "Intersect" means the same as "not disjoint", that the two geometries have at least one point in common. Thus WFS Intersects should select the point that is inside the "box" in the query. I made a quick test with OpenJUMP which is using JTS and it really does select such a point with a apatial query Intersects. > Geos lib used by MapServer should act the same as JTS I beleive. Joaqu?n, you can maybe attach your simple map/data/url to the bug and I will check it using MapServer trunk. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ From pomiarowiec10 at poczta.onet.pl Thu Mar 31 02:36:26 2011 From: pomiarowiec10 at poczta.onet.pl (=?UTF-8?B?QmFydMWCb21pZWogQnVya290?=) Date: Thu, 31 Mar 2011 11:36:26 +0200 Subject: [mapserver-users] GD BUG? Negative GAP parameter to rotate vector symbols along line In-Reply-To: References: <4D92EB3A.1020708@gmail.com> <4D932BB3.9010103@poczta.onet.pl> <4D934D63.2000708@poczta.onet.pl> <4D9424D9.4000504@poczta.onet.pl> Message-ID: <4D944B1A.4030401@poczta.onet.pl> Hallo Users Indeed with AGG driver rotating of vector symbols work very well. I attached the Examle images. So is it a BUG form gd driver? The GD_GIF_mapserver5_6_1.gif image was rendered with following map sections: OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END LAYER NAME testtest STATUS on TYPE line TRANSFORM false FEATURE WKT "LINESTRING (0 0, 100 100, 200 100, 300 200, 200 300)" END CLASS STYLE ANGLE AUTO SYMBOL "zakrzewienie_k1" COLOR 0 255 0 SIZE 18 END STYLE COLOR 255 0 0 WIDTH 1 END END END SYMBOL NAME "zakrzewienie_k1" TYPE VECTOR POINTS 5 0 2 1 0 2.5 2 4 5 5 5 5 2 6 0 7.5 2 9 5 10 END STYLE 1 8 1 18 END #SIZE 10 GAP -99 END The second image: GD_PNG_mapserver5_6_1.png had such IMAGETYPE: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END The AGG_PNG_mapserver5_6_1.png image displays correctly rotated vector symbols.The map file included: OUTPUTFORMAT NAME 'aggpng' DRIVER AGG/PNG IMAGEMODE RGB #PC256 RGB RGBA BYTE INT16 END SYMBOL NAME "zakrzewienie_k1" TYPE VECTOR POINTS 5 0 2 1 0 2.5 2 4 5 5 5 5 2 6 0 7.5 2 9 5 10 END #STYLE 1 8 1 18 END #SIZE 10 GAP -9 END MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I must use GD driver because performance aspects. The agg images are more pretty than GD but essentially much bigger than DG images (several times). AGG doesn't work with PC256 palettet colors and DG does. The rendering time is really much longer than DG. Exaples: times: 16ms for GD and 33ms for AGG sizes: 33KB ? GD nad 230KB ? AGG Somebody nows how can I speed up rendering time of AGG images to make it so fast than DG? Or is it a bug of GD driver or I'm doing something wrong? Any ideas to solve or workaroud this problem? Thanks Bartek > It's supposed to work. If not, you might want to file a bugreport with > a screenshot of what you're getting, but in any case the GD driver in > the 5.x brach won't be getting much attention. > I'd highly suggest using AGG/PNG for any vector symbology rendering. > > regards, > thomas > > On Thu, Mar 31, 2011 at 08:53, Bart?omiej Burkot > wrote: >> Any idea why it doesn't work? >> >>> Hi thomas >>>> what mapserver version? >>>> what outputformat/renderer? >>> MapServer version 5.6.5 >>> >>> OUTPUTFORMAT >>> NAME gif >>> DRIVER "GD/GIF" >>> MIMETYPE "image/gif" >>> IMAGEMODE PC256 >>> EXTENSION "gif" >>> END >>> >>> Bartek >>> >>>> -- >>>> thomas >>>> >>>> On Wed, Mar 30, 2011 at 15:10, Bart?omiej Burkot >>>> wrote: >>>>> Hi Users >>>>> >>>>> I would like to render a vector symbol along the line in a layer. This >>>>> vector symbol should be rotated according to orientation of linesegments >>>>> (for example a arrow along one way street). When I use negative GAP with >>>>> truetype symbol it work perfectly but I have probelms with vector >>>>> symbols to >>>>> rotate them. >>>>> >>>>> I use this definition of Symbol but it doesn't work: >>>>> >>>>> SYMBOL >>>>> NAME "testsymbol" >>>>> TYPE VECTOR >>>>> POINTS >>>>> 5 0 >>>>> 2 1 >>>>> 0 2.5 >>>>> 2 4 >>>>> 5 5 >>>>> 5 5 >>>>> 2 6 >>>>> 0 7.5 >>>>> 2 9 >>>>> 5 10 >>>>> END >>>>> STYLE 1 8 1 18 END >>>>> GAP -99 # doesn't work >>>>> END >>>>> >>>>> I read in docu http://mapserver.org/mapfile/symbol.html that: >>>>> >>>>> "When drawing the symbol along a line segment, a negative GAP will will >>>>> add >>>>> 180 degress to the angle. The TrueType and PixMap symbols are always >>>>> oriented along the line." >>>>> >>>>> My layer definiton is: >>>>> >>>>> LAYER >>>>> NAME testtest >>>>> STATUS on >>>>> TYPE line >>>>> TRANSFORM false >>>>> FEATURE >>>>> WKT "LINESTRING (0 0, 100 100, 0 100)" >>>>> END >>>>> CLASS >>>>> >>>>> STYLE >>>>> #ANGLE AUTO >>>>> SYMBOL "testsymbol" >>>>> COLOR 0 255 0 >>>>> #SIZE 8 >>>>> END >>>>> END >>>>> END >>>>> >>>>> Does vectorsymbol play with negative GAP parameter? >>>>> Bartek >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GD_GIF_mapserver5_6_1.gif Type: image/gif Size: 1729 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GD_PNG_mapserver5_6_1.png Type: image/png Size: 3176 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: AGG_PNG_mapserver5_6_1_GAP_minus9.png Type: image/png Size: 7020 bytes Desc: not available URL: From aboudreault at mapgears.com Thu Mar 31 07:36:41 2011 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 31 Mar 2011 10:36:41 -0400 Subject: [mapserver-users] MapServer 6.0.0-beta4 release In-Reply-To: <4D93DA70.2030701@mapgears.com> References: <4D93DA70.2030701@mapgears.com> Message-ID: <201103311036.41427.aboudreault@mapgears.com> UbuntuGIS MapServer packages have been updated for the beta4 release: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On March 30, 2011 09:35:44 pm Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta4. This is the latest beta on our way to a final 6.0 release. > Once again this beta contains several important fixes and we encourage > you to test it and continue to provide feedback. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > If all goes well, the plan is to have a final 6.0 release around the end > of April. The full release plan which also includes the list of new > features and changes in this release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since beta1 is attached at the end of this message. > For a complete list see the HISTORY.TXT file at: > > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta4/mapserver/HIST > ORY.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. It is not complete yet but we strongly > recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta4.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > Version 6.0.0-beta4 (2011-03-30) > -------------------------------- > > - Fix shp2img's -i flag to honour map level transparent, image quality and > interlace settings. > > - Make sure command-line programs use an exit status other than 0 > when an error is encountered. (#3753) > > - Applied patch to filter unwanted fribidi characters (#3763) > > - Fixed lexer to set the proper state on URL variable substitutions > > - Fixed Memory leak in PostGIS driver (#3768) > > - Fixed PHP/MapScript symbol property setter method > > - fix memory leak in bar charts > > - fix some valgrind errors on agg rotated pixmap symbols > > - WCS 2.0: Adjusted definition of NilValues. > > - Fixed handling of PROJ_LIB value relative to mapfile path (#3094) > > - Fixed compilation error with opengl support (#3769) > > - add support for gml:Box for spatial filters (#3789) > > - fix query map generation error introduced in beta2 when output format > initialized was made as needed. > > - fix incorrect PATTERN behavior on agg lines (#3787) > > - report SOS DescribeObservationType in Capabilities (#3777) > > - Updated lexer to detect time attribute bindings (e.g. `[item]`) in > logical expressions > > - Fixed layer context expressions (REQUIRES/LABELREQUIRES) (#3737) > > - KML: Output ExtendedData (#3728) > > - Fixed OWS usage of multiple layers with same name (#3778) > > - WCS implementation should not lookup wms_* metadata (#3779) > > - WCS 2.0: Adjusted definition of rangeType. > > - Fixed OWS GetCapabilities to report only requests/operations that are > enabled. > > - WCS 2.0: Report only bands in the range subset. > > - OWS requests should be completely blocked by default (#3755) > > - SLD: check for limit on dash arrays (#3772) > > - WMS: Apply sld after bbox and srs have been parsed (#3765) > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com From jrguerra at gmv.com Thu Mar 31 07:42:34 2011 From: jrguerra at gmv.com (=?iso-8859-1?Q?Joaqu=EDn_Rodriguez-Guerra_Urcelay?=) Date: Thu, 31 Mar 2011 16:42:34 +0200 Subject: [mapserver-users] WFS Intersect with gml:box In-Reply-To: <4E70D1E8680D584198DDB55BD65220B3A32D98DCEE@GMVMAIL5.gmv.es> References: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> <4D924204.4090401@dmsolutions.ca>, <789E82AF6874CF4CB8F27BE0B3C6435CA13B8B@GMVMAIL5.gmv.es> <4E70D1E8680D584198DDB55BD65220B3A32D98DCEB@GMVMAIL5.gmv.es> <4D936C08.4090303@dmsolutions.ca>, <4D936F11.1060500@mapgears.com> <4E70D1E8680D584198DDB55BD65220B3A32D98DCED@GMVMAIL5.gmv.es> <4D9385CF.2020305@dmsolutions.ca> , <4D939708.40903@dmsolutions.ca>, <4E70D1E8680D584198DDB55BD65220B3A32D98DCEE@GMVMAIL5.gmv.es> Message-ID: <4E70D1E8680D584198DDB55BD65220B3A32D98DCF3@GMVMAIL5.gmv.es> Hello, Here I am again, this is not over :( I have been testing this all morning, and I have seen that intersect only returns results when the first feature in the mysql table belongs to the resultset, very weird :( When I request a filter which should return results, but the first feature is not in the resultset, then I get this: -1.000000,-1.000000 -1.000000,-1.000000 Which is diffrent to when I make a query which should not return any results, then I get: missing So, it detects when there are results, but only show them when the first feature is on the result set. Does this make any sense? This is my database (mysql 5): CREATE DATABASE mmi_spatial_db; USE mmi_spatial_db; CREATE TABLE positionReal (id INTEGER, point GEOMETRY); INSERT INTO positionReal(id, point) VALUES (2, GeomFromText('POINT(10 10)',4326)); INSERT INTO positionReal(id, point) VALUES (1, GeomFromText('POINT(0 20)',4326)); INSERT INTO positionReal(id, point) VALUES (3, GeomFromText('POINT(-10 -10)',4326)); The following query returns the expected result http://localhost:8080/cgi-bin/mywfs?SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point 10,10 10,10 result: 10.000000,10.000000 10.000000,10.000000 10.000000,10.000000 10.000000,10.000000 10.000000,10.000000 2 And any other query where the point 10,10 is belonging the bounding box, works. If I change the order INSERTS, then this magic point changes for the one I insert first. This is my map file: MAP NAME MMI_WFS UNITS METERS TRANSPARENT ON IMAGECOLOR 0 0 0 IMAGETYPE PNG SHAPEPATH "." SYMBOLSET "../symbols.sym" STATUS ON WEB IMAGEPATH "/opt/fsg/tmp/" IMAGEURL "/opt/fsg/" METADATA "wfs_title" "WFS MMI Server for MapServer" ## REQUIRED "wfs_onlineresource" "http://localhost:8080/cgi-bin/mywfs?" ## Recommended "wfs_srs" "EPSG:4326"## Recommended "wfs_abstract" "This text describes my WFS service." ## Recommended "wfs_schemas_location" "http://schemas.opengeospatial.net" END END PROJECTION "init=epsg:4326" END LAYER NAME "PositionReal" STATUS ON TYPE POINT CONNECTIONTYPE OGR CONNECTION "MySQL:mmi_spatial_db,user=mmi,password=adminis,host=127.0.0.1,port=3306" DATA "SELECT id,point from positionReal" DUMP TRUE ## REQUIRED #TOLERANCE 200 #TOLERANCEUNITS PIXELS METADATA "wfs_featureid" "id" "wfs_srs" "epsg:4326" "wfs_onlineresource" "http://localhost:8080/cgi-bin/mywfs?" ## Recommended "wfs_title" "PositionReal" "gml_include_items" "all" ## Optional (serves all attributes for lay "gml_surface_occurances" "0,UNBOUNDED" "wfs_extent" "-180 -90 180 90" "gml_include_items" "all" END END END # Map File Well, this is weird, but if it sounds familliar or it rings a bell to some one, please help me :) Thanks! Joaqu?n ________________________________________ De: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] En nombre de Joaqu?n Rodriguez-Guerra Urcelay [jrguerra at gmv.com] Enviado el: jueves, 31 de marzo de 2011 11:31 CC: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] WFS Intersect with gml:box Hi, Thank you both for your help, the filter is finally working :D The bug is fixed, gml:box works now with intersect. I wanted to confirm this in the bug report, but I havent found they way to write anything there (is it because the bug is now closed?) Yesterday I was not getting the results I expected because I think my connection to the mysql database had some problem. I tried with a shapefile and it was working perfectly, so I then played a bit with the mysql connection and now it is working :) Joaqu?n ________________________________________ De: Yewondwossen Assefa [yassefa at dmsolutions.ca] Enviado el: mi?rcoles, 30 de marzo de 2011 22:48 Para: Rahkonen Jukka CC: mapserver-users at lists.osgeo.org; Joaqu?n Rodriguez-Guerra Urcelay Asunto: Re: [mapserver-users] WFS Intersect with gml:box On 30/03/2011 4:16 PM, Rahkonen Jukka wrote: > Hi, > > "Intersect" means the same as "not disjoint", that the two geometries have at least one point in common. Thus WFS Intersects should select the point that is inside the "box" in the query. I made a quick test with OpenJUMP which is using JTS and it really does select such a point with a apatial query Intersects. > Geos lib used by MapServer should act the same as JTS I beleive. Joaqu?n, you can maybe attach your simple map/data/url to the bug and I will check it using MapServer trunk. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ From jrguerra at gmv.com Thu Mar 31 08:25:26 2011 From: jrguerra at gmv.com (=?iso-8859-1?Q?Joaqu=EDn_Rodriguez-Guerra_Urcelay?=) Date: Thu, 31 Mar 2011 17:25:26 +0200 Subject: [mapserver-users] WFS Intersect with gml:box In-Reply-To: <4E70D1E8680D584198DDB55BD65220B3A32D98DCF3@GMVMAIL5.gmv.es> References: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> <4D924204.4090401@dmsolutions.ca>, <789E82AF6874CF4CB8F27BE0B3C6435CA13B8B@GMVMAIL5.gmv.es> <4E70D1E8680D584198DDB55BD65220B3A32D98DCEB@GMVMAIL5.gmv.es> <4D936C08.4090303@dmsolutions.ca>, <4D936F11.1060500@mapgears.com> <4E70D1E8680D584198DDB55BD65220B3A32D98DCED@GMVMAIL5.gmv.es> <4D9385CF.2020305@dmsolutions.ca> , <4D939708.40903@dmsolutions.ca>, <4E70D1E8680D584198DDB55BD65220B3A32D98DCEE@GMVMAIL5.gmv.es>, <4E70D1E8680D584198DDB55BD65220B3A32D98DCF3@GMVMAIL5.gmv.es> Message-ID: <4E70D1E8680D584198DDB55BD65220B3A32D98DCF4@GMVMAIL5.gmv.es> Hi, I have check the same example using Posgres and it works, so it is a problem with mysql Joaqu?n Rodr?guez-Guerra Urcelay Unidad de Sistemas de Procesamiento de Ciencia y de Observaci?n de la Tierra / Science and Earth Observing Processing Systems Unit GMV AEROSPACE AND DEFENCE, S.A. Isaac Newton, 11 P.T.M. Tres Cantos E-28760 Madrid Tel. +34 91 807 21 00 / 7695 Fax +34 91 807 21 99 www.gmv.com ________________________________________ De: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] En nombre de Joaqu?n Rodriguez-Guerra Urcelay [jrguerra at gmv.com] Enviado el: jueves, 31 de marzo de 2011 16:42 Para: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] WFS Intersect with gml:box Hello, Here I am again, this is not over :( I have been testing this all morning, and I have seen that intersect only returns results when the first feature in the mysql table belongs to the resultset, very weird :( When I request a filter which should return results, but the first feature is not in the resultset, then I get this: -1.000000,-1.000000 -1.000000,-1.000000 Which is diffrent to when I make a query which should not return any results, then I get: missing So, it detects when there are results, but only show them when the first feature is on the result set. Does this make any sense? This is my database (mysql 5): CREATE DATABASE mmi_spatial_db; USE mmi_spatial_db; CREATE TABLE positionReal (id INTEGER, point GEOMETRY); INSERT INTO positionReal(id, point) VALUES (2, GeomFromText('POINT(10 10)',4326)); INSERT INTO positionReal(id, point) VALUES (1, GeomFromText('POINT(0 20)',4326)); INSERT INTO positionReal(id, point) VALUES (3, GeomFromText('POINT(-10 -10)',4326)); The following query returns the expected result http://localhost:8080/cgi-bin/mywfs?SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point 10,10 10,10 result: 10.000000,10.000000 10.000000,10.000000 10.000000,10.000000 10.000000,10.000000 10.000000,10.000000 2 And any other query where the point 10,10 is belonging the bounding box, works. If I change the order INSERTS, then this magic point changes for the one I insert first. This is my map file: MAP NAME MMI_WFS UNITS METERS TRANSPARENT ON IMAGECOLOR 0 0 0 IMAGETYPE PNG SHAPEPATH "." SYMBOLSET "../symbols.sym" STATUS ON WEB IMAGEPATH "/opt/fsg/tmp/" IMAGEURL "/opt/fsg/" METADATA "wfs_title" "WFS MMI Server for MapServer" ## REQUIRED "wfs_onlineresource" "http://localhost:8080/cgi-bin/mywfs?" ## Recommended "wfs_srs" "EPSG:4326"## Recommended "wfs_abstract" "This text describes my WFS service." ## Recommended "wfs_schemas_location" "http://schemas.opengeospatial.net" END END PROJECTION "init=epsg:4326" END LAYER NAME "PositionReal" STATUS ON TYPE POINT CONNECTIONTYPE OGR CONNECTION "MySQL:mmi_spatial_db,user=mmi,password=adminis,host=127.0.0.1,port=3306" DATA "SELECT id,point from positionReal" DUMP TRUE ## REQUIRED #TOLERANCE 200 #TOLERANCEUNITS PIXELS METADATA "wfs_featureid" "id" "wfs_srs" "epsg:4326" "wfs_onlineresource" "http://localhost:8080/cgi-bin/mywfs?" ## Recommended "wfs_title" "PositionReal" "gml_include_items" "all" ## Optional (serves all attributes for lay "gml_surface_occurances" "0,UNBOUNDED" "wfs_extent" "-180 -90 180 90" "gml_include_items" "all" END END END # Map File Well, this is weird, but if it sounds familliar or it rings a bell to some one, please help me :) Thanks! Joaqu?n ________________________________________ De: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] En nombre de Joaqu?n Rodriguez-Guerra Urcelay [jrguerra at gmv.com] Enviado el: jueves, 31 de marzo de 2011 11:31 CC: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] WFS Intersect with gml:box Hi, Thank you both for your help, the filter is finally working :D The bug is fixed, gml:box works now with intersect. I wanted to confirm this in the bug report, but I havent found they way to write anything there (is it because the bug is now closed?) Yesterday I was not getting the results I expected because I think my connection to the mysql database had some problem. I tried with a shapefile and it was working perfectly, so I then played a bit with the mysql connection and now it is working :) Joaqu?n ________________________________________ De: Yewondwossen Assefa [yassefa at dmsolutions.ca] Enviado el: mi?rcoles, 30 de marzo de 2011 22:48 Para: Rahkonen Jukka CC: mapserver-users at lists.osgeo.org; Joaqu?n Rodriguez-Guerra Urcelay Asunto: Re: [mapserver-users] WFS Intersect with gml:box On 30/03/2011 4:16 PM, Rahkonen Jukka wrote: > Hi, > > "Intersect" means the same as "not disjoint", that the two geometries have at least one point in common. Thus WFS Intersects should select the point that is inside the "box" in the query. I made a quick test with OpenJUMP which is using JTS and it really does select such a point with a apatial query Intersects. > Geos lib used by MapServer should act the same as JTS I beleive. Joaqu?n, you can maybe attach your simple map/data/url to the bug and I will check it using MapServer trunk. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ From otesta at gmail.com Thu Mar 31 10:33:33 2011 From: otesta at gmail.com (Oscar Testa) Date: Thu, 31 Mar 2011 14:33:33 -0300 Subject: [mapserver-users] DrawQuery problem Message-ID: <4D94BAED.9030803@gmail.com> An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Mar 31 11:16:07 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 31 Mar 2011 15:16:07 -0300 Subject: [mapserver-users] MapServer 6.0.0-beta4 release In-Reply-To: <201103311036.41427.aboudreault@mapgears.com> References: <4D93DA70.2030701@mapgears.com> <201103311036.41427.aboudreault@mapgears.com> Message-ID: <4D94C4E7.9000807@gatewaygeomatics.com> Windows users can find the 6.0.0-beta4 upgrade package for MS4W at: http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapserver_ms4w3.x_dev-6.0.0.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From gcpp.kalxas at gmail.com Thu Mar 31 13:15:40 2011 From: gcpp.kalxas at gmail.com (Angelos Tzotsos) Date: Thu, 31 Mar 2011 23:15:40 +0300 Subject: [mapserver-users] MapServer 6.0.0-beta4 release In-Reply-To: <4D94C4E7.9000807@gatewaygeomatics.com> References: <4D93DA70.2030701@mapgears.com> <201103311036.41427.aboudreault@mapgears.com> <4D94C4E7.9000807@gatewaygeomatics.com> Message-ID: <4D94E0EC.4080802@gmail.com> openSUSE packages for beta 4 are available here: http://download.opensuse.org/repositories/home:/tzotsos/openSUSE_11.4 http://software.opensuse.org/search?q=mapserver&baseproject=openSUSE%3A11.4&lang=en&include_home=true&exclude_debug=true Angelos On 03/31/2011 09:16 PM, Jeff McKenna wrote: > Windows users can find the 6.0.0-beta4 upgrade package for MS4W at: > http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapserver_ms4w3.x_dev-6.0.0.html > > -jeff > > -- Angelos Tzotsos Remote Sensing Laboratory National Technical University of Athens http://users.ntua.gr/tzotsos From steve.lime at state.mn.us Thu Mar 31 15:44:01 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 31 Mar 2011 17:44:01 -0500 Subject: [mapserver-users] DrawQuery problem In-Reply-To: <4D94BAED.9030803@gmail.com> References: <4D94BAED.9030803@gmail.com> Message-ID: I guess we need more information. A script snippet, confirmation the query is returning results, error messages, etc... Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Oscar Testa Sent: Thursday, March 31, 2011 12:34 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] DrawQuery problem Hello, i'am using mapserver in ubuntu Maverick (10.10). Php version is 5-3-3-1 ubuntu 9.3. Mapscript description: MapServer Version MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 10204 $ $Date: 2010-06-02 06:57:48 -0700 (Wed, 02 Jun 2010) $) I have a project in php, with connection to postgis. When map->draw is called the image is generated correctly. When i do a querybyrect query to the map, the drawquery doesn't draw the image. If necesary i have debug information, and error log. Please help, i can't find the problem!!!!! Regards Oscar -------------- next part -------------- An HTML attachment was scrubbed... URL: